/** * Calls the {@link StatementRunnable#run(Connection, Object)} method on the {@link StatementRunnable} parameter. All statements * run on the {@link Connection} instance in the {@link StatementRunnable#run(Connection, Object) run} method will be * executed in a transaction. The transaction will automatically be committed if the {@link StatementRunnable#run(Connection, Object) run} * method finishes without throwing an exception. If an exception is thrown within the {@link StatementRunnable#run(Connection, Object) run} method, * the transaction will automatically be rolled back. * * The isolation level of the transaction will be set to {@link java.sql.Connection#TRANSACTION_READ_COMMITTED} * @param runnable The {@link StatementRunnable} instance. */ public void runInTransaction(StatementRunnable runnable){ runInTransaction(runnable, null); }
public <V> V runInTransaction(StatementRunnableWithResult<V> runnableWithResult){ return runInTransaction(runnableWithResult, null); }
/** * Calls the {@link StatementRunnable#run(Connection, Object)} method on the {@link StatementRunnable} parameter. All statements * run on the {@link Connection} instance in the {@link StatementRunnable#run(Connection, Object) run} method will be * executed in a transaction. The transaction will automatically be committed if the {@link StatementRunnable#run(Connection, Object) run} * method finishes without throwing an exception. If an exception is thrown within the {@link StatementRunnable#run(Connection, Object) run} method, * the transaction will automatically be rolled back. * * The isolation level of the transaction will be set to {@link java.sql.Connection#TRANSACTION_READ_COMMITTED} * @param runnable The {@link StatementRunnable} instance. * @param argument An argument which will be forwarded to the {@link StatementRunnable#run(Connection, Object) run} method */ public void runInTransaction(StatementRunnable runnable, Object argument){ runInTransaction(runnable, argument, java.sql.Connection.TRANSACTION_READ_COMMITTED); }
public <V> V runInTransaction(StatementRunnableWithResult<V> runnableWithResult, Object argument){ return runInTransaction(runnableWithResult, argument, java.sql.Connection.TRANSACTION_READ_COMMITTED); }
public <V> V runInTransaction(StatementRunnableWithResult<V> runnableWithResult) { return runInTransaction(runnableWithResult, null); }
public <V> V runInTransaction(StatementRunnableWithResult<V> runnableWithResult, Object argument){ return runInTransaction(runnableWithResult, argument, java.sql.Connection.TRANSACTION_READ_COMMITTED); }
/** * Calls the {@link StatementRunnable#run(Connection, Object)} method on the {@link StatementRunnable} parameter. All statements * run on the {@link Connection} instance in the {@link StatementRunnable#run(Connection, Object) run} method will be * executed in a transaction. The transaction will automatically be committed if the {@link StatementRunnable#run(Connection, Object) run} * method finishes without throwing an exception. If an exception is thrown within the {@link StatementRunnable#run(Connection, Object) run} method, * the transaction will automatically be rolled back. * * The isolation level of the transaction will be set to {@link java.sql.Connection#TRANSACTION_READ_COMMITTED} * @param runnable The {@link StatementRunnable} instance. * @param argument An argument which will be forwarded to the {@link StatementRunnable#run(Connection, Object) run} method */ public void runInTransaction(StatementRunnable runnable, Object argument){ runInTransaction(runnable, argument, java.sql.Connection.TRANSACTION_READ_COMMITTED); }
/** * Calls the {@link StatementRunnable#run(Connection, Object)} method on the {@link StatementRunnable} parameter. All statements * run on the {@link Connection} instance in the {@link StatementRunnable#run(Connection, Object) run} method will be * executed in a transaction. The transaction will automatically be committed if the {@link StatementRunnable#run(Connection, Object) run} * method finishes without throwing an exception. If an exception is thrown within the {@link StatementRunnable#run(Connection, Object) run} method, * the transaction will automatically be rolled back. * <p> * The isolation level of the transaction will be set to {@link java.sql.Connection#TRANSACTION_READ_COMMITTED} * * @param runnable The {@link StatementRunnable} instance. */ public void runInTransaction(StatementRunnable runnable) { runInTransaction(runnable, null); }
public <V> V runInTransaction(StatementRunnableWithResult<V> runnableWithResult, Object argument) { return runInTransaction(runnableWithResult, argument, java.sql.Connection.TRANSACTION_READ_COMMITTED); }
/** * Calls the {@link StatementRunnable#run(Connection, Object)} method on the {@link StatementRunnable} parameter. All statements * run on the {@link Connection} instance in the {@link StatementRunnable#run(Connection, Object) run} method will be * executed in a transaction. The transaction will automatically be committed if the {@link StatementRunnable#run(Connection, Object) run} * method finishes without throwing an exception. If an exception is thrown within the {@link StatementRunnable#run(Connection, Object) run} method, * the transaction will automatically be rolled back. * * The isolation level of the transaction will be set to {@link java.sql.Connection#TRANSACTION_READ_COMMITTED} * @param runnable The {@link StatementRunnable} instance. */ public void runInTransaction(StatementRunnable runnable){ runInTransaction(runnable, null); }
public <V> V runInTransaction(StatementRunnableWithResult<V> runnableWithResult){ return runInTransaction(runnableWithResult, null); }
/** * Calls the {@link StatementRunnable#run(Connection, Object)} method on the {@link StatementRunnable} parameter. All statements * run on the {@link Connection} instance in the {@link StatementRunnable#run(Connection, Object) run} method will be * executed in a transaction. The transaction will automatically be committed if the {@link StatementRunnable#run(Connection, Object) run} * method finishes without throwing an exception. If an exception is thrown within the {@link StatementRunnable#run(Connection, Object) run} method, * the transaction will automatically be rolled back. * <p> * The isolation level of the transaction will be set to {@link java.sql.Connection#TRANSACTION_READ_COMMITTED} * * @param runnable The {@link StatementRunnable} instance. * @param argument An argument which will be forwarded to the {@link StatementRunnable#run(Connection, Object) run} method */ public void runInTransaction(StatementRunnable runnable, Object argument) { runInTransaction(runnable, argument, java.sql.Connection.TRANSACTION_READ_COMMITTED); }