Interface HibernateContentQueryFactory

All Known Implementing Classes:
FindAllByContentIdHibernateQueryFactory, FindAllByContentIdsAndKeysHibernateQueryFactory, FindAllBySpaceKeyHibernateQueryFactory, FindByContentIdAndKeyHibernateQueryFactory, FindBySpaceKeyAndKeyHibernateQueryFactory, FindPluginCustomContentModuleKeyQueryFactory

public interface HibernateContentQueryFactory
Interface that needs to be implemented by a HibernateContentQuery plugin module.
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.persistence.Query
    getQuery(javax.persistence.EntityManager entityManager, Object... parameters)
    Get the JPA implementation of the query this factory wishes to generate.
  • Method Details

    • getQuery

      javax.persistence.Query getQuery(javax.persistence.EntityManager entityManager, Object... parameters) throws javax.persistence.PersistenceException
      Get the JPA implementation of the query this factory wishes to generate. Any parameters for the query should be set, as should whether the query is cacheable or not. Limits (offset/max results) will be set by the DAO.
      Parameters:
      entityManager - the JPA entityManager in which to create the query
      parameters - the parameters to be set on the query
      Returns:
      the JPA implementation of the query
      Throws:
      javax.persistence.PersistenceException
      Since:
      6.1.0