Documentation Archive Developer
Search
PATH  WebObjects 4.0 Documentation > EOControl Reference



EOTemporaryGlobalID

Inherits From:
EOGlobalID : NSObject

Conforms To: NSCoding
NSCopying (EOGlobalID)
NSObject (NSObject)

Declared in: EOControl/EOGlobalID.h

An EOTemporaryGlobalID object identifies a newly created enterprise object before it's saved to an external store. When the object is saved, the temporary ID is converted to a permanent one, as described in the EOGlobalID class specification.


Adopted Protocols

NSCoding
- encodeWithCoder:
- initWithCoder:


assignGloballyUniqueBytes:

+ (void)assignGloballyUniqueBytes:(unsigned char *)buffer

Assigns a network-wide unique ID of the format:

< Sequence [2], ProcessID [2] , Time [4], IP Addr [4] >

buffer should have space for EOUniqueBinaryKeyLength (12) bytes.


init

- (id)init

Initializes a newly allocated EOTemporaryGlobalID as a unique instance. The new temporary global ID contains a byte string obtained from assignGloballyUniqueBytes: that's guaranteed to be unique network-wide. As a result, EOTemporaryGlobalIDs can be safely passed between processes and machines while still preserving global uniqueness.

buffer should have space for EOUniqueBinaryKeyLength (12) bytes.


isTemporary

- (BOOL)isTemporary

Returns YES.





Copyright © 1998, Apple Computer, Inc. All rights reserved.