Here you can find the source of rollback(Connection conn)
Parameter | Description |
---|---|
conn | the conn |
protected static void rollback(Connection conn)
//package com.java2s; import java.sql.Connection; public class Main { /**/*from w w w .j av a 2 s.c o m*/ * Rollback. * * @param conn * the conn */ protected static void rollback(Connection conn) { try { if (conn != null) conn.rollback(); } catch (Exception e) { } } }