diff options
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/OseeTypeCache.java')
-rw-r--r-- | plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/OseeTypeCache.java | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/OseeTypeCache.java b/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/OseeTypeCache.java index e9956a78961..6a91dec2a11 100644 --- a/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/OseeTypeCache.java +++ b/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/OseeTypeCache.java @@ -21,63 +21,63 @@ import org.eclipse.osee.framework.core.model.cache.RelationTypeCache; */ public class OseeTypeCache { - private final ArtifactTypeCache artifactCache; - private final AttributeTypeCache attributeCache; - private final RelationTypeCache relationCache; - private final OseeEnumTypeCache oseeEnumTypeCache; + private final ArtifactTypeCache artifactCache; + private final AttributeTypeCache attributeCache; + private final RelationTypeCache relationCache; + private final OseeEnumTypeCache oseeEnumTypeCache; - private boolean duringPopulate; + private boolean duringPopulate; - public OseeTypeCache(ArtifactTypeCache artifactCache, AttributeTypeCache attributeCache, RelationTypeCache relationCache, OseeEnumTypeCache oseeEnumTypeCache) { - this.duringPopulate = false; - this.artifactCache = artifactCache; - this.attributeCache = attributeCache; - this.relationCache = relationCache; - this.oseeEnumTypeCache = oseeEnumTypeCache; - } + public OseeTypeCache(ArtifactTypeCache artifactCache, AttributeTypeCache attributeCache, RelationTypeCache relationCache, OseeEnumTypeCache oseeEnumTypeCache) { + this.duringPopulate = false; + this.artifactCache = artifactCache; + this.attributeCache = attributeCache; + this.relationCache = relationCache; + this.oseeEnumTypeCache = oseeEnumTypeCache; + } - public void storeAllModified() throws OseeCoreException { - getEnumTypeCache().storeAllModified(); - getAttributeTypeCache().storeAllModified(); - getArtifactTypeCache().storeAllModified(); - getRelationTypeCache().storeAllModified(); - } + public void storeAllModified() throws OseeCoreException { + getEnumTypeCache().storeAllModified(); + getAttributeTypeCache().storeAllModified(); + getArtifactTypeCache().storeAllModified(); + getRelationTypeCache().storeAllModified(); + } - public synchronized void ensurePopulated() throws OseeCoreException { - if (!duringPopulate) { - duringPopulate = true; - getEnumTypeCache().ensurePopulated(); - getAttributeTypeCache().ensurePopulated(); - getArtifactTypeCache().ensurePopulated(); - getRelationTypeCache().ensurePopulated(); - duringPopulate = false; - } - } + public synchronized void ensurePopulated() throws OseeCoreException { + if (!duringPopulate) { + duringPopulate = true; + getEnumTypeCache().ensurePopulated(); + getAttributeTypeCache().ensurePopulated(); + getArtifactTypeCache().ensurePopulated(); + getRelationTypeCache().ensurePopulated(); + duringPopulate = false; + } + } - public synchronized void clearAll() { - if (!duringPopulate) { - duringPopulate = true; - getEnumTypeCache().decacheAll(); - getAttributeTypeCache().decacheAll(); - getArtifactTypeCache().decacheAll(); - getRelationTypeCache().decacheAll(); - duringPopulate = false; - } - } + public synchronized void clearAll() { + if (!duringPopulate) { + duringPopulate = true; + getEnumTypeCache().decacheAll(); + getAttributeTypeCache().decacheAll(); + getArtifactTypeCache().decacheAll(); + getRelationTypeCache().decacheAll(); + duringPopulate = false; + } + } - public ArtifactTypeCache getArtifactTypeCache() { - return artifactCache; - } + public ArtifactTypeCache getArtifactTypeCache() { + return artifactCache; + } - public AttributeTypeCache getAttributeTypeCache() { - return attributeCache; - } + public AttributeTypeCache getAttributeTypeCache() { + return attributeCache; + } - public OseeEnumTypeCache getEnumTypeCache() { - return oseeEnumTypeCache; - } + public OseeEnumTypeCache getEnumTypeCache() { + return oseeEnumTypeCache; + } - public RelationTypeCache getRelationTypeCache() { - return relationCache; - } + public RelationTypeCache getRelationTypeCache() { + return relationCache; + } } |