org.openrdf.sail.rdbms.algebra
Class IdColumn

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.IdColumn
All Implemented Interfaces:
Cloneable, QueryModelNode, SqlExpr

public class IdColumn
extends RdbmsQueryModelNodeBase
implements SqlExpr

A particular column in an SQL expression.

Author:
James Leigh

Constructor Summary
IdColumn(ColumnVar var)
           
IdColumn(String alias)
           
IdColumn(String alias, String column)
           
 
Method Summary
 IdColumn clone()
          Returns a (deep) clone of this query model node.
 boolean equals(Object obj)
           
 String getAlias()
           
 String getColumn()
           
 String getSignature()
          Default implementation of QueryModelNode.getSignature() that prints the name of the node's class.
 int hashCode()
           
<X extends Exception>
void
visit(RdbmsQueryModelVisitorBase<X> visitor)
           
 
Methods inherited from class org.openrdf.sail.rdbms.algebra.base.RdbmsQueryModelNodeBase
visit
 
Methods inherited from class org.openrdf.query.algebra.QueryModelNodeBase
getParentNode, replaceChildNode, 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

IdColumn

public IdColumn(String alias)

IdColumn

public IdColumn(ColumnVar var)

IdColumn

public IdColumn(String alias,
                String column)
Method Detail

getAlias

public String getAlias()

getColumn

public String getColumn()

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).

visit

public <X extends Exception> void visit(RdbmsQueryModelVisitorBase<X> visitor)
           throws X extends Exception
Specified by:
visit in class RdbmsQueryModelNodeBase
Throws:
X extends Exception

clone

public IdColumn 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)
Overrides:
equals in class Object


Copyright © 2001-2008 Aduna. All Rights Reserved.