org.apache.derby.iapi.services.uuid
Interface UUIDFactory

All Known Implementing Classes:
BasicUUIDFactory

public interface UUIDFactory

Generates and recreates 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 Summary
 UUID createUUID()
          Create a new UUID.
 UUID recreateUUID(byte[] b)
          Recreate a UUID from a byte array produced by UUID.toByteArray.
 UUID recreateUUID(java.lang.String uuidstring)
          Recreate a UUID from a string produced by UUID.toString.
 

Method Detail

createUUID

public UUID createUUID()
Create a new UUID. The resulting object is guaranteed to be unique "across space and time".

Returns:
The UUID.

recreateUUID

public UUID recreateUUID(java.lang.String uuidstring)
Recreate a UUID from a string produced by UUID.toString.

Returns:
The UUID.

recreateUUID

public UUID recreateUUID(byte[] b)
Recreate a UUID from a byte array produced by UUID.toByteArray.

Returns:
The UUID.
See Also:
UUID.toByteArray()

Built on Tue 2006-10-10 19:23:47+0200, from revision exported

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.