Example usage for org.apache.commons.dbutils DbUtils rollbackAndClose

List of usage examples for org.apache.commons.dbutils DbUtils rollbackAndClose

Introduction

In this page you can find the example usage for org.apache.commons.dbutils DbUtils rollbackAndClose.

Prototype

public static void rollbackAndClose(Connection conn) throws SQLException 

Source Link

Document

Performs a rollback on the Connection then closes it, avoid closing if null.

Usage

From source file:org.openlogics.gears.jdbc.DataStore.java

/**
 *
 * @throws SQLException
 */
public void rollBackAndClose() throws SQLException {
    DbUtils.rollbackAndClose(connection);
}