Class AbstractJPQLQueryFormatter
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.model.BaseJPQLQueryFormatter
-
- org.eclipse.persistence.jpa.jpql.tools.model.AbstractJPQLQueryFormatter
-
- All Implemented Interfaces:
IJPQLQueryFormatter,StateObjectVisitor
- Direct Known Subclasses:
DefaultJPQLQueryFormatter,EclipseLinkJPQLQueryFormatter
public abstract class AbstractJPQLQueryFormatter extends BaseJPQLQueryFormatter
The abstract definition of aIJPQLQueryFormatter, which converts anStateObjectinto its string representation that can be used as a real JPQL query.- Since:
- 2.4
- Version:
- 2.5
- Author:
- Pascal Filion
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.persistence.jpa.jpql.tools.model.IJPQLQueryFormatter
IJPQLQueryFormatter.IdentifierStyle
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.jpa.jpql.tools.model.BaseJPQLQueryFormatter
COMMA, COMMA_SPACE, LEFT_PARENTHESIS, RIGHT_PARENTHESIS, SPACE, style, writer
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractJPQLQueryFormatter(IJPQLQueryFormatter.IdentifierStyle style)Creates a newAbstractJPQLQueryFormatter.
-
Method Summary
-
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.model.BaseJPQLQueryFormatter
formatIdentifier, getIdentifierStyle, toString, toString, toText
-
-
-
-
Constructor Detail
-
AbstractJPQLQueryFormatter
protected AbstractJPQLQueryFormatter(IJPQLQueryFormatter.IdentifierStyle style)
Creates a newAbstractJPQLQueryFormatter.- Parameters:
style- Determines how the JPQL identifiers are written out- Throws:
NullPointerException- The IdentifierStyle cannot benull
-
-
Method Detail
-
newLine
protected String newLine()
-
toStringAggregateFunction
protected void toStringAggregateFunction(AggregateFunctionStateObject stateObject)
-
toStringChildren
protected void toStringChildren(ListHolderStateObject<? extends StateObject> stateObject, boolean comma)
-
toStringCompound
protected void toStringCompound(CompoundExpressionStateObject stateObject)
-
toStringConditional
protected void toStringConditional(AbstractConditionalClauseStateObject stateObject)
-
toStringDoubleEncapsulated
protected void toStringDoubleEncapsulated(AbstractDoubleEncapsulatedExpressionStateObject stateObject)
-
toStringEncapsulatedIdentificationVariable
protected void toStringEncapsulatedIdentificationVariable(EncapsulatedIdentificationVariableExpressionStateObject stateObject)
-
toStringFromClause
protected void toStringFromClause(AbstractFromClauseStateObject stateObject)
-
toStringIdentificationVariableDeclaration
protected void toStringIdentificationVariableDeclaration(AbstractIdentificationVariableDeclarationStateObject stateObject)
-
toStringModifyStatement
protected void toStringModifyStatement(AbstractModifyStatementStateObject stateObject)
-
toStringPathExpression
protected void toStringPathExpression(AbstractPathExpressionStateObject stateObject)
-
toStringRangeVariableDeclaration
protected void toStringRangeVariableDeclaration(AbstractRangeVariableDeclarationStateObject stateObject)
-
toStringSelectStatement
protected void toStringSelectStatement(AbstractSelectStatementStateObject stateObject, boolean useNewLine)
-
toStringSimpleStateObject
protected void toStringSimpleStateObject(SimpleStateObject stateObject)
-
toStringSingleEncapsulated
protected void toStringSingleEncapsulated(AbstractSingleEncapsulatedExpressionStateObject stateObject)
-
toStringTripleEncapsulated
protected void toStringTripleEncapsulated(AbstractTripleEncapsulatedExpressionStateObject stateObject)
-
visit
public void visit(AbsExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenAbsExpressionStateObject.- Parameters:
stateObject- TheAbsExpressionStateObjectto visit
-
visit
public void visit(AbstractSchemaNameStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenAbstractSchemaNameStateObject.- Parameters:
stateObject- TheAbstractSchemaNameStateObjectto visit
-
visit
public void visit(AdditionExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenAdditionExpressionStateObject.- Parameters:
stateObject- TheAdditionExpressionStateObjectto visit
-
visit
public void visit(AllOrAnyExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenAllOrAnyExpressionStateObject.- Parameters:
stateObject- TheAllOrAnyExpressionStateObjectto visit
-
visit
public void visit(AndExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenAndExpressionStateObject.- Parameters:
stateObject- TheAndExpressionStateObjectto visit
-
visit
public void visit(ArithmeticFactorStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenArithmeticFactorStateObject.- Parameters:
stateObject- TheArithmeticFactorStateObjectto visit
-
visit
public void visit(AvgFunctionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenAvgFunctionStateObject.- Parameters:
stateObject- TheAvgFunctionStateObjectto visit
-
visit
public void visit(BadExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenBadExpressionStateObject.- Parameters:
stateObject- TheBadExpressionStateObjectto visit
-
visit
public void visit(BetweenExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenBetweenExpressionStateObject.- Parameters:
stateObject- TheBetweenExpressionStateObjectto visit
-
visit
public void visit(CaseExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenCaseExpressionStateObject.- Parameters:
stateObject- TheCaseExpressionStateObjectto visit
-
visit
public void visit(CoalesceExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenCoalesceExpressionStateObject.- Parameters:
stateObject- TheCoalesceExpressionStateObjectto visit
-
visit
public void visit(CollectionMemberDeclarationStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenCollectionMemberDeclarationStateObject.- Parameters:
stateObject- TheCollectionMemberDeclarationStateObjectto visit
-
visit
public void visit(CollectionMemberExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenCollectionMemberExpressionStateObject.- Parameters:
stateObject- TheCollectionMemberExpressionStateObjectto visit
-
visit
public void visit(CollectionValuedPathExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenCollectionValuedPathExpressionStateObject.- Parameters:
stateObject- TheCollectionValuedPathExpressionStateObjectto visit
-
visit
public void visit(ComparisonExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenComparisonExpressionStateObject.- Parameters:
stateObject- TheComparisonExpressionStateObjectto visit
-
visit
public void visit(ConcatExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenConcatExpressionStateObject.- Parameters:
stateObject- TheConcatExpressionStateObjectto visit
-
visit
public void visit(ConstructorExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenConstructorExpressionStateObject.- Parameters:
stateObject- TheConstructorExpressionStateObjectto visit
-
visit
public void visit(CountFunctionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenCountFunctionStateObject.- Parameters:
stateObject- TheCountFunctionStateObjectto visit
-
visit
public void visit(DateTimeStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenDateTimeStateObject.- Parameters:
stateObject- TheDateTimeStateObjectto visit
-
visit
public void visit(DeleteClauseStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenDeleteClauseStateObject.- Parameters:
stateObject- TheDeleteClauseStateObjectto visit
-
visit
public void visit(DeleteStatementStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenDeleteStatementStateObject.- Parameters:
stateObject- TheDeleteStatementStateObjectto visit
-
visit
public void visit(DerivedPathIdentificationVariableDeclarationStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenDerivedPathIdentificationVariableDeclarationStateObject.- Parameters:
stateObject- TheDerivedPathIdentificationVariableDeclarationStateObjectto visit
-
visit
public void visit(DerivedPathVariableDeclarationStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenDerivedPathVariableDeclarationStateObject.- Parameters:
stateObject- TheDerivedPathVariableDeclarationStateObjectto visit
-
visit
public void visit(DivisionExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenDivisionExpressionStateObject.- Parameters:
stateObject- TheDivisionExpressionStateObjectto visit
-
visit
public void visit(EmptyCollectionComparisonExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenEmptyCollectionComparisonExpressionStateObject.- Parameters:
stateObject- TheEmptyCollectionComparisonExpressionStateObjectto visit
-
visit
public void visit(EntityTypeLiteralStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenEntityTypeLiteralStateObject.- Parameters:
stateObject- TheEntityTypeLiteralStateObjectto visit
-
visit
public void visit(EntryExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenEntryExpressionStateObject.- Parameters:
stateObject- TheEntryExpressionStateObjectto visit
-
visit
public void visit(EnumTypeStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenEnumTypeStateObject.- Parameters:
stateObject- TheEnumTypeStateObjectto visit
-
visit
public void visit(ExistsExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenExistsExpressionStateObject.- Parameters:
stateObject- TheExistsExpressionStateObjectto visit
-
visit
public void visit(FromClauseStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenFromClauseStateObject.- Parameters:
stateObject- TheFromClauseStateObjectto visit
-
visit
public void visit(FunctionExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenFunctionExpressionStateObject.- Parameters:
stateObject- TheFunctionExpressionStateObjectto visit
-
visit
public void visit(GroupByClauseStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenGroupByClauseStateObject.- Parameters:
stateObject- TheGroupByClauseStateObjectto visit
-
visit
public void visit(HavingClauseStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenHavingClauseStateObject.- Parameters:
stateObject- TheHavingClauseStateObjectto visit
-
visit
public void visit(IdentificationVariableDeclarationStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenIdentificationVariableDeclarationStateObject.- Parameters:
stateObject- TheIdentificationVariableDeclarationStateObjectto visit
-
visit
public void visit(IdentificationVariableStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenIdentificationVariableStateObject.- Parameters:
stateObject- TheIdentificationVariableStateObjectto visit
-
visit
public void visit(IndexExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenIndexExpressionStateObject.- Parameters:
stateObject- TheIndexExpressionStateObjectto visit
-
visit
public void visit(InExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenInExpressionStateObject.- Parameters:
stateObject- TheInExpressionStateObjectto visit
-
visit
public void visit(InputParameterStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenInputParameterStateObject.- Parameters:
stateObject- TheInputParameterStateObjectto visit
-
visit
public void visit(JoinStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenJoinStateObject.- Parameters:
stateObject- TheJPQLQueryStateObjectto visit
-
visit
public void visit(JPQLQueryStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenJPQLQueryStateObject.- Parameters:
stateObject- TheJPQLQueryStateObjectto visit
-
visit
public void visit(KeyExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenKeyExpressionStateObject.- Parameters:
stateObject- TheKeyExpressionStateObjectto visit
-
visit
public void visit(KeywordExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenKeywordExpressionStateObject.- Parameters:
stateObject- TheKeywordExpressionStateObjectto visit
-
visit
public void visit(LengthExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenLengthExpressionStateObject.- Parameters:
stateObject- TheLengthExpressionStateObjectto visit
-
visit
public void visit(LikeExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenLikeExpressionStateObject.- Parameters:
stateObject- TheLikeExpressionStateObjectto visit
-
visit
public void visit(LocateExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenLocateExpressionStateObject.- Parameters:
stateObject- TheLocateExpressionStateObjectto visit
-
visit
public void visit(LowerExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenLowerExpressionStateObject.- Parameters:
stateObject- TheLowerExpressionStateObjectto visit
-
visit
public void visit(MaxFunctionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenMaxFunctionStateObject.- Parameters:
stateObject- TheMaxFunctionStateObjectto visit
-
visit
public void visit(MinFunctionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenWhereClauseStateObject.- Parameters:
stateObject- TheWhereClauseStateObjectto visit
-
visit
public void visit(ModExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenModExpressionStateObject.- Parameters:
stateObject- TheModExpressionStateObjectto visit
-
visit
public void visit(MultiplicationExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenMultiplicationExpressionStateObject.- Parameters:
stateObject- TheMultiplicationExpressionStateObjectto visit
-
visit
public void visit(NotExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenNotExpressionStateObject.- Parameters:
stateObject- TheNotExpressionStateObjectto visit
-
visit
public void visit(NullComparisonExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenNullComparisonExpressionStateObject.- Parameters:
stateObject- TheNullComparisonExpressionStateObjectto visit
-
visit
public void visit(NullIfExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenNullIfExpressionStateObject.- Parameters:
stateObject- TheNullIfExpressionStateObjectto visit
-
visit
public void visit(NumericLiteralStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenNumericLiteralStateObject.- Parameters:
stateObject- TheNumericLiteralStateObjectto visit
-
visit
public void visit(ObjectExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenObjectExpressionStateObject.- Parameters:
stateObject- TheObjectExpressionStateObjectto visit
-
visit
public void visit(OrderByClauseStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenOrderByClauseStateObject.- Parameters:
stateObject- TheOrderByClauseStateObjectto visit
-
visit
public void visit(OrderByItemStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenOrderByItemStateObject.- Parameters:
stateObject- TheOrderByItemStateObjectto visit
-
visit
public void visit(OrExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenOrExpressionStateObject.- Parameters:
stateObject- TheOrExpressionStateObjectto visit
-
visit
public void visit(RangeVariableDeclarationStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenRangeVariableDeclarationStateObject.- Parameters:
stateObject- TheRangeVariableDeclarationStateObjectto visit
-
visit
public void visit(ResultVariableStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenResultVariableStateObject.- Parameters:
stateObject- TheResultVariableStateObjectto visit
-
visit
public void visit(SelectClauseStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenSelectClauseStateObject.- Parameters:
stateObject- TheSelectClauseStateObjectto visit
-
visit
public void visit(SelectStatementStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenSelectStatementStateObject.- Parameters:
stateObject- TheSelectStatementStateObjectto visit
-
visit
public void visit(SimpleFromClauseStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenSimpleFromClauseStateObject.- Parameters:
stateObject- TheSimpleFromClauseStateObjectto visit
-
visit
public void visit(SimpleSelectClauseStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenSimpleSelectClauseStateObject.- Parameters:
stateObject- TheSimpleSelectClauseStateObjectto visit
-
visit
public void visit(SimpleSelectStatementStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenSimpleSelectStatementStateObject.- Parameters:
stateObject- TheSimpleSelectStatementStateObjectto visit
-
visit
public void visit(SizeExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenSizeExpressionStateObject.- Parameters:
stateObject- TheSizeExpressionStateObjectto visit
-
visit
public void visit(SqrtExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenSqrtExpressionStateObject.- Parameters:
stateObject- TheSqrtExpressionStateObjectto visit
-
visit
public void visit(StateFieldPathExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenStateFieldPathExpressionStateObject.- Parameters:
stateObject- TheStateFieldPathExpressionStateObjectto visit
-
visit
public void visit(StringLiteralStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenStringLiteralStateObject.- Parameters:
stateObject- TheStringLiteralStateObjectto visit
-
visit
public void visit(SubExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenSubExpressionStateObject.- Parameters:
stateObject- TheSubExpressionStateObjectto visit
-
visit
public void visit(SubstringExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenSubstringExpressionStateObject.- Parameters:
stateObject- TheSubstringExpressionStateObjectto visit
-
visit
public void visit(SubtractionExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenSubtractionExpressionStateObject.- Parameters:
stateObject- TheSubtractionExpressionStateObjectto visit
-
visit
public void visit(SumFunctionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenSumFunctionStateObject.- Parameters:
stateObject- TheSumFunctionStateObjectto visit
-
visit
public void visit(TreatExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenTreatExpressionStateObject.- Parameters:
stateObject- TheTreatExpressionStateObjectto visit
-
visit
public void visit(TrimExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenTrimExpressionStateObject.- Parameters:
stateObject- TheTrimExpressionStateObjectto visit
-
visit
public void visit(TypeExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenTypeExpressionStateObject.- Parameters:
stateObject- TheTypeExpressionStateObjectto visit
-
visit
public void visit(UnknownExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenUnknownExpressionStateObject.- Parameters:
stateObject- TheUnknownExpressionStateObjectto visit
-
visit
public void visit(UpdateClauseStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenUpdateClauseStateObject.- Parameters:
stateObject- TheUpdateClauseStateObjectto visit
-
visit
public void visit(UpdateItemStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenUpdateItemStateObject.- Parameters:
stateObject- TheUpdateItemStateObjectto visit
-
visit
public void visit(UpdateStatementStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenUpdateStatementStateObject.- Parameters:
stateObject- TheUpdateStatementStateObjectto visit
-
visit
public void visit(UpperExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenUpperExpressionStateObject.- Parameters:
stateObject- TheUpperExpressionStateObjectto visit
-
visit
public void visit(ValueExpressionStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenValueExpressionStateObject.- Parameters:
stateObject- TheValueExpressionStateObjectto visit
-
visit
public void visit(WhenClauseStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenWhenClauseStateObject.- Parameters:
stateObject- TheWhenClauseStateObjectto visit
-
visit
public void visit(WhereClauseStateObject stateObject)
Description copied from interface:StateObjectVisitorVisits the givenWhereClauseStateObject.- Parameters:
stateObject- TheWhereClauseStateObjectto visit
-
-