Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Escobar2012-03-15 19:34:35 +0000
committerRyan D. Brooks2012-03-15 19:34:35 +0000
commit98fec2677d0d432d9140063125458b0a09d3901e (patch)
treea1d6741ae913fce33cb8e77247098c7516c2f5aa /plugins/org.eclipse.osee.database.schema
parent7a5853079baae2e22ec54c85401dabdd3b4d1068 (diff)
downloadorg.eclipse.osee-98fec2677d0d432d9140063125458b0a09d3901e.tar.gz
org.eclipse.osee-98fec2677d0d432d9140063125458b0a09d3901e.tar.xz
org.eclipse.osee-98fec2677d0d432d9140063125458b0a09d3901e.zip
refinement: Improve DatabaseTransactions
Ensure connection.destroy is called in DatabaseTransactions exception section after a rollback even if rollback fails Move deferConstraints method from ConnectionHandler to DatabaseTransactions Pass database service into deferConstraints/DatabaseTransactions
Diffstat (limited to 'plugins/org.eclipse.osee.database.schema')
-rw-r--r--plugins/org.eclipse.osee.database.schema/src/org/eclipse/osee/database/schema/DatabaseTxCallable.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.database.schema/src/org/eclipse/osee/database/schema/DatabaseTxCallable.java b/plugins/org.eclipse.osee.database.schema/src/org/eclipse/osee/database/schema/DatabaseTxCallable.java
index d8f4c5ab923..1f0a28050ea 100644
--- a/plugins/org.eclipse.osee.database.schema/src/org/eclipse/osee/database/schema/DatabaseTxCallable.java
+++ b/plugins/org.eclipse.osee.database.schema/src/org/eclipse/osee/database/schema/DatabaseTxCallable.java
@@ -37,7 +37,7 @@ public abstract class DatabaseTxCallable<T> extends DatabaseCallable<T> {
OseeConnection connection = getDatabaseService().getConnection();
try {
InternalTxWork work = new InternalTxWork();
- DatabaseTransactions.execute(connection, work);
+ DatabaseTransactions.execute(getDatabaseService(), connection, work);
value = work.getResult();
} finally {
connection.close();

Back to the top