public class ERXEOGlobalIDUtilities
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ERXEOGlobalIDUtilities.Info
Unencrypts the byte array of NSData PKs so you get the process number or port,
host and timestamp.
|
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
log
logging support
|
| Constructor and Description |
|---|
ERXEOGlobalIDUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static EOKeyGlobalID |
createGlobalID(java.lang.String entityName,
java.lang.Object[] values) |
static NSMutableArray |
fetchObjectsWithGlobalIDs(EOEditingContext ec,
NSArray globalIDs)
Fetches an array of objects defined by the globalIDs in a single fetch per entity without
refreshing refetched objects.
|
static NSMutableArray |
fetchObjectsWithGlobalIDs(EOEditingContext ec,
NSArray globalIDs,
boolean refreshesRefetchedObjects)
Fetches an array of objects defined by the globalIDs in a single fetch per entity.
|
static EOEnterpriseObject |
fetchObjectWithGlobalID(EOEditingContext ec,
EOGlobalID gid)
Fetches an object defined by gid without refreshing refetched objects.
|
static NSArray |
fireFaultsForGlobalIDs(EOEditingContext ec,
NSArray globalIDs)
Fires all faults in the given global IDs on one batch.
|
static NSArray |
fireFaultsForGlobalIDs(EOEditingContext ec,
NSArray globalIDs,
NSArray prefetchingKeypaths)
Fires all faults in the given global IDs on one batch together with their relationships.
|
static NSDictionary |
globalIDsGroupedByEntityName(NSArray globalIDs)
Groups an array of global IDs by their entity name.
|
static NSArray<EOGlobalID> |
globalIDsWithPrimaryKeyValues(java.lang.String entityName,
NSArray<java.lang.Object> values)
Translates an array of single-value raw primary values to EOGlobalIDs.
|
static NSArray<java.lang.Object> |
primaryKeyValuesWithGlobalIDs(NSArray<EOGlobalID> globalIDs)
Translates an array of
EOGlobalID to primary key values. |
public static NSDictionary globalIDsGroupedByEntityName(NSArray globalIDs)
globalIDs - public static NSArray<java.lang.Object> primaryKeyValuesWithGlobalIDs(NSArray<EOGlobalID> globalIDs)
EOGlobalID to primary key values. Returns null if the given
global IDs are not EOKeyValueGlobalIDs and the primary keys are not single values.globalIDs - public static NSArray<EOGlobalID> globalIDsWithPrimaryKeyValues(java.lang.String entityName, NSArray<java.lang.Object> values)
entityName - values - public static EOEnterpriseObject fetchObjectWithGlobalID(EOEditingContext ec, EOGlobalID gid)
ec - the editing context to fetch withingid - the global id to fetchpublic static NSMutableArray fetchObjectsWithGlobalIDs(EOEditingContext ec, NSArray globalIDs)
ec - the editing context to fetch withinglobalIDs - the global ids to fetchpublic static NSMutableArray fetchObjectsWithGlobalIDs(EOEditingContext ec, NSArray globalIDs, boolean refreshesRefetchedObjects)
ec - the editing context to fetch withinglobalIDs - the global ids to fetchrefreshesRefetchedObjects - whether or not to refresh refetched objectspublic static NSArray fireFaultsForGlobalIDs(EOEditingContext ec, NSArray globalIDs, NSArray prefetchingKeypaths)
ec - globalIDs - prefetchingKeypaths - public static NSArray fireFaultsForGlobalIDs(EOEditingContext ec, NSArray globalIDs)
ec - globalIDs - public static EOKeyGlobalID createGlobalID(java.lang.String entityName, java.lang.Object[] values)
Copyright © 2002 – 2022 Project Wonder.