diff options
Diffstat (limited to 'plugins/org.eclipse.osee.framework.database/src/org')
4 files changed, 18 insertions, 18 deletions
diff --git a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/AbstractDbTxOperation.java b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/AbstractDbTxOperation.java index 6804db6c5b9..428f32a3640 100644 --- a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/AbstractDbTxOperation.java +++ b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/AbstractDbTxOperation.java @@ -49,6 +49,8 @@ public abstract class AbstractDbTxOperation extends AbstractOperation { // default implementation } + @SuppressWarnings("unused") + //OseeCoreException is thrown by inheriting class protected void handleTxFinally(IProgressMonitor monitor) throws OseeCoreException { // default implementation } diff --git a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/DbTransaction.java b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/DbTransaction.java index 6995edd5313..e7dd4ddf1ee 100644 --- a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/DbTransaction.java +++ b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/DbTransaction.java @@ -55,7 +55,11 @@ public abstract class DbTransaction { * This convenience method is provided in case child classes have a portion of code that needs to execute always at * the end of the transaction, regardless of exceptions. <br/> * <b>Override to add additional code to finally block</b> + * + * @throws OseeCoreException */ + @SuppressWarnings("unused") + //OseeCoreException is thrown by inheriting class protected void handleTxFinally() throws OseeCoreException { // override to add additional code to finally } diff --git a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ConsolidateRelationsTxOperation.java b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ConsolidateRelationsTxOperation.java index 94e56e2dbaf..e39b5136077 100644 --- a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ConsolidateRelationsTxOperation.java +++ b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ConsolidateRelationsTxOperation.java @@ -10,14 +10,12 @@ *******************************************************************************/ package org.eclipse.osee.framework.database.operation; -import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.osee.framework.core.enums.ModificationType; import org.eclipse.osee.framework.core.enums.TxChange; import org.eclipse.osee.framework.core.exception.OseeCoreException; -import org.eclipse.osee.framework.core.exception.OseeExceptions; import org.eclipse.osee.framework.core.exception.OseeStateException; import org.eclipse.osee.framework.core.operation.OperationLogger; import org.eclipse.osee.framework.database.IOseeDatabaseService; @@ -74,7 +72,7 @@ public class ConsolidateRelationsTxOperation extends AbstractDbTxOperation { super(databaseService, "Consolidate Relations", Activator.PLUGIN_ID, logger); } - private void init() throws OseeCoreException, IOException { + private void init() throws OseeCoreException { previousRelationTypeId = -1; previousArtifactAId = -1; previousArtiafctBId = -1; @@ -97,21 +95,17 @@ public class ConsolidateRelationsTxOperation extends AbstractDbTxOperation { @Override protected void doTxWork(IProgressMonitor monitor, OseeConnection connection) throws OseeCoreException { this.connection = connection; - try { - log("Consolidating relations:"); - init(); + log("Consolidating relations:"); + init(); - findObsoleteRelations(); + findObsoleteRelations(); - log("gamma join size: " + gammaJoin.size()); + log("gamma join size: " + gammaJoin.size()); - determineAffectedAddressing(); + determineAffectedAddressing(); - updateGammas(); - log("...done."); - } catch (IOException ex) { - OseeExceptions.wrapAndThrow(ex); - } + updateGammas(); + log("...done."); } private void findObsoleteRelations() throws OseeCoreException { @@ -149,7 +143,7 @@ public class ConsolidateRelationsTxOperation extends AbstractDbTxOperation { } } - private void determineAffectedAddressing() throws OseeCoreException, IOException { + private void determineAffectedAddressing() throws OseeCoreException { gammaJoin.store(); try { @@ -232,7 +226,7 @@ public class ConsolidateRelationsTxOperation extends AbstractDbTxOperation { return ignore || netModType == ModificationType.ARTIFACT_DELETED && modificationType == ModificationType.DELETED; } - private void updateGammas() throws OseeCoreException, IOException { + private void updateGammas() throws OseeCoreException { log("Number of txs rows deleted: " + ConnectionHandler.runBatchUpdate(connection, DELETE_TXS, addressingToDelete)); log("Number of relation rows deleted: " + ConnectionHandler.runBatchUpdate(connection, DELETE_RELATIONS, @@ -242,7 +236,7 @@ public class ConsolidateRelationsTxOperation extends AbstractDbTxOperation { updateAddressingData)); } - private void writeAddressingBackup(long obsoleteGammaId, int transactionId, long netGammaId, int modType, TxChange txCurrent) throws IOException { + private void writeAddressingBackup(long obsoleteGammaId, int transactionId, long netGammaId, int modType, TxChange txCurrent) { StringBuilder strB = new StringBuilder(30); strB.append(obsoleteGammaId); diff --git a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ParseWindowsDirectoryListingOperation.java b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ParseWindowsDirectoryListingOperation.java index 38efe03be22..ed3ac2885f1 100644 --- a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ParseWindowsDirectoryListingOperation.java +++ b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/operation/ParseWindowsDirectoryListingOperation.java @@ -39,7 +39,7 @@ public class ParseWindowsDirectoryListingOperation extends AbstractDbTxOperation } @Override - protected void doTxWork(IProgressMonitor monitor, OseeConnection connection) throws OseeCoreException { + protected void doTxWork(IProgressMonitor monitor, OseeConnection connection) { log(); log("Parsing windows directory listing:"); |