Class JRJpaQueryExecuterFactory

    • Field Detail

      • QUERY_EXECUTER_NAME

        public static final java.lang.String QUERY_EXECUTER_NAME
        See Also:
        Constant Field Values
      • QUERY_LANGUAGE_EJBQL

        public static final java.lang.String QUERY_LANGUAGE_EJBQL
        EJBQL query language.
        See Also:
        Constant Field Values
      • PARAMETER_JPA_ENTITY_MANAGER

        public static final java.lang.String PARAMETER_JPA_ENTITY_MANAGER
        Built-in parameter holding the value of the javax.persistence.EntityManager to be used for creating the query.
        See Also:
        Constant Field Values
      • PARAMETER_JPA_QUERY_HINTS_MAP

        public static final java.lang.String PARAMETER_JPA_QUERY_HINTS_MAP
        Built-in parameter (optional) holding the value of the query hints map. Each named/value pair will be set as query hint against the query.
        See Also:
        Constant Field Values
      • PROPERTY_JPA_QUERY_PAGE_SIZE

        public static final java.lang.String PROPERTY_JPA_QUERY_PAGE_SIZE
        Property specifying the number of result rows to be retrieved at once.

        Result pagination is implemented by javax.persistence.Query.setFirstResult() and javax.persistence.Query.setMaxResults().

        By default, all the rows are retrieved (no result pagination is performed).

        See Also:
        Constant Field Values
      • PROPERTY_JPA_QUERY_HINT_PREFIX

        public static final java.lang.String PROPERTY_JPA_QUERY_HINT_PREFIX
        Property specifying the prefix for EJBQL query hints.
        See Also:
        Constant Field Values
    • Constructor Detail

      • JRJpaQueryExecuterFactory

        public JRJpaQueryExecuterFactory()
    • Method Detail

      • getBuiltinParameters

        public java.lang.Object[] getBuiltinParameters()
        Description copied from interface: QueryExecuterFactory
        Returns the built-in parameters associated with this query type.

        These parameters will be created as system-defined parameters for each report/dataset having a query of this type.

        The returned array should contain consecutive pairs of parameter names and parameter classes (e.g. {"Param1", String.class, "Param2", "List.class"}).

        Specified by:
        getBuiltinParameters in interface JRQueryExecuterFactory
        Specified by:
        getBuiltinParameters in interface QueryExecuterFactory
        Returns:
        array of built-in parameter names and types associated with this query type