summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2006-11-01 23:56:09 +0000
committerBrian S. O'Neill <bronee@gmail.com>2006-11-01 23:56:09 +0000
commitb4a9bf75b0cc0d22e123f2dd60441ece09d6d48e (patch)
tree6434bca7280b5f4f601f8d190604cde1882b2d8f /src
parent509ead46d1819828233af574114b07b11610d4e7 (diff)
Use internal join property correctly (undos and fixes change from 180)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/amazon/carbonado/qe/IndexedQueryAnalyzer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/amazon/carbonado/qe/IndexedQueryAnalyzer.java b/src/main/java/com/amazon/carbonado/qe/IndexedQueryAnalyzer.java
index ac9952f..6e87c7a 100644
--- a/src/main/java/com/amazon/carbonado/qe/IndexedQueryAnalyzer.java
+++ b/src/main/java/com/amazon/carbonado/qe/IndexedQueryAnalyzer.java
@@ -247,10 +247,10 @@ public class IndexedQueryAnalyzer<S extends Storable> {
// Make up a filter over the join's internal properties and then search
// for an index that filters with no remainder.
- Filter<?> filter = Filter.getOpenFilter((Class<? extends Storable>) property.getType());
+ Filter<?> filter = Filter.getOpenFilter(property.getEnclosingType());
int count = property.getJoinElementCount();
for (int i=0; i<count; i++) {
- filter = filter.and(property.getExternalJoinElement(i).getName(), RelOp.EQ);
+ filter = filter.and(property.getInternalJoinElement(i).getName(), RelOp.EQ);
}
// Java generics are letting me down. I cannot use proper specification