PATH |
Inherits from: EOGlobalID
Implements: NSCoding Cloneable
Package: com.webobjects.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 classForCoder decodeObject encodeWithCoder
Creating instances globalIDWithEntityName Getting the entity name entityName Getting the key values keyValues keyCount keyValuesArray Comparison equals
protected EOKeyGlobalID (String entityName, int hashCode)
public static Object decodeObject(NSCoder coder)
public static EOKeyGlobalID globalIDWithEntityName( String entityName, Object[] keyValues)
EOKeyGlobalIDs are more conveniently created using EOEntity's globalIDForRow: method (EOAccess).
public Class classForCoder()
public void encodeWithCoder(NSCoder coder)
public String entityName()
public boolean equals(Object anObject)
See Also: entityName, keyValues
public int hashCode()
public int keyCount()
public Object[] keyValues()
public NSArray keyValuesArray()
public String toString()
© 2001 Apple Computer, Inc. (Last Published April 19, 2001)