A JPQL grammar defines how a JPQL query can be parsed. The ExpressionRegistry contains
the BNFs and the expression factories used to
create the tree representation of the JPQL query.
The supported JPQL grammars are:
JPQLGrammar1_0 defines the JPQL grammar based on JPA 1.0;JPQLGrammar2_0 defines the JPQL grammar based on JPA 2.0;JPQLGrammar2_1 defines the JPQL grammar based on JPA 2.1;EclipseLinkJPQLGrammar1 defines the JPQL grammar based on JPA 1.0 and EclipseLink 1.x;EclipseLinkJPQLGrammar2_0 defines the JPQL grammar based on JPA 2.0 and the additional EclipseLink 2.0 support;EclipseLinkJPQLGrammar2_1 defines the JPQL grammar based on JPA 2.0 and the additional EclipseLink 2.1 support.EclipseLinkJPQLGrammar2_2 defines the JPQL grammar based on JPA 2.0 and the additional EclipseLink 2.2 support.EclipseLinkJPQLGrammar2_3 defines the JPQL grammar based on JPA 2.0 and the additional EclipseLink 2.3 support.EclipseLinkJPQLGrammar2_4 defines the JPQL grammar based on JPA 2.1 and the additional EclipseLink 2.4 support.EclipseLinkJPQLGrammar2_5 defines the JPQL grammar based on JPA 2.1 and the additional EclipseLink 2.5 support.DefaultJPQLGrammar defines the JPQL grammar based on the latest JPA version;DefaultEclipseLinkJPQLGrammar defines the JPQL grammar based on the latest JPA and
the latest EclipseLink;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.
| Modifier and Type | Method and Description |
|---|---|
| public ExpressionRegistry | Returns: The registry containing the information related to the JPQL grammarReturns the registry containing the |
| public JPAVersion | Returns: TheJPA version supported by this grammarReturns the |
| public String | Returns: The name of the persistence provider,null should never be returnedReturns the persistence provider name. |
| public String | Returns: The version of the persistence provider, if one is extending the default JPQL grammar defined in the Java Persistence specification, otherwise returns an empty stringReturns the version of the persistence provider. |
| getExpressionRegistry | back to summary |
|---|---|
| public ExpressionRegistry getExpressionRegistry() Returns the registry containing the
| |
| getJPAVersion | back to summary |
|---|---|
| public JPAVersion getJPAVersion() Returns the
| |
| getProvider | back to summary |
|---|---|
| public String getProvider() Returns the persistence provider name.
| |
| getProviderVersion | back to summary |
|---|---|
| public String getProviderVersion() Returns the version of the persistence provider.
| |