OpenAPI 1.0

com.aquafold.openapi.rdbms
Interface AQSQLRowId


public interface AQSQLRowId

This class describes a SQL ROWID object.


Method Summary
 boolean equal(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 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

equal

boolean equal(Object obj)
Compares this 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.

Parameters:
obj - The Object to compare this RowId object against.
Returns:
true if the RowIds are equal; false otherwise.

getBytes

byte[] getBytes()
Returns an array of bytes representing the value of the SQL ROWID designated by this RowId object.

Returns:
An array of bytes, whose length is determined by the driver supplying the connection, representing the value of the ROWID designated by this java.sql.RowId object.

toString

String toString()
Returns a String representing the value of the SQL ROWID designated by this java.sql.RowId object.

toString() returns the contents of its ROWID in a form specific to the driver supplying the connection, and possibly not as a ROWID literal.

Overrides:
toString in class Object
Returns:
A String whose format is determined by the driver supplying the connection, representing the value of the ROWID designated by this RowId object.

hashCode

int hashCode()
Returns a hash code value of this RowId object.

Overrides:
hashCode in class Object
Returns:
A hash code for the RowId.

OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.