public class FieldPathNode extends Object implements org.apache.openjpa.kernel.exps.Path, ExpressionNode
get(FieldMetaData, boolean)
method
is called when passing through each ClassMetaData so this method saves the entire path to the
given column so it can be later converted to a string.ExpressionNode.NodeType
Constructor and Description |
---|
FieldPathNode() |
Modifier and Type | Method and Description |
---|---|
void |
acceptVisit(org.apache.openjpa.kernel.exps.ExpressionVisitor visitor) |
void |
appendSql(StringBuilder sql)
Appends the node SQL string to the string builder.
|
void |
get(org.apache.openjpa.meta.FieldMetaData fmd,
boolean nullTraversal) |
void |
get(org.apache.openjpa.meta.FieldMetaData fieldMetaData,
org.apache.openjpa.meta.XMLMetaData xmlMetaData) |
void |
get(org.apache.openjpa.meta.XMLMetaData xmlMetaData,
String name) |
String |
getAlias() |
String |
getCorrelationVar() |
org.apache.openjpa.meta.ClassMetaData |
getMetaData() |
String |
getName() |
ExpressionNode.NodeType |
getNodeType()
Gets the node type
|
org.apache.openjpa.kernel.exps.Path |
getPath() |
String |
getSchemaAlias() |
org.apache.openjpa.kernel.exps.Value |
getSelectAs() |
Class |
getType() |
org.apache.openjpa.meta.XMLMetaData |
getXmlMapping() |
boolean |
isAggregate() |
boolean |
isVariable() |
boolean |
isXPath() |
org.apache.openjpa.meta.FieldMetaData |
last() |
void |
setAlias(String alias) |
void |
setCollection(boolean collection)
Sets whether the JOINED property is a collection or not.
|
void |
setImplicitType(Class type) |
void |
setJoinedFieldName(String collectionName)
In a JOIN statement - sets the JOINED property name.
|
void |
setMetaData(org.apache.openjpa.meta.ClassMetaData classMetaData) |
void |
setSchemaAlias(String schemaAliasName) |
void |
setSubqueryContext(org.apache.openjpa.kernel.exps.Context arg0,
String arg1) |
String |
toString() |
public void acceptVisit(org.apache.openjpa.kernel.exps.ExpressionVisitor visitor)
acceptVisit
in interface org.apache.openjpa.kernel.exps.Value
public String getAlias()
getAlias
in interface org.apache.openjpa.kernel.exps.Value
public org.apache.openjpa.meta.ClassMetaData getMetaData()
getMetaData
in interface org.apache.openjpa.kernel.exps.Value
public String getName()
getName
in interface org.apache.openjpa.kernel.exps.Value
public org.apache.openjpa.kernel.exps.Path getPath()
getPath
in interface org.apache.openjpa.kernel.exps.Value
public org.apache.openjpa.kernel.exps.Value getSelectAs()
getSelectAs
in interface org.apache.openjpa.kernel.exps.Value
public Class getType()
getType
in interface org.apache.openjpa.kernel.exps.Value
public boolean isAggregate()
isAggregate
in interface org.apache.openjpa.kernel.exps.Value
public boolean isVariable()
isVariable
in interface org.apache.openjpa.kernel.exps.Value
public boolean isXPath()
isXPath
in interface org.apache.openjpa.kernel.exps.Value
public void setAlias(String alias)
setAlias
in interface org.apache.openjpa.kernel.exps.Value
public void setImplicitType(Class type)
setImplicitType
in interface org.apache.openjpa.kernel.exps.Value
public void setMetaData(org.apache.openjpa.meta.ClassMetaData classMetaData)
setMetaData
in interface org.apache.openjpa.kernel.exps.Value
public void get(org.apache.openjpa.meta.FieldMetaData fmd, boolean nullTraversal)
get
in interface org.apache.openjpa.kernel.exps.Path
public void get(org.apache.openjpa.meta.FieldMetaData fieldMetaData, org.apache.openjpa.meta.XMLMetaData xmlMetaData)
get
in interface org.apache.openjpa.kernel.exps.Path
public void get(org.apache.openjpa.meta.XMLMetaData xmlMetaData, String name)
get
in interface org.apache.openjpa.kernel.exps.Path
public String getCorrelationVar()
getCorrelationVar
in interface org.apache.openjpa.kernel.exps.Path
public String getSchemaAlias()
getSchemaAlias
in interface org.apache.openjpa.kernel.exps.Path
public org.apache.openjpa.meta.XMLMetaData getXmlMapping()
getXmlMapping
in interface org.apache.openjpa.kernel.exps.Path
public org.apache.openjpa.meta.FieldMetaData last()
last
in interface org.apache.openjpa.kernel.exps.Path
public void setSchemaAlias(String schemaAliasName)
setSchemaAlias
in interface org.apache.openjpa.kernel.exps.Path
public void setSubqueryContext(org.apache.openjpa.kernel.exps.Context arg0, String arg1)
setSubqueryContext
in interface org.apache.openjpa.kernel.exps.Path
public void appendSql(StringBuilder sql)
ExpressionNode
appendSql
in interface ExpressionNode
sql
- The SQL string builder to append to.public ExpressionNode.NodeType getNodeType()
ExpressionNode
getNodeType
in interface ExpressionNode
public void setJoinedFieldName(String collectionName)
public void setCollection(boolean collection)
Copyright © GigaSpaces.