Java JDBC Collection Transaction rollback(Connection connection)

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

Description

convenient static method to ignore exception

License

Open Source License

Parameter

Parameter Description
connection a parameter

Declaration

public static void rollback(Connection connection) 

Method Source Code


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

import java.sql.Connection;

import java.sql.SQLException;

public class Main {
    /**//from w  w w.j av a  2s .  c  om
     * convenient static method to ignore exception
     * 
     * @param connection
     */
    public static void rollback(Connection connection) {
        try {
            connection.rollback();
        } catch (SQLException e) {
        }
    }
}

Related

  1. resetTxnState(Connection pCon, boolean forceIgnoreUnresolvedTransactions, boolean autoCommitOnClose, boolean txnKnownResolved)
  2. rollback(Connection conn)
  3. rollback(Connection conn)
  4. rollback(Connection conn)
  5. rollback(Connection connection)
  6. rollback(Connection connection)
  7. rollback(Connection connection)
  8. rollback(Connection sqlConn)
  9. rollback(final Connection conn, final Logger logger)