Class SessionFactoryUtils


  • public abstract class SessionFactoryUtils
    extends java.lang.Object
    Helper class featuring methods for Hibernate Session handling. Also provides support for exception translation.

    Used internally by HibernateTransactionManager. Can also be used directly in application code.

    Since:
    4.2
    Author:
    Juergen Hoeller, graemerocher
    See Also:
    HibernateTransactionManager
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int SESSION_SYNCHRONIZATION_ORDER
      Order value for TransactionSynchronization objects that clean up Hibernate Sessions.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • SESSION_SYNCHRONIZATION_ORDER

        public static final int SESSION_SYNCHRONIZATION_ORDER
        Order value for TransactionSynchronization objects that clean up Hibernate Sessions. Returns DataSourceUtils.CONNECTION_SYNCHRONIZATION_ORDER - 100 to execute Session cleanup before JDBC Connection cleanup, if any.
        See Also:
        DataSourceUtils.CONNECTION_SYNCHRONIZATION_ORDER, Constant Field Values
    • Constructor Detail

      • SessionFactoryUtils

        public SessionFactoryUtils()