Module org.eclipse.persistence.core
Class SelectGenerationContext
java.lang.Object
org.eclipse.persistence.internal.jpa.parsing.GenerationContext
org.eclipse.persistence.internal.jpa.parsing.SelectGenerationContext
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
ConstructorsConstructorDescriptionSelectGenerationContext(GenerationContext outer, ParseTree newParseTree) Constructor used to create the context for a subquery.SelectGenerationContext(ParseTreeContext newContext, AbstractSession newSession, ParseTree newParseTree) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckSelectNodeBeforeResolving(boolean shouldCheck) voidbooleanbooleanjoinVariables(Set<String> variables) Iterate the set of variables declared in an outer scope and connect the inner variable expression with the outer one.voidsetMemberOfNode(MemberOfNode newMemberOfNode) booleanbooleanvoidbooleanMethods inherited from class org.eclipse.persistence.internal.jpa.parsing.GenerationContext
addExpression, expressionFor, getBaseExpression, getBaseQueryClass, getParseTree, getParseTreeContext, getSession, setBaseExpression, setBaseQueryClass, setParseTree, setParseTreeContext, setSession
-
Constructor Details
-
SelectGenerationContext
public SelectGenerationContext() -
SelectGenerationContext
Constructor used to create the context for a subquery. -
SelectGenerationContext
public SelectGenerationContext(ParseTreeContext newContext, AbstractSession newSession, ParseTree newParseTree)
-
-
Method Details
-
setMemberOfNode
- Overrides:
setMemberOfNodein classGenerationContext
-
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
-
joinVariables
Iterate the set of variables declared in an outer scope and connect the inner variable expression with the outer one.- Overrides:
joinVariablesin classGenerationContext
-