public class InnerQuery extends Object implements org.apache.openjpa.kernel.exps.Subquery, ExpressionNode
ExpressionNode.NodeType
Constructor and Description |
---|
InnerQuery(org.apache.openjpa.meta.ClassMetaData classMetaData) |
Modifier and Type | Method and Description |
---|---|
void |
acceptVisit(org.apache.openjpa.kernel.exps.ExpressionVisitor visitor)
Accept a visit from a tree visitor.
|
void |
appendSql(StringBuilder sql)
Appends the node SQL string to the string builder.
|
String |
getAlias()
Return select item alias
|
String |
getCandidateAlias()
Return the candidate alias for this subquery.
|
org.apache.openjpa.meta.ClassMetaData |
getMetaData()
Return any associated persistent type.
|
String |
getName() |
ExpressionNode.NodeType |
getNodeType()
Gets the node type
|
org.apache.openjpa.kernel.exps.Path |
getPath() |
Object |
getSelect() |
org.apache.openjpa.kernel.exps.Value |
getSelectAs()
Return 'this' concrete class if alias is set, otherwise null
|
String |
getSubqAlias()
Return the subqAlias
|
Class |
getType()
Return the expected type for this value, or
Object if the type is unknown. |
boolean |
isAggregate()
Return true if this value is an aggregate.
|
boolean |
isVariable()
Return true if this value is a variable.
|
boolean |
isXPath()
Return true if this value is an XML Path.
|
void |
setAlias(String alias)
Set select item alias
|
void |
setImplicitType(Class type)
Set the implicit type of the value, based on how it is used in the filter.
|
void |
setMetaData(org.apache.openjpa.meta.ClassMetaData meta)
Associate a persistent type with this value.
|
void |
setQueryExpressions(org.apache.openjpa.kernel.exps.QueryExpressions query)
Set the parsed subquery.
|
void |
setSubqAlias(String subqAlias)
Set the candidate alias for this subquery.
|
public InnerQuery(org.apache.openjpa.meta.ClassMetaData classMetaData)
public String getCandidateAlias()
getCandidateAlias
in interface org.apache.openjpa.kernel.exps.Subquery
public void setSubqAlias(String subqAlias)
setSubqAlias
in interface org.apache.openjpa.kernel.exps.Subquery
public String getSubqAlias()
getSubqAlias
in interface org.apache.openjpa.kernel.exps.Subquery
public void setQueryExpressions(org.apache.openjpa.kernel.exps.QueryExpressions query)
setQueryExpressions
in interface org.apache.openjpa.kernel.exps.Subquery
public Object getSelect()
getSelect
in interface org.apache.openjpa.kernel.exps.Subquery
public Class getType()
Object
if the type is unknown.getType
in interface org.apache.openjpa.kernel.exps.Value
public void setImplicitType(Class type)
Object
from getType()
.setImplicitType
in interface org.apache.openjpa.kernel.exps.Value
public boolean isVariable()
isVariable
in interface org.apache.openjpa.kernel.exps.Value
public boolean isAggregate()
isAggregate
in interface org.apache.openjpa.kernel.exps.Value
public boolean isXPath()
isXPath
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 void setMetaData(org.apache.openjpa.meta.ClassMetaData meta)
setMetaData
in interface org.apache.openjpa.kernel.exps.Value
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 void setAlias(String alias)
setAlias
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 org.apache.openjpa.kernel.exps.Path getPath()
getPath
in interface org.apache.openjpa.kernel.exps.Value
public String getName()
getName
in interface org.apache.openjpa.kernel.exps.Value
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
Copyright © GigaSpaces.