Class Hierarchy    Previous  Next  Index

Interface COM.cloudscape.system.UUIDFactory


public interface UUIDFactory
Copyright © 1998-2000, Informix Software, Inc. All rights reserved.

The UUIDFactory generates and recreates universally unique identifiers. An example of such an identifier is:

E4900B90-DA0E-11d0-BAFE-0060973F0942
These resemble DCE UUIDs, but use a different implementation.

The string format is designed to be the same as the string format produced by Microsoft's UUIDGEN program, although at present the bit fields are probably not the same.


Method Index

 o createUUID()
Create a new UUID.
 o recreateUUID(byte[])
Recreate a UUID from a byte array produced by UUID.toByteArray.
 o recreateUUID(long, long, int)
Recreate a UUID from 2 longs and an int.
 o recreateUUID(String)
Recreate a UUID from a string produced by UUID.toString.

Method Detail

 o createUUID
public UUID createUUID()
          Create a new UUID. The resulting object is guaranteed to be unique "across space and time".
Returns:
The UUID.
 o recreateUUID
public UUID recreateUUID(java.lang.String uuidstring)
          Recreate a UUID from a string produced by UUID.toString.
Returns:
The UUID.
 o recreateUUID
public UUID recreateUUID(byte b[])
          Recreate a UUID from a byte array produced by UUID.toByteArray.
Returns:
The UUID.
See Also:
toByteArray
 o recreateUUID
public UUID recreateUUID(long firstLong,
                         long secondLong,
                         int firstInt)
          Recreate a UUID from 2 longs and an int.
Parameters:
firstLong -
secondLong -
firstInt -
Returns:
The UUID.

  Class Hierarchy    Previous  Next  Index