Java JDBC Collection Transaction rollback(Connection connection)

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

Description

rollback

License

Open Source License

Declaration

public static boolean rollback(Connection connection) 

Method Source Code

//package com.java2s;

import java.sql.Connection;

import java.sql.SQLException;

public class Main {
    public static boolean rollback(Connection connection) {
        boolean rolledback = false;
        if (connection != null) {
            try {
                connection.rollback();/*ww  w  .j a v  a 2s  .co m*/
                rolledback = true;
            } catch (SQLException ignore) {
            }
        }
        return rolledback;
    }
}

Related

  1. rollback(Connection conn)
  2. rollback(Connection conn)
  3. rollback(Connection connection)
  4. rollback(Connection connection)
  5. rollback(Connection connection)
  6. rollback(Connection sqlConn)
  7. rollback(final Connection conn, final Logger logger)
  8. rollback(final Connection connection)
  9. rollbackAndClose(Connection con)