org.openrdf.sail.rdbms.algebra
Class SqlCompare

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
              extended by org.openrdf.sail.rdbms.algebra.SqlCompare
All Implemented Interfaces:
Cloneable, QueryModelNode, SqlExpr

public class SqlCompare
extends BinarySqlOperator

The SQL compare expressions (>, <, >=, <=).

Author:
James Leigh

Nested Class Summary
static class SqlCompare.Operator
           
 
Constructor Summary
SqlCompare(SqlExpr leftArg, Compare.CompareOp op, SqlExpr rightArg)
           
 
Method Summary
 boolean equals(Object obj)
          Returns true if this query model node and its children are recursively equal to o and its children.
 SqlCompare.Operator getOperator()
           
 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.BinarySqlOperator
clone, getLeftArg, getRightArg, replaceChildNode, setLeftArg, setRightArg, toString, visitChildren
 
Methods inherited from class org.openrdf.sail.rdbms.algebra.base.RdbmsQueryModelNodeBase
visit
 
Methods inherited from class org.openrdf.query.algebra.QueryModelNodeBase
getParentNode, nullEquals, replaceNodeInList, 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, replaceWith, setParentNode, visit
 

Constructor Detail

SqlCompare

public SqlCompare(SqlExpr leftArg,
                  Compare.CompareOp op,
                  SqlExpr rightArg)
Method Detail

getOperator

public SqlCompare.Operator getOperator()

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

hashCode

public int hashCode()
Overrides:
hashCode in class BinarySqlOperator

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 BinarySqlOperator


Copyright © 2001-2012 Aduna. All Rights Reserved.