Code example for Connection

Methods: rollback

0
	public void commit() throws SQLException { 
		con.commit();
	} 
 
	public void rollback() throws SQLException { 
		con.rollback();
	} 
 
	public void cerrarConexion() throws SQLException { 
		con.close();
	} 
 
	public ConnectionFactory getConnectionFactory() { 
		return connectionFactory;
	} 
 
	public void setConnectionFactory(ConnectionFactory connectionFactory) {
		this.connectionFactory = connectionFactory;
	} 
 
}