クラス 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

public class DirContextHolder extends CompensatingTransactionHolderSupport
トランザクション DirContext を追跡します。同じ DirContext インスタンスがトランザクション全体で再利用されます。また、操作を実行し、すべての変更を追跡し、コミットまたはロールバックに必要な情報を保存する CompensatingTransactionOperationManager も保持します。
導入:
1.2
  • コンストラクターの詳細

  • メソッドの詳細

    • setCtx

      public void setCtx(DirContextSE ctx)
      現在のトランザクションに関連付けられた DirContext を設定します。
      パラメーター:
      ctx - 現在のトランザクションに関連付けられている DirContext。
    • getCtx

      public DirContextSE getCtx()
      現在のトランザクションに関連付けられた DirContext を返します。
    • getTransactedResource

      protected ObjectSE getTransactedResource()
      クラスからコピーされた説明: CompensatingTransactionHolderSupport
      実際に取引されたリソースを取得します。
      次で指定:
      クラス CompensatingTransactionHolderSupportgetTransactedResource 
      戻り値:
      トランザクションのターゲットリソース