Class SessionHolder

java.lang.Object
org.springframework.transaction.support.ResourceHolderSupport
com.liferay.portal.spring.hibernate.SessionHolder
All Implemented Interfaces:
org.springframework.transaction.support.ResourceHolder

public class SessionHolder extends org.springframework.transaction.support.ResourceHolderSupport
Author:
Tina Tian
  • Constructor Summary

    Constructors
    Constructor
    Description
    SessionHolder(org.hibernate.Session session)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.hibernate.FlushMode
     
    org.hibernate.Session
     
    org.hibernate.Transaction
     
    void
    setPreviousFlushMode(org.hibernate.FlushMode previousFlushMode)
     
    void
    setTransaction(org.hibernate.Transaction transaction)
     

    Methods inherited from class org.springframework.transaction.support.ResourceHolderSupport

    getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, resetRollbackOnly, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unbound

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SessionHolder

      public SessionHolder(org.hibernate.Session session)
  • Method Details

    • clear

      public void clear()
      Overrides:
      clear in class org.springframework.transaction.support.ResourceHolderSupport
    • getPreviousFlushMode

      public org.hibernate.FlushMode getPreviousFlushMode()
    • getSession

      public org.hibernate.Session getSession()
    • getTransaction

      public org.hibernate.Transaction getTransaction()
    • setPreviousFlushMode

      public void setPreviousFlushMode(org.hibernate.FlushMode previousFlushMode)
    • setTransaction

      public void setTransaction(org.hibernate.Transaction transaction)