// ENHANCEME: This should support restrictive qualifiers on the root entity
@Override
public EOQualifier schemaBasedQualifierWithRootEntity(EOQualifier eoqualifier, EOEntity eoentity) {
EOQualifier result = null;
EOKeyValueQualifier qualifier = (EOKeyValueQualifier)eoqualifier;
String key = qualifier.key();
if(qualifier.selector().name().equals(MatchesAllInArraySelectorName)) {
EOQualifierSQLGeneration.Support support = EOQualifierSQLGeneration.Support.supportForClass(ERXToManyQualifier.class);
NSArray array = (NSArray) qualifier.value();
ERXToManyQualifier q = new ERXToManyQualifier(key, array, array.count() );
result = support.schemaBasedQualifierWithRootEntity(q, eoentity);
return result;
}
return (EOQualifier)eoqualifier.clone();