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
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a traversal through a field. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCast this path to the given type.booleanprotected 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 ClassgetType()Return the expected type for this value, orObjectif the type is unknown.Return the current XPath's xmlmapping metadata.inthashCode()last()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, setMetaDataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:ValueReturn the expected type for this value, orObjectif the type is unknown. -
getCandidateType
-
setImplicitType
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
Description copied from interface:PathReturn 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:ValReturn this value for the given candidate. -
hashCode
public int hashCode() -
equals
-
get
Description copied from interface:PathTraverse into the given field that maps to xml column, and update the current object to that field value. -
get
Description copied from interface:PathTraverse into the gevin xpath name of the current object, and update the current object to that xpath field. -
getXmlMapping
Description copied from interface:PathReturn the current XPath's xmlmapping metadata.- Specified by:
getXmlMappingin interfacePath- Returns:
- Return xmlmapping
-
setSchemaAlias
Description copied from interface:PathSet the schema alias (the identification variable) this path is begin with.- Specified by:
setSchemaAliasin interfacePath
-
getSchemaAlias
- Specified by:
getSchemaAliasin interfacePath
-
setSubqueryContext
- Specified by:
setSubqueryContextin interfacePath
-
getCorrelationVar
- Specified by:
getCorrelationVarin interfacePath
-