クラス JtaTransactionAnnotationParser

java.lang.ObjectSE
org.springframework.transaction.annotation.JtaTransactionAnnotationParser
実装されたすべてのインターフェース:
SerializableSETransactionAnnotationParser

public class JtaTransactionAnnotationParser extends ObjectSE implements TransactionAnnotationParser, SerializableSE
JTA 1.2 の TransactionalEE アノテーションを解析するための戦略の実装。
導入:
4.0
作成者:
Juergen Hoeller
関連事項:
  • コンストラクターの詳細

    • JtaTransactionAnnotationParser

      public JtaTransactionAnnotationParser()
  • メソッドの詳細

    • isCandidateClass

      public boolean isCandidateClass(ClassSE<?> targetClass)
      インターフェースからコピーされた説明: TransactionAnnotationParser
      指定されたクラスが、この TransactionAnnotationParser のアノテーション形式のトランザクション属性の候補であるかどうかを判別します。

      このメソッドが false を返す場合、指定されたクラスのメソッドは #parseTransactionAnnotation イントロスペクションのためにトラバースされません。false を返すことは影響を受けないクラスの最適化ですが、true は単に、クラスが特定のクラスの各メソッドに対して個別に完全にイントロスペクトされる必要があることを意味します。

      次で指定:
      インターフェース TransactionAnnotationParserisCandidateClass 
      パラメーター:
      targetClass - 内省するクラス
      戻り値:
      false (クラスがクラスまたはメソッドレベルでトランザクションアノテーションを持たないことがわかっている場合)。それ以外の場合は true。デフォルトの実装は true を返し、通常のイントロスペクションが行われます。
    • parseTransactionAnnotation

      @Nullable public TransactionAttribute parseTransactionAnnotation(AnnotatedElementSE element)
      インターフェースからコピーされた説明: TransactionAnnotationParser
      このパーサーが理解できるアノテーション型に基づいて、指定されたメソッドまたはクラスのトランザクション属性を解析します。

      これは基本的に、既知のトランザクションアノテーションを Spring のメタデータ属性クラスに解析します。メソッド / クラスがトランザクションでない場合、null を返します。

      次で指定:
      インターフェース TransactionAnnotationParserparseTransactionAnnotation 
      パラメーター:
      element - アノテーション付きのメソッドまたはクラス
      戻り値:
      設定されたトランザクション属性、または見つからない場合は null 
      関連事項:
    • parseTransactionAnnotation

      public TransactionAttribute parseTransactionAnnotation(TransactionalEE ann)
    • parseTransactionAnnotation

      protected TransactionAttribute parseTransactionAnnotation(AnnotationAttributes attributes)
    • equals

      public boolean equals(@Nullable ObjectSE other)
      オーバーライド:
      クラス ObjectSEequalsSE 
    • hashCode

      public int hashCode()
      オーバーライド:
      クラス ObjectSEhashCode