By default, EclipseLink uses HermesParser 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.
| Modifier and Type | Method and Description |
|---|---|
| public DatabaseQuery | Returns: The fully initializedDatabaseQueryA non- jpqlQuery, AbstractSession null string representation of the query to
parse and to convert into a DatabaseQueryThe EclipseLink session)AbstractSession that this query will
execute againstCreates a fully initialized |
| public Expression | Returns: The fully initializedExpressionThe name of the entity for which a criteria is created entityName, String The string representation of a conditional expression to parse selectionCriteria, AbstractSession The EclipseLink session)AbstractSession that this query will
execute againstCreates a new |
| public void | populateQuery(CharSequence
A non- jpqlQuery, DatabaseQuery null string representation of the query to
parse and to convert into a DatabaseQueryThe query to populate with the derived JPQL query query, AbstractSession The EclipseLink session)AbstractSession that this query will
execute againstPopulates the given |
| public void | setValidationLevel(String
The validation levels are defined in ParserValidationType level)Allow the parser validation level to be set. |
| buildQuery | back to summary |
|---|---|
| public DatabaseQuery buildQuery(CharSequence jpqlQuery, AbstractSession session) Creates a fully initialized
| |
| buildSelectionCriteria | back to summary |
|---|---|
| public Expression buildSelectionCriteria(String entityName, String selectionCriteria, AbstractSession session) Creates a new
| |
| populateQuery | back to summary |
|---|---|
| public void populateQuery(CharSequence jpqlQuery, DatabaseQuery query, AbstractSession session) Populates the given
| |
| setValidationLevel | back to summary |
|---|---|
| public void setValidationLevel(String level) Allow the parser validation level to be set.
| |