| 
WebObjects 5.2.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
  |
  +--com.webobjects.eocontrol.EOGlobalID
        |
        +--com.webobjects.eocontrol.EOTemporaryGlobalID
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.
EOGlobalID, 
Serialized Form| Nested Class Summary | 
| Nested classes inherited from class com.webobjects.foundation.NSCoding | 
NSCoding.Support | 
| Field Summary | |
static int | 
UniqueBinaryKeyLength
The following int constant specifies the length (in bytes) of a
 global ID. | 
| Fields inherited from class com.webobjects.eocontrol.EOGlobalID | 
GlobalIDChangedNotification | 
| Constructor Summary | |
  | 
EOTemporaryGlobalID()
Creates and returns an EOTemporaryGlobalID as a unique instance.  | 
protected  | 
EOTemporaryGlobalID(byte[] globallyUniqueBytes)
Creates and returns an EOTemporaryGlobalID as a unique instance.  | 
| Method Summary | |
static void | 
assignGloballyUniqueBytes(byte[] uniqueBytes)
Assigns to uniqueBytes an array of bytes that
 represent a byte string that's guaranteed to be unique network wide. | 
 Class | 
classForCoder()
Allows the receiver, before being encoded, to substitute a class other than its own in a coder.  | 
static Object | 
decodeObject(NSCoder coder)
 | 
 void | 
encodeWithCoder(NSCoder coder)
Encodes the receiver using coder. | 
 boolean | 
equals(Object object)
Compares the receiver to object. | 
 int | 
hashCode()
Provides an appropriate hash code useful for storing the receiver in a hash-based data structure.  | 
 boolean | 
isTemporary()
Used to find out if the the globalID is temporary or not.  | 
 String | 
toString()
String represntation of an EOTemporaryGlobalID.  | 
| Methods inherited from class com.webobjects.eocontrol.EOGlobalID | 
clone | 
| Methods inherited from class java.lang.Object | 
finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public static final int UniqueBinaryKeyLength
int constant specifies the length (in bytes) of a
 global ID.
| Constructor Detail | 
public EOTemporaryGlobalID()
< Sequence [2], ProcessID [2] , Time [4], IP Addr [4] >
protected EOTemporaryGlobalID(byte[] globallyUniqueBytes)
globallyUniqueBytes - an array of bytes describing a unique id| Method Detail | 
public static void assignGloballyUniqueBytes(byte[] uniqueBytes)
uniqueBytes an array of bytes that
 represent a byte string that's guaranteed to be unique network wide.
 The size of the uniqueBytes array should be at least
 the value of UniqueBinaryKeyLength constant. 
 The returned byte string has the format:
< Sequence [2], ProcessID [2] , Time [4], IP Addr [4] >
EOTemporaryGlobalID, 
UniqueBinaryKeyLengthpublic Class classForCoder()
NSCoding
classForCoder in interface NSCodingpublic static Object decodeObject(NSCoder coder)
public void encodeWithCoder(NSCoder coder)
NSCodingcoder. Object type information along with an
 object's data is stored.
encodeWithCoder in interface NSCodingcoder - an NSCoder object that will be used to encode object of classes that
              implement this interfaceNSCoderpublic boolean equals(Object object)
object. If the contents of object
 are equal to the contents of the receiver, this method returns true. If not,
 it returns false. Two data objects are equal if they hold the same
 number of bytes, if both have the same hash code and if the bytes at the same position
 in the objects are the same.
equals in class EOGlobalIDobject - input object against which the receiver is compared
true if the objects are equal; false otherwisepublic int hashCode()
EOGlobalID
hashCode in class EOGlobalIDint useful for storing the receiver
               in a hash-based data structurepublic boolean isTemporary()
true.
isTemporary in class EOGlobalIDtrueEOGlobalID, 
EOTemporaryGlobalIDpublic String toString()
toString in class Object
  | 
Last updated Mon Oct 13 15:42:52 PDT 2003. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||