|
||||||||
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.OrCondition
public final class OrCondition
Represents a list of conditions that are concatenated by an OR operator.
Constructor Summary | |
---|---|
OrCondition()
Default constructor for an empty OR condition. |
|
OrCondition(Condition condition1,
Condition condition2)
Constructor for a compound condition that concatenates the 2 given conditions with an OR operator. |
|
OrCondition(OrCondition condition)
Copy constructor to create a copy of given OR condition. |
Method Summary | |
---|---|
protected void |
append(Condition condition)
Appends the specified condition to end of this list of conditions. |
Condition |
not()
Builder method to invert a condition. |
Condition |
or(Condition condition)
Builder method to concatenate the given condition with all others that have previously been added with an OR operator. |
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 |
---|
and |
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 OrCondition()
public OrCondition(Condition condition1, Condition condition2)
condition1
- First condition.condition2
- Second condition.public OrCondition(OrCondition condition)
condition
- OR condition to create a copy of.Method Detail |
---|
protected void append(Condition condition)
CompoundCondition
append
in class CompoundCondition
condition
- Condition to be appended to this list of conditions.public Condition or(Condition condition)
Condition
or
in class Condition
condition
- Condition to concatenate.
public Condition not()
Condition
not
in class Condition
public void toString(QueryContext ctx)
QueryObject
toString
in class QueryObject
ctx
- 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 |