Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/ds/DataLoader.java')
-rw-r--r--plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/ds/DataLoader.java64
1 files changed, 39 insertions, 25 deletions
diff --git a/plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/ds/DataLoader.java b/plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/ds/DataLoader.java
index aca01c7e55e..4eb61b289af 100644
--- a/plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/ds/DataLoader.java
+++ b/plugins/org.eclipse.osee.orcs.core/src/org/eclipse/osee/orcs/core/ds/DataLoader.java
@@ -11,7 +11,6 @@
package org.eclipse.osee.orcs.core.ds;
import java.util.Collection;
-import org.eclipse.osee.executor.admin.HasCancellation;
import org.eclipse.osee.framework.core.data.IAttributeType;
import org.eclipse.osee.framework.core.data.IRelationType;
import org.eclipse.osee.framework.core.enums.LoadLevel;
@@ -22,44 +21,59 @@ import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
*/
public interface DataLoader extends Loader {
+ ////////// OPTIONS
@Override
- DataLoader includeDeleted();
+ DataLoader setOptions(Options sourceOptions);
- @Override
- DataLoader includeDeleted(boolean enabled);
-
- @Override
DataLoader fromTransaction(int transactionId);
- @Override
- DataLoader headTransaction();
+ DataLoader fromHeadTransaction();
- @Override
- DataLoader setLoadLevel(LoadLevel loadLevel);
+ DataLoader withLoadLevel(LoadLevel loadLevel);
- @Override
- DataLoader resetToDefaults();
+ LoadLevel getLoadLevel();
- @Override
- DataLoader loadAttributeType(IAttributeType... attributeType) throws OseeCoreException;
+ int getFromTransaction();
- @Override
- DataLoader loadAttributeTypes(Collection<? extends IAttributeType> attributeTypes) throws OseeCoreException;
+ boolean isHeadTransaction();
- @Override
- DataLoader loadRelationType(IRelationType... relationType) throws OseeCoreException;
+ //////////////// Deletion Options
+ DataLoader includeDeletedArtifacts();
- @Override
- DataLoader loadRelationTypes(Collection<? extends IRelationType> relationType) throws OseeCoreException;
+ DataLoader includeDeletedAttributes();
+
+ DataLoader includeDeletedRelations();
+
+ DataLoader includeDeletedArtifacts(boolean enabled);
+
+ DataLoader includeDeletedAttributes(boolean enabled);
+
+ DataLoader includeDeletedRelations(boolean enabled);
+
+ boolean areDeletedArtifactsIncluded();
+
+ boolean areDeletedAttributesIncluded();
+
+ boolean areDeletedRelationsIncluded();
+
+ //////////// IDS
+
+ DataLoader withAttributeIds(int... attributeIds) throws OseeCoreException;
+
+ DataLoader withAttributeIds(Collection<Integer> attributeIds) throws OseeCoreException;
+
+ DataLoader withRelationIds(int... relationIds) throws OseeCoreException;
+
+ DataLoader withRelationIds(Collection<Integer> relationIds) throws OseeCoreException;
- DataLoader loadAttributeLocalId(int... attributeIds) throws OseeCoreException;
+ ///////// TYPES
- DataLoader loadAttributeLocalIds(Collection<Integer> attributeIds) throws OseeCoreException;
+ DataLoader withAttributeTypes(IAttributeType... attributeType) throws OseeCoreException;
- DataLoader loadRelationLocalId(int... relationIds) throws OseeCoreException;
+ DataLoader withAttributeTypes(Collection<? extends IAttributeType> attributeTypes) throws OseeCoreException;
- DataLoader loadRelationLocalIds(Collection<Integer> relationIds) throws OseeCoreException;
+ DataLoader withRelationTypes(IRelationType... relationType) throws OseeCoreException;
- void load(HasCancellation cancellation, LoadDataHandler handler) throws OseeCoreException;
+ DataLoader withRelationTypes(Collection<? extends IRelationType> relationType) throws OseeCoreException;
}

Back to the top