org.apache.derby.catalog
Interface UUID

All Superinterfaces:
java.io.Externalizable, java.io.Serializable
All Known Implementing Classes:
BasicUUID

public interface UUID
extends java.io.Externalizable

An interface for accessing Derby UUIDs, unique identifiers.

The values in the system catalog held in ID columns with a type of CHAR(36) are the string representations of these UUIDs.

A UUID implements equals() and hashCode based on value equality.


Field Summary
static int UUID_BYTE_LENGTH
          UUID_BYTE_LENGTH The number of bytes in the array toByteArray returns.
 
Method Summary
 UUID cloneMe()
          Clone this UUID.
 java.lang.String toANSIidentifier()
          Produce a string representation of this UUID which is suitable for use as a unique ANSI identifier.
 byte[] toByteArray()
          Produce a byte array representation of this UUID which can be passed to UUIDFactory.recreateUUID later on to reconstruct it.
 java.lang.String toHexString()
          Create a hex string representation of this UUID.
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

Field Detail

UUID_BYTE_LENGTH

static final int UUID_BYTE_LENGTH
UUID_BYTE_LENGTH The number of bytes in the array toByteArray returns.

See Also:
Constant Field Values
Method Detail

toANSIidentifier

java.lang.String toANSIidentifier()
Produce a string representation of this UUID which is suitable for use as a unique ANSI identifier.


toByteArray

byte[] toByteArray()
Produce a byte array representation of this UUID which can be passed to UUIDFactory.recreateUUID later on to reconstruct it.


cloneMe

UUID cloneMe()
Clone this UUID.

Returns:
a copy of this UUID

toHexString

java.lang.String toHexString()
Create a hex string representation of this UUID.


Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.