Here you can find the source of rollback(Connection conn)
public static void rollback(Connection conn)
//package com.java2s; //License from project: Apache License import java.sql.Connection; import java.sql.SQLException; public class Main { public static void rollback(Connection conn) { if (conn != null) { try { conn.rollback();//from w w w .j av a 2 s. c o m } catch (SQLException e) { e.printStackTrace(); } } } }