Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.iapi.services.uuid
Interface UUIDFactory  view UUIDFactory download UUIDFactory.java


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

Method Detail

createUUID

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


recreateUUID

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


recreateUUID

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