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

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.BinarySqlOperator
All Implemented Interfaces:
Cloneable, QueryModelNode, SqlExpr
Direct Known Subclasses:
SqlAnd, SqlCompare, SqlConcat, SqlEq, SqlLike, SqlMathExpr, SqlOr, SqlRegex

public abstract class BinarySqlOperator
extends RdbmsQueryModelNodeBase
implements SqlExpr

An abstract binary sql operator with two arguments.

Author:
James Leigh

Constructor Summary
BinarySqlOperator()
           
BinarySqlOperator(SqlExpr leftArg, SqlExpr rightArg)
           
 
Method Summary
 BinarySqlOperator clone()
          Returns a (deep) clone of this query model node.
 boolean equals(Object obj)
           
 SqlExpr getLeftArg()
           
 SqlExpr getRightArg()
           
 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 setLeftArg(SqlExpr leftArg)
           
 void setRightArg(SqlExpr rightArg)
           
 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

BinarySqlOperator

public BinarySqlOperator()

BinarySqlOperator

public BinarySqlOperator(SqlExpr leftArg,
                         SqlExpr rightArg)
Method Detail

getLeftArg

public SqlExpr getLeftArg()

setLeftArg

public void setLeftArg(SqlExpr leftArg)

getRightArg

public SqlExpr getRightArg()

setRightArg

public void setRightArg(SqlExpr rightArg)

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