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, usesFrom
public 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 AmberExpr
bindSelect
in class AbstractAmberExpr
public boolean exists()
exists
in interface AmberExpr
exists
in class AbstractAmberExpr
public void generateWhere(CharBuffer cb)
generateWhere
in interface AmberExpr
generateWhere
in class AbstractAmberExpr
public void generateUpdateWhere(CharBuffer cb)
generateUpdateWhere
in interface AmberExpr
generateUpdateWhere
in class AbstractAmberExpr
public void generateHaving(CharBuffer cb)
generateHaving
in interface AmberExpr
generateHaving
in class AbstractAmberExpr
public java.lang.String toString()
toString
in class java.lang.Object