| org.mmbase.storage.search.CompositeConstraint
All known Subclasses: org.mmbase.storage.search.implementation.BasicCompositeConstraint,
CompositeConstraint | public interface CompositeConstraint extends Constraint(Code) | | A constraint combining several child constraints, using either logical AND or OR.
This corresponds to a AND- or OR-expression in SQL SELECT-syntax.
author: Rob van Maris version: $Id: CompositeConstraint.java,v 1.5 2007/12/06 08:13:36 michiel Exp $ since: MMBase-1.7 |
LOGICAL_AND | final public static int LOGICAL_AND(Code) | | Logical operator 'and'
|
LOGICAL_OR | final public static int LOGICAL_OR(Code) | | Logical operator 'or'
|
equals | public boolean equals(Object obj)(Code) | | Compares this constraint to the specified object. The result is
true if and only if the argument is a non-null
CompositeConstraint object representing the same constraint(s).
Parameters: obj - The object to compare with. true if the objects are equal,false otherwise. |
getLogicalOperator | int getLogicalOperator()(Code) | | Gets the logical operator used to combine the child constraints. This must be either LOGICAL_AND or LOGICAL_OR.
|
hashCode | public int hashCode()(Code) | | |
toString | public String toString()(Code) | | Returns a string representation of this CompositeConstraint.
The string representation has the form
"CompositeConstraint(inverse:<:inverse>, operator:<operator>,
childs:<childs>)"
where
A string representation of this CompositeConstraint. |
|
|