diff options
Diffstat (limited to 'subprojects/store-query/src/main/java/tools/refinery/store/query/view/RelationView.java')
-rw-r--r-- | subprojects/store-query/src/main/java/tools/refinery/store/query/view/RelationView.java | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/subprojects/store-query/src/main/java/tools/refinery/store/query/view/RelationView.java b/subprojects/store-query/src/main/java/tools/refinery/store/query/view/RelationView.java index 2714a8c5..ea9fd5e2 100644 --- a/subprojects/store-query/src/main/java/tools/refinery/store/query/view/RelationView.java +++ b/subprojects/store-query/src/main/java/tools/refinery/store/query/view/RelationView.java | |||
@@ -21,11 +21,11 @@ import java.util.UUID; | |||
21 | public abstract non-sealed class RelationView<T> implements AnyRelationView { | 21 | public abstract non-sealed class RelationView<T> implements AnyRelationView { |
22 | private final Symbol<T> symbol; | 22 | private final Symbol<T> symbol; |
23 | 23 | ||
24 | private final String name; | 24 | private final String viewName; |
25 | 25 | ||
26 | protected RelationView(Symbol<T> symbol, String name) { | 26 | protected RelationView(Symbol<T> symbol, String viewName) { |
27 | this.symbol = symbol; | 27 | this.symbol = symbol; |
28 | this.name = name; | 28 | this.viewName = viewName; |
29 | } | 29 | } |
30 | 30 | ||
31 | protected RelationView(Symbol<T> representation) { | 31 | protected RelationView(Symbol<T> representation) { |
@@ -38,8 +38,13 @@ public abstract non-sealed class RelationView<T> implements AnyRelationView { | |||
38 | } | 38 | } |
39 | 39 | ||
40 | @Override | 40 | @Override |
41 | public String getViewName() { | ||
42 | return viewName; | ||
43 | } | ||
44 | |||
45 | @Override | ||
41 | public String name() { | 46 | public String name() { |
42 | return symbol.name() + "#" + name; | 47 | return symbol.name() + "#" + viewName; |
43 | } | 48 | } |
44 | 49 | ||
45 | public abstract boolean filter(Tuple key, T value); | 50 | public abstract boolean filter(Tuple key, T value); |
@@ -72,11 +77,11 @@ public abstract non-sealed class RelationView<T> implements AnyRelationView { | |||
72 | if (this == o) return true; | 77 | if (this == o) return true; |
73 | if (o == null || getClass() != o.getClass()) return false; | 78 | if (o == null || getClass() != o.getClass()) return false; |
74 | RelationView<?> that = (RelationView<?>) o; | 79 | RelationView<?> that = (RelationView<?>) o; |
75 | return Objects.equals(symbol, that.symbol) && Objects.equals(name, that.name); | 80 | return Objects.equals(symbol, that.symbol) && Objects.equals(viewName, that.viewName); |
76 | } | 81 | } |
77 | 82 | ||
78 | @Override | 83 | @Override |
79 | public int hashCode() { | 84 | public int hashCode() { |
80 | return Objects.hash(symbol, name); | 85 | return Objects.hash(symbol, viewName); |
81 | } | 86 | } |
82 | } | 87 | } |