Package net.sourceforge.jtds.jdbc
Class UniqueIdentifier
java.lang.Object
net.sourceforge.jtds.jdbc.UniqueIdentifier
This class encapsulates the MS SQL2000 UniqueIdentifer data type.
- Version:
- $Id: UniqueIdentifier.java,v 1.4 2005-04-28 14:29:30 alin_sinpalean Exp $
- Author:
- Mike Hutchinson.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUniqueIdentifier
(byte[] id) Construct a unique identifier with the supplied byte array. -
Method Summary
-
Field Details
-
bytes
private final byte[] bytes
-
-
Constructor Details
-
UniqueIdentifier
public UniqueIdentifier(byte[] id) Construct a unique identifier with the supplied byte array.
-
-
Method Details
-
getBytes
public byte[] getBytes()Retrieve the unique identifier as a byte array.- Returns:
- The unique identifier as a
byte[]
.
-
toString
Retrieve the unique identifier as a formatted string.Format is NNNNNNNN-NNNN-NNNN-NNNN-NNNNNNNNNNNN.
-