|
Préférences
Moteurs de recherche
|
||||||||||
| JavaTM 2 Platform Std. Ed. v1.6.0
java.sql
|
|||||||||||
| 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. |
| Method Detail |
|---|
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.
obj - the Object to compare this RowId object
against.
RowIds are equal; false otherwiseObject.hashCode(),
Hashtablebyte[] getBytes()
ROWID
designated by this java.sql.RowId object.
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.
ROWID designated
by this java.sql.RowId object.int hashCode()
RowId object.
RowIdObject.equals(java.lang.Object),
Hashtable