Serializable
, RowId
public class AS400JDBCRowId extends Object implements RowId, Serializable
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object obj) |
Compares this
RowId to the specified object. |
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. |
String |
toString() |
Returns a String representing the value of the SQL ROWID designated by this
java.sql.RowId object. |
public boolean equals(Object obj)
RowId
to the specified object. The result is
true
if and only if the argument is not null and is a RowId
object that represents the same ROWID as this object.
It is important
to consider both the origin and the valid lifetime of a RowId
when comparing it to another RowId
. If both are valid, and
both are from the same table on the same data source, then if they are equal
they identify
the same row; if one or more is no longer guaranteed to be valid, or if
they originate from different data sources, or different tables on the
same data source, they may be equal but still
not identify the same row.
public byte[] getBytes()
ROWID
designated by this java.sql.RowId
object.public String toString()
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.
Copyright © 2024. All rights reserved.