|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JPAQueryBuilder
This interface defines the entry point for implementing a JPQL query parsing system in EclipseLink.
By default, EclipseLink uses ANTLRQueryBuilder for parsing a query
and converting it into a DatabaseQuery.
Third-parties can implement this interface and provide a different JPQL
parsing system if required. The JPAQueryBuilder implementing class
can be registered via a persistence unit property and the implementation
class must have a public, zero-arg constructor.
| Method Summary | |
|---|---|
DatabaseQuery |
buildQuery(java.lang.CharSequence jpqlQuery,
org.eclipse.persistence.internal.sessions.AbstractSession session)
Creates a fully initialized DatabaseQuery by parsing the given
JPQL query. |
Expression |
buildSelectionCriteria(java.lang.String entityName,
java.lang.String selectionCriteria,
org.eclipse.persistence.internal.sessions.AbstractSession session)
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)
Populates the given DatabaseQuery by parsing the given JPQL
query. |
void |
setValidationLevel(java.lang.String level)
Allow the parser validation level to be set. |
| Method Detail |
|---|
void setValidationLevel(java.lang.String level)
level - The validation levels are defined in ParserValidationType
DatabaseQuery buildQuery(java.lang.CharSequence jpqlQuery,
org.eclipse.persistence.internal.sessions.AbstractSession session)
DatabaseQuery by parsing the given
JPQL query.
jpqlQuery - A non-null string representation of the query to
parse and to convert into a DatabaseQueryquery - The query to populate with the derived JPQL querysession - The EclipseLink AbstractSession that this query will
execute against
DatabaseQuery
Expression buildSelectionCriteria(java.lang.String entityName,
java.lang.String selectionCriteria,
org.eclipse.persistence.internal.sessions.AbstractSession session)
Expression that represents the given selection
criteria.
entityName - The name of the entity for which a criteria is createdselectionCriteria - The string representation of a conditional expression to parsesession - The EclipseLink AbstractSession that this query will
execute against
Expression
void populateQuery(java.lang.CharSequence jpqlQuery,
DatabaseQuery query,
org.eclipse.persistence.internal.sessions.AbstractSession session)
DatabaseQuery by parsing the given JPQL
query.
jpqlQuery - A non-null string representation of the query to
parse and to convert into a DatabaseQueryquery - The query to populate with the derived JPQL querysession - The EclipseLink AbstractSession that this query will
execute against
|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||