Top Description Methods
org.eclipse.persistence.jpa.jpql.parser

public Interface JPQLGrammar

Known Direct Implementers
org.eclipse.persistence.jpa.jpql.parser.AbstractJPQLGrammar, org.eclipse.persistence.jpa.jpql.parser.DefaultEclipseLinkJPQLGrammar, org.eclipse.persistence.jpa.jpql.parser.DefaultJPQLGrammar
Imports
org.eclipse.persistence.jpa.jpql.JPAVersion

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:

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.

Author
Pascal Filion
Since
2.4
Version
2.5

Method Summary

Modifier and TypeMethod and Description
public ExpressionRegistry

Returns:

The registry containing the information related to the JPQL grammar
getExpressionRegistry
()

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

public JPAVersion

Returns:

The JPA version supported by this grammar
getJPAVersion
()

Returns the JPAVersion of the Java Persistence supported by this grammar.

public String

Returns:

The name of the persistence provider, null should never be returned
getProvider
()

Returns 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 string
getProviderVersion
()

Returns the version of the persistence provider.

Method Detail

getExpressionRegistryback to summary
public ExpressionRegistry getExpressionRegistry()

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

Returns:ExpressionRegistry

The registry containing the information related to the JPQL grammar

getJPAVersionback to summary
public JPAVersion getJPAVersion()

Returns the JPAVersion of the Java Persistence supported by this grammar.

Returns:JPAVersion

The JPA version supported by this grammar

getProviderback to summary
public String getProvider()

Returns the persistence provider name.

Returns:String

The name of the persistence provider, null should never be returned

Since
2.5
getProviderVersionback to summary
public String getProviderVersion()

Returns the version of the persistence provider.

Returns:String

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