Module org.eclipse.persistence.core
Class GenerationContext
java.lang.Object
org.eclipse.persistence.internal.jpa.parsing.GenerationContext
- Direct Known Subclasses:
SelectGenerationContext
INTERNAL
Purpose: Maintain the generation context for an EJBQL query
Responsibilities:
- Maintain a table of expression builders and alias's
- Maintain the base query class
- Maintain a handle to the session
- Maintain a handle to the parse tree
- Since:
- TopLink 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Expressionprotected Class<?> protected Hashtable<String, Expression> protected booleanprotected MemberOfNodeprotected ParseTreeprotected ParseTreeContextprotected AbstractSession -
Constructor Summary
ConstructorsConstructorDescriptionGenerationContext(ParseTreeContext newContext, AbstractSession newSession, ParseTree newParseTree) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExpression(Expression expression, String aliasName) expressionFor(String aliasName) Class<?> booleanbooleanjoinVariables(Set<String> variables) voidsetBaseExpression(String variable, Expression expr) Caches the specified expression under the variable name for the base query class.voidsetBaseQueryClass(Class<?> newBaseQueryClass) voidsetMemberOfNode(MemberOfNode newMemberOfNode) voidsetParseTree(ParseTree parseTree) voidsetParseTreeContext(ParseTreeContext newParseTreeContext) voidsetSession(AbstractSession newSession) booleanbooleanboolean
-
Field Details
-
session
-
parseTreeContext
-
baseQueryClass
-
baseExpression
-
expressions
-
parseTree
-
isNotIndicatedInMemberOf
protected boolean isNotIndicatedInMemberOf -
memberOfNode
-
-
Constructor Details
-
GenerationContext
public GenerationContext() -
GenerationContext
public GenerationContext(ParseTreeContext newContext, AbstractSession newSession, ParseTree newParseTree)
-
-
Method Details
-
addExpression
-
expressionFor
-
getBaseQueryClass
-
getParseTreeContext
-
getParseTree
-
getSession
-
setBaseQueryClass
-
setBaseExpression
Caches the specified expression under the variable name for the base query class. -
getBaseExpression
-
setParseTree
-
setParseTreeContext
-
setSession
-
useParallelExpressions
public boolean useParallelExpressions() -
shouldCheckSelectNodeBeforeResolving
public boolean shouldCheckSelectNodeBeforeResolving() -
setMemberOfNode
-
getMemberOfNode
-
hasMemberOfNode
public boolean hasMemberOfNode() -
isSelectGenerationContext
public boolean isSelectGenerationContext() -
shouldUseOuterJoins
public boolean shouldUseOuterJoins() -
joinVariables
-