クラス EntityManagerHolder
java.lang.ObjectSE
org.springframework.transaction.support.ResourceHolderSupport
org.springframework.orm.jpa.EntityManagerHolder
- 実装されているすべてのインターフェース:
ResourceHolder
- 既知の直属サブクラス
SessionHolder
JPA
EntityManagerEE をラップするリソースホルダー。JpaTransactionManager は、指定された EntityManagerFactoryEE について、このクラスのインスタンスをスレッドにバインドします。5.1 以降、SessionHolder の基本クラスとしても機能します。
メモ: これは SPI クラスであり、アプリケーションでの使用は意図されていません。
- 導入:
- 2.0
- 作成者:
- Juergen Hoeller
- 関連事項:
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明voidclear()このリソースホルダーのトランザクション状態をクリアします。protected SavepointManagerprotected booleanprotected voidsetSavepointManager(SavepointManager savepointManager) protected voidsetTransactionActive(boolean transactionActive) クラス org.springframework.transaction.support.ResourceHolderSupport から継承されたメソッド
getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, resetRollbackOnly, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unbound
コンストラクターの詳細
EntityManagerHolder
メソッドの詳細
getEntityManager
setTransactionActive
protected void setTransactionActive(boolean transactionActive) isTransactionActive
protected boolean isTransactionActive()setSavepointManager
getSavepointManager
clear
public void clear()クラスからコピーされた説明:ResourceHolderSupportこのリソースホルダーのトランザクション状態をクリアします。- オーバーライド:
- クラス
ResourceHolderSupportのclear