Here you can find the source of rollback(Connection connection)
public static boolean rollback(Connection connection)
//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; } }