org.openrdf.sail.rdbms.algebra.base
Class SqlConstant<T>

java.lang.Object
  extended by org.openrdf.query.algebra.QueryModelNodeBase
      extended by org.openrdf.sail.rdbms.algebra.base.RdbmsQueryModelNodeBase
          extended by org.openrdf.sail.rdbms.algebra.base.SqlConstant<T>
All Implemented Interfaces:
Cloneable, QueryModelNode, SqlExpr
Direct Known Subclasses:
BooleanValue, DoubleValue, NumberValue, SqlNull, StringValue

public abstract class SqlConstant<T>
extends RdbmsQueryModelNodeBase
implements SqlExpr

A constant SQL value, like a varchar or number.

Author:
James Leigh

Constructor Summary
SqlConstant()
           
SqlConstant(T value)
           
 
Method Summary
 SqlConstant<T> clone()
          Returns a (deep) clone of this query model node.
 boolean equals(Object obj)
          Returns true if this query model node and its children are recursively equal to o and its children.
 String getSignature()
          Default implementation of QueryModelNode.getSignature() that prints the name of the node's class.
 T getValue()
           
 int hashCode()
           
 void setValue(T value)
           
 
Methods inherited from class org.openrdf.sail.rdbms.algebra.base.RdbmsQueryModelNodeBase
visit, visit
 
Methods inherited from class org.openrdf.query.algebra.QueryModelNodeBase
getParentNode, nullEquals, replaceChildNode, replaceNodeInList, replaceWith, setParentNode, toString, visitChildren
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openrdf.query.algebra.QueryModelNode
getParentNode, replaceChildNode, replaceWith, setParentNode, toString, visit, visitChildren
 

Constructor Detail

SqlConstant

public SqlConstant()

SqlConstant

public SqlConstant(T value)
Method Detail

getValue

public T getValue()

setValue

public void setValue(T value)

getSignature

public String getSignature()
Description copied from class: QueryModelNodeBase
Default implementation of QueryModelNode.getSignature() that prints the name of the node's class.

Specified by:
getSignature in interface QueryModelNode
Overrides:
getSignature in class QueryModelNodeBase
Returns:
The node's signature, e.g. SLICE (offset=10, limit=10).

clone

public SqlConstant<T> clone()
Description copied from interface: QueryModelNode
Returns a (deep) clone of this query model node. This method recursively clones the entire node tree, starting from this nodes.

Specified by:
clone in interface QueryModelNode
Specified by:
clone in interface SqlExpr
Overrides:
clone in class QueryModelNodeBase
Returns:
A deep clone of this query model node.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Description copied from interface: QueryModelNode
Returns true if this query model node and its children are recursively equal to o and its children.

Specified by:
equals in interface QueryModelNode
Overrides:
equals in class Object


Copyright © 2001-2012 Aduna. All Rights Reserved.