Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Version:
  $Id: UniqueIdentifier.java,v 1.4 2005/04/28 14:29:30 alin_sinpalean Exp $
Author:
  Mike Hutchinson.

Field Summary
`private byte[]` | `bytes`

Constructor Summary
`UniqueIdentifier(byte[] id)` Construct a unique identifier with the supplied byte array.

Method Summary
`byte[]` | `getBytes()` Retrieve the unique identifier as a byte array.
`java.lang.String` | `toString()` Retrieve the unique identifier as a formatted string.

Methods inherited from class java.lang.Object
`, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait`

Field Detail

### bytes

    private final byte[] bytes

Constructor Detail

### UniqueIdentifier

    public UniqueIdentifier(byte[] id)

  Construct a unique identifier with the supplied byte array.

Method Detail

### getBytes

    public byte[] getBytes()

  Retrieve the unique identifier as a byte array.
  Returns:
    The unique identifier as a `byte[]`.

### toString

    public java.lang.String toString()

  Retrieve the unique identifier as a formatted string.

  Format is NNNNNNNN-NNNN-NNNN-NNNN-NNNNNNNNNNNN.

  Overrides:
    `toString` in class `java.lang.Object`
  Returns:
    The uniqueidentifier as a `String`.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Generated on August 22 2007