|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jpa.jpql.JPQLQueryContext org.eclipse.persistence.jpa.jpql.DefaultJPQLQueryContext
public class DefaultJPQLQueryContext
This context is used to store information related to the JPQL query.
IQuery
externalQuery = ...;
JPQLQueryContext context = new JPQLQueryContext(DefaultJPQLGrammar.instance());
context.setQuery(query);
If the JPQL query is already parsed, then the context can use it and it needs to be set before
setting the IQuery
:
JPQLExpression
jpqlExpression = ...;
JPQLQueryContext context = new JPQLQueryContext(DefaultJPQLGrammar.instance());
context.setJPQLExpression(jpqlExpression);
context.setQuery(query);
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.persistence.jpa.jpql.JPQLQueryContext |
---|
JPQLQueryContext.InputParameterVisitor, JPQLQueryContext.QueryExpressionVisitor |
Field Summary |
---|
Fields inherited from class org.eclipse.persistence.jpa.jpql.JPQLQueryContext |
---|
currentContext, parent |
Constructor Summary | |
---|---|
|
DefaultJPQLQueryContext(JPQLGrammar jpqlGrammar)
Creates a new DefaultJPQLQueryContext . |
protected |
DefaultJPQLQueryContext(JPQLQueryContext parent,
Expression currentQuery)
Creates a new sub- DefaultJPQLQueryContext . |
Method Summary | |
---|---|
protected JPQLQueryContext |
buildJPQLQueryContext(JPQLQueryContext currentContext,
Expression currentQuery)
|
protected DefaultLiteralVisitor |
buildLiteralVisitor()
|
protected DefaultParameterTypeVisitor |
buildParameterTypeVisitor()
|
protected DefaultResolverBuilder |
buildResolverBuilder()
|
DefaultJPQLQueryContext |
getParent()
Returns the parent context if the current context is not the root context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultJPQLQueryContext(JPQLGrammar jpqlGrammar)
DefaultJPQLQueryContext
.
protected DefaultJPQLQueryContext(JPQLQueryContext parent, Expression currentQuery)
DefaultJPQLQueryContext
.
parent
- The parent contextcurrentQuery
- The parsed tree representation of the subqueryMethod Detail |
---|
protected JPQLQueryContext buildJPQLQueryContext(JPQLQueryContext currentContext, Expression currentQuery)
buildJPQLQueryContext
in class JPQLQueryContext
protected DefaultLiteralVisitor buildLiteralVisitor()
buildLiteralVisitor
in class JPQLQueryContext
protected DefaultParameterTypeVisitor buildParameterTypeVisitor()
buildParameterTypeVisitor
in class JPQLQueryContext
protected DefaultResolverBuilder buildResolverBuilder()
buildResolverBuilder
in class JPQLQueryContext
public DefaultJPQLQueryContext getParent()
getParent
in class JPQLQueryContext
null
if the current context is the root
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |