EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql.parser
Interface JPQLGrammar

All Known Implementing Classes:
AbstractJPQLGrammar, DefaultEclipseLinkJPQLGrammar, DefaultJPQLGrammar, EclipseLinkJPQLGrammar1, EclipseLinkJPQLGrammar2_0, EclipseLinkJPQLGrammar2_1, EclipseLinkJPQLGrammar2_2, EclipseLinkJPQLGrammar2_3, EclipseLinkJPQLGrammar2_4, JPQLGrammar1_0, JPQLGrammar2_0, JPQLGrammar2_1

public interface JPQLGrammar

A JPQL grammar defines how a JPQL query can be parsed. The ExpressionRegistry contains the BNFs and the expression factories used to create the object representation of the JPQL query.

Various JPQL grammars have been defined:

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.

Version:
2.4
Author:
Pascal Filion
Since:
2.4

Method Summary
 ExpressionRegistry getExpressionRegistry()
          Returns the registry containing the JPQLQueryBNFs and the ExpressionFactories that are used to properly parse a JPQL query.
 JPAVersion getJPAVersion()
          Returns the JPAVersion of the Java Persistence supported by this grammar.
 java.lang.String getProviderVersion()
          Returns the version of the persistence provider.
 

Method Detail

getExpressionRegistry

ExpressionRegistry getExpressionRegistry()
Returns the registry containing the JPQLQueryBNFs and the ExpressionFactories that are used to properly parse a JPQL query.

Returns:
The registry containing the information related to the JPQL grammar

getJPAVersion

JPAVersion getJPAVersion()
Returns the JPAVersion of the Java Persistence supported by this grammar.

Returns:
The JPA version supported by this grammar

getProviderVersion

java.lang.String getProviderVersion()
Returns the version of the persistence provider.

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 string
Since:
2.4

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference