|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.kernel.exps.Val org.apache.openjpa.kernel.exps.Param
class Param
Represents a parameter.
Constructor Summary | |
---|---|
Param(Object key,
Class type)
Constructor. |
Method Summary | |
---|---|
protected Object |
eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Return this value for the given candidate. |
Object |
getParameterKey()
Returns the key of the parameter. |
Class |
getType()
Return the expected type for this value, or Object if
the type is unknown. |
Object |
getValue(Object[] params)
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 |
setIndex(int index)
Set the index of this parameter. |
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 Param(Object key, Class type)
Method Detail |
---|
public Object getParameterKey()
Parameter
getParameterKey
in interface Parameter
public Class getType()
Value
Object
if
the type is unknown.
getType
in interface Value
public void setImplicitType(Class type)
Value
Object
from Value.getType()
.
setImplicitType
in interface Value
public void setIndex(int index)
Parameter
setIndex
in interface Parameter
public Object getValue(Object[] params)
Constant
getValue
in interface Constant
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 |