Class SelectGenerationContext
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.parsing.GenerationContext
-
- org.eclipse.persistence.internal.jpa.parsing.SelectGenerationContext
-
public class SelectGenerationContext extends GenerationContext
INTERNAL: An extension of GenerationContext the provides SELECT specific behavior. Used when building the query features that are not usable in other types of queries
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.GenerationContext
baseExpression, baseQueryClass, expressions, isNotIndicatedInMemberOf, parseTree, parseTreeContext, session
-
-
Constructor Summary
Constructors Constructor Description SelectGenerationContext()
SelectGenerationContext(GenerationContext outer, ParseTree newParseTree)
Constructor used to create the context for a subquery.SelectGenerationContext(ParseTreeContext newContext, AbstractSession newSession, ParseTree newParseTree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkSelectNodeBeforeResolving(boolean shouldCheck)
void
dontUseOuterJoins()
MemberOfNode
getMemberOfNode()
GenerationContext
getOuterContext()
boolean
hasMemberOfNode()
boolean
isSelectGenerationContext()
Expression
joinVariables(Set variables)
Iterate the set of variables declared in an outer scope and connect the inner variable expression with the outer one.void
setMemberOfNode(MemberOfNode newMemberOfNode)
boolean
shouldCheckSelectNodeBeforeResolving()
boolean
shouldUseOuterJoins()
void
useOuterJoins()
boolean
useParallelExpressions()
-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.GenerationContext
addExpression, expressionFor, getBaseExpression, getBaseQueryClass, getParseTree, getParseTreeContext, getSession, setBaseExpression, setBaseQueryClass, setParseTree, setParseTreeContext, setSession
-
-
-
-
Constructor Detail
-
SelectGenerationContext
public SelectGenerationContext()
-
SelectGenerationContext
public SelectGenerationContext(GenerationContext outer, ParseTree newParseTree)
Constructor used to create the context for a subquery.
-
SelectGenerationContext
public SelectGenerationContext(ParseTreeContext newContext, AbstractSession newSession, ParseTree newParseTree)
-
-
Method Detail
-
setMemberOfNode
public void setMemberOfNode(MemberOfNode newMemberOfNode)
- Overrides:
setMemberOfNode
in classGenerationContext
-
getMemberOfNode
public MemberOfNode getMemberOfNode()
- Overrides:
getMemberOfNode
in classGenerationContext
-
useParallelExpressions
public boolean useParallelExpressions()
- Overrides:
useParallelExpressions
in classGenerationContext
-
checkSelectNodeBeforeResolving
public void checkSelectNodeBeforeResolving(boolean shouldCheck)
-
shouldCheckSelectNodeBeforeResolving
public boolean shouldCheckSelectNodeBeforeResolving()
- Overrides:
shouldCheckSelectNodeBeforeResolving
in classGenerationContext
-
shouldUseOuterJoins
public boolean shouldUseOuterJoins()
- Overrides:
shouldUseOuterJoins
in classGenerationContext
-
useOuterJoins
public void useOuterJoins()
-
dontUseOuterJoins
public void dontUseOuterJoins()
-
hasMemberOfNode
public boolean hasMemberOfNode()
- Overrides:
hasMemberOfNode
in classGenerationContext
-
isSelectGenerationContext
public boolean isSelectGenerationContext()
- Overrides:
isSelectGenerationContext
in classGenerationContext
-
getOuterContext
public GenerationContext getOuterContext()
-
joinVariables
public Expression joinVariables(Set variables)
Iterate the set of variables declared in an outer scope and connect the inner variable expression with the outer one.- Overrides:
joinVariables
in classGenerationContext
-
-