|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.cpa.query.object.AbstractQueryObject
org.castor.cpa.query.object.condition.AbstractCondition
org.castor.cpa.query.object.condition.SimpleCondition
org.castor.cpa.query.object.condition.In
public final class In
Final class that represents in simple condition.
Constructor Summary | |
---|---|
In()
|
Method Summary | |
---|---|
void |
add(java.math.BigDecimal value)
Adds the. |
void |
add(boolean value)
Adds the. |
void |
add(double value)
Adds the. |
void |
add(java.lang.Enum<?> value)
Adds the. |
void |
add(Literal value)
Adds the. |
void |
add(long value)
Adds the. |
void |
add(Parameter value)
Adds the. |
void |
add(java.lang.String value)
Adds the. |
java.util.List<Expression> |
getItems()
Get list of items to test against. |
java.lang.StringBuilder |
toString(java.lang.StringBuilder sb)
Append a string representation of the object to the given StringBuilder . |
Methods inherited from class org.castor.cpa.query.object.condition.SimpleCondition |
---|
getExpression, isNot, not, setExpression, setNot |
Methods inherited from class org.castor.cpa.query.object.condition.AbstractCondition |
---|
and, or |
Methods inherited from class org.castor.cpa.query.object.AbstractQueryObject |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.castor.cpa.query.Condition |
---|
and, not, or |
Constructor Detail |
---|
public In()
Method Detail |
---|
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(java.math.BigDecimal value)
add
in interface InCondition
value
- the valuepublic void add(java.lang.String value)
add
in interface InCondition
value
- the valuepublic void add(java.lang.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 java.util.List<Expression> getItems()
public java.lang.StringBuilder toString(java.lang.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.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |