public final class AndCondition extends CompoundCondition
Constructor and 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 and 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.
|
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.Copyright © 2014. All rights reserved.