public class SQLTransaction | Modifier and Type | Method and Description |
|---|---|
static void | commitTransaction(RPCManager rpc) Commit the current transaction |
static void | endTransaction(RPCManager rpc) End the current transaction. |
static java.sql.Connection | getConnection(RPCManager rpc) Returns the connection participating in the transaction. |
static void | rollbackTransaction(RPCManager rpc) Rollback the current transaction |
static void | setAutoEndTransactions(boolean autoEnd) Sets automatic transaction end support. |
static boolean | startTransaction(RPCManager rpc) Starts a new database transaction. |
public static void setAutoEndTransactions(boolean autoEnd)
autoEnd - If true, switches on auto-end supportpublic static boolean startTransaction(RPCManager rpc) throws java.lang.Exception
java.lang.Exceptionpublic static java.sql.Connection getConnection(RPCManager rpc) throws java.lang.Exception
java.lang.Exception - if there is a configuration error with one of the underlying datasourcespublic static void rollbackTransaction(RPCManager rpc) throws java.lang.Exception
java.lang.Exception - if problems were found rolling back the transactionpublic static void commitTransaction(RPCManager rpc) throws java.lang.Exception
java.lang.Exception - if problems were found committing the transactionpublic static void endTransaction(RPCManager rpc) throws java.lang.Exception
java.lang.Exception - if problems were found ending the transaction