public int executeBatch() throws SQLException { return delegate.executeBatch(sessionScope); }
public int executeBatch() throws SQLException { return delegate.executeBatch(sessionScope); }
/** * Commit the transaction on a session * * @param sessionScope - the session * @throws SQLException - if the transaction could not be committed */ public void commitTransaction(SessionScope sessionScope) throws SQLException { try { // Auto batch execution if (sessionScope.isInBatch()) { executeBatch(sessionScope); } sqlExecutor.cleanup(sessionScope); txManager.commit(sessionScope); } catch (TransactionException e) { throw new NestedSQLException("Could not commit transaction. Cause: " + e, e); } }
/** * Commit the transaction on a session * * @param sessionScope - the session * @throws SQLException - if the transaction could not be committed */ public void commitTransaction(SessionScope sessionScope) throws SQLException { try { // Auto batch execution if (sessionScope.isInBatch()) { executeBatch(sessionScope); } sqlExecutor.cleanup(sessionScope); txManager.commit(sessionScope); } catch (TransactionException e) { throw new NestedSQLException("Could not commit transaction. Cause: " + e, e); } }