|
EclipseLink 2.4.1, build 'v20121003-ad44345' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.persistence.jpa.jpql.JPQLQueryContext
org.eclipse.persistence.jpa.jpql.EclipseLinkJPQLQueryContext
public class EclipseLinkJPQLQueryContext
This context is used to store information related to the JPQL query. It supports the EclipseLink extension over the default JPQL grammar.
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 | |
|---|---|
|
EclipseLinkJPQLQueryContext(JPQLGrammar jpqlGrammar)
Creates a new EclipseLinkJPQLQueryContext. |
protected |
EclipseLinkJPQLQueryContext(JPQLQueryContext parent,
Expression currentQuery)
Creates a new EclipseLinkJPQLQueryContext. |
| Method Summary | |
|---|---|
protected DeclarationResolver |
buildDeclarationResolver(DeclarationResolver parent)
|
protected JPQLQueryContext |
buildJPQLQueryContext(JPQLQueryContext currentContext,
Expression currentQuery)
|
protected LiteralVisitor |
buildLiteralVisitor()
|
protected EclipseLinkParameterTypeVisitor |
buildParameterTypeVisitor()
|
protected ResolverBuilder |
buildResolverBuilder()
|
EclipseLinkJPQLQueryContext |
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 EclipseLinkJPQLQueryContext(JPQLGrammar jpqlGrammar)
EclipseLinkJPQLQueryContext.
jpqlGrammar - The grammar that defines how to parse a JPQL query
protected EclipseLinkJPQLQueryContext(JPQLQueryContext parent,
Expression currentQuery)
EclipseLinkJPQLQueryContext.
parent - The parent contextcurrentQuery - The parsed tree representation of the subquery| Method Detail |
|---|
protected DeclarationResolver buildDeclarationResolver(DeclarationResolver parent)
buildDeclarationResolver in class JPQLQueryContext
protected JPQLQueryContext buildJPQLQueryContext(JPQLQueryContext currentContext,
Expression currentQuery)
buildJPQLQueryContext in class JPQLQueryContextprotected LiteralVisitor buildLiteralVisitor()
buildLiteralVisitor in class JPQLQueryContextprotected EclipseLinkParameterTypeVisitor buildParameterTypeVisitor()
buildParameterTypeVisitor in class JPQLQueryContextprotected ResolverBuilder buildResolverBuilder()
buildResolverBuilder in class JPQLQueryContextpublic EclipseLinkJPQLQueryContext getParent()
getParent in class JPQLQueryContextnull if the current context is the root
|
EclipseLink 2.4.1, build 'v20121003-ad44345' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||