diff options
Diffstat (limited to 'subprojects/store-query/src/main/java/tools')
-rw-r--r-- | subprojects/store-query/src/main/java/tools/refinery/store/query/EmptyResultSet.java | 7 | ||||
-rw-r--r-- | subprojects/store-query/src/main/java/tools/refinery/store/query/ResultSet.java | 6 |
2 files changed, 6 insertions, 7 deletions
diff --git a/subprojects/store-query/src/main/java/tools/refinery/store/query/EmptyResultSet.java b/subprojects/store-query/src/main/java/tools/refinery/store/query/EmptyResultSet.java index 9af73bdd..4c8eeab0 100644 --- a/subprojects/store-query/src/main/java/tools/refinery/store/query/EmptyResultSet.java +++ b/subprojects/store-query/src/main/java/tools/refinery/store/query/EmptyResultSet.java | |||
@@ -3,7 +3,7 @@ package tools.refinery.store.query; | |||
3 | import tools.refinery.store.map.Cursor; | 3 | import tools.refinery.store.map.Cursor; |
4 | import tools.refinery.store.map.Cursors; | 4 | import tools.refinery.store.map.Cursors; |
5 | import tools.refinery.store.query.dnf.Query; | 5 | import tools.refinery.store.query.dnf.Query; |
6 | import tools.refinery.store.tuple.TupleLike; | 6 | import tools.refinery.store.tuple.Tuple; |
7 | 7 | ||
8 | public record EmptyResultSet<T>(ModelQueryAdapter adapter, Query<T> query) implements ResultSet<T> { | 8 | public record EmptyResultSet<T>(ModelQueryAdapter adapter, Query<T> query) implements ResultSet<T> { |
9 | @Override | 9 | @Override |
@@ -17,13 +17,12 @@ public record EmptyResultSet<T>(ModelQueryAdapter adapter, Query<T> query) imple | |||
17 | } | 17 | } |
18 | 18 | ||
19 | @Override | 19 | @Override |
20 | public T get(TupleLike parameters) { | 20 | public T get(Tuple parameters) { |
21 | return query.defaultValue(); | 21 | return query.defaultValue(); |
22 | } | 22 | } |
23 | 23 | ||
24 | |||
25 | @Override | 24 | @Override |
26 | public Cursor<TupleLike, T> getAll() { | 25 | public Cursor<Tuple, T> getAll() { |
27 | return Cursors.empty(); | 26 | return Cursors.empty(); |
28 | } | 27 | } |
29 | 28 | ||
diff --git a/subprojects/store-query/src/main/java/tools/refinery/store/query/ResultSet.java b/subprojects/store-query/src/main/java/tools/refinery/store/query/ResultSet.java index 3f6bc06f..2758c74f 100644 --- a/subprojects/store-query/src/main/java/tools/refinery/store/query/ResultSet.java +++ b/subprojects/store-query/src/main/java/tools/refinery/store/query/ResultSet.java | |||
@@ -2,12 +2,12 @@ package tools.refinery.store.query; | |||
2 | 2 | ||
3 | import tools.refinery.store.map.Cursor; | 3 | import tools.refinery.store.map.Cursor; |
4 | import tools.refinery.store.query.dnf.Query; | 4 | import tools.refinery.store.query.dnf.Query; |
5 | import tools.refinery.store.tuple.TupleLike; | 5 | import tools.refinery.store.tuple.Tuple; |
6 | 6 | ||
7 | public non-sealed interface ResultSet<T> extends AnyResultSet { | 7 | public non-sealed interface ResultSet<T> extends AnyResultSet { |
8 | Query<T> getQuery(); | 8 | Query<T> getQuery(); |
9 | 9 | ||
10 | T get(TupleLike parameters); | 10 | T get(Tuple parameters); |
11 | 11 | ||
12 | Cursor<TupleLike, T> getAll(); | 12 | Cursor<Tuple, T> getAll(); |
13 | } | 13 | } |