Java JDBC Collection Transaction rollback(Connection conn)

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

Description

rollback

License

Open Source License

Declaration

public static void rollback(Connection conn) throws SQLException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.sql.*;

public class Main {
    public static void rollback(Connection conn) throws SQLException {
        if (conn != null) {
            conn.rollback();/*ww w . j av  a2s  . c o  m*/
        }

    }
}

Related

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