EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.queries
Class ANTLRQueryBuilder

java.lang.Object
  extended by org.eclipse.persistence.queries.ANTLRQueryBuilder
All Implemented Interfaces:
JPAQueryBuilder

Deprecated. replaced with Hermes parser, which is the default.

@Deprecated
public final class ANTLRQueryBuilder
extends java.lang.Object
implements JPAQueryBuilder

This class defines the default JPAQueryBuilder implementation that uses an Antlr-based parser and DatabaseQuery conversion mechanism.

Version:
2.4
See Also:
JPQLParser, JPQLParser, JPQLParserFactory, JPAQueryBuilder
Author:
John Bracken
Since:
2.2

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

ANTLRQueryBuilder

public ANTLRQueryBuilder()
Deprecated. 
Creates a new ANTLRQueryBuilder.

Method Detail

setValidationLevel

public void setValidationLevel(java.lang.String level)
Deprecated. 
Allow the parser validation level to be set.

Specified by:
setValidationLevel in interface JPAQueryBuilder
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 initialized DatabaseQuery by parsing the given JPQL query.

Specified by:
buildQuery in interface JPAQueryBuilder
Parameters:
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
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 new Expression that represents the given selection criteria.

Specified by:
buildSelectionCriteria in interface JPAQueryBuilder
Parameters:
entityName - The name of the entity for which a criteria is created
additionalCriteria - The string representation of a conditional expression to parse
session - The EclipseLink AbstractSession 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 given DatabaseQuery by parsing the given JPQL query.

Specified by:
populateQuery in interface JPAQueryBuilder
Parameters:
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 query
session - The EclipseLink AbstractSession that this query will execute against

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference