Class ExpressionFactory
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory
-
- All Implemented Interfaces:
java.lang.Comparable<ExpressionFactory>
- Direct Known Subclasses:
AbsExpressionFactory
,AbstractLiteralExpressionFactory
,AbstractSchemaNameFactory
,AllOrAnyExpressionFactory
,AndExpressionFactory
,ArithmeticExpressionFactory
,AsOfClauseFactory
,AvgFunctionFactory
,BadExpressionFactory
,BetweenExpressionFactory
,CaseExpressionFactory
,CastExpressionFactory
,CoalesceExpressionFactory
,CollectionMemberDeclarationFactory
,CollectionMemberExpressionFactory
,ComparisonExpressionFactory
,ConcatExpressionFactory
,ConnectByClauseFactory
,ConstructorExpressionFactory
,CountFunctionFactory
,DatabaseTypeFactory
,DateTimeFactory
,DeleteClauseFactory
,DeleteStatementFactory
,EntryExpressionFactory
,ExistsExpressionFactory
,ExtractExpressionFactory
,FromClauseFactory
,FunctionExpressionFactory
,GeneralIdentificationExpressionFactory
,GroupByClauseFactory
,GroupByItemFactory
,HavingClauseFactory
,HierarchicalQueryClauseFactory
,IdentificationVariableDeclarationFactory
,IdentificationVariableFactory
,IndexExpressionFactory
,InExpressionFactory
,InternalOrderByItemFactory
,IsExpressionFactory
,JoinFactory
,KeywordExpressionFactory
,LengthExpressionFactory
,LikeExpressionFactory
,LocateExpressionFactory
,LowerExpressionFactory
,MaxFunctionFactory
,MinFunctionFactory
,ModExpressionFactory
,NotExpressionFactory
,NullIfExpressionFactory
,ObjectExpressionFactory
,OnClauseFactory
,OrderByClauseFactory
,OrderByItemFactory
,OrderSiblingsByClauseFactory
,OrExpressionFactory
,RangeDeclarationFactory
,RangeVariableDeclarationFactory
,RegexpExpressionFactory
,ResultVariableFactory
,SelectClauseFactory
,SelectStatementFactory
,SimpleSelectStatementFactory
,SizeExpressionFactory
,SqrtExpressionFactory
,StartWithClauseFactory
,StringLiteralFactory
,SubstringExpressionFactory
,SumFunctionFactory
,TableExpressionFactory
,TableVariableDeclarationFactory
,TreatExpressionFactory
,TrimExpressionFactory
,TypeExpressionFactory
,UnionClauseFactory
,UnknownExpressionFactory
,UpdateClauseFactory
,UpdateItemFactory
,UpdateItemStateFieldPathExpressionFactory
,UpdateStatementFactory
,UpperExpressionFactory
,WhenClauseFactory
,WhereClauseFactory
public abstract class ExpressionFactory extends java.lang.Object implements java.lang.Comparable<ExpressionFactory>
AnExpressionFactory
is responsible to parse a portion of JPQL query which starts with one of the factory's JPQL identifiers.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.
- Since:
- 2.3
- Version:
- 2.5
- Author:
- Pascal Filion
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ExpressionFactory expressionFactory)
boolean
equals(java.lang.Object object)
ExpressionRegistry
getExpressionRegistry()
Returns the registry containing theJPQLQueryBNFs
and theExpressionFactories
that are used to properly parse a JPQL query.java.lang.String
getId()
Returns the unique identifier of thisExpressionFactory
.int
hashCode()
java.lang.String[]
identifiers()
Returns the JPQL identifiers handled by this factory.java.lang.String
toString()
-
-
-
Method Detail
-
compareTo
public final int compareTo(ExpressionFactory expressionFactory)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ExpressionFactory>
-
equals
public final boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
getExpressionRegistry
public final ExpressionRegistry getExpressionRegistry()
Returns the registry containing theJPQLQueryBNFs
and theExpressionFactories
that are used to properly parse a JPQL query.- Returns:
- The registry containing the information related to the JPQL grammar
-
getId
public final java.lang.String getId()
Returns the unique identifier of thisExpressionFactory
.- Returns:
- The identifier used to register this
ExpressionFactory
withExpressionRegistry
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
identifiers
public final java.lang.String[] identifiers()
Returns the JPQL identifiers handled by this factory.- Returns:
- The list of JPQL identifiers this factory knows how to parse
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-