Package org.apache.openjpa.kernel.exps
Class CandidatePath
- java.lang.Object
 - 
- org.apache.openjpa.kernel.exps.Val
 - 
- org.apache.openjpa.kernel.exps.CandidatePath
 
 
 
- 
- All Implemented Interfaces:
 Serializable,Path,Value
- Direct Known Subclasses:
 PCPath
public class CandidatePath extends Val implements Path
A path represents a traversal into fields of a candidate object.- Author:
 - Abe White
 - See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCandidatePath.TraversalRepresents a traversal through a field. 
- 
Field Summary
Fields Modifier and Type Field Description protected LinkedList_actionsprotected String_correlationVar 
- 
Constructor Summary
Constructors Constructor Description CandidatePath() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcastTo(Class type)Cast this path to the given type.booleanequals(Object other)protected Objecteval(Object candidate, Object orig, StoreContext ctx, Object[] params)Return this value for the given candidate.voidget(FieldMetaData field, boolean nullTraversal)Traverse into the given field of the current object, and update the current object to that field value.voidget(FieldMetaData fmd, XMLMetaData meta)Traverse into the given field that maps to xml column, and update the current object to that field value.voidget(XMLMetaData meta, String name)Traverse into the gevin xpath name of the current object, and update the current object to that xpath field.protected ClassgetCandidateType()StringgetCorrelationVar()StringgetSchemaAlias()ClassgetType()Return the expected type for this value, orObjectif the type is unknown.XMLMetaDatagetXmlMapping()Return the current XPath's xmlmapping metadata.inthashCode()FieldMetaDatalast()Return the last field in the path, or null if the path does not not contain a final field.voidsetImplicitType(Class type)Set the implicit type of the value, based on how it is used in the filter.voidsetSchemaAlias(String schemaAlias)Set the schema alias (the identification variable) this path is begin with.voidsetSubqueryContext(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
- 
_actions
protected LinkedList _actions
 
- 
_correlationVar
protected String _correlationVar
 
 - 
 
- 
Method Detail
- 
get
public void get(FieldMetaData field, boolean nullTraversal)
Traverse into the given field of the current object, and update the current object to that field value. 
- 
getType
public Class getType()
Description copied from interface:ValueReturn the expected type for this value, orObjectif the type is unknown. 
- 
getCandidateType
protected Class getCandidateType()
 
- 
setImplicitType
public void setImplicitType(Class type)
Description copied from interface:ValueSet the implicit type of the value, based on how it is used in the filter. This method is only called on values who returnObjectfromValue.getType().- Specified by:
 setImplicitTypein interfaceValue
 
- 
last
public FieldMetaData last()
Description copied from interface:PathReturn the last field in the path, or null if the path does not not contain a final field. 
- 
castTo
public void castTo(Class type)
Cast this path to the given type. 
- 
eval
protected Object eval(Object candidate, Object orig, StoreContext ctx, Object[] params)
Description copied from class:ValReturn this value for the given candidate. 
- 
get
public void get(FieldMetaData fmd, XMLMetaData meta)
Description copied from interface:PathTraverse into the given field that maps to xml column, and update the current object to that field value. 
- 
get
public void get(XMLMetaData meta, String name)
Description copied from interface:PathTraverse into the gevin xpath name of the current object, and update the current object to that xpath field. 
- 
getXmlMapping
public XMLMetaData getXmlMapping()
Description copied from interface:PathReturn the current XPath's xmlmapping metadata.- Specified by:
 getXmlMappingin interfacePath- Returns:
 - Return xmlmapping
 
 
- 
setSchemaAlias
public void setSchemaAlias(String schemaAlias)
Description copied from interface:PathSet the schema alias (the identification variable) this path is begin with.- Specified by:
 setSchemaAliasin interfacePath
 
- 
getSchemaAlias
public String getSchemaAlias()
- Specified by:
 getSchemaAliasin interfacePath
 
- 
setSubqueryContext
public void setSubqueryContext(Context conext, String correlationVar)
- Specified by:
 setSubqueryContextin interfacePath
 
- 
getCorrelationVar
public String getCorrelationVar()
- Specified by:
 getCorrelationVarin interfacePath
 
 - 
 
 -