net.sourceforge.toscanaj.model.sql
Class AndExpression

java.lang.Object
  extended bynet.sourceforge.toscanaj.model.sql.AndExpression
All Implemented Interfaces:
Expression, Ordered

public class AndExpression
extends java.lang.Object
implements Expression


Constructor Summary
AndExpression()
           
 
Method Summary
 void addClause(Expression clause)
           
 java.lang.String getSQL()
           
 boolean isEqual(Ordered other)
          Compare the current with another object on equality.
 boolean isLesserThan(Ordered other)
          Compares the current with another object on ordering.
 void removeClause(Expression clause)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndExpression

public AndExpression()
Method Detail

addClause

public void addClause(Expression clause)

removeClause

public void removeClause(Expression clause)

getSQL

public java.lang.String getSQL()
Specified by:
getSQL in interface Expression

isLesserThan

public boolean isLesserThan(Ordered other)
Description copied from interface: Ordered
Compares the current with another object on ordering.

Specified by:
isLesserThan in interface Ordered
Parameters:
other - the object to compare to, must not be null
Returns:
true iff the current object is considered less than the one passed

isEqual

public boolean isEqual(Ordered other)
Description copied from interface: Ordered
Compare the current with another object on equality. This can be useful if a different notion of equality should be used than the one implemented by Object.equals(Object). Otherwise it should be just mapped to the latter (which in turn might map to reference identity). Note that this method does not accept null values. This also means when overriding it by mapping it to the standard equals method, a check for null should be done first.

Specified by:
isEqual in interface Ordered
Parameters:
other - the object to compare to, must not be null
Returns:
true iff the current object is considered equal to the one passed


The ToscanaJ project