net.sourceforge.jtds.jdbc
Class UniqueIdentifier
java.lang.Object
net.sourceforge.jtds.jdbc.UniqueIdentifier
public class UniqueIdentifier
extends java.lang.Object
This class encapsulates the MS SQL2000 UniqueIdentifer data type.
$Id: UniqueIdentifier.java,v 1.4 2005/04/28 14:29:30 alin_sinpalean Exp $
UniqueIdentifier(byte[] id) - Construct a unique identifier with the supplied byte array.
|
byte[] | getBytes() - Retrieve the unique identifier as a byte array.
|
String | toString() - Retrieve the unique identifier as a formatted string.
|
bytes
private final byte[] bytes
UniqueIdentifier
public UniqueIdentifier(byte[] id)
Construct a unique identifier with the supplied byte array.
getBytes
public byte[] getBytes()
Retrieve the unique identifier as a byte array.
- The unique identifier as a
byte[]
.
toString
public String toString()
Retrieve the unique identifier as a formatted string.
Format is NNNNNNNN-NNNN-NNNN-NNNN-NNNNNNNNNNNN.
- The uniqueidentifier as a
String
.
Generated on June 12 2008