|
|||||||||
| Home >> All >> org >> apache >> derby >> impl >> services >> [ uuid overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.derby.impl.services.uuid
Class BasicUUID

java.lang.Objectorg.apache.derby.impl.services.uuid.BasicUUID
- All Implemented Interfaces:
- java.io.Externalizable, org.apache.derby.iapi.services.io.Formatable, java.io.Serializable, org.apache.derby.iapi.services.io.TypedFormat, org.apache.derby.catalog.UUID
- public class BasicUUID
- extends java.lang.Object
- implements org.apache.derby.catalog.UUID, org.apache.derby.iapi.services.io.Formatable
- extends java.lang.Object
| Field Summary | |
private long |
majorId
|
private int |
sequence
|
private long |
timemillis
|
| Fields inherited from interface org.apache.derby.catalog.UUID |
UUID_BYTE_LENGTH |
| Constructor Summary | |
BasicUUID()
|
|
BasicUUID(byte[] b)
Constructor only called by BasicUUIDFactory. |
|
BasicUUID(long majorId,
long timemillis,
int sequence)
Constructor only called by BasicUUIDFactory. |
|
BasicUUID(java.lang.String uuidstring)
Constructor only called by BasicUUIDFactory. |
|
| Method Summary | |
org.apache.derby.catalog.UUID |
cloneMe()
Clone this UUID. |
boolean |
equals(java.lang.Object otherObject)
Implement value equality. |
int |
getTypeFormatId()
Return my format identifier. |
int |
hashCode()
Provide a hashCode which is compatible with the equals() method. |
void |
readExternal(java.io.ObjectInput in)
Read this in |
private static long |
readMSB(java.io.StringReader sr)
Read a long value, msb first, from its character representation in the string reader, using '-' or end of string to delimit. |
java.lang.String |
stringWorkhorse(char separator)
Private workhorse of the string making routines. |
java.lang.String |
toANSIidentifier()
Produce a string representation of this UUID which is suitable for use as a unique ANSI identifier. |
byte[] |
toByteArray()
Store this UUID in a byte array. |
java.lang.String |
toHexString()
Create a hex string representation of this UUID. |
java.lang.String |
toString()
Produce a string representation of this UUID which can be passed to UUIDFactory.recreateUUID later on to reconstruct it. |
void |
writeExternal(java.io.ObjectOutput out)
Write this out. |
private static void |
writeMSB(char[] data,
int offset,
long value,
int nbytes)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
majorId
private long majorId
timemillis
private long timemillis
sequence
private int sequence
| Constructor Detail |
BasicUUID
public BasicUUID(long majorId,
long timemillis,
int sequence)
- Constructor only called by BasicUUIDFactory.
BasicUUID
public BasicUUID(java.lang.String uuidstring)
- Constructor only called by BasicUUIDFactory.
Constructs a UUID from the string representation
produced by toString.
BasicUUID
public BasicUUID(byte[] b)
- Constructor only called by BasicUUIDFactory.
Constructs a UUID from the byte array representation
produced by toByteArrayio.
BasicUUID
public BasicUUID()
| Method Detail |
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Write this out.
- Specified by:
writeExternalin interfacejava.io.Externalizable
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException
- Read this in
- Specified by:
readExternalin interfacejava.io.Externalizable
getTypeFormatId
public int getTypeFormatId()
- Return my format identifier.
- Specified by:
getTypeFormatIdin interfaceorg.apache.derby.iapi.services.io.TypedFormat
writeMSB
private static void writeMSB(char[] data,
int offset,
long value,
int nbytes)
readMSB
private static long readMSB(java.io.StringReader sr)
- Read a long value, msb first, from its character
representation in the string reader, using '-' or
end of string to delimit.
equals
public boolean equals(java.lang.Object otherObject)
- Implement value equality.
hashCode
public int hashCode()
- Provide a hashCode which is compatible with
the equals() method.
toString
public java.lang.String toString()
- Produce a string representation of this UUID which
can be passed to UUIDFactory.recreateUUID later on
to reconstruct it. The funny representation is
designed to (sort of) match the format of Microsoft's
UUIDGEN utility.
toANSIidentifier
public java.lang.String toANSIidentifier()
- Produce a string representation of this UUID which
is suitable for use as a unique ANSI identifier.
- Specified by:
toANSIidentifierin interfaceorg.apache.derby.catalog.UUID
stringWorkhorse
public java.lang.String stringWorkhorse(char separator)
- Private workhorse of the string making routines.
toByteArray
public byte[] toByteArray()
- Store this UUID in a byte array. Arrange the bytes in the UUID
in the same order the code which stores a UUID in a string
does.
- Specified by:
toByteArrayin interfaceorg.apache.derby.catalog.UUID
cloneMe
public org.apache.derby.catalog.UUID cloneMe()
- Clone this UUID.
- Specified by:
cloneMein interfaceorg.apache.derby.catalog.UUID
toHexString
public java.lang.String toHexString()
- Description copied from interface:
org.apache.derby.catalog.UUID - Create a hex string representation of this UUID.
- Specified by:
toHexStringin interfaceorg.apache.derby.catalog.UUID
|
|||||||||
| Home >> All >> org >> apache >> derby >> impl >> services >> [ uuid overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.derby.impl.services.uuid.BasicUUID