@Deprecated public final class ANTLRQueryBuilder extends java.lang.Object implements JPAQueryBuilder
JPAQueryBuilder
implementation that
uses an Antlr-based parser and DatabaseQuery
conversion mechanism.JPQLParser
,
JPQLParser
,
JPQLParserFactory
,
JPAQueryBuilder
Constructor and Description |
---|
ANTLRQueryBuilder()
Deprecated.
Creates a new
ANTLRQueryBuilder . |
Modifier and Type | Method and Description |
---|---|
DatabaseQuery |
buildQuery(java.lang.CharSequence jpqlQuery,
org.eclipse.persistence.internal.sessions.AbstractSession session)
Deprecated.
Creates a fully initialized
DatabaseQuery 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 new
Expression that represents the given selection
criteria. |
void |
populateQuery(java.lang.CharSequence jpqlQuery,
DatabaseQuery query,
org.eclipse.persistence.internal.sessions.AbstractSession session)
Deprecated.
Populates the given
DatabaseQuery by parsing the given JPQL
query. |
void |
setValidationLevel(java.lang.String level)
Deprecated.
Allow the parser validation level to be set.
|
public ANTLRQueryBuilder()
ANTLRQueryBuilder
.public void setValidationLevel(java.lang.String level)
setValidationLevel
in interface JPAQueryBuilder
level
- The validation levels are defined in ParserValidationTypepublic DatabaseQuery buildQuery(java.lang.CharSequence jpqlQuery, org.eclipse.persistence.internal.sessions.AbstractSession session)
DatabaseQuery
by parsing the given
JPQL query.buildQuery
in interface JPAQueryBuilder
jpqlQuery
- A non-null
string representation of the query to
parse and to convert into a DatabaseQuery
session
- The EclipseLink AbstractSession
that this query will
execute againstDatabaseQuery
public Expression buildSelectionCriteria(java.lang.String entityName, java.lang.String additionalCriteria, org.eclipse.persistence.internal.sessions.AbstractSession session)
Expression
that represents the given selection
criteria.buildSelectionCriteria
in interface JPAQueryBuilder
entityName
- The name of the entity for which a criteria is createdadditionalCriteria
- The string representation of a conditional expression to parsesession
- The EclipseLink AbstractSession
that this query will
execute againstExpression
public void populateQuery(java.lang.CharSequence jpqlQuery, DatabaseQuery query, org.eclipse.persistence.internal.sessions.AbstractSession session)
DatabaseQuery
by parsing the given JPQL
query.populateQuery
in interface JPAQueryBuilder
jpqlQuery
- A non-null
string representation of the query to
parse and to convert into a DatabaseQuery
query
- The query to populate with the derived JPQL querysession
- The EclipseLink AbstractSession
that this query will
execute against