Java JDBC Collection Transaction rollback(Connection conn)

Here you can find the source of rollback(Connection conn)

Description

Rollback.

License

Open Source License

Parameter

Parameter Description
conn the conn

Declaration

protected static void rollback(Connection conn) 

Method Source Code

//package com.java2s;

import java.sql.Connection;

public class Main {
    /**/*from w w w  .j av a 2  s.c o  m*/
     * Rollback.
     *
     * @param conn
     *            the conn
     */
    protected static void rollback(Connection conn) {
        try {
            if (conn != null)
                conn.rollback();
        } catch (Exception e) {
        }
    }
}

Related

  1. commitQuietly(Connection conn)
  2. commitTransaction(Connection connection)
  3. isAutoCommit(Connection con)
  4. releaseAutoCommit(Connection conn, boolean changedAutoCommit)
  5. resetTxnState(Connection pCon, boolean forceIgnoreUnresolvedTransactions, boolean autoCommitOnClose, boolean txnKnownResolved)
  6. rollback(Connection conn)
  7. rollback(Connection conn)
  8. rollback(Connection connection)
  9. rollback(Connection connection)