com.ibm.as400.access

Class AS400JDBCRowId

  • java.lang.Object
    • com.ibm.as400.access.AS400JDBCRowId
  • All Implemented Interfaces:
    java.io.Serializable


    public class AS400JDBCRowId
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      byte[] getBytes()
      Returns an array of bytes representing the value of the SQL ROWID designated 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 SQL ROWID designated by this java.sql.RowId object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getBytes

        public byte[] getBytes()
        Returns an array of bytes representing the value of the SQL ROWID designated by this java.sql.RowId object.
        Returns:
        an array of bytes, whose length is determined by the driver supplying the connection, representing the value of the ROWID designated by this java.sql.RowId object.
      • toString

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

        Like java.sql.Date.toString() returns the contents of its DATE as the String "2004-03-17" rather than as DATE literal in SQL (which would have been the String DATE "2004-03-17"), toString() returns the contents of its ROWID in a form specific to the driver supplying the connection, and possibly not as a ROWID literal. Toolbox converts RowId bytes to HEX string format.

        Overrides:
        toString in class java.lang.Object
        Returns:
        a String whose format is determined by the driver supplying the connection, representing the value of the ROWID designated by this java.sql.RowId object.
      • hashCode

        public int hashCode()
        Returns a hash code value of this RowId object.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        a hash code for the RowId