Here you can find the source of rollback(Connection conn)
public static void rollback(Connection conn) throws SQLException
//package com.java2s; //License from project: Open Source License import java.sql.*; public class Main { public static void rollback(Connection conn) throws SQLException { if (conn != null) { conn.rollback();/*ww w . j av a2s . c o m*/ } } }