|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor org.eclipse.persistence.jpa.jpql.AbstractValidator org.eclipse.persistence.jpa.jpql.AbstractSemanticValidator
public abstract class AbstractSemanticValidator
The base validator responsible to gather the problems found in a JPQL query by validating the content to make sure it is semantically valid, i.e. based on the information contained in the JPA application. The grammar is not validated by this visitor.
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.
AbstractGrammarValidator
Nested Class Summary | |
---|---|
protected class |
AbstractSemanticValidator.ComparingEntityTypeLiteralVisitor
|
protected class |
AbstractSemanticValidator.ComparisonExpressionVisitor
This visitor compares the left and right expressions of a comparison expression and gathers information about those expressions if they are an identification variable or a path expression. |
protected class |
AbstractSemanticValidator.FirstDeclarationVisitor
|
protected static class |
AbstractSemanticValidator.PathType
This enumeration allows validateStateFieldPathExpression(
StateFieldPathExpression, PathType) to validate the type of the mapping and to make sure it
is allowed based on its location. |
protected class |
AbstractSemanticValidator.SubqueryFirstDeclarationVisitor
|
protected class |
AbstractSemanticValidator.TopLevelFirstDeclarationVisitor
|
Nested classes/interfaces inherited from class org.eclipse.persistence.jpa.jpql.AbstractValidator |
---|
AbstractValidator.BypassChildCollectionExpressionVisitor, AbstractValidator.BypassParentSubExpressionVisitor, AbstractValidator.ChildrenCollectorVisitor, AbstractValidator.JPQLQueryBNFValidator, AbstractValidator.OwningClauseVisitor, AbstractValidator.OwningStatementVisitor, AbstractValidator.SubqueryVisitor |
Field Summary | |
---|---|
protected DefaultSemanticValidator.CollectionValuedPathExpressionVisitor |
collectionValuedPathExpressionVisitor
This visitor is responsible to retrieve the visited Expression if it is a
CollectionValuedPathExpression . |
protected SemanticValidatorHelper |
helper
The given helper allows this validator to access the JPA artifacts without using Hermes SPI. |
protected boolean |
registerIdentificationVariable
This flag is used to register the IdentificationVariables that
are used throughout the query (top-level query and subqueries), except the identification
variables defining an abstract schema name or a collection-valued path expression. |
protected DefaultSemanticValidator.StateFieldPathExpressionVisitor |
stateFieldPathExpressionVisitor
This visitor is responsible to retrieve the visited Expression if it is a
StateFieldPathExpression . |
protected java.util.List<IdentificationVariable> |
usedIdentificationVariables
The IdentificationVariables that are used throughout the query
(top-level query and subqueries), except the identification variables defining an abstract
schema name or a collection-valued path expression. |
protected DefaultSemanticValidator.VirtualIdentificationVariableFinder |
virtualIdentificationVariableFinder
This finder is responsible to retrieve the virtual identification variable from the UPDATE range declaration since it is optional. |
Constructor Summary | |
---|---|
protected |
AbstractSemanticValidator(SemanticValidatorHelper helper)
Creates a new AbstractSemanticValidator . |
Method Summary | |
---|---|
protected AbstractSemanticValidator.ComparingEntityTypeLiteralVisitor |
buildComparingEntityTypeLiteralVisitor()
|
protected AbstractSemanticValidator.SubqueryFirstDeclarationVisitor |
buildSubqueryFirstDeclarationVisitor()
|
protected AbstractSemanticValidator.TopLevelFirstDeclarationVisitor |
buildTopLevelFirstDeclarationVisitor()
|
void |
dispose()
Disposes this visitor. |
protected IdentificationVariable |
findVirtualIdentificationVariable(AbstractSchemaName expression)
Returns the IdentificationVariable that defines the identification variable for either
a DELETE or an UPDATE query. |
protected CollectionValuedPathExpression |
getCollectionValuedPathExpression(Expression expression)
|
protected DefaultSemanticValidator.CollectionValuedPathExpressionVisitor |
getCollectionValuedPathExpressionVisitor()
|
protected AbstractSemanticValidator.ComparingEntityTypeLiteralVisitor |
getComparingEntityTypeLiteralVisitor()
|
protected AbstractSemanticValidator.ComparisonExpressionVisitor |
getComparisonExpressionVisitor()
|
protected JPQLGrammar |
getGrammar()
Returns the JPQLGrammar that defines how the JPQL query was parsed. |
protected StateFieldPathExpression |
getStateFieldPathExpression(Expression expression)
|
protected DefaultSemanticValidator.StateFieldPathExpressionVisitor |
getStateFieldPathExpressionVisitor()
|
protected DefaultSemanticValidator.VirtualIdentificationVariableFinder |
getVirtualIdentificationVariableFinder()
Returns the visitor that can find the IdentificationVariable of the RangeVariableDeclaration . |
protected void |
initialize()
Initializes this validator. |
protected boolean |
isComparingEntityTypeLiteral(IdentificationVariable expression)
Determines whether the given identification variable is used in a comparison expression: "expression = LargeProject". |
protected boolean |
isIdentificationVariableDeclaredAfter(java.lang.String variableName,
int variableNameIndex,
int joinIndex,
java.util.List<JPQLQueryDeclaration> declarations)
|
protected boolean |
isIdentificationVariableValidInComparison(IdentificationVariable expression)
Determines whether an identification variable can be used in a comparison expression when the operator is either '<', '<=', '>', '>='. |
protected boolean |
isOrderComparison(ComparisonExpression expression)
Determines whether the given ComparisonExpression compares two expression using one of
the following operators: '<', '<=', '>', '>='. |
protected boolean |
isValid(int result,
int index)
Determines whether the expression at the given index is valid or not. |
protected abstract AbstractSemanticValidator.PathType |
selectClausePathExpressionPathType()
Returns the type of path expression that is allowed in the SELECT clause. |
protected AbstractSemanticValidator.FirstDeclarationVisitor |
subqueryFirstDeclarationVisitor()
|
protected AbstractSemanticValidator.FirstDeclarationVisitor |
topLevelFirstDeclarationVisitor()
|
protected int |
updateStatus(int result,
int index,
boolean valid)
Updates the validation status of an expression at a specified position. |
protected boolean |
validateAbsExpression(AbsExpression expression)
Validates the encapsulated expression of the given ABS expression. |
protected void |
validateAbstractFromClause(AbstractFromClause expression,
AbstractSemanticValidator.FirstDeclarationVisitor visitor)
Validates the given FROM clause. |
protected boolean |
validateAbstractSchemaName(AbstractSchemaName expression)
Validates the given AbstractSchemaName . |
protected int |
validateAdditionExpression(AdditionExpression expression)
Validates the encapsulated expression of the given addition expression. |
protected void |
validateAllOrAnyExpression(AllOrAnyExpression expression)
Validates the given AllOrAnyExpression . |
protected void |
validateAndExpression(AndExpression expression)
Validates the given AndExpression . |
protected int |
validateArithmeticExpression(ArithmeticExpression expression,
java.lang.String leftExpressionWrongTypeMessageKey,
java.lang.String rightExpressionWrongTypeMessageKey)
Validates the type of the left and right expressions defined by the given ArithmeticExpression . |
protected boolean |
validateArithmeticExpression(ArithmeticFactor expression)
Validates the arithmetic factor expression. |
protected boolean |
validateAvgFunction(AvgFunction expression)
Validates the encapsulated expression of the given AVG expression. |
protected int |
validateBetweenExpression(BetweenExpression expression)
Validates the given BetweenExpression . |
protected void |
validateCaseExpression(CaseExpression expression)
Validates the given CaseExpression . |
protected void |
validateCoalesceExpression(CoalesceExpression expression)
Validates the given CoalesceExpression . |
protected void |
validateCollectionMemberDeclaration(CollectionMemberDeclaration expression)
Validates the given CollectionMemberDeclaration . |
protected int |
validateCollectionMemberExpression(CollectionMemberExpression expression)
Validates the given CollectionMemberExpression . |
protected boolean |
validateCollectionValuedPathExpression(Expression expression,
boolean collectionTypeOnly)
Validates the given Expression and makes sure it's a valid collection value path expression. |
protected boolean |
validateComparisonExpression(ComparisonExpression expression)
Validates the left and right expressions of the given ComparisonExpression . |
protected boolean |
validateConcatExpression(ConcatExpression expression)
Validates the encapsulated expression of the given CONCAT expression. |
protected void |
validateConstructorExpression(ConstructorExpression expression)
Validates the given ConstructorExpression . |
protected void |
validateCountFunction(CountFunction expression)
Validates the given CountFunction . |
protected void |
validateDateTime(DateTime expression)
Validates the given DateTime . |
protected void |
validateDeleteClause(DeleteClause expression)
Validates the given DeleteClause . |
protected void |
validateDeleteStatement(DeleteStatement expression)
Validates the given DeleteStatement . |
protected int |
validateDivisionExpression(DivisionExpression expression)
Validates the encapsulated expression of the given division expression. |
protected boolean |
validateEntityTypeLiteral(EntityTypeLiteral expression)
|
protected void |
validateEntryExpression(EntryExpression expression)
Validates the given EntryExpression . |
protected void |
validateExistsExpression(ExistsExpression expression)
Validates the given ExistsExpression . |
protected void |
validateFirstDeclaration(AbstractFromClause expression,
JPQLQueryDeclaration declaration,
AbstractSemanticValidator.FirstDeclarationVisitor visitor)
|
protected void |
validateFromClause(FromClause expression)
Validates the given FromClause . |
protected boolean |
validateFunctionPathExpression(AbstractSingleEncapsulatedExpression expression)
Validates the given AbstractSingleEncapsulatedExpression 's encapsulated expression if
it is a state field path expression and makes sure it is mapping to a basic mapping. |
protected int |
validateFunctionPathExpression(CompoundExpression expression,
AbstractSemanticValidator.PathType pathType)
Validates the left and right expressions of the given compound expression. |
protected void |
validateGroupByClause(GroupByClause expression)
Validates the given GroupByClause . |
protected void |
validateHavingClause(HavingClause expression)
Validates the given HavingClause . |
protected boolean |
validateIdentificationVariable(IdentificationVariable expression)
Validates the given IdentificationVariable . |
protected boolean |
validateIdentificationVariable(IdentificationVariable expression,
java.lang.String variable)
Validates the given identification variable. |
protected void |
validateIdentificationVariableDeclaration(IdentificationVariableDeclaration expression)
Validates the given InExpression . |
protected void |
validateIdentificationVariables()
Validates the identification variables: Assures those used throughout the query have been defined in the FROM
clause in the current subquery or in a superquery. |
protected boolean |
validateIndexExpression(IndexExpression expression)
Validates the given IndexExpression . |
protected void |
validateInExpression(InExpression expression)
Validates the given InExpression . |
protected void |
validateJoin(Join expression)
Validates the given Join . |
protected void |
validateJoinsIdentificationVariable(AbstractFromClause expression,
java.util.List<JPQLQueryDeclaration> declarations,
JPQLQueryDeclaration declaration,
int index)
|
protected void |
validateKeyExpression(KeyExpression expression)
Validates the given KeyExpression . |
protected boolean |
validateLengthExpression(LengthExpression expression)
Validates the encapsulated expression of the given LENGTH expression. |
protected int |
validateLikeExpression(LikeExpression expression)
Validates the string expression of the given LIKE expression. |
protected int |
validateLocateExpression(LocateExpression expression)
Validates the encapsulated expression of the given LOCATE expression. |
protected boolean |
validateLowerExpression(LowerExpression expression)
Validates the encapsulated expression of the given LOWER expression. |
protected boolean |
validateMaxFunction(MaxFunction expression)
Validates the encapsulated expression of the given MAX expression. |
protected boolean |
validateMinFunction(MinFunction expression)
Validates the encapsulated expression of the given MIN expression. |
protected int |
validateModExpression(ModExpression expression)
Validates the encapsulated expression of the given MOD expression. |
protected int |
validateMultiplicationExpression(MultiplicationExpression expression)
Validates the encapsulated expression of the given multiplication expression. |
protected void |
validateNotExpression(NotExpression expression)
Validates the given NotExpression . |
protected void |
validateNullComparisonExpression(NullComparisonExpression expression)
Validates the given NullComparisonExpression . |
protected void |
validateNullIfExpression(NullIfExpression expression)
Validates the given NullIfExpression . |
protected void |
validateObjectExpression(ObjectExpression expression)
Validates the given ObjectExpression . |
protected void |
validateOnClause(OnClause expression)
Validates the given OnClause . |
protected void |
validateOrderByClause(OrderByClause expression)
Validates the given OrderByItem . |
protected void |
validateOrderByItem(OrderByItem expression)
Validates the given OrderByItem . |
protected void |
validateOrExpression(OrExpression expression)
Validates the given OrExpression . |
protected void |
validateRangeVariableDeclaration(RangeVariableDeclaration expression)
Validates the given RangeVariableDeclaration . |
protected void |
validateRangeVariableDeclarationRootObject(RangeVariableDeclaration expression)
Validates the "root" object of the given RangeVariableDeclaration . |
protected void |
validateResultVariable(ResultVariable expression)
Validates the given ResultVariable . |
protected void |
validateSelectClause(SelectClause expression)
Validates the given validateSelectClause . |
protected void |
validateSelectStatement(SelectStatement expression)
Validates the given SelectStatement . |
protected void |
validateSimpleFromClause(SimpleFromClause expression)
Validates the given SimpleFromClause . |
protected void |
validateSimpleSelectClause(SimpleSelectClause expression)
Validates the given SimpleSelectClause . |
protected void |
validateSimpleSelectStatement(SimpleSelectStatement expression)
|
protected boolean |
validateSizeExpression(SizeExpression expression)
Validates the given SizeExpression . |
protected boolean |
validateSqrtExpression(SqrtExpression expression)
Validates the encapsulated expression of the given SQRT expression. |
protected boolean |
validateStateFieldPathExpression(StateFieldPathExpression expression,
AbstractSemanticValidator.PathType pathType)
Validates the given StateFieldPathExpression . |
protected int |
validateSubstringExpression(SubstringExpression expression)
Validates the encapsulated expression of the given SUBSTRING expression. |
protected int |
validateSubtractionExpression(SubtractionExpression expression)
Validates the encapsulated expression of the given subtraction expression. |
protected boolean |
validateSumFunction(SumFunction expression)
Validates the encapsulated expression of the given MOD expression. |
protected void |
validateTreatExpression(TreatExpression expression)
Validates the given TreatExpression . |
protected boolean |
validateTrimExpression(TrimExpression expression)
Validates the encapsulated expression of the given TRIM expression. |
protected boolean |
validateTypeExpression(TypeExpression expression)
Validates the given TypeExpression . |
protected void |
validateUpdateClause(UpdateClause expression)
Validates the given UpdateClause . |
protected boolean |
validateUpdateItem(UpdateItem expression)
Validates the given UpdateItem by validating the traversability of the path
expression. |
protected void |
validateUpdateStatement(UpdateStatement expression)
Validates the given UpdateStatement . |
protected boolean |
validateUpperExpression(UpperExpression expression)
Validates the encapsulated expression of the given UPPER expression. |
protected void |
validateValueExpression(ValueExpression expression)
Validates the given ValueExpression . |
protected void |
validateWhenClause(WhenClause expression)
Validates the given WhenClause . |
protected void |
validateWhereClause(WhereClause expression)
Validates the given WhereClause . |
protected AbstractSemanticValidator.PathType |
validPathExpressionTypeForInExpression()
Returns the type of path expression that is valid for the expression being tested by an IN expression; which is the left expression. |
protected AbstractSemanticValidator.PathType |
validPathExpressionTypeForStringExpression()
Returns the type of path expression that is valid for a string expression; which is the left expression in a LIKE expression. |
void |
visit(AbsExpression expression)
Visits the AbsExpression expression. |
void |
visit(AbstractSchemaName expression)
Visits the AbstractSchemaName expression. |
void |
visit(AdditionExpression expression)
Visits the AdditionExpression expression. |
void |
visit(AllOrAnyExpression expression)
Visits the AllOrAnyExpression expression. |
void |
visit(AndExpression expression)
Visits the AndExpression expression. |
void |
visit(ArithmeticFactor expression)
Visits the ArithmeticFactor expression. |
void |
visit(AvgFunction expression)
Visits the AvgFunction expression. |
void |
visit(BadExpression expression)
Visits the BadExpression expression. |
void |
visit(BetweenExpression expression)
Visits the BetweenExpression expression. |
void |
visit(CaseExpression expression)
Visits the CaseExpression expression. |
void |
visit(CoalesceExpression expression)
Visits the CoalesceExpression expression. |
void |
visit(CollectionExpression expression)
Visits the CollectionExpression expression. |
void |
visit(CollectionMemberDeclaration expression)
Visits the CollectionMemberDeclaration expression. |
void |
visit(CollectionMemberExpression expression)
Visits the CollectionMemberExpression expression. |
void |
visit(CollectionValuedPathExpression expression)
Visits the CollectionValuedPathExpression expression. |
void |
visit(ComparisonExpression expression)
Visits the ComparisonExpression expression. |
void |
visit(ConcatExpression expression)
Visits the ConcatExpression expression. |
void |
visit(ConstructorExpression expression)
Visits the ConstructorExpression expression. |
void |
visit(CountFunction expression)
Visits the CountFunction expression. |
void |
visit(DateTime expression)
Visits the DateTime expression. |
void |
visit(DeleteClause expression)
Visits the DeleteClause expression. |
void |
visit(DeleteStatement expression)
Visits the DeleteStatement expression. |
void |
visit(DivisionExpression expression)
Visits the DivisionExpression expression. |
void |
visit(EmptyCollectionComparisonExpression expression)
Visits the EmptyCollectionComparisonExpression expression. |
void |
visit(EntityTypeLiteral expression)
Visits the EntityTypeLiteral expression. |
void |
visit(EntryExpression expression)
Visits the EntryExpression expression. |
void |
visit(ExistsExpression expression)
Visits the ExistsExpression expression. |
void |
visit(FromClause expression)
Visits the FromClause expression. |
void |
visit(GroupByClause expression)
Visits the GroupByClause expression. |
void |
visit(HavingClause expression)
Visits the HavingClause expression. |
void |
visit(IdentificationVariable expression)
Visits the IdentificationVariable expression. |
void |
visit(IdentificationVariableDeclaration expression)
Visits the IdentificationVariableDeclaration expression. |
void |
visit(IndexExpression expression)
Visits the IndexExpression expression. |
void |
visit(InExpression expression)
Visits the InExpression expression. |
void |
visit(InputParameter expression)
Visits the InputParameter expression. |
void |
visit(Join expression)
Visits the Join expression. |
void |
visit(JPQLExpression expression)
Visits the JPQLExpression expression. |
void |
visit(KeyExpression expression)
Visits the KeyExpression expression. |
void |
visit(KeywordExpression expression)
Visits the KeywordExpression expression. |
void |
visit(LengthExpression expression)
Visits the LengthExpression expression. |
void |
visit(LikeExpression expression)
Visits the LikeExpression expression. |
void |
visit(LocateExpression expression)
Visits the LocateExpression expression. |
void |
visit(LowerExpression expression)
Visits the LowerExpression expression. |
void |
visit(MaxFunction expression)
Visits the MaxFunction expression. |
void |
visit(MinFunction expression)
Visits the MinFunction expression. |
void |
visit(ModExpression expression)
Visits the ModExpression expression. |
void |
visit(MultiplicationExpression expression)
Visits the MultiplicationExpression expression. |
void |
visit(NotExpression expression)
Visits the NotExpression expression. |
void |
visit(NullComparisonExpression expression)
Visits the NullComparisonExpression expression. |
void |
visit(NullExpression expression)
Visits the NullExpression expression. |
void |
visit(NullIfExpression expression)
Visits the NullIfExpression expression. |
void |
visit(NumericLiteral expression)
Visits the NumericLiteral expression. |
void |
visit(ObjectExpression expression)
Visits the ObjectExpression expression. |
void |
visit(OnClause expression)
Visits the OnClause expression. |
void |
visit(OrderByClause expression)
Visits the OrderByClause expression. |
void |
visit(OrderByItem expression)
Visits the OrderByItem expression. |
void |
visit(OrExpression expression)
Visits the OrExpression expression. |
void |
visit(RangeVariableDeclaration expression)
Visits the RangeVariableDeclaration expression. |
void |
visit(ResultVariable expression)
Visits the ResultVariable expression. |
void |
visit(SelectClause expression)
Visits the SelectClause expression. |
void |
visit(SelectStatement expression)
Visits the SelectStatement expression. |
void |
visit(SimpleFromClause expression)
Visits the SimpleFromClause expression. |
void |
visit(SimpleSelectClause expression)
Visits the SimpleSelectClause expression. |
void |
visit(SimpleSelectStatement expression)
Visits the SimpleSelectStatement expression. |
void |
visit(SizeExpression expression)
Visits the SizeExpression expression. |
void |
visit(SqrtExpression expression)
Visits the SqrtExpression expression. |
void |
visit(StateFieldPathExpression expression)
Visits the StateFieldPathExpression expression. |
void |
visit(StringLiteral expression)
Visits the StringLiteral expression. |
void |
visit(SubExpression expression)
Visits the SubExpression expression. |
void |
visit(SubstringExpression expression)
Visits the SubstringExpression expression. |
void |
visit(SubtractionExpression expression)
Visits the SubtractionExpression expression. |
void |
visit(SumFunction expression)
Visits the SumFunction expression. |
void |
visit(TreatExpression expression)
Visits the TreatExpression expression. |
void |
visit(TrimExpression expression)
Visits the TrimExpression expression. |
void |
visit(TypeExpression expression)
Visits the TypeExpression expression. |
void |
visit(UnknownExpression expression)
Visits the UnknownExpression expression. |
void |
visit(UpdateClause expression)
Visits the UpdateClause expression. |
void |
visit(UpdateItem expression)
Visits the UpdateItem expression. |
void |
visit(UpdateStatement expression)
Visits the UpdateStatement expression. |
void |
visit(UpperExpression expression)
Visits the UpperExpression expression. |
void |
visit(ValueExpression expression)
Visits the ValueExpression expression. |
void |
visit(WhenClause expression)
Visits the WhenClause expression. |
void |
visit(WhereClause expression)
Visits the WhereClause expression. |
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor |
---|
visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DefaultSemanticValidator.CollectionValuedPathExpressionVisitor collectionValuedPathExpressionVisitor
Expression
if it is a
CollectionValuedPathExpression
.
protected final SemanticValidatorHelper helper
protected boolean registerIdentificationVariable
IdentificationVariables
that
are used throughout the query (top-level query and subqueries), except the identification
variables defining an abstract schema name or a collection-valued path expression.
protected DefaultSemanticValidator.StateFieldPathExpressionVisitor stateFieldPathExpressionVisitor
Expression
if it is a
StateFieldPathExpression
.
protected java.util.List<IdentificationVariable> usedIdentificationVariables
IdentificationVariables
that are used throughout the query
(top-level query and subqueries), except the identification variables defining an abstract
schema name or a collection-valued path expression.
protected DefaultSemanticValidator.VirtualIdentificationVariableFinder virtualIdentificationVariableFinder
Constructor Detail |
---|
protected AbstractSemanticValidator(SemanticValidatorHelper helper)
AbstractSemanticValidator
.
helper
- The given helper allows this validator to access the JPA artifacts without using
Hermes SPI
java.lang.NullPointerException
- The given SemanticValidatorHelper
cannot be null
Method Detail |
---|
protected AbstractSemanticValidator.ComparingEntityTypeLiteralVisitor buildComparingEntityTypeLiteralVisitor()
protected AbstractSemanticValidator.SubqueryFirstDeclarationVisitor buildSubqueryFirstDeclarationVisitor()
protected AbstractSemanticValidator.TopLevelFirstDeclarationVisitor buildTopLevelFirstDeclarationVisitor()
public void dispose()
dispose
in class AbstractValidator
protected IdentificationVariable findVirtualIdentificationVariable(AbstractSchemaName expression)
IdentificationVariable
that defines the identification variable for either
a DELETE
or an UPDATE
query.
expression
- The AbstractSchemaName
that is being validated and that most likely
representing an associated path expression and not an entity name
IdentificationVariable
defining either the identification variable or the
virtual identification variable for the DELETE
or for the
UPDATE
queryprotected CollectionValuedPathExpression getCollectionValuedPathExpression(Expression expression)
protected DefaultSemanticValidator.CollectionValuedPathExpressionVisitor getCollectionValuedPathExpressionVisitor()
protected AbstractSemanticValidator.ComparingEntityTypeLiteralVisitor getComparingEntityTypeLiteralVisitor()
protected AbstractSemanticValidator.ComparisonExpressionVisitor getComparisonExpressionVisitor()
protected JPQLGrammar getGrammar()
JPQLGrammar
that defines how the JPQL query was parsed.
getGrammar
in class AbstractValidator
JPQLGrammar
that was used to parse the JPQL queryprotected StateFieldPathExpression getStateFieldPathExpression(Expression expression)
protected DefaultSemanticValidator.StateFieldPathExpressionVisitor getStateFieldPathExpressionVisitor()
protected DefaultSemanticValidator.VirtualIdentificationVariableFinder getVirtualIdentificationVariableFinder()
IdentificationVariable
of the RangeVariableDeclaration
. This should be used when the query is either a DELETE
or UPDATE
query.
IdentificationVariable
protected void initialize()
initialize
in class AbstractValidator
protected boolean isComparingEntityTypeLiteral(IdentificationVariable expression)
expression
- The IdentificationVariable
used to determine its purpose
true
if the identification variable is used in a comparison expression;
false
otherwiseprotected boolean isIdentificationVariableDeclaredAfter(java.lang.String variableName, int variableNameIndex, int joinIndex, java.util.List<JPQLQueryDeclaration> declarations)
protected boolean isIdentificationVariableValidInComparison(IdentificationVariable expression)
expression
- The IdentificationVariable
that is mapped to either an entity, a
singled-object value field, a collection-valued object field
true
if it can be used in a ordering comparison expression; false
if it can'tprotected boolean isOrderComparison(ComparisonExpression expression)
ComparisonExpression
compares two expression using one of
the following operators: '<', '<=', '>', '>='.
expression
- The ComparisonExpression
to check what type of operator that is used
true
if the operator is used to check for order; false
if it
is notprotected final boolean isValid(int result, int index)
result
- The integer value containing the bit used to determine the state of an expression
at a given positionindex
- The index that is used to determine the state of the expression
true
if the expression is valid at the given indexprotected abstract AbstractSemanticValidator.PathType selectClausePathExpressionPathType()
SELECT
clause.
protected AbstractSemanticValidator.FirstDeclarationVisitor subqueryFirstDeclarationVisitor()
protected AbstractSemanticValidator.FirstDeclarationVisitor topLevelFirstDeclarationVisitor()
protected final int updateStatus(int result, int index, boolean valid)
result
- The integer value that is used to store the validation status of an expression
at the given positionindex
- The position to store the validation statusvalid
- The new validation status to store
protected boolean validateAbsExpression(AbsExpression expression)
ABS
expression. The
test to perform is:
expression
- The AbsExpression
to validate by validating its encapsulated
expression
false
if the encapsulated expression was validated and is invalid;
true
otherwiseprotected void validateAbstractFromClause(AbstractFromClause expression, AbstractSemanticValidator.FirstDeclarationVisitor visitor)
FROM
clause. This will validate the order of
identification variable declarations.
expression
- The AbstractFromClause
to validatevisitor
- protected boolean validateAbstractSchemaName(AbstractSchemaName expression)
AbstractSchemaName
. The tests to perform are:
expression
- The AbstractSchemaName
to validate
true
if the entity name was resolved; false
otherwiseprotected int validateAdditionExpression(AdditionExpression expression)
expression
- The AdditionExpression
to validate by validating its encapsulated
expression
isValid(int, int)
can be used to
determine the validation status of an expression based on its positionprotected void validateAllOrAnyExpression(AllOrAnyExpression expression)
AllOrAnyExpression
. The default behavior does not require to
semantically validate it.
expression
- The AllOrAnyExpression
to validateprotected void validateAndExpression(AndExpression expression)
AndExpression
. The default behavior does not require to
semantically validate it.
expression
- The AndExpression
to validateprotected int validateArithmeticExpression(ArithmeticExpression expression, java.lang.String leftExpressionWrongTypeMessageKey, java.lang.String rightExpressionWrongTypeMessageKey)
ArithmeticExpression
.
The test to perform is:
expression
- The ArithmeticExpression
to validateleftExpressionWrongTypeMessageKey
- The key used to describe the left expression does not
have a valid typerightExpressionWrongTypeMessageKey
- The key used to describe the right expression does
not have a valid type
isValid(int, int)
can be used to
determine the validation status of an expression based on its positionprotected boolean validateArithmeticExpression(ArithmeticFactor expression)
expression
- The ArithmeticFactor
to validate
false
if the arithmetic factor expression was validated and is invalid;
true
otherwiseprotected boolean validateAvgFunction(AvgFunction expression)
AVG
expression. The
test to perform is:
expression
- The AvgFunction
to validate by validating its encapsulated expression
false
if the encapsulated expression was validated and is invalid;
true
otherwiseprotected int validateBetweenExpression(BetweenExpression expression)
BetweenExpression
. The test to perform is:
expression
- The BetweenExpression
to validateprotected void validateCaseExpression(CaseExpression expression)
CaseExpression
. The default behavior does not require to
semantically validate it.
expression
- The CaseExpression
to validateprotected void validateCoalesceExpression(CoalesceExpression expression)
CoalesceExpression
. The default behavior does not require to
semantically validate it.
expression
- The CoalesceExpression
to validateprotected void validateCollectionMemberDeclaration(CollectionMemberDeclaration expression)
CollectionMemberDeclaration
.
expression
- The CollectionMemberDeclaration
to validateprotected int validateCollectionMemberExpression(CollectionMemberExpression expression)
CollectionMemberExpression
. Only the collection-valued path
expression is validated.
expression
- The CollectionMemberExpression
to validate
isValid(int, int)
can be used to
determine the validation status of an expression based on its positionprotected boolean validateCollectionValuedPathExpression(Expression expression, boolean collectionTypeOnly)
Expression
and makes sure it's a valid collection value path expression.
expression
- The Expression
to validatecollectionTypeOnly
- true
to make sure the path expression resolves to a
collection mapping only; false
if it can simply resolves to a relationship mappingprotected boolean validateComparisonExpression(ComparisonExpression expression)
ComparisonExpression
. The tests
to perform are:
expression
- The ConcatExpression
to validate by validating its
left and right expressions
true
if the two expressions pass the rules defined by this method; false
otherwiseprotected boolean validateConcatExpression(ConcatExpression expression)
CONCAT
expression.
The tests to perform are:
expression
- The ConcatExpression
to validate by validating its encapsulated expression
false
if the first encapsulated expression was validated and is invalid;
true
otherwiseprotected void validateConstructorExpression(ConstructorExpression expression)
ConstructorExpression
. The default behavior does not require to
semantically validate it.
expression
- The ConstructorExpression
to validateprotected void validateCountFunction(CountFunction expression)
CountFunction
. The default behavior does not require to
semantically validate it.
expression
- The CountFunction
to validateprotected void validateDateTime(DateTime expression)
DateTime
. The default behavior does not require to
semantically validate it.
expression
- The DateTime
to validateprotected void validateDeleteClause(DeleteClause expression)
DeleteClause
. The default behavior does not require to
semantically validate it.
expression
- The DeleteClause
to validateprotected void validateDeleteStatement(DeleteStatement expression)
DeleteStatement
. The default behavior does not require to
semantically validate it.
expression
- The DeleteStatement
to validateprotected int validateDivisionExpression(DivisionExpression expression)
expression
- The DivisionExpression
to validate by validating its encapsulated
expression
isValid(int, int)
can be used to
determine the validation status of an expression based on its positionprotected boolean validateEntityTypeLiteral(EntityTypeLiteral expression)
protected void validateEntryExpression(EntryExpression expression)
EntryExpression
. The default behavior does not require to
semantically validate it.
expression
- The EntryExpression
to validateprotected void validateExistsExpression(ExistsExpression expression)
ExistsExpression
. The default behavior does not require to
semantically validate it.
expression
- The ExistsExpression
to validateprotected void validateFirstDeclaration(AbstractFromClause expression, JPQLQueryDeclaration declaration, AbstractSemanticValidator.FirstDeclarationVisitor visitor)
protected void validateFromClause(FromClause expression)
FromClause
.
expression
- The FromClause
to validateprotected boolean validateFunctionPathExpression(AbstractSingleEncapsulatedExpression expression)
AbstractSingleEncapsulatedExpression
's encapsulated expression if
it is a state field path expression and makes sure it is mapping to a basic mapping. That
means relationship field mapping is not allowed.
expression
- The AbstractSingleEncapsulatedExpression
to validate its encapsulated
expression if it's a state field path expression, otherwise does nothing
false
if the encapsulated expression was validated and is invalid;
true
otherwiseprotected int validateFunctionPathExpression(CompoundExpression expression, AbstractSemanticValidator.PathType pathType)
expression
- The CompoundExpression
to validate by validating its left and right
expressionsassociationFieldValid
- Determines whether an association field is a valid type
isValid(int, int)
can be used to
determine the validation status of an expression based on its positionprotected void validateGroupByClause(GroupByClause expression)
GroupByClause
. The default behavior does not require to
semantically validate it.
expression
- The GroupByClause
to validateprotected void validateHavingClause(HavingClause expression)
HavingClause
. The default behavior does not require to
semantically validate it.
expression
- The HavingClause
to validateprotected boolean validateIdentificationVariable(IdentificationVariable expression)
IdentificationVariable
. The test to perform are:
expression
- The identification variable to be validated
true
if the given identification variable is valid; false
otherwiseprotected boolean validateIdentificationVariable(IdentificationVariable expression, java.lang.String variable)
expression
- The IdentificationVariable
that is being visitedvariable
- The actual identification variable, which is never an empty string
true
if the given identification variable is valid; false
otherwiseprotected void validateIdentificationVariableDeclaration(IdentificationVariableDeclaration expression)
InExpression
. The default behavior does not require to
semantically validate it.
expression
- The InExpression
to validateprotected void validateIdentificationVariables()
FROM
clause in the current subquery or in a superquery.
expression
- The InExpression
to validateprotected boolean validateIndexExpression(IndexExpression expression)
IndexExpression
. It validates the identification variable and
makes sure is it defined in IN
or IN
expression.
expression
- The IndexExpression
to validateprotected void validateInExpression(InExpression expression)
InExpression
. The test to perform is:
expression
- The InExpression
to validateprotected void validateJoin(Join expression)
Join
.
expression
- The ValueExpression
to validateprotected void validateJoinsIdentificationVariable(AbstractFromClause expression, java.util.List<JPQLQueryDeclaration> declarations, JPQLQueryDeclaration declaration, int index)
protected void validateKeyExpression(KeyExpression expression)
KeyExpression
. The default behavior does not require to
semantically validate it.
expression
- The KeyExpression
to validateprotected boolean validateLengthExpression(LengthExpression expression)
LENGTH
expression. The
test to perform is:
expression
- The LengthExpression
to validate by validating its encapsulated expression
false
if the encapsulated expression was validated and is invalid;
true
otherwiseprotected int validateLikeExpression(LikeExpression expression)
LIKE
expression. The test to
perform is:
expression
- The LengthExpression
to validate by validating its string expression
isValid(int, int)
can be used to
determine the validation status of an expression based on its positionprotected int validateLocateExpression(LocateExpression expression)
LOCATE
expression. The
test to perform is:
expression
- The LocateExpression
to validate by validating its encapsulated expression
isValid(int, int)
can be used to
determine the validation status of an expression based on its positionprotected boolean validateLowerExpression(LowerExpression expression)
LOWER
expression. The
test to perform is:
expression
- The LowerExpression
to validate by validating its encapsulated expression
false
if the encapsulated expression was validated and is invalid;
true
otherwiseprotected boolean validateMaxFunction(MaxFunction expression)
MAX
expression. The
test to perform is:
expression
- The MaxFunction
to validate by validating its encapsulated expression
false
if the encapsulated expression was validated and is not valid;
true
otherwiseprotected boolean validateMinFunction(MinFunction expression)
MIN
expression. The
test to perform is:
expression
- The MinFunction
to validate by validating its encapsulated expression
false
if the encapsulated expression was validated and is not valid;
true
otherwiseprotected int validateModExpression(ModExpression expression)
MOD
expression. The
test to perform is:
expression
- The ModExpression
to validate by validating its encapsulated expression
isValid(int, int)
can be used to
determine the validation status of an expression based on its positionprotected int validateMultiplicationExpression(MultiplicationExpression expression)
expression
- The MultiplicationExpression
to validate by validating its encapsulated
expression
isValid(int, int)
can be used to
determine the validation status of an expression based on its positionprotected void validateNotExpression(NotExpression expression)
NotExpression
. The default behavior does not require to
semantically validate it.
expression
- The NotExpression
to validateprotected void validateNullComparisonExpression(NullComparisonExpression expression)
NullComparisonExpression
. The default behavior does not require to
semantically validate it.
expression
- The NullComparisonExpression
to validateprotected void validateNullIfExpression(NullIfExpression expression)
NullIfExpression
. The default behavior does not require to
semantically validate it.
expression
- The NullIfExpression
to validateprotected void validateObjectExpression(ObjectExpression expression)
ObjectExpression
. The default behavior does not require to
semantically validate it.
expression
- The ObjectExpression
to validateprotected void validateOnClause(OnClause expression)
OnClause
. The default behavior does not require to semantically
validate it.
expression
- The OnClause
to validateprotected void validateOrderByClause(OrderByClause expression)
OrderByItem
. The default behavior does not require to
semantically validate it.
expression
- The OrderByItem
to validateprotected void validateOrderByItem(OrderByItem expression)
OrderByItem
. The default behavior does not require to
semantically validate it.
expression
- The OrderByItem
to validateprotected void validateOrExpression(OrExpression expression)
OrExpression
. The default behavior does not require to
semantically validate it.
expression
- The OrExpression
to validateprotected void validateRangeVariableDeclaration(RangeVariableDeclaration expression)
RangeVariableDeclaration
.
expression
- The RangeVariableDeclaration
to validateprotected void validateRangeVariableDeclarationRootObject(RangeVariableDeclaration expression)
RangeVariableDeclaration
.
expression
- The RangeVariableDeclaration
that needs its "root" object
to be validatedprotected void validateResultVariable(ResultVariable expression)
ResultVariable
. The default behavior does not require to
semantically validate it.
expression
- The ResultVariable
to validateprotected void validateSelectClause(SelectClause expression)
validateSelectClause
. The default behavior does not require to
semantically validate it.
expression
- The validateSelectClause
to validateprotected void validateSelectStatement(SelectStatement expression)
SelectStatement
. The default behavior does not require to
semantically validate it.
expression
- The SelectStatement
to validateprotected void validateSimpleFromClause(SimpleFromClause expression)
SimpleFromClause
.
expression
- The SimpleFromClause
to validateprotected void validateSimpleSelectClause(SimpleSelectClause expression)
SimpleSelectClause
. The default behavior does not require to
semantically validate it.
expression
- The SimpleSelectClause
to validateprotected void validateSimpleSelectStatement(SimpleSelectStatement expression)
protected boolean validateSizeExpression(SizeExpression expression)
SizeExpression
.
expression
- The SizeExpression
to validate
false
if the encapsulated expression is a collection-valued path expression
and it was found to be invalid; true
otherwiseprotected boolean validateSqrtExpression(SqrtExpression expression)
SQRT
expression. The
test to perform is:
expression
- The SqrtExpression
to validate by validating its encapsulated expression
false
if the encapsulated expression was validated and is invalid;
true
otherwiseprotected boolean validateStateFieldPathExpression(StateFieldPathExpression expression, AbstractSemanticValidator.PathType pathType)
StateFieldPathExpression
.
expression
- The StateFieldPathExpression
the validatepathType
- The type of field that is allowed
true
if the given StateFieldPathExpression
resolves to a valid
path; false
otherwiseprotected int validateSubstringExpression(SubstringExpression expression)
SUBSTRING
expression.
The test to perform is:
expression
- The SubstringExpression
to validate by validating its encapsulated expression
isValid(int, int)
can be used to
determine the validation status of an expression based on its positionprotected int validateSubtractionExpression(SubtractionExpression expression)
expression
- The SubtractionExpression
to validate by validating its encapsulated
expression
isValid(int, int)
can be used to
determine the validation status of an expression based on its positionprotected boolean validateSumFunction(SumFunction expression)
MOD
expression. The
test to perform is:
expression
- The ModExpression
to validate by validating its encapsulated expression
false
if the encapsulated expression was validated and is invalid;
true
otherwiseprotected void validateTreatExpression(TreatExpression expression)
TreatExpression
. The default behavior does not require to
semantically validate it.
expression
- The TreatExpression
to validateprotected boolean validateTrimExpression(TrimExpression expression)
TRIM
expression. The
test to perform is:
expression
- The TrimExpression
to validate by validating its encapsulated expression
false
if the encapsulated expression was validated and is invalid;
true
otherwiseprotected boolean validateTypeExpression(TypeExpression expression)
TypeExpression
. The test to perform is:
expression
- The TypeExpression
to validate
false
if the encapsulated expression was validated and is invalid;
true
otherwiseprotected void validateUpdateClause(UpdateClause expression)
UpdateClause
. The default behavior does not require to
semantically validate it.
expression
- The UpdateClause
to validateprotected boolean validateUpdateItem(UpdateItem expression)
UpdateItem
by validating the traversability of the path
expression. The path expression is valid if it follows one of the following rules:
expression
- UpdateItem
to validate its path expression
true
if the path expression is valid; false
otherwiseprotected void validateUpdateStatement(UpdateStatement expression)
UpdateStatement
. The default behavior does not require to
semantically validate it.
expression
- The UpdateStatement
to validateprotected boolean validateUpperExpression(UpperExpression expression)
UPPER
expression. The
test to perform is:
expression
- The UpperExpression
to validate by validating its encapsulated expression
false
if the encapsulated expression was validated and is invalid;
true
otherwiseprotected void validateValueExpression(ValueExpression expression)
ValueExpression
. The default behavior does not require to
semantically validate it.
expression
- The ValueExpression
to validateprotected void validateWhenClause(WhenClause expression)
WhenClause
. The default behavior does not require to semantically
validate it.
expression
- The WhenClause
to validateprotected void validateWhereClause(WhereClause expression)
WhereClause
. The default behavior does not require to semantically
validate it.
expression
- The WhereClause
to validateprotected AbstractSemanticValidator.PathType validPathExpressionTypeForInExpression()
IN
expression; which is the left expression.
protected AbstractSemanticValidator.PathType validPathExpressionTypeForStringExpression()
LIKE
expression.
public final void visit(AbsExpression expression)
AbsExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(AbstractSchemaName expression)
AbstractSchemaName
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(AdditionExpression expression)
AdditionExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(AllOrAnyExpression expression)
AllOrAnyExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(AndExpression expression)
AndExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(ArithmeticFactor expression)
ArithmeticFactor
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(AvgFunction expression)
AvgFunction
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(BadExpression expression)
BadExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(BetweenExpression expression)
BetweenExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(CaseExpression expression)
CaseExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(CoalesceExpression expression)
CoalesceExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(CollectionExpression expression)
CollectionExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(CollectionMemberDeclaration expression)
CollectionMemberDeclaration
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(CollectionMemberExpression expression)
CollectionMemberExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(CollectionValuedPathExpression expression)
CollectionValuedPathExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(ComparisonExpression expression)
ComparisonExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(ConcatExpression expression)
ConcatExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(ConstructorExpression expression)
ConstructorExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(CountFunction expression)
CountFunction
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(DateTime expression)
DateTime
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(DeleteClause expression)
DeleteClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(DeleteStatement expression)
DeleteStatement
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(DivisionExpression expression)
DivisionExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(EmptyCollectionComparisonExpression expression)
EmptyCollectionComparisonExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(EntityTypeLiteral expression)
EntityTypeLiteral
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(EntryExpression expression)
EntryExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(ExistsExpression expression)
ExistsExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(FromClause expression)
FromClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(GroupByClause expression)
GroupByClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(HavingClause expression)
HavingClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(IdentificationVariable expression)
IdentificationVariable
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(IdentificationVariableDeclaration expression)
IdentificationVariableDeclaration
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(IndexExpression expression)
IndexExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(InExpression expression)
InExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(InputParameter expression)
InputParameter
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(Join expression)
Join
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(JPQLExpression expression)
JPQLExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(KeyExpression expression)
KeyExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(KeywordExpression expression)
KeywordExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(LengthExpression expression)
LengthExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(LikeExpression expression)
LikeExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(LocateExpression expression)
LocateExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(LowerExpression expression)
LowerExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(MaxFunction expression)
MaxFunction
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(MinFunction expression)
MinFunction
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(ModExpression expression)
ModExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(MultiplicationExpression expression)
MultiplicationExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(NotExpression expression)
NotExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(NullComparisonExpression expression)
NullComparisonExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(NullExpression expression)
NullExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(NullIfExpression expression)
NullIfExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(NumericLiteral expression)
NumericLiteral
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(ObjectExpression expression)
ObjectExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(OnClause expression)
OnClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(OrderByClause expression)
OrderByClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(OrderByItem expression)
OrderByItem
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(OrExpression expression)
OrExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(RangeVariableDeclaration expression)
RangeVariableDeclaration
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(ResultVariable expression)
ResultVariable
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(SelectClause expression)
SelectClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(SelectStatement expression)
SelectStatement
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(SimpleFromClause expression)
SimpleFromClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(SimpleSelectClause expression)
SimpleSelectClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(SimpleSelectStatement expression)
SimpleSelectStatement
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(SizeExpression expression)
SizeExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(SqrtExpression expression)
SqrtExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(StateFieldPathExpression expression)
StateFieldPathExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(StringLiteral expression)
StringLiteral
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(SubExpression expression)
SubExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(SubstringExpression expression)
SubstringExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(SubtractionExpression expression)
SubtractionExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(SumFunction expression)
SumFunction
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(TreatExpression expression)
TreatExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(TrimExpression expression)
TrimExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(TypeExpression expression)
TypeExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic final void visit(UnknownExpression expression)
UnknownExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The UnknownExpression
to visitpublic final void visit(UpdateClause expression)
UpdateClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The UpdateClause
to visitpublic final void visit(UpdateItem expression)
UpdateItem
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The UpdateItem
to visitpublic final void visit(UpdateStatement expression)
UpdateStatement
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The UpdateStatement
to visitpublic final void visit(UpperExpression expression)
UpperExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The UpperExpression
to visitpublic final void visit(ValueExpression expression)
ValueExpression
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The ValueExpression
to visitpublic final void visit(WhenClause expression)
WhenClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The WhenClause
to visitpublic final void visit(WhereClause expression)
WhereClause
expression.
visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The WhereClause
to visit
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |