Class CompoundCondition
java.lang.Object
org.castor.cpa.persistence.sql.query.condition.Condition
org.castor.cpa.persistence.sql.query.condition.CompoundCondition
- All Implemented Interfaces:
QueryObject
- Direct Known Subclasses:
AndCondition
,OrCondition
Compound condition is the abstract base class for AndCondition and OrCondition.
- Version:
- $Revision$ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Ahmad Hassan, Ralf Joachim
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Default constructor.protected
CompoundCondition
(CompoundCondition condition) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Appends the specified condition to end of this list of conditions.protected final void
Inserts the specified condition at begin of this list of conditions.iterator()
Returns an iterator over the elements in this list in proper sequence.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.castor.cpa.persistence.sql.query.QueryObject
accept
-
Constructor Details
-
CompoundCondition
protected CompoundCondition()Default constructor. -
CompoundCondition
Copy constructor.- Parameters:
condition
- Compound condition to create a copy of.
-
-
Method Details
-
insert
Inserts the specified condition at begin of this list of conditions.- Parameters:
condition
- Condition to be inserted to this list of conditions.
-
append
Appends the specified condition to end of this list of conditions.- Parameters:
condition
- Condition to be appended to this list of conditions.
-
iterator
Returns an iterator over the elements in this list in proper sequence.- Returns:
- An iterator over the elements in this list in proper sequence.
-