Java Utililty Methods JDBC Collection Transaction

List of utility methods to do JDBC Collection Transaction

Description

The list of methods to do JDBC Collection Transaction are organized into topic(s).

Method

voidrollback(Connection connection)
convenient static method to ignore exception
try {
    connection.rollback();
} catch (SQLException e) {
booleanrollback(Connection connection)
rollback
boolean rolledback = false;
if (connection != null) {
    try {
        connection.rollback();
        rolledback = true;
    } catch (SQLException ignore) {
return rolledback;
voidrollback(Connection connection)
Undo all changes made by the Connection .
if (connection != null && !connection.getAutoCommit()) {
    connection.rollback();
voidrollback(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);
voidrollback(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()) {
...
booleanrollback(final Connection connection)
rollback
try {
    connection.rollback();
    return true;
} catch (Exception e) {
    return false;
voidrollbackAndClose(Connection con)
rollback And Close
if (con != null) {
    if (!con.getAutoCommit()) {
        con.rollback();
    con.close();
voidrollbackAndCloseQuietly(Connection conn)
rollback And Close Quietly
try {
    rollbackAndClose(conn);
} catch (SQLException var2) {
    ;
voidrollbackQuietly(Connection conn)
rollback Quietly
try {
    conn.rollback();
} catch (Exception e) {
voidrollbackQuietly(Connection conn)
Performs a rollback on the Connection.
try {
    rollback(conn);
} catch (SQLException ex) {