ca.idms.jdbc
Class IdmsRowId

java.lang.Object
  extended by ca.idms.jdbc.IdmsRowId
All Implemented Interfaces:
java.sql.RowId

public class IdmsRowId
extends java.lang.Object
implements java.sql.RowId

Represents a JDBC RowId type. CA IDMS r16 and later supports a ROWID type, equivalent to a BINARY(8) column. This class is an encapsulation of ROWID.

Since:
CA IDMS Server r17
Version:
1.00, 07/14/2008
Author:
Dave Hearn

Method Summary
 boolean equals(java.lang.Object o)
          Compares this RowId to the specified object.
 byte[] getBytes()
          Returns an array of bytes representing the value of the IDMS ROWID encapsulated by this java.sql.RowId object.
 int hashCode()
          Returns a hash code value of this RowId object.
 java.lang.String toString()
          Returns a String representing the value of the IDMS ROWID designated by this java.sql.RowId object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

equals

public boolean equals(java.lang.Object o)
Compares this RowId to the specified object. The result is true if the argument is not null, is a RowId object or byte array, and that it represents the same IDMS ROWID as this object.

Specified by:
equals in interface java.sql.RowId
Overrides:
equals in class java.lang.Object
Returns:
true if equal, otherwise false
Since:
1.6

getBytes

public byte[] getBytes()
Returns an array of bytes representing the value of the IDMS ROWID encapsulated by this java.sql.RowId object.

Specified by:
getBytes in interface java.sql.RowId
Returns:
array of bytes
Since:
1.6

hashCode

public int hashCode()
Returns a hash code value of this RowId object.

Specified by:
hashCode in interface java.sql.RowId
Overrides:
hashCode in class java.lang.Object
Returns:
hash code
Since:
1.6

toString

public java.lang.String toString()
Returns a String representing the value of the IDMS ROWID designated by this java.sql.RowId object.

Specified by:
toString in interface java.sql.RowId
Overrides:
toString in class java.lang.Object
Returns:
String in which a byte represents each hex nybble
Since:
1.6


Copyright © 2009 CA, All rights reserved