Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorafinkbein2008-06-02 18:42:31 +0000
committerafinkbein2008-06-02 18:42:31 +0000
commit6b82220a60082b4028213e8472637b07c325fd31 (patch)
treed54b3a286d6db7203d43de98e5f8d6fdf3816924
parent672e2bae9dac592631c627bbab19c3dd0d56ea7e (diff)
downloadorg.eclipse.osee-6b82220a60082b4028213e8472637b07c325fd31.tar.gz
org.eclipse.osee-6b82220a60082b4028213e8472637b07c325fd31.tar.xz
org.eclipse.osee-6b82220a60082b4028213e8472637b07c325fd31.zip
-rw-r--r--org.eclipse.osee.framework.db.connection/src/org/eclipse/osee/framework/db/connection/core/transaction/DbTransaction.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.osee.framework.db.connection/src/org/eclipse/osee/framework/db/connection/core/transaction/DbTransaction.java b/org.eclipse.osee.framework.db.connection/src/org/eclipse/osee/framework/db/connection/core/transaction/DbTransaction.java
index dfe61f67cc4..3a0162d074c 100644
--- a/org.eclipse.osee.framework.db.connection/src/org/eclipse/osee/framework/db/connection/core/transaction/DbTransaction.java
+++ b/org.eclipse.osee.framework.db.connection/src/org/eclipse/osee/framework/db/connection/core/transaction/DbTransaction.java
@@ -13,6 +13,7 @@ package org.eclipse.osee.framework.db.connection.core.transaction;
import java.sql.Connection;
import java.util.logging.Level;
import org.eclipse.osee.framework.db.connection.Activator;
+import org.eclipse.osee.framework.db.connection.DbUtil;
import org.eclipse.osee.framework.db.connection.OseeDbConnection;
import org.eclipse.osee.framework.logging.OseeLog;
@@ -51,7 +52,9 @@ public abstract class DbTransaction {
Connection connection = OseeDbConnection.getConnection();
try {
OseeLog.log(Activator.class.getName(), Level.FINEST, String.format("Start Transaction: [%s]", getTxName()));
+ connection.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);
connection.setAutoCommit(false);
+ DbUtil.deferConstraintChecking(connection);
handleTxWork(connection);
connection.commit();
OseeLog.log(Activator.class.getName(), Level.FINEST, String.format("End Transaction: [%s]", getTxName()));

Back to the top