Class JRHibernateQueryExecuterFactory

java.lang.Object
net.sf.jasperreports.engine.query.AbstractQueryExecuterFactory
net.sf.jasperreports.engine.query.JRHibernateQueryExecuterFactory
All Implemented Interfaces:
JRQueryExecuterFactory, QueryExecuterFactory, Designated

public class JRHibernateQueryExecuterFactory extends AbstractQueryExecuterFactory implements Designated
Query executer factory for HQL queries that uses Hibernate 3.

The factory creates JRHibernateQueryExecuter query executers.

Author:
Lucian Chirita (lucianc@users.sourceforge.net)
  • Field Details

    • QUERY_EXECUTER_NAME

      public static final String QUERY_EXECUTER_NAME
      See Also:
    • QUERY_LANGUAGE_HQL

      public static final String QUERY_LANGUAGE_HQL
      HQL query language.
      See Also:
    • PARAMETER_HIBERNATE_SESSION

      public static final String PARAMETER_HIBERNATE_SESSION
      Built-in parameter holding the value of the Hibernate session to be used for creating the query.
      See Also:
    • PARAMETER_HIBERNATE_FILTER_COLLECTION

      public static final String PARAMETER_HIBERNATE_FILTER_COLLECTION
      Built-in parameter used for collection filter queries.

      The value of this parameter will be used as the collection to filter using the query.

      See Also:
    • PROPERTY_HIBERNATE_QUERY_RUN_TYPE

      public static final String PROPERTY_HIBERNATE_QUERY_RUN_TYPE
      Property specifying the query execution type.

      Possible values are:

      • list (default) - the query will be run by calling org.hibernate.Query.list()
      • iterate - the query will be run by calling org.hibernate.Query.iterate()
      • scroll - the query will be run by calling org.hibernate.Query.scroll()
      See Also:
    • PROPERTY_HIBERNATE_QUERY_LIST_PAGE_SIZE

      public static final String PROPERTY_HIBERNATE_QUERY_LIST_PAGE_SIZE
      Property specifying the number of result rows to be retrieved at once when the execution type is list.

      Result pagination is implemented by org.hibernate.Query.setFirstResult() and org.hibernate.Query.setMaxResults().

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

      See Also:
    • PROPERTY_HIBERNATE_CLEAR_CACHE

      public static final String PROPERTY_HIBERNATE_CLEAR_CACHE
      Property specifying whether hibernate session cache should be cleared between two consecutive fetches when using pagination.

      By default, the cache cleanup is not performed.

      See Also:
    • PROPERTY_HIBERNATE_FIELD_MAPPING_DESCRIPTIONS

      public static final String PROPERTY_HIBERNATE_FIELD_MAPPING_DESCRIPTIONS
      Property specifying whether field descriptions should be used to determine the mapping between the fields and the query return values.
      See Also:
    • VALUE_HIBERNATE_QUERY_RUN_TYPE_LIST

      public static final String VALUE_HIBERNATE_QUERY_RUN_TYPE_LIST
      Value of the PROPERTY_HIBERNATE_QUERY_RUN_TYPE property corresponding to list execution type.
      See Also:
    • VALUE_HIBERNATE_QUERY_RUN_TYPE_ITERATE

      public static final String VALUE_HIBERNATE_QUERY_RUN_TYPE_ITERATE
      Value of the PROPERTY_HIBERNATE_QUERY_RUN_TYPE property corresponding to iterate execution type.
      See Also:
    • VALUE_HIBERNATE_QUERY_RUN_TYPE_SCROLL

      public static final String VALUE_HIBERNATE_QUERY_RUN_TYPE_SCROLL
      Value of the PROPERTY_HIBERNATE_QUERY_RUN_TYPE property corresponding to scroll execution type.
      See Also:
  • Constructor Details

    • JRHibernateQueryExecuterFactory

      public JRHibernateQueryExecuterFactory()
  • Method Details