|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.kernel.exps.Val
org.apache.openjpa.kernel.exps.Lit
class Lit
Represents a literal.
| Field Summary |
|---|
| Fields inherited from interface org.apache.openjpa.kernel.exps.Literal |
|---|
TYPE_BOOLEAN, TYPE_CLASS, TYPE_COLLECTION, TYPE_DATE, TYPE_ENUM, TYPE_NUMBER, TYPE_SQ_STRING, TYPE_STRING, TYPE_TIME, TYPE_TIMESTAMP, TYPE_UNKNOWN |
| Constructor Summary | |
|---|---|
Lit(Object val,
int ptype)
Constructor. |
|
| Method Summary | |
|---|---|
protected Object |
eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Return this value for the given candidate. |
int |
getParseType()
The type the literal was parsed as. |
Class |
getType()
Return the expected type for this value, or Object if
the type is unknown. |
Object |
getValue()
The value of this literal. |
Object |
getValue(Object[] parameters)
Return the value for this constant given the specified parameters. |
void |
setImplicitType(Class type)
Set the implicit type of the value, based on how it is used in the filter. |
void |
setValue(Object val)
The value of this literal. |
| Methods inherited from class org.apache.openjpa.kernel.exps.Val |
|---|
acceptVisit, eval, evaluate, evaluate, getAlias, getMetaData, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, setMetaData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.openjpa.kernel.exps.Value |
|---|
acceptVisit, getAlias, getMetaData, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, setMetaData |
| Constructor Detail |
|---|
public Lit(Object val,
int ptype)
| Method Detail |
|---|
public Object getValue()
Literal
getValue in interface Literalpublic void setValue(Object val)
Literal
setValue in interface Literalpublic int getParseType()
Literal
getParseType in interface Literalpublic Object getValue(Object[] parameters)
Constant
getValue in interface Constantpublic Class getType()
ValueObject if
the type is unknown.
getType in interface Valuepublic void setImplicitType(Class type)
ValueObject from Value.getType().
setImplicitType in interface Value
protected Object eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Val
eval in class Val
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||