# ExposedSpringTransactionAttributeSource

class ExposedSpringTransactionAttributeSource(delegate: TransactionAttributeSource = AnnotationTransactionAttributeSource(), rollbackExceptions: List<Class<out Throwable>> = listOf(SQLException::class.java)) : TransactionAttributeSource

A TransactionAttributeSource that adds `ExposedSQLException` to the rollback rules of the delegate.

The returned TransactionAttribute is a defensive copy, so the delegate's cached instance is never mutated. This makes getTransactionAttribute safe to invoke concurrently.

## Constructors

ExposedSpringTransactionAttributeSource
Link copied to clipboard
constructor(delegate: TransactionAttributeSource = AnnotationTransactionAttributeSource(), rollbackExceptions: List<Class<out Throwable>> = listOf(SQLException::class.java))

## Functions

getTransactionAttribute
Link copied to clipboard
open override fun getTransactionAttribute(method: Method, targetClass: Class<*>?): TransactionAttribute?
hasTransactionAttribute
Link copied to clipboard
open fun hasTransactionAttribute(method: Method?, targetClass: @Nullable Class<*>?): Boolean
isCandidateClass
Link copied to clipboard
open fun isCandidateClass(targetClass: Class<*>?): Boolean