|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.
| Nested Class Summary | |
|---|---|
static class |
CandidatePath.Traversal
Represents a traversal through a field. |
| 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 PathnullTraversal - if true, allow traversal through a null fieldpublic Class getType()
ValueObject if
the type is unknown.
getType in interface Valueprotected Class getCandidateType()
public void setImplicitType(Class type)
ValueObject from Value.getType().
setImplicitType in interface Valuepublic FieldMetaData last()
Path
last in interface Pathpublic void castTo(Class type)
protected Object eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Val
eval in class Valpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Object
public void get(FieldMetaData fmd,
XMLMetaData meta)
Path
get in interface Pathfmd - field maps to xml columnmeta - associated xml mapping
public void get(XMLMetaData meta,
String name)
Path
get in interface Pathpublic XMLMetaData getXmlMapping()
Path
getXmlMapping in interface Pathpublic void setSchemaAlias(String schemaAlias)
Path
setSchemaAlias in interface Pathpublic String getSchemaAlias()
getSchemaAlias in interface Path
public void setSubqueryContext(Context conext,
String correlationVar)
setSubqueryContext in interface Pathpublic String getCorrelationVar()
getCorrelationVar in interface Path
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||