QueryObject
public final class OrCondition extends CompoundCondition
Constructor | Description |
---|---|
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.
|
Modifier and Type | Method | Description |
---|---|---|
void |
accept(Visitor visitor) |
Accept method to handle incoming visitors.
|
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.
|
java.lang.String |
toString() |
Method constructing query string.
|
insert, iterator
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.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
public Condition not()
Condition
public void accept(Visitor visitor)
visitor
- Visitor to be handled.public java.lang.String toString()
toString
in class java.lang.Object
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com