Code example for Connection

Methods: rollback

0
	/** 
	 * 回滚事务 
	 */ 
	public static void rollback(Connection conn){
		try { 
			conn.rollback();
		} catch (SQLException e) {
			System.out.println("回滚异常");
			e.printStackTrace();
		} 
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java