org.castor.cpa.persistence.sql.query.condition
Class CompoundCondition

java.lang.Object
  extended by org.castor.cpa.persistence.sql.query.QueryObject
      extended by org.castor.cpa.persistence.sql.query.condition.Condition
          extended by org.castor.cpa.persistence.sql.query.condition.CompoundCondition
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
protected CompoundCondition()
          Default constructor.
protected CompoundCondition(CompoundCondition condition)
          Copy constructor.
 
Method Summary
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 org.castor.cpa.persistence.sql.query.condition.Condition
and, not, or
 
Methods inherited from class org.castor.cpa.persistence.sql.query.QueryObject
toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com