Documentation Archive Developer
Search
PATH Documentation > WebObjects

Table of Contents

EOTemporaryGlobalID


Inherits from:
EOGlobalID
Implements:
NSCoding
Package:
com.webobjects.eocontrol


Class Description


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.




Constants


EOTemporaryGlobalID defines the following int constant to specify the length (in bytes) of a global ID:



Interfaces Implemented


NSCoding
classForCoder
decodeObject
encodeWithCoder


Constructors



EOTemporaryGlobalID

public EOTemporaryGlobalID()

Creates and returns an EOTemporaryGlobalID as a unique instance. The returned object contains a byte string 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. The returned byte string has the format:


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

protected EOTemporaryGlobalID(byte[] globallyUniqueBytes)

Description forthcoming.


Static Methods



assignGloballyUniqueBytes

public static void assignGloballyUniqueBytes(byte[] uniqueBytes)

Description forthcoming.

decodeObject

public static Object decodeObject(NSCoder coder)

Conformance to NSCoding.


Instance Methods



classForCoder

public Class classForCoder()

Conformance to NSCoding.

encodeWithCoder

public void encodeWithCoder(NSCoder coder)

Conformance to NSCoding.

equals

public boolean equals(Object anObject)

Description forthcoming.

hashCode

public int hashCode()

Description forthcoming.

isTemporary

public boolean isTemporary()

Returns true.

toString

public String toString()

Description forthcoming.

© 2001 Apple Computer, Inc. (Last Published April 19, 2001)


Table of Contents