return cachedQualifier;
}
protected Hashtable _uniqueNotQualifiers = new Hashtable();
protected EONotQualifier notQualifierInCache(EONotQualifier q) {
EONotQualifier cachedQualifier = null;
String hashEntryName = nameForSet(q.allQualifierKeys());
Vector v = (Vector)_uniqueNotQualifiers.get(hashEntryName);
if (v != null) {
EOQualifier cache = qualifierContainedInEnumeration(q, v.elements());
if (cache != null)
cachedQualifier = (EONotQualifier)cache;
} else {
v = new Vector();
_uniqueNotQualifiers.put(hashEntryName, v);
}
if (cachedQualifier == null) {
EOQualifier cache = qualifierInCache(q.qualifier());
if (cache != null) {
if (cache == q.qualifier()) {
log.warn("Found sub-qualifier in cache: " + cache + " when qualifier not in cache?!?! " + q);
v.addElement(q);
} else {
// Need to construct a new EONotQualifier with the cached value..
cachedQualifier = new EONotQualifier(cache);
v.addElement(cachedQualifier);
}
} else {
v.addElement(q);
}