クラス DirContextHolder
java.lang.ObjectSE
org.springframework.transaction.support.ResourceHolderSupport
org.springframework.transaction.compensating.support.CompensatingTransactionHolderSupport
org.springframework.ldap.transaction.compensating.manager.DirContextHolder
- 実装されているすべてのインターフェース:
org.springframework.transaction.support.ResourceHolder
トランザクション DirContext を追跡します。同じ DirContext インスタンスがトランザクション全体で再利用されます。また、操作を実行し、すべての変更を追跡し、コミットまたはロールバックに必要な情報を保存する
CompensatingTransactionOperationManager も保持します。- 導入:
- 1.2
コンストラクターの概要
コンストラクターコンストラクター説明コンストラクター。メソッドのサマリー
修飾子と型メソッド説明getCtx()現在のトランザクションに関連付けられた DirContext を返します。protected ObjectSE実際に取引されたリソースを取得します。voidsetCtx(DirContextSE ctx) 現在のトランザクションに関連付けられた DirContext を設定します。クラス org.springframework.transaction.compensating.support.CompensatingTransactionHolderSupport から継承されたメソッド
clear, getTransactionOperationManager, setTransactionOperationManagerクラス org.springframework.transaction.support.ResourceHolderSupport から継承されたメソッド
getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, resetRollbackOnly, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unbound
コンストラクターの詳細
DirContextHolder
コンストラクター。- パラメーター:
manager-CompensatingTransactionOperationManager。ctx- 現在のトランザクションに関連付けられている DirContext。
メソッドの詳細
setCtx
現在のトランザクションに関連付けられた DirContext を設定します。- パラメーター:
ctx- 現在のトランザクションに関連付けられている DirContext。
getCtx
現在のトランザクションに関連付けられた DirContext を返します。getTransactedResource
クラスからコピーされた説明:CompensatingTransactionHolderSupport実際に取引されたリソースを取得します。- 次で指定:
- クラス
CompensatingTransactionHolderSupportのgetTransactedResource - 戻り値:
- トランザクションのターゲットリソース