列挙型クラス SurroundingTransactionDetectorMethodInterceptor

java.lang.ObjectSE
java.lang.EnumSE<SurroundingTransactionDetectorMethodInterceptor>
org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor
実装されたすべてのインターフェース:
SerializableSEComparableSE<SurroundingTransactionDetectorMethodInterceptor>ConstableSEAdviceInterceptorMethodInterceptor

public enum SurroundingTransactionDetectorMethodInterceptor extends EnumSE<SurroundingTransactionDetectorMethodInterceptor> implements MethodInterceptor
MethodInterceptor は、トランザクションがすでに実行されているかどうかを検出し、その事実を isSurroundingTransactionActive() を介して公開します。後続のインターセプター自体がトランザクションを作成する可能性があるが、ダウンストリームコンポーネントが、呼び出しがプロキシに入る前にトランザクションが実行されていたかどうかを確認する必要がある場合に役立ちます。
導入:
1.13
作成者:
Oliver Gierke, Christoph Strobl
  • 列挙型定数の詳細

  • メソッドの詳細

    • values

      この列挙型クラスの定数を含む配列を、宣言されている順序で返します。
      戻り値:
      この列挙型クラスの定数を宣言された順序で含む配列
    • valueOf

      指定された名前でこのクラスの列挙型定数を返します。文字列は、このクラスで列挙型定数を宣言するために使用される識別子と正確に一致する必要があります。(余分な空白文字は許可されません。)
      パラメーター:
      name - 返される列挙定数の名前。
      戻り値:
      指定された名前の列挙定数
      例外:
      IllegalArgumentExceptionSE - この列挙型クラスに指定された名前の定数がない場合
      NullPointerExceptionSE - 引数が null の場合
    • isSurroundingTransactionActive

      public boolean isSurroundingTransactionActive()
      メソッド呼び出しがリポジトリプロキシに入る前にトランザクションがアクティブであったかどうかを返します。
      戻り値:
    • invoke

      @Nullable public ObjectSE invoke(MethodInvocation invocation) throws ThrowableSE
      次で指定:
      インターフェース MethodInterceptorinvoke 
      例外:
      ThrowableSE