インターフェースの使用
org.springframework.transaction.interceptor.TransactionAttribute
TransactionAttribute を使用するパッケージ
パッケージ
説明
Spring TestContext フレームワークのトランザクションサポートクラス。
Spring のアノテーションベースのトランザクション境界のサポート。
宣言的なトランザクション区分のための AOP ベースのソリューション。
org.springframework.test.context.transaction 内の TransactionAttribute 使用
修飾子と型メソッド説明static TransactionAttributeTestContextTransactionUtils.createDelegatingTransactionAttribute(TestContext testContext, TransactionAttribute targetAttribute) テストクラスの名前とテストメソッドを使用してトランザクションの名前を作成し、提供されたターゲットTransactionAttributeおよびTestContextの委譲TransactionAttributeを作成します。static TransactionAttributeTestContextTransactionUtils.createDelegatingTransactionAttribute(TestContext testContext, TransactionAttribute targetAttribute, boolean includeMethodName) テストクラスの名前とテストメソッド (リクエストされた場合) を使用してトランザクションの名前を構築し、指定されたターゲットTransactionAttributeおよびTestContextの委譲TransactionAttributeを作成します。型 TransactionAttribute のパラメーターを持つ org.springframework.test.context.transaction のメソッド修飾子と型メソッド説明static TransactionAttributeTestContextTransactionUtils.createDelegatingTransactionAttribute(TestContext testContext, TransactionAttribute targetAttribute) テストクラスの名前とテストメソッドを使用してトランザクションの名前を作成し、提供されたターゲットTransactionAttributeおよびTestContextの委譲TransactionAttributeを作成します。static TransactionAttributeTestContextTransactionUtils.createDelegatingTransactionAttribute(TestContext testContext, TransactionAttribute targetAttribute, boolean includeMethodName) テストクラスの名前とテストメソッド (リクエストされた場合) を使用してトランザクションの名前を構築し、指定されたターゲットTransactionAttributeおよびTestContextの委譲TransactionAttributeを作成します。org.springframework.transaction.annotation 内の TransactionAttribute 使用
修飾子と型メソッド説明protected TransactionAttributeAnnotationTransactionAttributeSource.determineTransactionAttribute(AnnotatedElementSE element) 指定されたメソッドまたはクラスのトランザクション属性を決定します。protected TransactionAttributeAnnotationTransactionAttributeSource.findTransactionAttribute(ClassSE<?> clazz) protected TransactionAttributeAnnotationTransactionAttributeSource.findTransactionAttribute(MethodSE method) Ejb3TransactionAnnotationParser.parseTransactionAnnotation(TransactionAttributeEE ann) Ejb3TransactionAnnotationParser.parseTransactionAnnotation(AnnotatedElementSE element) JtaTransactionAnnotationParser.parseTransactionAnnotation(TransactionalEE ann) JtaTransactionAnnotationParser.parseTransactionAnnotation(AnnotatedElementSE element) protected TransactionAttributeJtaTransactionAnnotationParser.parseTransactionAnnotation(AnnotationAttributes attributes) SpringTransactionAnnotationParser.parseTransactionAnnotation(AnnotatedElementSE element) protected TransactionAttributeSpringTransactionAnnotationParser.parseTransactionAnnotation(AnnotationAttributes attributes) SpringTransactionAnnotationParser.parseTransactionAnnotation(Transactional ann) TransactionAnnotationParser.parseTransactionAnnotation(AnnotatedElementSE element) このパーサーが理解できるアノテーション型に基づいて、指定されたメソッドまたはクラスのトランザクション属性を解析します。org.springframework.transaction.interceptor 内の TransactionAttribute 使用
修飾子と型クラス説明classSpring の一般的なトランザクション属性の実装。classすべての呼び出しを特定のターゲットTransactionAttributeインスタンスに委譲するTransactionAttribute実装。classTransactionAttribute の実装。ポジティブとネガティブの両方の多数のロールバックルールを適用することにより、特定の例外がトランザクションロールバックを引き起こすかどうかを判断します。修飾子と型メソッド説明protected TransactionAttributeAbstractFallbackTransactionAttributeSource.computeTransactionAttribute(MethodSE method, ClassSE<?> targetClass) protected abstract TransactionAttributeAbstractFallbackTransactionAttributeSource.findTransactionAttribute(ClassSE<?> clazz) サブクラスは、特定のクラスのトランザクション属性があれば、それを返すためにこれを実装する必要があります。protected abstract TransactionAttributeAbstractFallbackTransactionAttributeSource.findTransactionAttribute(MethodSE method) サブクラスは、指定されたメソッドのトランザクション属性があればそれを返すためにこれを実装する必要があります。AbstractFallbackTransactionAttributeSource.getTransactionAttribute(MethodSE method, ClassSE<?> targetClass) このメソッド呼び出しのトランザクション属性を決定します。CompositeTransactionAttributeSource.getTransactionAttribute(MethodSE method, ClassSE<?> targetClass) MatchAlwaysTransactionAttributeSource.getTransactionAttribute(MethodSE method, ClassSE<?> targetClass) MethodMapTransactionAttributeSource.getTransactionAttribute(MethodSE method, ClassSE<?> targetClass) NameMatchTransactionAttributeSource.getTransactionAttribute(MethodSE method, ClassSE<?> targetClass) TransactionAspectSupport.TransactionInfo.getTransactionAttribute()TransactionAttributeSource.getTransactionAttribute(MethodSE method, ClassSE<?> targetClass) 指定されたメソッドのトランザクション属性を返します。メソッドが非トランザクションの場合はnullを返します。型 TransactionAttribute のパラメーターを持つ org.springframework.transaction.interceptor のメソッド修飾子と型メソッド説明voidMethodMapTransactionAttributeSource.addTransactionalMethod(ClassSE<?> clazz, StringSE mappedName, TransactionAttribute attr) トランザクションメソッドの属性を追加します。voidMethodMapTransactionAttributeSource.addTransactionalMethod(MethodSE method, TransactionAttribute attr) トランザクションメソッドの属性を追加します。voidMethodMapTransactionAttributeSource.addTransactionalMethod(StringSE name, TransactionAttribute attr) トランザクションメソッドの属性を追加します。voidNameMatchTransactionAttributeSource.addTransactionalMethod(StringSE methodName, TransactionAttribute attr) トランザクションメソッドの属性を追加します。protected TransactionAspectSupport.TransactionInfoTransactionAspectSupport.createTransactionIfNecessary(PlatformTransactionManager tm, TransactionAttribute txAttr, StringSE joinpointIdentification) 必要に応じて、指定された TransactionAttribute に基づいてトランザクションを作成します。protected TransactionManagerTransactionAspectSupport.determineTransactionManager(TransactionAttribute txAttr) 特定のトランザクションに使用する特定のトランザクションマネージャーを決定します。protected TransactionAspectSupport.TransactionInfoTransactionAspectSupport.prepareTransactionInfo(PlatformTransactionManager tm, TransactionAttribute txAttr, StringSE joinpointIdentification, TransactionStatus status) 指定された属性およびステータスオブジェクトの TransactionInfo を準備します。voidMatchAlwaysTransactionAttributeSource.setTransactionAttribute(TransactionAttribute transactionAttribute) "PROPAGATION_REQUIRED" などの文字列形式を使用して、トランザクション属性を指定できます。型 TransactionAttribute の型引数を持つ org.springframework.transaction.interceptor のメソッドパラメーター修飾子と型メソッド説明protected voidMethodMapTransactionAttributeSource.initMethodMap(MapSE<StringSE, TransactionAttribute> methodMap) 指定された"methodMap"を初期化します(存在する場合)。voidMethodMapTransactionAttributeSource.setMethodMap(MapSE<StringSE, TransactionAttribute> methodMap) "FQCN.method" メソッド名で構成される名前 / 属性マップを設定します(例:voidNameMatchTransactionAttributeSource.setNameMap(MapSE<StringSE, TransactionAttribute> nameMap) メソッド名で構成される名前 / 属性マップを設定します(例:型 TransactionAttribute のパラメーターを持つ org.springframework.transaction.interceptor のコンストラクター修飾子コンストラクター説明コピーコンストラクター。DelegatingTransactionAttribute(TransactionAttribute targetAttribute) 指定されたターゲット属性の DelegatingTransactionAttribute を作成します。TransactionInfo(PlatformTransactionManager transactionManager, TransactionAttribute transactionAttribute, StringSE joinpointIdentification)