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 Details

    • CompoundCondition

      protected CompoundCondition()
      Default constructor.
    • CompoundCondition

      protected CompoundCondition(CompoundCondition condition)
      Copy constructor.
      Parameters:
      condition - Compound condition to create a copy of.
  • Method Details

    • 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 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.