|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.Subquerypublic void setSubqAlias(String subqAlias)
setSubqAlias in interface org.apache.openjpa.kernel.exps.Subquerypublic String getSubqAlias()
getSubqAlias in interface org.apache.openjpa.kernel.exps.Subquerypublic void setQueryExpressions(org.apache.openjpa.kernel.exps.QueryExpressions query)
setQueryExpressions in interface org.apache.openjpa.kernel.exps.Subquerypublic Object getSelect()
getSelect in interface org.apache.openjpa.kernel.exps.Subquerypublic Class getType()
Object if the type is unknown.
getType in interface org.apache.openjpa.kernel.exps.Valuepublic void setImplicitType(Class type)
Object from getType().
setImplicitType in interface org.apache.openjpa.kernel.exps.Valuepublic boolean isVariable()
isVariable in interface org.apache.openjpa.kernel.exps.Valuepublic boolean isAggregate()
isAggregate in interface org.apache.openjpa.kernel.exps.Valuepublic boolean isXPath()
isXPath in interface org.apache.openjpa.kernel.exps.Valuepublic org.apache.openjpa.meta.ClassMetaData getMetaData()
getMetaData in interface org.apache.openjpa.kernel.exps.Valuepublic void setMetaData(org.apache.openjpa.meta.ClassMetaData meta)
setMetaData in interface org.apache.openjpa.kernel.exps.Valuepublic void acceptVisit(org.apache.openjpa.kernel.exps.ExpressionVisitor visitor)
acceptVisit in interface org.apache.openjpa.kernel.exps.Valuepublic String getAlias()
getAlias in interface org.apache.openjpa.kernel.exps.Valuepublic void setAlias(String alias)
setAlias in interface org.apache.openjpa.kernel.exps.Valuepublic org.apache.openjpa.kernel.exps.Value getSelectAs()
getSelectAs in interface org.apache.openjpa.kernel.exps.Valuepublic org.apache.openjpa.kernel.exps.Path getPath()
getPath in interface org.apache.openjpa.kernel.exps.Valuepublic String getName()
getName in interface org.apache.openjpa.kernel.exps.Valuepublic void appendSql(StringBuilder sql)
ExpressionNode
appendSql in interface ExpressionNodesql - The SQL string builder to append to.public ExpressionNode.NodeType getNodeType()
ExpressionNode
getNodeType in interface ExpressionNode
|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||