Package org.dalesbred.transaction
Class DefaultTransactionManager
java.lang.Object
org.dalesbred.transaction.AbstractTransactionManager
org.dalesbred.transaction.DefaultTransactionManager
- All Implemented Interfaces:
TransactionManager
Default transaction manager that handles all transactions by itself.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull Optional<org.dalesbred.transaction.DefaultTransaction>
protected <T> T
withNewTransaction
(@NotNull TransactionCallback<T> callback, @NotNull Dialect dialect, @NotNull Isolation isolation) protected <T> T
withSuspendedTransaction
(@NotNull TransactionCallback<T> callback, @NotNull Isolation isolation, @NotNull Dialect dialect) Methods inherited from class org.dalesbred.transaction.AbstractTransactionManager
hasActiveTransaction, withCurrentTransaction, withTransaction
-
Constructor Details
-
DefaultTransactionManager
-
-
Method Details
-
withNewTransaction
protected <T> T withNewTransaction(@NotNull @NotNull TransactionCallback<T> callback, @NotNull @NotNull Dialect dialect, @NotNull @NotNull Isolation isolation) - Specified by:
withNewTransaction
in classAbstractTransactionManager
-
withSuspendedTransaction
protected <T> T withSuspendedTransaction(@NotNull @NotNull TransactionCallback<T> callback, @NotNull @NotNull Isolation isolation, @NotNull @NotNull Dialect dialect) - Specified by:
withSuspendedTransaction
in classAbstractTransactionManager
-
getActiveTransaction
@NotNull protected @NotNull Optional<org.dalesbred.transaction.DefaultTransaction> getActiveTransaction()- Specified by:
getActiveTransaction
in classAbstractTransactionManager
-