Class BasicStateObjectBuilder.AbstractSelectStatementBuilder<T extends AbstractSelectStatementStateObject,P extends StateObject>
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
-
- org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseChildrenVisitor
-
- org.eclipse.persistence.jpa.jpql.tools.model.BasicStateObjectBuilder.AbstractSelectStatementBuilder<T,P>
-
- All Implemented Interfaces:
ExpressionVisitor
,IBuilder<T,P>
- Direct Known Subclasses:
BasicStateObjectBuilder.SelectStatementBuilder
,BasicStateObjectBuilder.SimpleSelectStatementBuilder
- Enclosing class:
- BasicStateObjectBuilder
protected abstract class BasicStateObjectBuilder.AbstractSelectStatementBuilder<T extends AbstractSelectStatementStateObject,P extends StateObject> extends AbstractTraverseChildrenVisitor implements IBuilder<T,P>
The abstract definition of the builder that is responsible to create theStateObject
representation of theSELECT
statement.
-
-
Field Summary
Fields Modifier and Type Field Description protected P
parent
The parent of theSELECT
statement.protected T
stateObject
The concrete class ofAbstractSelectStatementStateObject
.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSelectStatementBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
buildStateObject(P parent, Expression expression)
Creates theStateObject
representation of the givenExpression
.void
visit(CollectionMemberDeclaration expression)
Visits theCollectionMemberDeclaration
expression.void
visit(GroupByClause expression)
Visits theGroupByClause
expression.void
visit(HavingClause expression)
Visits theHavingClause
expression.abstract void
visit(IdentificationVariableDeclaration expression)
Visits theIdentificationVariableDeclaration
expression.void
visit(WhereClause expression)
Visits theWhereClause
expression.-
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseChildrenVisitor
visit
-
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
-
-
-
Field Detail
-
parent
protected P extends StateObject parent
The parent of theSELECT
statement.
-
stateObject
protected T extends AbstractSelectStatementStateObject stateObject
The concrete class ofAbstractSelectStatementStateObject
.
-
-
Method Detail
-
buildStateObject
public T buildStateObject(P parent, Expression expression)
Creates theStateObject
representation of the givenExpression
.- Specified by:
buildStateObject
in interfaceIBuilder<T extends AbstractSelectStatementStateObject,P extends StateObject>
- Parameters:
parent
- The parent of the newStateObject
to createexpression
- The parsedExpression
to convert into aStateObject
- Returns:
- The
StateObject
representation of the givenExpression
-
visit
public void visit(CollectionMemberDeclaration expression)
Visits theCollectionMemberDeclaration
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(GroupByClause expression)
Visits theGroupByClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(HavingClause expression)
Visits theHavingClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public abstract void visit(IdentificationVariableDeclaration expression)
Visits theIdentificationVariableDeclaration
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(WhereClause expression)
Visits theWhereClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheWhereClause
to visit
-
-