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
Modifier and TypeFieldDescriptionprotected Expression
protected Class
<?> protected Hashtable
<String, Expression> protected boolean
protected MemberOfNode
protected ParseTree
protected ParseTreeContext
protected AbstractSession
-
Constructor Summary
ConstructorDescriptionGenerationContext
(ParseTreeContext newContext, AbstractSession newSession, ParseTree newParseTree) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExpression
(Expression expression, String aliasName) expressionFor
(String aliasName) Class
<?> boolean
boolean
joinVariables
(Set<String> variables) void
setBaseExpression
(String variable, Expression expr) Caches the specified expression under the variable name for the base query class.void
setBaseQueryClass
(Class<?> newBaseQueryClass) void
setMemberOfNode
(MemberOfNode newMemberOfNode) void
setParseTree
(ParseTree parseTree) void
setParseTreeContext
(ParseTreeContext newParseTreeContext) void
setSession
(AbstractSession newSession) boolean
boolean
boolean
-
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
-