Package org.firebirdsql.jdbc
Class FBRowId
- java.lang.Object
-
- org.firebirdsql.jdbc.FBRowId
-
- All Implemented Interfaces:
java.sql.RowId
public final class FBRowId extends java.lang.Object implements java.sql.RowIdFirebird row-id.This is a thin wrapper around the bytes of a
RDB$DB_KEY.- Since:
- 4.0
- Author:
- Mark Rotteveel
-
-
Constructor Summary
Constructors Constructor Description FBRowId(byte[] rowIdBytes)Creates anFBRowIdfrom the provided byte array.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)byte[]getBytes()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfacejava.sql.RowId- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Implementation note: allows for equality with any implementation of
RowId.- Specified by:
equalsin interfacejava.sql.RowId- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.sql.RowId- Overrides:
hashCodein classjava.lang.Object
-
getBytes
public byte[] getBytes()
NOTE: implementation will return a clone of the array.
- Specified by:
getBytesin interfacejava.sql.RowId
-
-