Package org.eclipse.persistence.queries
Class ANTLRQueryBuilder
- java.lang.Object
-
- org.eclipse.persistence.queries.ANTLRQueryBuilder
-
- All Implemented Interfaces:
JPAQueryBuilder
@Deprecated public final class ANTLRQueryBuilder extends java.lang.Object implements JPAQueryBuilder
Deprecated.replaced with Hermes parser, which is the default.This class defines the defaultJPAQueryBuilderimplementation that uses an Antlr-based parser andDatabaseQueryconversion mechanism.- Version:
- 2.4
- See Also:
JPQLParser,JPQLParser,JPQLParserFactory,JPAQueryBuilder- Author:
- John Bracken
- Since:
- 2.2
-
-
Constructor Summary
Constructors Constructor Description ANTLRQueryBuilder()Deprecated.Creates a newANTLRQueryBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DatabaseQuerybuildQuery(java.lang.CharSequence jpqlQuery, org.eclipse.persistence.internal.sessions.AbstractSession session)Deprecated.Creates a fully initializedDatabaseQueryby parsing the given JPQL query.ExpressionbuildSelectionCriteria(java.lang.String entityName, java.lang.String additionalCriteria, org.eclipse.persistence.internal.sessions.AbstractSession session)Deprecated.Creates a newExpressionthat represents the given selection criteria.voidpopulateQuery(java.lang.CharSequence jpqlQuery, DatabaseQuery query, org.eclipse.persistence.internal.sessions.AbstractSession session)Deprecated.Populates the givenDatabaseQueryby parsing the given JPQL query.voidsetValidationLevel(java.lang.String level)Deprecated.Allow the parser validation level to be set.
-
-
-
Method Detail
-
setValidationLevel
public void setValidationLevel(java.lang.String level)
Deprecated.Allow the parser validation level to be set.- Specified by:
setValidationLevelin interfaceJPAQueryBuilder- Parameters:
level- The validation levels are defined in ParserValidationType
-
buildQuery
public DatabaseQuery buildQuery(java.lang.CharSequence jpqlQuery, org.eclipse.persistence.internal.sessions.AbstractSession session)
Deprecated.Creates a fully initializedDatabaseQueryby parsing the given JPQL query.- Specified by:
buildQueryin interfaceJPAQueryBuilder- Parameters:
jpqlQuery- A non-nullstring representation of the query to parse and to convert into aDatabaseQuerysession- The EclipseLinkAbstractSessionthat this query will execute against- Returns:
- The fully initialized
DatabaseQuery
-
buildSelectionCriteria
public Expression buildSelectionCriteria(java.lang.String entityName, java.lang.String additionalCriteria, org.eclipse.persistence.internal.sessions.AbstractSession session)
Deprecated.Creates a newExpressionthat represents the given selection criteria.- Specified by:
buildSelectionCriteriain interfaceJPAQueryBuilder- Parameters:
entityName- The name of the entity for which a criteria is createdadditionalCriteria- The string representation of a conditional expression to parsesession- The EclipseLinkAbstractSessionthat this query will execute against- Returns:
- The fully initialized
Expression
-
populateQuery
public void populateQuery(java.lang.CharSequence jpqlQuery, DatabaseQuery query, org.eclipse.persistence.internal.sessions.AbstractSession session)Deprecated.Populates the givenDatabaseQueryby parsing the given JPQL query.- Specified by:
populateQueryin interfaceJPAQueryBuilder- Parameters:
jpqlQuery- A non-nullstring representation of the query to parse and to convert into aDatabaseQueryquery- The query to populate with the derived JPQL querysession- The EclipseLinkAbstractSessionthat this query will execute against
-
-