@groovy.transform.CompileStatic class GrailsTransactionTemplate extends java.lang.Object
Template class that simplifies programmatic transaction demarcation and transaction exception handling.
Modifiers | Name | Description |
---|---|---|
class |
GrailsTransactionTemplate.1 |
|
class |
GrailsTransactionTemplate.2 |
|
private static class |
GrailsTransactionTemplate.ThrowableHolder |
Internal holder class for a Throwable, used as a return value from a TransactionCallback (to be subsequently unwrapped again). |
private static class |
GrailsTransactionTemplate.ThrowableHolderException |
Internal holder class for a Throwable, used as a RuntimeException to be thrown from a TransactionCallback (and subsequently unwrapped again). |
Modifiers | Name | Description |
---|---|---|
private CustomizableRollbackTransactionAttribute |
transactionAttribute |
|
private org.springframework.transaction.support.TransactionTemplate |
transactionTemplate |
Type | Name and description |
---|---|
CustomizableRollbackTransactionAttribute |
transactionAttribute |
Constructor and description |
---|
GrailsTransactionTemplate
(org.springframework.transaction.PlatformTransactionManager transactionManager) |
GrailsTransactionTemplate
(org.springframework.transaction.PlatformTransactionManager transactionManager, org.springframework.transaction.TransactionDefinition transactionDefinition) |
GrailsTransactionTemplate
(org.springframework.transaction.PlatformTransactionManager transactionManager, org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute) |
GrailsTransactionTemplate
(org.springframework.transaction.PlatformTransactionManager transactionManager, CustomizableRollbackTransactionAttribute transactionAttribute) |
Type Params | Return Type | Name and description |
---|---|---|
<T> |
T |
execute(groovy.lang.Closure<T> action) |
<T> |
T |
executeAndRollback(groovy.lang.Closure<T> action) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Groovy Documentation