- Inherits from:
- (com.apple.client.eocontrol) EOGlobalID : Object
(com.apple.yellow.eocontrol) EOGlobalID : NSObject
- Implements:
- (com.apple.client.eocontrol only) NSCoding
- (com.apple.client.eocontrol only) Cloneable
- Package:
- com.apple.client.eocontrol
- com.apple.yellow.eocontrol
EOKeyGlobalID is a concrete subclass of EOGlobalID whose instances
represent persistent IDs based on EOModel information: an entity
and the primary key values for the object being identified. When creating
an EOKeyGlobalID, the key values must be supplied following alphabetical
order for their attribute names. EOKeyGlobalID defines the globalIDWithEntityName for creating
instances, but it's much more convenient to create instances from
fetched rows using EOEntity's globalIDForRow method. (EOEntity
and EOModel are defined in EOAccess.) Note that you don't use
a constructor to create EOKeyGlobalIDs.
NSCoding (com.apple.client.eocontrol only)
classForCoderencodeWithCoder
- Creating instances
- globalIDWithEntityName
- Getting the entity name
- entityName
- Getting the key values
- keyValues
- keyCount
- keyValuesArray
- Comparison
- equals
public static EOKeyGlobalID globalIDWithEntityName(
String entityName,
NSArray keyValues)
EOKeyGlobalIDs
are more conveniently created using EOEntity's globalIDForRow method
(EOAccess).
public String entityName()
faultForGlobalID.public boolean equals(Object anObject)
true if the
receiver and anObject share the same
entity name and key values, false if they
don't. See Also: entityName, keyValues
public int hashCode()
public int keyCount()
public Object[] keyValues()
public NSArray keyValuesArray()