Class HermesParser

  • All Implemented Interfaces:
    JPAQueryBuilder

    public final class HermesParser
    extends Object
    implements JPAQueryBuilder
    This class compiles a JPQL query into a DatabaseQuery. If validation is not turned off, then the JPQL query will be validated based on the grammar related to the validation level and will also be validated based on the semantic (context).

    The validation level determines how to validate the JPQL query. It checks if any specific feature is allowed. For instance, if the JPQL query has functions defined for EclipseLink grammar but the validation level is set for generic JPA, then an exception will be thrown indicating the function cannot be used.

    Since:
    2.3
    Version:
    2.5
    Author:
    John Bracken, Pascal Filion
    See Also:
    JPQLExpression