Class FBRowId

java.lang.Object
org.firebirdsql.jdbc.FBRowId
All Implemented Interfaces:
RowId

public class FBRowId extends Object implements RowId
Firebird row-id.

This is a thin wrapper around the bytes of a RDB$DB_KEY.

Since:
4.0
Author:
Mark Rotteveel
  • Constructor Details

    • FBRowId

      public FBRowId(byte[] rowIdBytes)
      Creates an FBRowId from the provided byte array.
      Parameters:
      rowIdBytes - Bytes of the row id
  • Method Details

    • toString

      public String toString()
      Specified by:
      toString in interface RowId
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)

      Implementation note: allows for equality with any implementation of RowId.

      Specified by:
      equals in interface RowId
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface RowId
      Overrides:
      hashCode in class Object
    • getBytes

      public byte[] getBytes()

      NOTE: implementation will return a clone of the array.

      Specified by:
      getBytes in interface RowId