org.openrdf.sail.rdbms.algebra.base
Class UnarySqlOperator

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.UnarySqlOperator
All Implemented Interfaces:
Cloneable, QueryModelNode, SqlExpr
Direct Known Subclasses:
SqlAbs, SqlCast, SqlIsNull, SqlLowerCase, SqlNot, SqlShift

public abstract class UnarySqlOperator
extends RdbmsQueryModelNodeBase
implements SqlExpr

An SQL operator with one argument.

Author:
James Leigh

Constructor Summary
UnarySqlOperator()
           
UnarySqlOperator(SqlExpr arg)
           
 
Method Summary
 UnarySqlOperator clone()
          Returns a (deep) clone of this query model node.
 boolean equals(Object obj)
           
 SqlExpr getArg()
           
 int hashCode()
           
 void replaceChildNode(QueryModelNode current, QueryModelNode replacement)
          Default implementation of QueryModelNode.replaceChildNode(QueryModelNode, QueryModelNode) that throws an IllegalArgumentException indicating that current is not a child node of this node.
 void setArg(SqlExpr arg)
           
 String toString()
          Returns an indented print of the node tree, starting from this node.
<X extends Exception>
void
visitChildren(QueryModelVisitor<X> visitor)
          Dummy implementation of QueryModelNode.visitChildren(org.openrdf.query.algebra.QueryModelVisitor) that does nothing.
 
Methods inherited from class org.openrdf.sail.rdbms.algebra.base.RdbmsQueryModelNodeBase
visit, visit
 
Methods inherited from class org.openrdf.query.algebra.QueryModelNodeBase
getParentNode, getSignature, replaceWith, setParentNode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openrdf.query.algebra.QueryModelNode
getParentNode, getSignature, replaceWith, setParentNode, visit
 

Constructor Detail

UnarySqlOperator

public UnarySqlOperator()

UnarySqlOperator

public UnarySqlOperator(SqlExpr arg)
Method Detail

getArg

public SqlExpr getArg()

setArg

public void setArg(SqlExpr arg)

visitChildren

public <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor)
                   throws X extends Exception
Description copied from class: QueryModelNodeBase
Dummy implementation of QueryModelNode.visitChildren(org.openrdf.query.algebra.QueryModelVisitor) that does nothing. Subclasses should override this method when they have child nodes.

Specified by:
visitChildren in interface QueryModelNode
Overrides:
visitChildren in class QueryModelNodeBase
Throws:
X extends Exception

replaceChildNode

public void replaceChildNode(QueryModelNode current,
                             QueryModelNode replacement)
Description copied from class: QueryModelNodeBase
Default implementation of QueryModelNode.replaceChildNode(QueryModelNode, QueryModelNode) that throws an IllegalArgumentException indicating that current is not a child node of this node.

Specified by:
replaceChildNode in interface QueryModelNode
Overrides:
replaceChildNode in class QueryModelNodeBase
Parameters:
current - The current child node.
replacement - The new child node.

clone

public UnarySqlOperator 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

toString

public String toString()
Description copied from interface: QueryModelNode
Returns an indented print of the node tree, starting from this node.

Specified by:
toString in interface QueryModelNode
Overrides:
toString in class QueryModelNodeBase


Copyright © 2001-2008 Aduna. All Rights Reserved.