|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecter.extensions.eof.ERXEOGlobalIDUtilities
public class ERXEOGlobalIDUtilities
Utilities that help with batch loading sets of global IDs.
Nested Class Summary | |
---|---|
static class |
ERXEOGlobalIDUtilities.Info
Unencrypts the byte array of NSData PKs so you get the process number or port, host and timestamp. |
Field Summary | |
---|---|
static org.apache.log4j.Logger |
log
logging support |
Constructor Summary | |
---|---|
ERXEOGlobalIDUtilities()
|
Method Summary | |
---|---|
static com.webobjects.eocontrol.EOKeyGlobalID |
createGlobalID(java.lang.String entityName,
java.lang.Object[] values)
|
static com.webobjects.foundation.NSMutableArray |
fetchObjectsWithGlobalIDs(com.webobjects.eocontrol.EOEditingContext ec,
com.webobjects.foundation.NSArray globalIDs)
Fetches an array of objects defined by the globalIDs in a single fetch per entity without refreshing refetched objects. |
static com.webobjects.foundation.NSMutableArray |
fetchObjectsWithGlobalIDs(com.webobjects.eocontrol.EOEditingContext ec,
com.webobjects.foundation.NSArray globalIDs,
boolean refreshesRefetchedObjects)
Fetches an array of objects defined by the globalIDs in a single fetch per entity. |
static com.webobjects.eocontrol.EOEnterpriseObject |
fetchObjectWithGlobalID(com.webobjects.eocontrol.EOEditingContext ec,
com.webobjects.eocontrol.EOGlobalID gid)
Fetches an object defined by gid without refreshing refetched objects. |
static com.webobjects.foundation.NSArray |
fireFaultsForGlobalIDs(com.webobjects.eocontrol.EOEditingContext ec,
com.webobjects.foundation.NSArray globalIDs)
Fires all faults in the given global IDs on one batch. |
static com.webobjects.foundation.NSArray |
fireFaultsForGlobalIDs(com.webobjects.eocontrol.EOEditingContext ec,
com.webobjects.foundation.NSArray globalIDs,
com.webobjects.foundation.NSArray prefetchingKeypaths)
Fires all faults in the given global IDs on one batch together with their relationships. |
static com.webobjects.foundation.NSDictionary |
globalIDsGroupedByEntityName(com.webobjects.foundation.NSArray globalIDs)
Groups an array of global IDs by their entity name. |
static com.webobjects.foundation.NSArray<com.webobjects.eocontrol.EOGlobalID> |
globalIDsWithPrimaryKeyValues(java.lang.String entityName,
com.webobjects.foundation.NSArray<java.lang.Object> values)
Translates an array of single-value raw primary values to EOGlobalIDs. |
static com.webobjects.foundation.NSArray<java.lang.Object> |
primaryKeyValuesWithGlobalIDs(com.webobjects.foundation.NSArray<com.webobjects.eocontrol.EOGlobalID> globalIDs)
Translates an array of EOGlobalID to primary key values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.log4j.Logger log
Constructor Detail |
---|
public ERXEOGlobalIDUtilities()
Method Detail |
---|
public static com.webobjects.foundation.NSDictionary globalIDsGroupedByEntityName(com.webobjects.foundation.NSArray globalIDs)
globalIDs
- public static com.webobjects.foundation.NSArray<java.lang.Object> primaryKeyValuesWithGlobalIDs(com.webobjects.foundation.NSArray<com.webobjects.eocontrol.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 com.webobjects.foundation.NSArray<com.webobjects.eocontrol.EOGlobalID> globalIDsWithPrimaryKeyValues(java.lang.String entityName, com.webobjects.foundation.NSArray<java.lang.Object> values)
entityName
- values
- public static com.webobjects.eocontrol.EOEnterpriseObject fetchObjectWithGlobalID(com.webobjects.eocontrol.EOEditingContext ec, com.webobjects.eocontrol.EOGlobalID gid)
ec
- the editing context to fetch withingid
- the global id to fetch
public static com.webobjects.foundation.NSMutableArray fetchObjectsWithGlobalIDs(com.webobjects.eocontrol.EOEditingContext ec, com.webobjects.foundation.NSArray globalIDs)
ec
- the editing context to fetch withinglobalIDs
- the global ids to fetch
public static com.webobjects.foundation.NSMutableArray fetchObjectsWithGlobalIDs(com.webobjects.eocontrol.EOEditingContext ec, com.webobjects.foundation.NSArray globalIDs, boolean refreshesRefetchedObjects)
ec
- the editing context to fetch withinglobalIDs
- the global ids to fetchrefreshesRefetchedObjects
- whether or not to refresh refetched objects
public static com.webobjects.foundation.NSArray fireFaultsForGlobalIDs(com.webobjects.eocontrol.EOEditingContext ec, com.webobjects.foundation.NSArray globalIDs, com.webobjects.foundation.NSArray prefetchingKeypaths)
ec
- globalIDs
- prefetchingKeypaths
- public static com.webobjects.foundation.NSArray fireFaultsForGlobalIDs(com.webobjects.eocontrol.EOEditingContext ec, com.webobjects.foundation.NSArray globalIDs)
ec
- globalIDs
- public static com.webobjects.eocontrol.EOKeyGlobalID createGlobalID(java.lang.String entityName, java.lang.Object[] values)
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |