mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
make Transaction interface extends Closeable
To avoid method name conflict, JtaTransaction#close was renamed to closeConnection()
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user