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 defaultJPAQueryBuilder
implementation that uses an Antlr-based parser andDatabaseQuery
conversion 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 DatabaseQuery
buildQuery(java.lang.CharSequence jpqlQuery, org.eclipse.persistence.internal.sessions.AbstractSession session)
Deprecated.Creates a fully initializedDatabaseQuery
by parsing the given JPQL query.Expression
buildSelectionCriteria(java.lang.String entityName, java.lang.String additionalCriteria, org.eclipse.persistence.internal.sessions.AbstractSession session)
Deprecated.Creates a newExpression
that represents the given selection criteria.void
populateQuery(java.lang.CharSequence jpqlQuery, DatabaseQuery query, org.eclipse.persistence.internal.sessions.AbstractSession session)
Deprecated.Populates the givenDatabaseQuery
by parsing the given JPQL query.void
setValidationLevel(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:
setValidationLevel
in 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 initializedDatabaseQuery
by parsing the given JPQL query.- Specified by:
buildQuery
in interfaceJPAQueryBuilder
- Parameters:
jpqlQuery
- A non-null
string representation of the query to parse and to convert into aDatabaseQuery
session
- The EclipseLinkAbstractSession
that 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 newExpression
that represents the given selection criteria.- Specified by:
buildSelectionCriteria
in interfaceJPAQueryBuilder
- Parameters:
entityName
- The name of the entity for which a criteria is createdadditionalCriteria
- The string representation of a conditional expression to parsesession
- The EclipseLinkAbstractSession
that 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 givenDatabaseQuery
by parsing the given JPQL query.- Specified by:
populateQuery
in interfaceJPAQueryBuilder
- Parameters:
jpqlQuery
- A non-null
string representation of the query to parse and to convert into aDatabaseQuery
query
- The query to populate with the derived JPQL querysession
- The EclipseLinkAbstractSession
that this query will execute against
-
-