Inherited by ERXEOToManyQualifier.

Classes | |
| class | ToManyQualifierSQLGenerationSupport |
Public Member Functions | |
| void | addQualifierKeysToSet (NSMutableSet arg0) |
| Object | clone () |
| NSArray | elements () |
| ERXToManyQualifier (String toManyKey, NSArray elements, int minCount) | |
| ERXToManyQualifier (String toManyKey, NSArray elements) | |
| boolean | evaluateWithObject (Object object) |
| String | key () |
| int | minCount () |
| EOQualifier | qualifierWithBindings (NSDictionary arg0, boolean arg1) |
| String | toString () |
| void | validateKeysWithRootClassDescription (EOClassDescription arg0) |
Static Public Attributes | |
| static final Logger | log = Logger.getLogger(ERXToManyQualifier.class) |
| static final String | MatchesAllInArraySelectorName = "matchesAllInArray" |
Static Package Functions | |
| [static initializer] | |
Private Attributes | |
| NSArray | _elements |
| int | _minCount = 0 |
| String | _toManyKey |
NSArray employees; // given, can be null
// Find all of the departments that have all of those employees
ERXToManyQualifier q = new ERXToManyQualifier("toEmployees", employees);
EOFetchSpecification fs = new EOFetchSpecification("Department", q, null);
NSArray departments = ec.objectsWithFetchSpecification(fs);
If you want to find say departments that have 5 or more of the given employees (imagine you have a list of 10 or so), then you could construct the qualifier like: ERXToManyQualifier q = new ERXToManyQualifier("toEmployees", employees, 5); ERXToManyQualifier q = new ERXToManyQualifier("toEmployees", employees, 1); | ERXToManyQualifier | ( | String | toManyKey, | |
| NSArray | elements | |||
| ) |
| ERXToManyQualifier | ( | String | toManyKey, | |
| NSArray | elements, | |||
| int | minCount | |||
| ) |
| [static initializer] | ( | ) | [static, package] |
register SQL generation support for the qualifier
| void addQualifierKeysToSet | ( | NSMutableSet | arg0 | ) |
| Object clone | ( | ) |
Implementation of the Cloneable interface.
| NSArray elements | ( | ) |
| boolean evaluateWithObject | ( | Object | object | ) |
| String key | ( | ) |
| int minCount | ( | ) |
| EOQualifier qualifierWithBindings | ( | NSDictionary | arg0, | |
| boolean | arg1 | |||
| ) |
| String toString | ( | ) |
Description of the qualfier.
| void validateKeysWithRootClassDescription | ( | EOClassDescription | arg0 | ) |
NSArray _elements [private] |
holds the array of elements
int _minCount = 0 [private] |
holds the min count to match against, defaults to 0
String _toManyKey [private] |
holds the to many key
final String MatchesAllInArraySelectorName = "matchesAllInArray" [static] |
1.5.8