Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.parsing

public Class SelectGenerationContext

extends GenerationContext
Class Inheritance
Imports
java.util.Iterator, .Set, org.eclipse.persistence.expressions.Expression, org.eclipse.persistence.internal.sessions.AbstractSession

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

Modifier and TypeField and Description
private MemberOfNode
private GenerationContext
private boolean
private boolean
private boolean
Inherited from org.eclipse.persistence.internal.jpa.parsing.GenerationContext:
baseExpressionbaseQueryClassexpressionsisNotIndicatedInMemberOfparseTreeparseTreeContextsession

Constructor Summary

AccessConstructor and Description
public
public
SelectGenerationContext(GenerationContext outer, ParseTree newParseTree)

Constructor used to create the context for a subquery.

public
SelectGenerationContext(ParseTreeContext newContext, AbstractSession newSession, ParseTree newParseTree)

Method Summary

Modifier and TypeMethod and Description
public void
checkSelectNodeBeforeResolving(boolean shouldCheck)

private boolean
public void
public MemberOfNode
public GenerationContext
public boolean
public boolean
public Expression
joinVariables(Set<String> variables)

Overrides org.eclipse.persistence.internal.jpa.parsing.GenerationContext.joinVariables.

Iterate the set of variables declared in an outer scope and connect the inner variable expression with the outer one.
public void
public boolean
public boolean
public void
public boolean
Inherited from org.eclipse.persistence.internal.jpa.parsing.GenerationContext:
addExpressionexpressionForgetBaseExpressiongetBaseQueryClassgetParseTreegetParseTreeContextgetSessionsetBaseExpressionsetBaseQueryClasssetParseTreesetParseTreeContextsetSession

Field Detail

memberOfNodeback to summary
private MemberOfNode memberOfNode

Hides org.eclipse.persistence.internal.jpa.parsing.GenerationContext.memberOfNode.

outerback to summary
private GenerationContext outer
shouldCheckSelectNodeBeforeResolvingback to summary
private boolean shouldCheckSelectNodeBeforeResolving
shouldUseOuterJoinsback to summary
private boolean shouldUseOuterJoins
useParallelExpressionsback to summary
private boolean useParallelExpressions

Constructor Detail

SelectGenerationContextback to summary
public SelectGenerationContext()
SelectGenerationContextback to summary
public SelectGenerationContext(GenerationContext outer, ParseTree newParseTree)

Constructor used to create the context for a subquery.

SelectGenerationContextback to summary
public SelectGenerationContext(ParseTreeContext newContext, AbstractSession newSession, ParseTree newParseTree)

Method Detail

checkSelectNodeBeforeResolvingback to summary
public void checkSelectNodeBeforeResolving(boolean shouldCheck)
computeUseParallelExpressionsback to summary
private boolean computeUseParallelExpressions()
dontUseOuterJoinsback to summary
public void dontUseOuterJoins()
getMemberOfNodeback to summary
public MemberOfNode getMemberOfNode()

Overrides org.eclipse.persistence.internal.jpa.parsing.GenerationContext.getMemberOfNode.

Annotations
@Override
getOuterContextback to summary
public GenerationContext getOuterContext()
hasMemberOfNodeback to summary
public boolean hasMemberOfNode()

Overrides org.eclipse.persistence.internal.jpa.parsing.GenerationContext.hasMemberOfNode.

Annotations
@Override
isSelectGenerationContextback to summary
public boolean isSelectGenerationContext()

Overrides org.eclipse.persistence.internal.jpa.parsing.GenerationContext.isSelectGenerationContext.

Annotations
@Override
joinVariablesback to summary
public Expression joinVariables(Set<String> variables)

Overrides org.eclipse.persistence.internal.jpa.parsing.GenerationContext.joinVariables.

Iterate the set of variables declared in an outer scope and connect the inner variable expression with the outer one.

Annotations
@Override
setMemberOfNodeback to summary
public void setMemberOfNode(MemberOfNode newMemberOfNode)

Overrides org.eclipse.persistence.internal.jpa.parsing.GenerationContext.setMemberOfNode.

Annotations
@Override
shouldCheckSelectNodeBeforeResolvingback to summary
public boolean shouldCheckSelectNodeBeforeResolving()

Overrides org.eclipse.persistence.internal.jpa.parsing.GenerationContext.shouldCheckSelectNodeBeforeResolving.

Annotations
@Override
shouldUseOuterJoinsback to summary
public boolean shouldUseOuterJoins()

Overrides org.eclipse.persistence.internal.jpa.parsing.GenerationContext.shouldUseOuterJoins.

Annotations
@Override
useOuterJoinsback to summary
public void useOuterJoins()
useParallelExpressionsback to summary
public boolean useParallelExpressions()

Overrides org.eclipse.persistence.internal.jpa.parsing.GenerationContext.useParallelExpressions.

Annotations
@Override