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
public abstract class CompoundCondition extends Condition
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
Constructors Modifier Constructor Description protected
CompoundCondition()
Default constructor.protected
CompoundCondition(CompoundCondition condition)
Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
append(Condition condition)
Appends the specified condition to end of this list of conditions.protected void
insert(Condition condition)
Inserts the specified condition at begin of this list of conditions.java.util.Iterator<Condition>
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 Detail
-
CompoundCondition
protected CompoundCondition()
Default constructor.
-
CompoundCondition
protected CompoundCondition(CompoundCondition condition)
Copy constructor.- Parameters:
condition
- Compound condition to create a copy of.
-
-
Method Detail
-
insert
protected final void insert(Condition condition)
Inserts the specified condition at begin of this list of conditions.- Parameters:
condition
- Condition to be inserted to this list of conditions.
-
append
protected void append(Condition condition)
Appends the specified condition to end of this list of conditions.- Parameters:
condition
- Condition to be appended to this list of conditions.
-
iterator
public final java.util.Iterator<Condition> 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.
-
-