Class NoSessionHolder

  • All Implemented Interfaces:
    SessionHolder

    public final class NoSessionHolder
    extends java.lang.Object
    implements SessionHolder
    NoSessionHolder is a session holder for detached HibernateQuery usage
    Author:
    tiwe
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.hibernate.query.Query<?> createQuery​(java.lang.String queryString)
      Create a JPQL query for the given query string
      org.hibernate.query.NativeQuery<?> createSQLQuery​(java.lang.String queryString)
      Create an SQL query for the given query string
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createQuery

        public org.hibernate.query.Query<?> createQuery​(java.lang.String queryString)
        Description copied from interface: SessionHolder
        Create a JPQL query for the given query string
        Specified by:
        createQuery in interface SessionHolder
        Parameters:
        queryString - JPQL query string
        Returns:
        query
      • createSQLQuery

        public org.hibernate.query.NativeQuery<?> createSQLQuery​(java.lang.String queryString)
        Description copied from interface: SessionHolder
        Create an SQL query for the given query string
        Specified by:
        createSQLQuery in interface SessionHolder
        Parameters:
        queryString - JPQL query string
        Returns:
        query