
Public Member Functions | |
| boolean | clearFault (Object obj) |
| void | registerRelationshipCacheEntries (String entityName, String relationshipName, NSDictionary entries) |
Private Member Functions | |
| NSDictionary | relationshipCacheEntriesForEntity (String entityName, String relationshipName) |
Private Attributes | |
| NSMutableDictionary | cache = new NSMutableDictionary() |
Static Private Attributes | |
| static final Logger | log = Logger.getLogger(ERXArrayFaultCache.class) |
The idea is that instead of batch-faulting you could fetch all the entries for a given to-many relationship in one fetch (as raw rows), group them in memory and register the faults here. Then you set up your EODatabaseContext delegate to use this object to try and clear the fault first.
| boolean clearFault | ( | Object | obj | ) |
Attempts to clear a fault by looking up the source global id and faulting in the corresponding destination values.
| obj |
| void registerRelationshipCacheEntries | ( | String | entityName, | |
| String | relationshipName, | |||
| NSDictionary | entries | |||
| ) |
Register the to-many faults by entity name and relationship name. The entries are a dictionary where the key is the source EOGlobalID for the relationship and the values are arrays of global IDs for the destination.
| entityName | ||
| relationshipName | ||
| entries |
| NSDictionary relationshipCacheEntriesForEntity | ( | String | entityName, | |
| String | relationshipName | |||
| ) | [private] |
NSMutableDictionary cache = new NSMutableDictionary() [private] |
final Logger log = Logger.getLogger(ERXArrayFaultCache.class) [static, private] |
1.5.8