|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.jpa.openjpa.query.InnerQuery
public class InnerQuery
Represents an inner query (subquery) in OpenJPA's expression tree.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.openspaces.jpa.openjpa.query.ExpressionNode |
---|
ExpressionNode.NodeType |
Constructor Summary | |
---|---|
InnerQuery(org.apache.openjpa.meta.ClassMetaData classMetaData)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InnerQuery(org.apache.openjpa.meta.ClassMetaData classMetaData)
Method Detail |
---|
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
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |