クラス DelegatingTransactionAttribute

java.lang.ObjectSE
org.springframework.transaction.support.DelegatingTransactionDefinition
org.springframework.transaction.interceptor.DelegatingTransactionAttribute
実装されたすべてのインターフェース:
SerializableSETransactionAttributeTransactionDefinition

public abstract class DelegatingTransactionAttribute extends DelegatingTransactionDefinition implements TransactionAttribute, SerializableSE
すべての呼び出しを特定のターゲット TransactionAttribute インスタンスに委譲する TransactionAttribute 実装。これはサブクラス化することを目的としており、サブクラスは単にターゲットインスタンスに委譲することを想定していない特定のメソッドをオーバーライドするためです。
導入:
1.2
作成者:
Juergen Hoeller, Mark Paluch
関連事項:
  • コンストラクターの詳細

    • DelegatingTransactionAttribute

      public DelegatingTransactionAttribute(TransactionAttribute targetAttribute)
      指定されたターゲット属性の DelegatingTransactionAttribute を作成します。
      パラメーター:
      targetAttribute - 委譲先のターゲット TransactionAttribute
  • メソッドの詳細

    • getQualifier

      @Nullable public StringSE getQualifier()
      インターフェースからコピーされた説明: TransactionAttribute
      このトランザクション属性に関連付けられた修飾子の値を返します。

      これは、この特定のトランザクションを処理するために対応するトランザクションマネージャーを選択するために使用できます。

      次で指定:
      インターフェース TransactionAttributegetQualifier 
    • getLabels

      public CollectionSE<StringSE> getLabels()
      インターフェースからコピーされた説明: TransactionAttribute
      このトランザクション属性に関連付けられたラベルを返します。

      これは、特定のトランザクション動作を適用するため、または純粋に説明的な性質に従うために使用できます。

      次で指定:
      インターフェース TransactionAttributegetLabels 
    • rollbackOn

      public boolean rollbackOn(ThrowableSE ex)
      インターフェースからコピーされた説明: TransactionAttribute
      特定の例外をロールバックする必要がありますか?
      次で指定:
      インターフェース TransactionAttributerollbackOn 
      パラメーター:
      ex - 評価する例外
      戻り値:
      ロールバックを実行するかどうか