|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.as400.access.AS400JDBCRowId
public class AS400JDBCRowId
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
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.
equals
in interface RowId
equals
in class Object
obj
- the Object
to compare this RowId
object
against.
RowId
s are equal; false otherwisepublic byte[] getBytes()
ROWID
designated by this java.sql.RowId
object.
getBytes
in interface RowId
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.
toString
in interface RowId
toString
in class Object
ROWID
designated
by this java.sql.RowId
object.public int hashCode()
RowId
object.
hashCode
in interface RowId
hashCode
in class Object
RowId
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |