|
||||||||||
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.CandidatePath
public class CandidatePath
A path represents a traversal into fields of a candidate object.
Field Summary | |
---|---|
protected LinkedList |
_actions
|
protected String |
_correlationVar
|
Constructor Summary | |
---|---|
CandidatePath()
|
Method Summary | |
---|---|
void |
castTo(Class type)
Cast this path to the given type. |
boolean |
equals(Object other)
|
protected Object |
eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Return this value for the given candidate. |
void |
get(FieldMetaData field,
boolean nullTraversal)
Traverse into the given field of the current object, and update the current object to that field value. |
void |
get(FieldMetaData fmd,
XMLMetaData meta)
Traverse into the given field that maps to xml column, and update the current object to that field value. |
void |
get(XMLMetaData meta,
String name)
Traverse into the gevin xpath name of the current object, and update the current object to that xpath field. |
protected Class |
getCandidateType()
|
String |
getCorrelationVar()
|
String |
getSchemaAlias()
|
Class |
getType()
Return the expected type for this value, or Object if
the type is unknown. |
XMLMetaData |
getXmlMapping()
Return the current XPath's xmlmapping metadata. |
int |
hashCode()
|
FieldMetaData |
last()
Return the last field in the path, or null if the path does not not contain a final field. |
void |
setImplicitType(Class type)
Set the implicit type of the value, based on how it is used in the filter. |
void |
setSchemaAlias(String schemaAlias)
Set the schema alias (the identification variable) this path is begin with. |
void |
setSubqueryContext(Context conext,
String correlationVar)
|
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, finalize, getClass, 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 |
Field Detail |
---|
protected LinkedList _actions
protected String _correlationVar
Constructor Detail |
---|
public CandidatePath()
Method Detail |
---|
public void get(FieldMetaData field, boolean nullTraversal)
get
in interface Path
nullTraversal
- if true, allow traversal through a null fieldpublic Class getType()
Value
Object
if
the type is unknown.
getType
in interface Value
protected Class getCandidateType()
public void setImplicitType(Class type)
Value
Object
from Value.getType()
.
setImplicitType
in interface Value
public FieldMetaData last()
Path
last
in interface Path
public void castTo(Class type)
protected Object eval(Object candidate, Object orig, StoreContext ctx, Object[] params)
Val
eval
in class Val
public int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
public void get(FieldMetaData fmd, XMLMetaData meta)
Path
get
in interface Path
fmd
- field maps to xml columnmeta
- associated xml mappingpublic void get(XMLMetaData meta, String name)
Path
get
in interface Path
public XMLMetaData getXmlMapping()
Path
getXmlMapping
in interface Path
public void setSchemaAlias(String schemaAlias)
Path
setSchemaAlias
in interface Path
public String getSchemaAlias()
getSchemaAlias
in interface Path
public void setSubqueryContext(Context conext, String correlationVar)
setSubqueryContext
in interface Path
public String getCorrelationVar()
getCorrelationVar
in interface Path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |