Class TransactionManager
java.lang.Object
com.github.collinalpert.java2db.transactions.TransactionManager
public class TransactionManager extends Object
- Author:
- Collin Alpert
-
Constructor Summary
Constructors Constructor Description TransactionManager() -
Method Summary
Modifier and Type Method Description static voidrunTransaction(DBConnection connection, ThrowableConsumer<Transaction,Throwable> consumer)static voidrunTransaction(ThrowableConsumer<Transaction,Throwable> consumer)static voidrunTransaction(Connection connection, ThrowableConsumer<Transaction,Throwable> consumer)
-
Constructor Details
-
TransactionManager
public TransactionManager()
-
-
Method Details
-
runTransaction
-
runTransaction
public static void runTransaction(Connection connection, ThrowableConsumer<Transaction,Throwable> consumer) -
runTransaction
public static void runTransaction(DBConnection connection, ThrowableConsumer<Transaction,Throwable> consumer)
-