Here you can find the source of rollback(Connection connection)
Parameter | Description |
---|---|
connection | a parameter |
public static void rollback(Connection connection)
//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) { } } }