* When querying for properties with a null value, and the null value checkbox for a property key is checked, this
* method substitutes <code>NSKeyValueCoding.NullValue</code> into the display group's query dictionaries for that
* property key.
*/
protected void substituteValueForNullableQueryKeys() {
WODisplayGroup displayGroup = displayGroup();
for(Enumeration nullableKeysEnum = nullablePropertyKeys().objectEnumerator(); nullableKeysEnum.hasMoreElements();) {
String key = (String)nullableKeysEnum.nextElement();
Boolean value = (Boolean)keysToQueryForNull.objectForKey(key);
if (Boolean.TRUE.equals(value)) {
displayGroup.queryOperator().takeValueForKey(EOQualifier.stringForOperatorSelector(EOQualifier.QualifierOperatorEqual), key);
if (displayGroup.queryBindings().valueForKey(key) != null) {
displayGroup.queryBindings().takeValueForKey(NSKeyValueCoding.NullValue, key);
} else {
displayGroup.queryMatch().takeValueForKey(NSKeyValueCoding.NullValue, key);
}
}
}
}