クラス SessionHolder
java.lang.ObjectSE
org.springframework.transaction.support.ResourceHolderSupport
org.springframework.orm.jpa.EntityManagerHolder
org.springframework.orm.jpa.hibernate.SessionHolder
- 実装済みのインターフェース一覧:
ResourceHolder
Hibernate
Session (およびオプションの Transaction)をラップするリソースホルダー。HibernateTransactionManager は、指定された SessionFactory に対して、このクラスのインスタンスをスレッドにバインドします。EntityManagerHolder を拡張し、EntityManager ハンドルを自動的に公開します。メモ: これは SPI クラスであり、アプリケーションでの使用は意図されていません。
- 導入:
- 7.0
- 作成者:
- Juergen Hoeller
- 関連事項:
フィールド概要
クラス EntityManagerHolder から継承されたフィールド
entityAgent, entityManagerコンストラクター概要
コンストラクター方法の概要
クラス EntityManagerHolder から継承されたメソッド
getEntityManager, getSavepointManager, isTransactionActive, setSavepointManager, setTransactionActiveクラス ResourceHolderSupport から継承されたメソッド
getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, resetRollbackOnly, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unbound
コンストラクターの詳細
SessionHolder
方法の詳細
getSession
clear
public void clear()クラスからコピーされた説明:ResourceHolderSupportこのリソースホルダーのトランザクション状態をクリアします。- オーバーライド:
- クラス
EntityManagerHolderのclear
closeAll
protected void closeAll()- オーバーライド:
- クラス
EntityManagerHolderのcloseAll