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.RowId
Firebird 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 anFBRowId
from the provided byte array.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
byte[]
getBytes()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejava.sql.RowId
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Implementation note: allows for equality with any implementation of
RowId
.- Specified by:
equals
in interfacejava.sql.RowId
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.sql.RowId
- Overrides:
hashCode
in classjava.lang.Object
-
getBytes
public byte[] getBytes()
NOTE: implementation will return a clone of the array.
- Specified by:
getBytes
in interfacejava.sql.RowId
-
-