make Transaction interface extends Closeable

To avoid method name conflict, JtaTransaction#close was renamed to
closeConnection()
This commit is contained in:
yuba committed 2013-12-27 14:00:00 +09:00
1 parent 664f08fd6f
commit eaac874ac0
3 files changed
+16 -3

No files matched your search

@@ -95,7 +95,7 @@ public class JtaTransaction extends JdbcTransaction {
}
notifyRollback(e);
} finally {
close();
closeConnection();
}
} catch (Exception ex) {
throw new PersistenceException(ex);
@@ -107,7 +107,7 @@ public class JtaTransaction extends JdbcTransaction {
/**
* Close the underlying connection.
*/
private void close() throws SQLException {
private void closeConnection() throws SQLException {
if (connection != null) {
connection.close();
connection = null;