Uses of Enum Class
com.blackrook.sql.SQLConnection.TransactionLevel
Packages that use SQLConnection.TransactionLevel
-
Uses of SQLConnection.TransactionLevel in com.blackrook.sql
Methods in com.blackrook.sql that return SQLConnection.TransactionLevelModifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static SQLConnection.TransactionLevel[]
SQLConnection.TransactionLevel.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.blackrook.sql with parameters of type SQLConnection.TransactionLevelModifier and TypeMethodDescriptionstatic SQLConnection.Transaction
SQL.getTransaction
(Connection connection, SQLConnection.TransactionLevel transactionLevel) Starts a transaction with a provided level.static void
SQL.getTransactionAnd
(Connection connection, SQLConnection.TransactionLevel transactionLevel, SQLTransactionConsumer handler) Starts a transaction with a provided level, performs actions on it, then auto-closes it.static <R> R
SQL.getTransactionAnd
(Connection connection, SQLConnection.TransactionLevel transactionLevel, SQLTransactionFunction<R> handler) Starts a transaction with a provided level, performs actions on it, returns a value, then auto-closes it.SQLConnection.startTransaction
(SQLConnection.TransactionLevel transactionLevel) Starts a transaction with a provided level.void
SQLConnection.startTransactionAnd
(SQLConnection.TransactionLevel transactionLevel, SQLTransactionConsumer handler) Starts a transaction with a provided level, performs actions on it, then auto-closes it.<R> R
SQLConnection.startTransactionAnd
(SQLConnection.TransactionLevel transactionLevel, SQLTransactionFunction<R> handler) Starts a transaction with a provided level, performs actions on it, returns a value, then auto-closes it.protected <R> R
SQLAbstractDAO.transaction
(SQLConnection.TransactionLevel level, SQLTransactionFunction<R> handler) Gets a connection and performs a function on it, returning the result.