List of utility methods to do JDBC Collection Transaction
void | rollback(Connection connection) convenient static method to ignore exception try { connection.rollback(); } catch (SQLException e) { |
boolean | rollback(Connection connection) rollback boolean rolledback = false; if (connection != null) { try { connection.rollback(); rolledback = true; } catch (SQLException ignore) { return rolledback; |
void | rollback(Connection connection) Undo all changes made by the Connection . if (connection != null && !connection.getAutoCommit()) {
connection.rollback();
|
void | rollback(Connection sqlConn) Utility method to perform rollback in correct way. try { if (!sqlConn.isClosed()) { sqlConn.rollback(); } catch (SQLException e) { throw new IllegalArgumentException("Cannot rollback database, SQL ERROR", e); |
void | rollback(final Connection conn, final Logger logger) rollback try { if (null != conn) { conn.rollback(); } catch (final SQLException sqe) { logger.warn("The following problem occurred while trying to rollback " + conn + ": " + sqe.getLocalizedMessage()); if (logger.isDebugEnabled()) { ... |
boolean | rollback(final Connection connection) rollback try { connection.rollback(); return true; } catch (Exception e) { return false; |
void | rollbackAndClose(Connection con) rollback And Close if (con != null) { if (!con.getAutoCommit()) { con.rollback(); con.close(); |
void | rollbackAndCloseQuietly(Connection conn) rollback And Close Quietly try { rollbackAndClose(conn); } catch (SQLException var2) { ; |
void | rollbackQuietly(Connection conn) rollback Quietly try { conn.rollback(); } catch (Exception e) { |
void | rollbackQuietly(Connection conn) Performs a rollback on the Connection .
try { rollback(conn); } catch (SQLException ex) { |