diff options
author | rescobar | 2009-11-16 20:43:06 +0000 |
---|---|---|
committer | rescobar | 2009-11-16 20:43:06 +0000 |
commit | 3da3a569f8f9d229db5a8ea59df8afa11ad8f73d (patch) | |
tree | 4d27f21cda9076cfad952c4263741fee91885922 /org.eclipse.osee.define | |
parent | a394335f0b2765d1e3dc1547f9a25dbf67e23343 (diff) | |
download | org.eclipse.osee-3da3a569f8f9d229db5a8ea59df8afa11ad8f73d.tar.gz org.eclipse.osee-3da3a569f8f9d229db5a8ea59df8afa11ad8f73d.tar.xz org.eclipse.osee-3da3a569f8f9d229db5a8ea59df8afa11ad8f73d.zip |
Diffstat (limited to 'org.eclipse.osee.define')
-rw-r--r-- | org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/PublishRequirements.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/PublishRequirements.java b/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/PublishRequirements.java index 88e225601a3..d51ff158a05 100644 --- a/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/PublishRequirements.java +++ b/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/PublishRequirements.java @@ -26,6 +26,7 @@ import org.eclipse.osee.framework.core.data.Branch; import org.eclipse.osee.framework.core.exception.OseeArgumentException;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.exception.OseeStateException;
+import org.eclipse.osee.framework.database.core.ConnectionHandler;
import org.eclipse.osee.framework.database.core.ConnectionHandlerStatement;
import org.eclipse.osee.framework.jdk.core.util.time.GlobalTime;
import org.eclipse.osee.framework.logging.OseeLog;
@@ -116,7 +117,7 @@ public class PublishRequirements extends AbstractBlam { private static int getBranchTransaction(Date date, int branchId) throws OseeCoreException {
int transactionId = -1;
- ConnectionHandlerStatement chStmt = new ConnectionHandlerStatement();
+ ConnectionHandlerStatement chStmt = ConnectionHandler.getStatement();
if (date == null) {
throw new OseeCoreException("Must select a valid Date");
@@ -215,10 +216,11 @@ public class PublishRequirements extends AbstractBlam { for (Artifact artifact : artifactSet) {
insertParameters.add(new Object[] {queryId, insertTime, artifact.getArtId(), branchId, transactionId});
}
-
+
@SuppressWarnings("unused")
- Collection<Artifact> bulkLoadedArtifacts = ArtifactLoader.loadArtifacts(queryId, ArtifactLoad.FULL, null, insertParameters, false, true, true);
-
+ Collection<Artifact> bulkLoadedArtifacts =
+ ArtifactLoader.loadArtifacts(queryId, ArtifactLoad.FULL, null, insertParameters, false, true, true);
+
for (Artifact artifact : artifacts) {
historicArtifacts.add(ArtifactCache.getHistorical(artifact.getArtId(), transactionId));
}
|