diff options
author | donald.g.dunne | 2016-10-13 02:28:17 +0000 |
---|---|---|
committer | donald.g.dunne | 2016-10-13 02:28:17 +0000 |
commit | db1fab9b64eebc2d4de7d5d76ed7c0f252694cb3 (patch) | |
tree | 734ce80d01979647fd43336b4c15d3a110300f7a /plugins/org.eclipse.osee.orcs/src | |
parent | 4667d79569d689bd73bf0e63cc88d6fa84884e01 (diff) | |
download | org.eclipse.osee-db1fab9b64eebc2d4de7d5d76ed7c0f252694cb3.tar.gz org.eclipse.osee-db1fab9b64eebc2d4de7d5d76ed7c0f252694cb3.tar.xz org.eclipse.osee-db1fab9b64eebc2d4de7d5d76ed7c0f252694cb3.zip |
feature[ats_ATS314065]: Convert types and type tokens to long.
Change-Id: I9eb57014468f82a3d0bf97b9044081fddc827602
Diffstat (limited to 'plugins/org.eclipse.osee.orcs/src')
4 files changed, 47 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/OrcsTypes.java b/plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/OrcsTypes.java index 721907df0f7..d04d14df0e2 100644 --- a/plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/OrcsTypes.java +++ b/plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/OrcsTypes.java @@ -27,6 +27,15 @@ import org.eclipse.osee.orcs.data.RelationTypes; */ public interface OrcsTypes { + /** + * e2 stores + */ + public static final String LOAD_OSEE_TYPE_DEF_URIS = + "select uri, attr.attr_id from osee_tuple2 t2, osee_txs txs1, osee_attribute attr, osee_txs txs2 where tuple_type = ? and " // + + "t2.gamma_id = txs1.gamma_id and txs1.branch_id = ? and txs1.tx_current = ? and e1 = ? and e2 = attr.attr_id and " // + + "attr.gamma_id = txs2.gamma_id and txs2.branch_id = txs1.branch_id and txs2.tx_current = ?"; + public static final String LOAD_OSEE_TYPE_VERSIONS = "select distinct e1 from osee_tuple2 where tuple_type = ?"; + ArtifactTypes getArtifactTypes(); AttributeTypes getAttributeTypes(); diff --git a/plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/data/ArtifactReadable.java b/plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/data/ArtifactReadable.java index be7a0b8dec4..1a4427f8f64 100644 --- a/plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/data/ArtifactReadable.java +++ b/plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/data/ArtifactReadable.java @@ -99,4 +99,6 @@ public interface ArtifactReadable extends ArtifactToken, HasLocalId<Integer>, Ha String getRationale(RelationTypeSide typeAndSide, ArtifactReadable readable) throws OseeCoreException; + ResultSet<RelationReadable<Object>> getRelations(RelationTypeSide defaultHierarchicalParent); + } diff --git a/plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/data/AttributeReadable.java b/plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/data/AttributeReadable.java index ee87c17661f..6b5092689c6 100644 --- a/plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/data/AttributeReadable.java +++ b/plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/data/AttributeReadable.java @@ -23,6 +23,7 @@ public interface AttributeReadable<T> extends AttributeId, OrcsReadable { long getGammaId(); + @Override ModificationType getModificationType(); IAttributeType getAttributeType() throws OseeCoreException; diff --git a/plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/data/RelationReadable.java b/plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/data/RelationReadable.java new file mode 100644 index 00000000000..5571466d226 --- /dev/null +++ b/plugins/org.eclipse.osee.orcs/src/org/eclipse/osee/orcs/data/RelationReadable.java @@ -0,0 +1,35 @@ +/******************************************************************************* + * Copyright (c) 2016 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.orcs.data; + +import org.eclipse.osee.framework.core.data.IRelationType; +import org.eclipse.osee.framework.core.data.RelationId; +import org.eclipse.osee.framework.core.enums.ModificationType; +import org.eclipse.osee.framework.jdk.core.type.OseeCoreException; + +/** + * @author Donald G. Dunne + */ +public interface RelationReadable<T> extends RelationId, OrcsReadable { + + long getGammaId(); + + @Override + ModificationType getModificationType(); + + IRelationType getRelationType() throws OseeCoreException; + + boolean isOfType(IRelationType relationType) throws OseeCoreException; + + @Override + String toString(); + +}
\ No newline at end of file |