Class AnonymousStateObjectVisitor
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.model.query.AnonymousStateObjectVisitor
-
- All Implemented Interfaces:
StateObjectVisitor
- Direct Known Subclasses:
AbstractTraverseChildrenVisitor
,AbstractTraverseParentVisitor
,AnonynousEclipseLinkStateObjectVisitor
public abstract class AnonymousStateObjectVisitor extends java.lang.Object implements StateObjectVisitor
This visitor allows a subclass to simply overridevisit(StateObject)
and perform the same task for all visitedItateObjects
.- Version:
- 2.4
- Author:
- Pascal Filion
- Since:
- 2.4
-
-
Constructor Summary
Constructors Constructor Description AnonymousStateObjectVisitor()
-
Method Summary
-
-
-
Method Detail
-
visit
public void visit(AbsExpressionStateObject stateObject)
Visits the givenAbsExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheAbsExpressionStateObject
to visit
-
visit
public void visit(AbstractSchemaNameStateObject stateObject)
Visits the givenAbstractSchemaNameStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheAbstractSchemaNameStateObject
to visit
-
visit
public void visit(AdditionExpressionStateObject stateObject)
Visits the givenAdditionExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheAdditionExpressionStateObject
to visit
-
visit
public void visit(AllOrAnyExpressionStateObject stateObject)
Visits the givenAllOrAnyExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheAllOrAnyExpressionStateObject
to visit
-
visit
public void visit(AndExpressionStateObject stateObject)
Visits the givenAndExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheAndExpressionStateObject
to visit
-
visit
public void visit(ArithmeticFactorStateObject stateObject)
Visits the givenArithmeticFactorStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheArithmeticFactorStateObject
to visit
-
visit
public void visit(AvgFunctionStateObject stateObject)
Visits the givenAvgFunctionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheAvgFunctionStateObject
to visit
-
visit
public void visit(BadExpressionStateObject stateObject)
Visits the givenBadExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheBadExpressionStateObject
to visit
-
visit
public void visit(BetweenExpressionStateObject stateObject)
Visits the givenBetweenExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheBetweenExpressionStateObject
to visit
-
visit
public void visit(CaseExpressionStateObject stateObject)
Visits the givenCaseExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheCaseExpressionStateObject
to visit
-
visit
public void visit(CoalesceExpressionStateObject stateObject)
Visits the givenCoalesceExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheCoalesceExpressionStateObject
to visit
-
visit
public void visit(CollectionMemberDeclarationStateObject stateObject)
Visits the givenCollectionMemberDeclarationStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheCollectionMemberDeclarationStateObject
to visit
-
visit
public void visit(CollectionMemberExpressionStateObject stateObject)
Visits the givenCollectionMemberExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheCollectionMemberExpressionStateObject
to visit
-
visit
public void visit(CollectionValuedPathExpressionStateObject stateObject)
Visits the givenCollectionValuedPathExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheCollectionValuedPathExpressionStateObject
to visit
-
visit
public void visit(ComparisonExpressionStateObject stateObject)
Visits the givenComparisonExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheComparisonExpressionStateObject
to visit
-
visit
public void visit(ConcatExpressionStateObject stateObject)
Visits the givenConcatExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheConcatExpressionStateObject
to visit
-
visit
public void visit(ConstructorExpressionStateObject stateObject)
Visits the givenConstructorExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheConstructorExpressionStateObject
to visit
-
visit
public void visit(CountFunctionStateObject stateObject)
Visits the givenCountFunctionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheCountFunctionStateObject
to visit
-
visit
public void visit(DateTimeStateObject stateObject)
Visits the givenDateTimeStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheDateTimeStateObject
to visit
-
visit
public void visit(DeleteClauseStateObject stateObject)
Visits the givenDeleteClauseStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheDeleteClauseStateObject
to visit
-
visit
public void visit(DeleteStatementStateObject stateObject)
Visits the givenDeleteStatementStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheDeleteStatementStateObject
to visit
-
visit
public void visit(DerivedPathIdentificationVariableDeclarationStateObject stateObject)
Visits the givenDerivedPathIdentificationVariableDeclarationStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheDerivedPathIdentificationVariableDeclarationStateObject
to visit
-
visit
public void visit(DerivedPathVariableDeclarationStateObject stateObject)
Visits the givenDerivedPathVariableDeclarationStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheDerivedPathVariableDeclarationStateObject
to visit
-
visit
public void visit(DivisionExpressionStateObject stateObject)
Visits the givenDivisionExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheDivisionExpressionStateObject
to visit
-
visit
public void visit(EmptyCollectionComparisonExpressionStateObject stateObject)
Visits the givenEmptyCollectionComparisonExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheEmptyCollectionComparisonExpressionStateObject
to visit
-
visit
public void visit(EntityTypeLiteralStateObject stateObject)
Visits the givenEntityTypeLiteralStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheEntityTypeLiteralStateObject
to visit
-
visit
public void visit(EntryExpressionStateObject stateObject)
Visits the givenEntryExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheEntryExpressionStateObject
to visit
-
visit
public void visit(EnumTypeStateObject stateObject)
Visits the givenEnumTypeStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheEnumTypeStateObject
to visit
-
visit
public void visit(ExistsExpressionStateObject stateObject)
Visits the givenExistsExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheExistsExpressionStateObject
to visit
-
visit
public void visit(FromClauseStateObject stateObject)
Visits the givenFromClauseStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheFromClauseStateObject
to visit
-
visit
public void visit(FunctionExpressionStateObject stateObject)
Visits the givenFunctionExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheFunctionExpressionStateObject
to visit
-
visit
public void visit(GroupByClauseStateObject stateObject)
Visits the givenGroupByClauseStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheGroupByClauseStateObject
to visit
-
visit
public void visit(HavingClauseStateObject stateObject)
Visits the givenHavingClauseStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheHavingClauseStateObject
to visit
-
visit
public void visit(IdentificationVariableDeclarationStateObject stateObject)
Visits the givenIdentificationVariableDeclarationStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheIdentificationVariableDeclarationStateObject
to visit
-
visit
public void visit(IdentificationVariableStateObject stateObject)
Visits the givenIdentificationVariableStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheIdentificationVariableStateObject
to visit
-
visit
public void visit(IndexExpressionStateObject stateObject)
Visits the givenIndexExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheIndexExpressionStateObject
to visit
-
visit
public void visit(InExpressionStateObject stateObject)
Visits the givenInExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheInExpressionStateObject
to visit
-
visit
public void visit(InputParameterStateObject stateObject)
Visits the givenInputParameterStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheInputParameterStateObject
to visit
-
visit
public void visit(JoinStateObject stateObject)
Visits the givenJoinStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheJPQLQueryStateObject
to visit
-
visit
public void visit(JPQLQueryStateObject stateObject)
Visits the givenJPQLQueryStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheJPQLQueryStateObject
to visit
-
visit
public void visit(KeyExpressionStateObject stateObject)
Visits the givenKeyExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheKeyExpressionStateObject
to visit
-
visit
public void visit(KeywordExpressionStateObject stateObject)
Visits the givenKeywordExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheKeywordExpressionStateObject
to visit
-
visit
public void visit(LengthExpressionStateObject stateObject)
Visits the givenLengthExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheLengthExpressionStateObject
to visit
-
visit
public void visit(LikeExpressionStateObject stateObject)
Visits the givenLikeExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheLikeExpressionStateObject
to visit
-
visit
public void visit(LocateExpressionStateObject stateObject)
Visits the givenLocateExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheLocateExpressionStateObject
to visit
-
visit
public void visit(LowerExpressionStateObject stateObject)
Visits the givenLowerExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheLowerExpressionStateObject
to visit
-
visit
public void visit(MaxFunctionStateObject stateObject)
Visits the givenMaxFunctionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheMaxFunctionStateObject
to visit
-
visit
public void visit(MinFunctionStateObject stateObject)
Visits the givenWhereClauseStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheWhereClauseStateObject
to visit
-
visit
public void visit(ModExpressionStateObject stateObject)
Visits the givenModExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheModExpressionStateObject
to visit
-
visit
public void visit(MultiplicationExpressionStateObject stateObject)
Visits the givenMultiplicationExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheMultiplicationExpressionStateObject
to visit
-
visit
public void visit(NotExpressionStateObject stateObject)
Visits the givenNotExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheNotExpressionStateObject
to visit
-
visit
public void visit(NullComparisonExpressionStateObject stateObject)
Visits the givenNullComparisonExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheNullComparisonExpressionStateObject
to visit
-
visit
public void visit(NullIfExpressionStateObject stateObject)
Visits the givenNullIfExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheNullIfExpressionStateObject
to visit
-
visit
public void visit(NumericLiteralStateObject stateObject)
Visits the givenNumericLiteralStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheNumericLiteralStateObject
to visit
-
visit
public void visit(ObjectExpressionStateObject stateObject)
Visits the givenObjectExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheObjectExpressionStateObject
to visit
-
visit
public void visit(OrderByClauseStateObject stateObject)
Visits the givenOrderByClauseStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheOrderByClauseStateObject
to visit
-
visit
public void visit(OrderByItemStateObject stateObject)
Visits the givenOrderByItemStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheOrderByItemStateObject
to visit
-
visit
public void visit(OrExpressionStateObject stateObject)
Visits the givenOrExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheOrExpressionStateObject
to visit
-
visit
public void visit(RangeVariableDeclarationStateObject stateObject)
Visits the givenRangeVariableDeclarationStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheRangeVariableDeclarationStateObject
to visit
-
visit
public void visit(ResultVariableStateObject stateObject)
Visits the givenResultVariableStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheResultVariableStateObject
to visit
-
visit
public void visit(SelectClauseStateObject stateObject)
Visits the givenSelectClauseStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheSelectClauseStateObject
to visit
-
visit
public void visit(SelectStatementStateObject stateObject)
Visits the givenSelectStatementStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheSelectStatementStateObject
to visit
-
visit
public void visit(SimpleFromClauseStateObject stateObject)
Visits the givenSimpleFromClauseStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheSimpleFromClauseStateObject
to visit
-
visit
public void visit(SimpleSelectClauseStateObject stateObject)
Visits the givenSimpleSelectClauseStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheSimpleSelectClauseStateObject
to visit
-
visit
public void visit(SimpleSelectStatementStateObject stateObject)
Visits the givenSimpleSelectStatementStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheSimpleSelectStatementStateObject
to visit
-
visit
public void visit(SizeExpressionStateObject stateObject)
Visits the givenSizeExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheSizeExpressionStateObject
to visit
-
visit
public void visit(SqrtExpressionStateObject stateObject)
Visits the givenSqrtExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheSqrtExpressionStateObject
to visit
-
visit
public void visit(StateFieldPathExpressionStateObject stateObject)
Visits the givenStateFieldPathExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheStateFieldPathExpressionStateObject
to visit
-
visit
protected void visit(StateObject stateObject)
Blindly visit the givenStateObject
.- Parameters:
stateObject
- TheStateObject
to visit
-
visit
public void visit(StringLiteralStateObject stateObject)
Visits the givenStringLiteralStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheStringLiteralStateObject
to visit
-
visit
public void visit(SubExpressionStateObject stateObject)
Visits the givenSubExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheSubExpressionStateObject
to visit
-
visit
public void visit(SubstringExpressionStateObject stateObject)
Visits the givenSubstringExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheSubstringExpressionStateObject
to visit
-
visit
public void visit(SubtractionExpressionStateObject stateObject)
Visits the givenSubtractionExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheSubtractionExpressionStateObject
to visit
-
visit
public void visit(SumFunctionStateObject stateObject)
Visits the givenSumFunctionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheSumFunctionStateObject
to visit
-
visit
public void visit(TreatExpressionStateObject stateObject)
Visits the givenTreatExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheTreatExpressionStateObject
to visit
-
visit
public void visit(TrimExpressionStateObject stateObject)
Visits the givenTrimExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheTrimExpressionStateObject
to visit
-
visit
public void visit(TypeExpressionStateObject stateObject)
Visits the givenTypeExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheTypeExpressionStateObject
to visit
-
visit
public void visit(UnknownExpressionStateObject stateObject)
Visits the givenUnknownExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheUnknownExpressionStateObject
to visit
-
visit
public void visit(UpdateClauseStateObject stateObject)
Visits the givenUpdateClauseStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheUpdateClauseStateObject
to visit
-
visit
public void visit(UpdateItemStateObject stateObject)
Visits the givenUpdateItemStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheUpdateItemStateObject
to visit
-
visit
public void visit(UpdateStatementStateObject stateObject)
Visits the givenUpdateStatementStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheUpdateStatementStateObject
to visit
-
visit
public void visit(UpperExpressionStateObject stateObject)
Visits the givenUpperExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheUpperExpressionStateObject
to visit
-
visit
public void visit(ValueExpressionStateObject stateObject)
Visits the givenValueExpressionStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheValueExpressionStateObject
to visit
-
visit
public void visit(WhenClauseStateObject stateObject)
Visits the givenWhenClauseStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheWhenClauseStateObject
to visit
-
visit
public void visit(WhereClauseStateObject stateObject)
Visits the givenWhereClauseStateObject
.- Specified by:
visit
in interfaceStateObjectVisitor
- Parameters:
stateObject
- TheWhereClauseStateObject
to visit
-
-