Class EclipseLinkStateObjectBuilder
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.parser.AbstractExpressionVisitor
-
- org.eclipse.persistence.jpa.jpql.tools.model.BasicStateObjectBuilder
-
- org.eclipse.persistence.jpa.jpql.tools.model.EclipseLinkStateObjectBuilder
-
- All Implemented Interfaces:
EclipseLinkExpressionVisitor
,ExpressionVisitor
public class EclipseLinkStateObjectBuilder extends BasicStateObjectBuilder implements EclipseLinkExpressionVisitor
The default implementation ofBasicStateObjectBuilder
, which provides support based on the JPQL grammar defined in the Java Persistence functional specification and for the additional support provided by EclipseLink.Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
- Version:
- 2.5
- Author:
- Pascal Filion
- Since:
- 2.4
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.persistence.jpa.jpql.tools.model.BasicStateObjectBuilder
BasicStateObjectBuilder.AbstractRangeDeclarationBuilder<S extends AbstractFromClauseStateObject>, BasicStateObjectBuilder.AbstractSelectStatementBuilder<T extends AbstractSelectStatementStateObject,P extends StateObject>, BasicStateObjectBuilder.CollectionExpressionVisitor, BasicStateObjectBuilder.CollectionMemberDeclarationBuilder, BasicStateObjectBuilder.DeleteStatementBuilder, BasicStateObjectBuilder.JoinBuilder, BasicStateObjectBuilder.RangeDeclarationBuilder, BasicStateObjectBuilder.SelectItemBuilder, BasicStateObjectBuilder.SelectStatementBuilder, BasicStateObjectBuilder.SimpleRangeDeclarationBuilder, BasicStateObjectBuilder.SimpleSelectStatementBuilder, BasicStateObjectBuilder.UpdateStatementBuilder, BasicStateObjectBuilder.WhenClauseBuilder
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.jpa.jpql.tools.model.BasicStateObjectBuilder
managedTypeProvider, parent, stateObject
-
-
Constructor Summary
Constructors Constructor Description EclipseLinkStateObjectBuilder()
Creates a newEclipseLinkStateObjectBuilder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LiteralVisitor
buildLiteralVisitor()
Creates the visitor that can retrieve the "literal" value from a givenExpression
based on the desiredLiteralType
.void
visit(AsOfClause expression)
Visits theAsOfClause
expression.void
visit(CastExpression expression)
Visits theCastExpression
expression.void
visit(ConnectByClause expression)
Visits theConnectByClause
expression.void
visit(DatabaseType expression)
Visits theDatabaseType
expression.void
visit(ExtractExpression expression)
Visits theExtractExpression
expression.void
visit(HierarchicalQueryClause expression)
Visits theHierarchicalQueryClause
expression.void
visit(OrderSiblingsByClause expression)
Visits theOrderSiblingsByClause
expression.void
visit(RegexpExpression expression)
Visits theRegexpExpression
expression.void
visit(StartWithClause expression)
Visits theStartWithClause
expression.void
visit(TableExpression expression)
Visits theTableExpression
expression.void
visit(TableVariableDeclaration expression)
Visits theTableVariableDeclaration
expression.void
visit(UnionClause expression)
Visits theUnionClause
expression.-
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.model.BasicStateObjectBuilder
buildChildren, buildCollectionDeclarationBuilder, buildDeleteStatementBuilder, buildJoinBuilder, buildRangeDeclarationBuilder, buildSelectItemBuilder, buildSelectStatementBuilder, buildSimpleRangeDeclarationBuilder, buildSimpleSelectStatementBuilder, buildStateObjectImp, buildUpdateStatementBuilder, buildWhenClauseBuilder, children, getCollectionDeclarationBuilder, getCollectionExpressionVisitor, getDeleteStatementBuilder, getJoinBuilder, getLiteralVisitor, getRangeDeclarationBuilder, getSelectItemBuilder, getSelectStatementBuilder, getSimpleRangeDeclarationBuilder, getSimpleSelectStatementBuilder, getStateObject, getUpdateStatementBuilder, literal, 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, visit, visit, visit, visit, visit, whenClauseBuilder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.persistence.jpa.jpql.parser.ExpressionVisitor
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, visit, visit, visit, visit, visit
-
-
-
-
Method Detail
-
buildLiteralVisitor
protected LiteralVisitor buildLiteralVisitor()
Creates the visitor that can retrieve the "literal" value from a givenExpression
based on the desiredLiteralType
.- Specified by:
buildLiteralVisitor
in classBasicStateObjectBuilder
- Returns:
- A new concrete instance of
LiteralVisitor
-
visit
public void visit(AsOfClause expression)
Visits theAsOfClause
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(CastExpression expression)
Visits theCastExpression
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(ConnectByClause expression)
Visits theConnectByClause
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheConnectByClause
to visit
-
visit
public void visit(DatabaseType expression)
Visits theDatabaseType
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheDatabaseType
to visit
-
visit
public void visit(ExtractExpression expression)
Visits theExtractExpression
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(HierarchicalQueryClause expression)
Visits theHierarchicalQueryClause
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheHierarchicalQueryClause
to visit
-
visit
public void visit(OrderSiblingsByClause expression)
Visits theOrderSiblingsByClause
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(RegexpExpression expression)
Visits theRegexpExpression
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(StartWithClause expression)
Visits theStartWithClause
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheStartWithClause
to visit
-
visit
public void visit(TableExpression expression)
Visits theTableExpression
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(TableVariableDeclaration expression)
Visits theTableVariableDeclaration
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(UnionClause expression)
Visits theUnionClause
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
-