|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.cpa.persistence.sql.query.QueryObject
org.castor.cpa.persistence.sql.query.condition.Condition
org.castor.cpa.persistence.sql.query.condition.CompoundCondition
org.castor.cpa.persistence.sql.query.condition.AndCondition
public final class AndCondition
Represents a list of conditions that are concatenated by an AND operator.
| Constructor Summary | |
|---|---|
AndCondition()
Default constructor for an empty AND condition. |
|
AndCondition(AndCondition condition)
Copy constructor to create a copy of given AND condition. |
|
AndCondition(Condition condition1,
Condition condition2)
Constructor for a compound condition that concatenates the 2 given conditions with an AND operator. |
|
| Method Summary | |
|---|---|
Condition |
and(Condition condition)
Builder method to concatenate the given condition with all others that have previously been added with an AND operator. |
protected void |
append(Condition condition)
Appends the specified condition to end of this list of conditions. |
Condition |
not()
Builder method to invert a condition. |
void |
toString(QueryContext ctx)
Append a string representation of the object to the given QueryContext. |
| Methods inherited from class org.castor.cpa.persistence.sql.query.condition.CompoundCondition |
|---|
insert, iterator |
| Methods inherited from class org.castor.cpa.persistence.sql.query.condition.Condition |
|---|
or |
| Methods inherited from class org.castor.cpa.persistence.sql.query.QueryObject |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AndCondition()
public AndCondition(Condition condition1,
Condition condition2)
condition1 - First condition.condition2 - Second condition.public AndCondition(AndCondition condition)
condition - AND condition to create a copy of.| Method Detail |
|---|
protected void append(Condition condition)
CompoundCondition
append in class CompoundConditioncondition - Condition to be appended to this list of conditions.public Condition and(Condition condition)
Condition
and in class Conditioncondition - Condition to concatenate.
public Condition not()
Condition
not in class Conditionpublic void toString(QueryContext ctx)
QueryObject
toString in class QueryObjectctx - QueryContext to append the string representation of the object to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||