Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan E. Cook2016-09-15 18:02:31 +0000
committerdonald.g.dunne2016-09-15 18:02:31 +0000
commit3e7eaded9e12e48f7e08ea545ff879d3372a268a (patch)
tree8cd9964649158e6c41b91e584f4f2731a3a44598 /plugins/org.eclipse.osee.orcs.db
parentde925327aa931f60a2848703330701e8d4708905 (diff)
downloadorg.eclipse.osee-3e7eaded9e12e48f7e08ea545ff879d3372a268a.tar.gz
org.eclipse.osee-3e7eaded9e12e48f7e08ea545ff879d3372a268a.tar.xz
org.eclipse.osee-3e7eaded9e12e48f7e08ea545ff879d3372a268a.zip
feature: Add get BranchView feature values
Change-Id: Icb7eb783d1d75230bb6d2c8ce1a7f1c3051cd346 Signed-off-by: Morgan E. Cook <Morgan.e.cook@boeing.com>
Diffstat (limited to 'plugins/org.eclipse.osee.orcs.db')
-rw-r--r--plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/search/engines/TupleQueryImpl.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/search/engines/TupleQueryImpl.java b/plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/search/engines/TupleQueryImpl.java
index b233dfb106a..ba0dc10cb02 100644
--- a/plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/search/engines/TupleQueryImpl.java
+++ b/plugins/org.eclipse.osee.orcs.db/src/org/eclipse/osee/orcs/db/internal/search/engines/TupleQueryImpl.java
@@ -37,6 +37,9 @@ public class TupleQueryImpl implements TupleQuery {
private static final String SELECT_E2_BY_TUPLE_TYPE =
"select distinct e2, value from osee_txs txs, osee_tuple2 app, osee_key_value where tuple_type = ? and app.gamma_id = txs.gamma_id and branch_id = ? and tx_current = 1 and e2 = key";
+ private static final String SELECT_KEY_VALUE_FROM_BRANCH_VIEW =
+ "SELECT distinct e2, value from osee_tuple2 app, osee_txs txs1, osee_key_value where app.e1 = ? and tuple_type = ? and app.gamma_id = txs1.gamma_id and txs1.branch_id = ? AND txs1.tx_current = 1 and app.e2 = key";
+
private static final String SELECT_TUPLE3_E1_BY_TUPLE_TYPE =
"select distinct e1, value from osee_txs txs, osee_tuple3 app, osee_key_value where tuple_type = ? and app.gamma_id = txs.gamma_id and branch_id = ? and tx_current = 1 and e1 = key";
@@ -85,6 +88,11 @@ public class TupleQueryImpl implements TupleQuery {
}
@Override
+ public <E1, E2> void getTuple2KeyValuePair(Tuple2Type<E1, E2> tupleType, ArtifactId artId, BranchId branchId, BiConsumer<Long, String> consumer) {
+ runQuery(consumer, SELECT_KEY_VALUE_FROM_BRANCH_VIEW, "e2", artId, tupleType, branchId);
+ }
+
+ @Override
public <E1, E2> void getTuple2UniqueE2Pair(Tuple2Type<E1, E2> tupleType, BranchId branchId, BiConsumer<Long, String> consumer) {
runQuery(consumer, SELECT_E2_BY_TUPLE_TYPE, "e2", tupleType, branchId);
}

Back to the top