public class LiteralExpr extends AbstractAmberExpr
IS_INNER_JOIN, USES_DATA| Constructor and Description |
|---|
LiteralExpr(QueryParser parser,
java.lang.String value,
java.lang.Class javaType)
Creates a new literal expression.
|
| Modifier and Type | Method and Description |
|---|---|
AmberExpr |
bindSelect(QueryParser parser)
Binds the expression as a select item.
|
boolean |
exists()
Returns true if the expression must exist
|
void |
generateHaving(CharBuffer cb)
Generates the having expression.
|
void |
generateUpdateWhere(CharBuffer cb)
Generates the (update) literal.
|
void |
generateWhere(CharBuffer cb)
Generates the literal.
|
java.lang.Class |
getJavaType()
Returns the java type
|
java.lang.String |
getValue()
Returns the literal value
|
java.lang.String |
toString() |
createBoolean, exists, findItem, generateJoin, generateSelect, getCacheObject, getColumnCount, getObject, getType, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom, usesFrompublic LiteralExpr(QueryParser parser, java.lang.String value, java.lang.Class javaType)
value - the string value of the literaltype - the java type of the literalpublic java.lang.Class getJavaType()
public java.lang.String getValue()
public AmberExpr bindSelect(QueryParser parser)
bindSelect in interface AmberExprbindSelect in class AbstractAmberExprpublic boolean exists()
exists in interface AmberExprexists in class AbstractAmberExprpublic void generateWhere(CharBuffer cb)
generateWhere in interface AmberExprgenerateWhere in class AbstractAmberExprpublic void generateUpdateWhere(CharBuffer cb)
generateUpdateWhere in interface AmberExprgenerateUpdateWhere in class AbstractAmberExprpublic void generateHaving(CharBuffer cb)
generateHaving in interface AmberExprgenerateHaving in class AbstractAmberExprpublic java.lang.String toString()
toString in class java.lang.Object