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 voidcheckSelectNodeBeforeResolving(boolean shouldCheck)voiddontUseOuterJoins()MemberOfNodegetMemberOfNode()GenerationContextgetOuterContext()booleanhasMemberOfNode()booleanisSelectGenerationContext()ExpressionjoinVariables(java.util.Set variables)Iterate the set of variables declared in an outer scope and connect the inner variable expression with the outer one.voidsetMemberOfNode(MemberOfNode newMemberOfNode)booleanshouldCheckSelectNodeBeforeResolving()booleanshouldUseOuterJoins()voiduseOuterJoins()booleanuseParallelExpressions()-
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:
setMemberOfNodein classGenerationContext
-
getMemberOfNode
public MemberOfNode getMemberOfNode()
- Overrides:
getMemberOfNodein classGenerationContext
-
useParallelExpressions
public boolean useParallelExpressions()
- Overrides:
useParallelExpressionsin classGenerationContext
-
checkSelectNodeBeforeResolving
public void checkSelectNodeBeforeResolving(boolean shouldCheck)
-
shouldCheckSelectNodeBeforeResolving
public boolean shouldCheckSelectNodeBeforeResolving()
- Overrides:
shouldCheckSelectNodeBeforeResolvingin classGenerationContext
-
shouldUseOuterJoins
public boolean shouldUseOuterJoins()
- Overrides:
shouldUseOuterJoinsin classGenerationContext
-
useOuterJoins
public void useOuterJoins()
-
dontUseOuterJoins
public void dontUseOuterJoins()
-
hasMemberOfNode
public boolean hasMemberOfNode()
- Overrides:
hasMemberOfNodein classGenerationContext
-
isSelectGenerationContext
public boolean isSelectGenerationContext()
- Overrides:
isSelectGenerationContextin classGenerationContext
-
getOuterContext
public GenerationContext getOuterContext()
-
joinVariables
public Expression joinVariables(java.util.Set variables)
Iterate the set of variables declared in an outer scope and connect the inner variable expression with the outer one.- Overrides:
joinVariablesin classGenerationContext
-
-