Java JDBC Collection Transaction rollback(Connection conn)

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

Description

rollback

License

Apache License

Declaration

public static void rollback(Connection conn) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.sql.Connection;

import java.sql.SQLException;

public class Main {
    public static void rollback(Connection conn) {
        if (conn != null) {
            try {
                conn.rollback();//from   w  w w .j av a  2  s. c o m
            } catch (SQLException e) {
                e.printStackTrace();
            }
        }
    }
}

Related

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