Class ExpressionFactory
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory
-
- All Implemented Interfaces:
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 Object implements 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(Object object)
ExpressionRegistry
getExpressionRegistry()
Returns the registry containing theJPQLQueryBNFs
and theExpressionFactories
that are used to properly parse a JPQL query.String
getId()
Returns the unique identifier of thisExpressionFactory
.int
hashCode()
String[]
identifiers()
Returns the JPQL identifiers handled by this factory.String
toString()
-
-
-
Method Detail
-
compareTo
public final int compareTo(ExpressionFactory expressionFactory)
- Specified by:
compareTo
in interfaceComparable<ExpressionFactory>
-
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 String getId()
Returns the unique identifier of thisExpressionFactory
.- Returns:
- The identifier used to register this
ExpressionFactory
withExpressionRegistry
-
identifiers
public final String[] identifiers()
Returns the JPQL identifiers handled by this factory.- Returns:
- The list of JPQL identifiers this factory knows how to parse
-
-