|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.queries.ANTLRQueryBuilder
@Deprecated public final class ANTLRQueryBuilder
This class defines the default JPAQueryBuilder
implementation that
uses an Antlr-based parser and DatabaseQuery
conversion mechanism.
JPQLParser
,
JPQLParser
,
JPQLParserFactory
,
JPAQueryBuilder
Constructor Summary | |
---|---|
ANTLRQueryBuilder()
Deprecated. Creates a new ANTLRQueryBuilder . |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ANTLRQueryBuilder()
ANTLRQueryBuilder
.
Method Detail |
---|
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 against
DatabaseQuery
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 against
Expression
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
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |