public final class In extends SimpleCondition implements InCondition
Constructor and Description |
---|
In() |
Modifier and Type | Method and Description |
---|---|
void |
add(BigDecimal value)
Adds the.
|
void |
add(boolean value)
Adds the.
|
void |
add(double value)
Adds the.
|
void |
add(Enum<?> value)
Adds the.
|
void |
add(Literal value)
Adds the.
|
void |
add(long value)
Adds the.
|
void |
add(Parameter value)
Adds the.
|
void |
add(String value)
Adds the.
|
List<Expression> |
getItems()
Get list of items to test against.
|
StringBuilder |
toString(StringBuilder sb)
Append a string representation of the object to the given
StringBuilder . |
getExpression, isNot, not, setExpression, setNot
and, or
toString
public void add(boolean value)
add
in interface InCondition
value
- the valuepublic void add(long value)
add
in interface InCondition
value
- the valuepublic void add(double value)
add
in interface InCondition
value
- the valuepublic void add(BigDecimal value)
add
in interface InCondition
value
- the valuepublic void add(String value)
add
in interface InCondition
value
- the valuepublic void add(Enum<?> value)
add
in interface InCondition
value
- the valuepublic void add(Literal value)
add
in interface InCondition
value
- the valuepublic void add(Parameter value)
add
in interface InCondition
value
- the valuepublic List<Expression> getItems()
public StringBuilder toString(StringBuilder sb)
StringBuilder
.
In general, the toString method for query objects appends a string that textually
represents this object. The result should be a query string that complies to EJB QL
specification as long as the query object represents a syntay element of it. It is
required that all subclasses override this method.
The toString method defined at class Object is overwritten and calls this method.toString
in interface QueryObject
sb
- StringBuilder to append the string representation of this object to.Copyright © 2018. All rights reserved.