QueryObject
public final class AndCondition extends CompoundCondition
Constructor | Description |
---|---|
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.
|
Modifier and Type | Method | Description |
---|---|---|
void |
accept(Visitor visitor) |
Accept method to handle incoming visitors.
|
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.
|
java.lang.String |
toString() |
Method constructing query string.
|
insert, iterator
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.protected void append(Condition condition)
CompoundCondition
append
in class CompoundCondition
condition
- Condition to be appended to this list of conditions.public Condition and(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