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
A path represents a traversal into fields of a candidate object.
- Author:
- Abe White
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents a traversal through a field. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Cast this path to the given type.boolean
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
getType()
Return the expected type for this value, orObject
if the type is unknown.Return the current XPath's xmlmapping metadata.int
hashCode()
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 Details
-
_actions
-
_correlationVar
-
-
Constructor Details
-
CandidatePath
public CandidatePath()
-
-
Method Details
-
get
Traverse into the given field of the current object, and update the current object to that field value. -
getType
Description copied from interface:Value
Return the expected type for this value, orObject
if the type is unknown. -
getCandidateType
-
setImplicitType
Description copied from interface:Value
Set the implicit type of the value, based on how it is used in the filter. This method is only called on values who returnObject
fromValue.getType()
.- Specified by:
setImplicitType
in interfaceValue
-
last
Description copied from interface:Path
Return the last field in the path, or null if the path does not not contain a final field. -
castTo
Cast this path to the given type. -
eval
Description copied from class:Val
Return this value for the given candidate. -
hashCode
public int hashCode() -
equals
-
get
Description copied from interface:Path
Traverse into the given field that maps to xml column, and update the current object to that field value. -
get
Description copied from interface:Path
Traverse into the gevin xpath name of the current object, and update the current object to that xpath field. -
getXmlMapping
Description copied from interface:Path
Return the current XPath's xmlmapping metadata.- Specified by:
getXmlMapping
in interfacePath
- Returns:
- Return xmlmapping
-
setSchemaAlias
Description copied from interface:Path
Set the schema alias (the identification variable) this path is begin with.- Specified by:
setSchemaAlias
in interfacePath
-
getSchemaAlias
- Specified by:
getSchemaAlias
in interfacePath
-
setSubqueryContext
- Specified by:
setSubqueryContext
in interfacePath
-
getCorrelationVar
- Specified by:
getCorrelationVar
in interfacePath
-