Documentation Comments
Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.
Reality V15.0 ()
: Class RealSQLResultSet (RealSQL-JDBC) (realsqlresultset.html)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.northgateis.reality.realsql.RealSQLResultSet
The RealSQLResultSet class is an implementation of the JDBC 2.0 ResultSet interface.
On instantiation the previously prepared statement is executed by the database server. If this was an update statement, the total number of rows affected is retrieved and processing is complete. Alternatively if the statement generated a resultset, a new thread is spawned with the job of fetching all of the rows from the database and storing for later retrieval. The fetch thread will terminate when either all of the rows in the resultset have been retrieved, or if the statement is cancelled part way through its operation.
Because the fetch operation runs in a separate thread, the ResultSet object can be returned to the client prior to its completion. This allows the client to start processing those rows which have been returned. If the client processes the rows faster than the fetch thread, the client will hang during execution of the next() method until that row has been retrieved.
ResultSet
Method Summary | |
boolean
|
absolute(int row)
Not supported by the RealSQL-JDBC driver. |
protected void
|
addWarning(java.sql.SQLWarning msg)
Adds a new warning message to the SQLWarnings chain. |
void
|
afterLast()
Not supported by the RealSQL-JDBC driver. |
void
|
beforeFirst()
Not supported by the RealSQL-JDBC driver. |
void
|
cancelRowUpdates()
Not supported by the RealSQL-JDBC driver. |
void
|
clearWarnings()
After this call getWarnings returns null until a new warning is reported for this ResultSet. |
void
|
close()
Releases this ResultSet object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed. |
void
|
complete()
Indicates that the retrieval of all rows in the ResultSet is complete. |
void
|
deleteRow()
Not supported by the RealSQL-JDBC driver. |
protected void
|
finalize()
Ensures that the statement resources at the server are released if this object is garbage collected without a prior call to the close method. |
int
|
findColumn(java.lang.String cname)
Finds the column index in ResultSet for a given column name. |
boolean
|
first()
Not supported by the RealSQL-JDBC driver. |
java.sql.Array
|
getArray(int column)
Not supported by the RealSQL-JDBC driver. |
java.sql.Array
|
getArray(java.lang.String cname)
Not supported by the RealSQL-JDBC driver. |
java.io.InputStream
|
getAsciiStream(int column)
Not supported by the RealSQL-JDBC driver. |
java.io.InputStream
|
getAsciiStream(java.lang.String cname)
Not supported by the RealSQL-JDBC driver. |
java.math.BigDecimal
|
getBigDecimal(int column)
JDBC 2.0 Get the value of a column in the current row as a java.math.BigDecimal object with full precision. |
java.math.BigDecimal
|
getBigDecimal(int column,
int scale)
Deprecated. |
java.math.BigDecimal
|
getBigDecimal(java.lang.String cname)
JDBC 2.0 Gets the value of a column in the current row as a java.math.BigDecimal object with full precision. |
java.math.BigDecimal
|
getBigDecimal(java.lang.String cname,
int scale)
Deprecated. |
java.io.InputStream
|
getBinaryStream(int column)
Not supported by the RealSQL-JDBC driver. |
java.io.InputStream
|
getBinaryStream(java.lang.String cname)
Not supported by the RealSQL-JDBC driver. |
java.sql.Blob
|
getBlob(int column)
Not supported by the RealSQL-JDBC driver. |
java.sql.Blob
|
getBlob(java.lang.String cname)
Not supported by the RealSQL-JDBC driver. |
boolean
|
getBoolean(int column)
Gets the value of a column in the current row as a Java boolean. |
boolean
|
getBoolean(java.lang.String cname)
Get the value of a column in the current row as a Java boolean. |
byte
|
getByte(int column)
Get the value of a column in the current row as a Java byte. |
byte
|
getByte(java.lang.String cname)
Gets the value of a column in the current row as a Java byte. |
byte[]
|
getBytes(int column)
Not supported by the RealSQL-JDBC driver. |
byte[]
|
getBytes(java.lang.String cname)
Not supported by the RealSQL-JDBC driver. |
java.io.Reader
|
getCharacterStream(int column)
Not supported by the RealSQL-JDBC driver. |
java.io.Reader
|
getCharacterStream(java.lang.String cname)
Not supported by the RealSQL-JDBC driver. |
java.sql.Clob
|
getClob(int column)
Not supported by the RealSQL-JDBC driver. |
java.sql.Clob
|
getClob(java.lang.String cname)
Not supported by the RealSQL-JDBC driver. |
int
|
getConcurrency()
Not supported by the RealSQL-JDBC driver. |
java.lang.String
|
getCursorName()
Not supported by the RealSQL-JDBC driver. |
java.sql.Date
|
getDate(int column)
Get the value of a column in the current row as a java.sql.Date object. |
java.sql.Date
|
getDate(int column,
java.util.Calendar cal)
Get the value of a column in the current row as a java.sql.Date object. |
java.sql.Date
|
getDate(java.lang.String cname)
Gets the value of a column in the current row as a java.sql.Date object. |
java.sql.Date
|
getDate(java.lang.String cname,
java.util.Calendar cal)
Gets the value of a column in the current row as a java.sql.Date object. |
double
|
getDouble(int column)
Get the value of a column in the current row as a Java double. |
double
|
getDouble(java.lang.String cname)
Gets the value of a column in the current row as a Java double. |
int
|
getFetchDirection()
JDBC 2.0 Returns the fetch direction for this result set. |
int
|
getFetchSize()
JDBC 2.0 Returns the fetch size for this result set. |
float
|
getFloat(int column)
Get the value of a column in the current row as a Java float. |
float
|
getFloat(java.lang.String cname)
Gets the value of a column in the current row as a Java float. |
int
|
getInt(int column)
Get the value of a column in the current row as a Java int. |
int
|
getInt(java.lang.String cname)
Gets the value of a column in the current row as a Java int. |
long
|
getLong(int column)
Get the value of a column in the current row as a Java long. |
long
|
getLong(java.lang.String cname)
Gets the value of a column in the current row as a Java long. |
java.sql.ResultSetMetaData
|
getMetaData()
Get the number, types and properties of a ResultSet's columns. |
java.lang.Object
|
getObject(int column)
Get the value of a column in the current row as a Java object. |
java.lang.Object
|
getObject(int column,
java.util.Map types)
Not supported by the RealSQL-JDBC driver. |
java.lang.Object
|
getObject(java.lang.String cname)
Gets the value of a column in the current row as a Java object. |
java.lang.Object
|
getObject(java.lang.String cname,
java.util.Map types)
Not supported by the RealSQL-JDBC driver. |
java.sql.Ref
|
getRef(int column)
Not supported by the RealSQL-JDBC driver. |
java.sql.Ref
|
getRef(java.lang.String cname)
Not supported by the RealSQL-JDBC driver. |
int
|
getRow()
JDBC 2.0 Get the current row number. |
protected int
|
getRowCount()
Get the update count, this is only valid if the last SQL statement executed caused an update to occur on the database. |
short
|
getShort(int column)
Get the value of a column in the current row as a Java short. |
short
|
getShort(java.lang.String cname)
Gets the value of a column in the current row as a Java short. |
java.sql.Statement
|
getStatement()
JDBC 2.0 Returns the Statement that produced this ResultSet object. |
java.lang.String
|
getString(int column)
Get the value of a column in the current row as a Java String. |
java.lang.String
|
getString(java.lang.String cname)
Gets the value of a column in the current row as a Java String. |
java.sql.Time
|
getTime(int column)
Gets the value of a column in the current row as a java.sql.Time object. |
java.sql.Time
|
getTime(int column,
java.util.Calendar cal)
Gets the value of a column in the current row as a java.sql.Time object. |
java.sql.Time
|
getTime(java.lang.String cname)
Gets the value of a column in the current row as a java.sql.Time object. |
java.sql.Time
|
getTime(java.lang.String cname,
java.util.Calendar cal)
Gets the value of a column in the current row as a java.sql.Time object. |
java.sql.Timestamp
|
getTimestamp(int column)
Gets the value of a column in the current row as a java.sql.Timestamp object. |
java.sql.Timestamp
|
getTimestamp(int column,
java.util.Calendar cal)
Gets the value of a column in the current row as a java.sql.Timestamp object. |
java.sql.Timestamp
|
getTimestamp(java.lang.String cname)
Gets the value of a column in the current row as a java.sql.Timestamp object. |
java.sql.Timestamp
|
getTimestamp(java.lang.String cname,
java.util.Calendar cal)
Gets the value of a column in the current row as a java.sql.Timestamp object. |
int
|
getType()
JDBC 2.0 Returns the type of this result set. |
java.io.InputStream
|
getUnicodeStream(int column)
Deprecated. use getCharacterStream() |
java.io.InputStream
|
getUnicodeStream(java.lang.String cname)
Deprecated. use the getCharacterStream() |
java.sql.SQLWarning
|
getWarnings()
The first warning reported by calls on this ResultSet is returned. |
void
|
insertRow()
Not supported by the RealSQL-JDBC driver. |
boolean
|
isAfterLast()
Not supported by the RealSQL-JDBC driver. |
boolean
|
isBeforeFirst()
Not supported by the RealSQL-JDBC driver. |
protected boolean
|
isClosed()
|
boolean
|
isFirst()
Not supported by the RealSQL-JDBC driver. |
boolean
|
isLast()
Not supported by the RealSQL-JDBC driver. |
boolean
|
last()
Not supported by the RealSQL-JDBC driver. |
void
|
moveToCurrentRow()
Not supported by the RealSQL-JDBC driver. |
void
|
moveToInsertRow()
Not supported by the RealSQL-JDBC driver. |
boolean
|
next()
Moves to the next row of data for processing. |
boolean
|
previous()
Not supported by the RealSQL-JDBC driver. |
void
|
refreshRow()
Not supported by the RealSQL-JDBC driver. |
boolean
|
relative(int count)
Not supported by the RealSQL-JDBC driver. |
boolean
|
rowDeleted()
Not supported by the RealSQL-JDBC driver. |
boolean
|
rowInserted()
Not supported by the RealSQL-JDBC driver. |
boolean
|
rowUpdated()
Not supported by the RealSQL-JDBC driver. |
void
|
setFetchDirection(int dir)
JDBC 2.0 Gives a hint as to the direction in which the rows in this result set will be processed. |
void
|
setFetchSize(int unused)
Not supported by the RealSQL-JDBC driver. |
void
|
updateAsciiStream(int col,
java.io.InputStream is,
int len)
Not supported by the RealSQL-JDBC driver. |
void
|
updateAsciiStream(java.lang.String cname,
java.io.InputStream is,
int len)
Not supported by the RealSQL-JDBC driver. |
void
|
updateBigDecimal(int column,
java.math.BigDecimal d)
Not supported by the RealSQL-JDBC driver. |
void
|
updateBigDecimal(java.lang.String cname,
java.math.BigDecimal d)
Not supported by the RealSQL-JDBC driver. |
void
|
updateBinaryStream(int column,
java.io.InputStream is,
int len)
Not supported by the RealSQL-JDBC driver. |
void
|
updateBinaryStream(java.lang.String cname,
java.io.InputStream is,
int len)
Not supported by the RealSQL-JDBC driver. |
void
|
updateBlob(int column,
java.sql.Blob b)
Not supported by the RealSQL-JDBC driver. |
void
|
updateBoolean(int column,
boolean b)
Not supported by the RealSQL-JDBC driver. |
void
|
updateBoolean(java.lang.String cname,
boolean b)
Not supported by the RealSQL-JDBC driver. |
void
|
updateByte(int column,
byte b)
Not supported by the RealSQL-JDBC driver. |
void
|
updateByte(java.lang.String cname,
byte b)
Not supported by the RealSQL-JDBC driver. |
void
|
updateBytes(int column,
byte[] data)
Not supported by the RealSQL-JDBC driver. |
void
|
updateBytes(java.lang.String cname,
byte[] b)
Not supported by the RealSQL-JDBC driver. |
void
|
updateCharacterStream(int column,
java.io.Reader in,
int len)
Not supported by the RealSQL-JDBC driver. |
void
|
updateCharacterStream(java.lang.String cname,
java.io.Reader r,
int len)
Not supported by the RealSQL-JDBC driver. |
void
|
updateDate(int column,
java.sql.Date d)
Not supported by the RealSQL-JDBC driver. |
void
|
updateDate(java.lang.String cname,
java.sql.Date d)
Not supported by the RealSQL-JDBC driver. |
void
|
updateDouble(int column,
double d)
Not supported by the RealSQL-JDBC driver. |
void
|
updateDouble(java.lang.String cname,
double d)
Not supported by the RealSQL-JDBC driver. |
void
|
updateFloat(int column,
float f)
Not supported by the RealSQL-JDBC driver. |
void
|
updateFloat(java.lang.String cname,
float f)
Not supported by the RealSQL-JDBC driver. |
void
|
updateInt(int column,
int x)
Not supported by the RealSQL-JDBC driver. |
void
|
updateInt(java.lang.String cname,
int x)
Not supported by the RealSQL-JDBC driver. |
void
|
updateLong(int column,
long l)
Not supported by the RealSQL-JDBC driver. |
void
|
updateLong(java.lang.String cname,
long l)
Not supported by the RealSQL-JDBC driver. |
void
|
updateNull(int column)
Not supported by the RealSQL-JDBC driver. |
void
|
updateNull(java.lang.String cname)
Not supported by the RealSQL-JDBC driver. |
void
|
updateObject(int column,
java.lang.Object ob)
Not supported by the RealSQL-JDBC driver. |
void
|
updateObject(int column,
java.lang.Object ob,
int scale)
Not supported by the RealSQL-JDBC driver. |
void
|
updateObject(java.lang.String cname,
java.lang.Object ob)
Not supported by the RealSQL-JDBC driver. |
void
|
updateObject(java.lang.String cname,
java.lang.Object ob,
int scale)
Not supported by the RealSQL-JDBC driver. |
void
|
updateRow()
Not supported by the RealSQL-JDBC driver. |
void
|
updateShort(int column,
short s)
Not supported by the RealSQL-JDBC driver. |
void
|
updateShort(java.lang.String cname,
short s)
Not supported by the RealSQL-JDBC driver. |
void
|
updateString(int column,
java.lang.String str)
Not supported by the RealSQL-JDBC driver. |
void
|
updateString(java.lang.String cname,
java.lang.String str)
Not supported by the RealSQL-JDBC driver. |
void
|
updateTime(int column,
java.sql.Time t)
Not supported by the RealSQL-JDBC driver. |
void
|
updateTime(java.lang.String cname,
java.sql.Time t)
Not supported by the RealSQL-JDBC driver. |
void
|
updateTimestamp(int column,
java.sql.Timestamp ts)
Not supported by the RealSQL-JDBC driver. |
void
|
updateTimestamp(java.lang.String cname,
java.sql.Timestamp ts)
Not supported by the RealSQL-JDBC driver. |
boolean
|
wasNull()
Reports whether the last column read had a value of SQL NULL. |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
protected void finalize() throws java.sql.SQLException
public boolean absolute(int row) throws java.sql.SQLException
JDBC 2.0 Positions the result set to an absolute position relative to either the beginning or end of the result set.
row
- positive indicates the absolute row number from the
start, negative indicates the absolute row number from the end.public void afterLast() throws java.sql.SQLException
JDBC 2.0 Moves the result set to after the last row.
public void beforeFirst() throws java.sql.SQLException
JDBC 2.0 Moves the result set to before the first row.
public void cancelRowUpdates() throws java.sql.SQLException
JDBC 2.0 Cancels the updates made to a row.
public void clearWarnings() throws java.sql.SQLException
public void close() throws java.sql.SQLException
public void deleteRow() throws java.sql.SQLException
JDBC 2.0 Deletes the current row from the result set and the underlying database.
public int findColumn(java.lang.String cname) throws java.sql.SQLException
columnname
- the name of the column.public boolean first() throws java.sql.SQLException
JDBC 2.0 Moves the cursor to the first row in the result set.
public java.sql.Array getArray(java.lang.String cname) throws java.sql.SQLException
JDBC 2.0 Gets an SQL ARRAY value from the current row of this ResultSet object.
cname
- the name of the desired columnpublic java.sql.Array getArray(int column) throws java.sql.SQLException
JDBC 2.0 Gets an SQL ARRAY value from the current row of this ResultSet object.
column
- the number of the desired columnpublic java.io.InputStream getAsciiStream(int column) throws java.sql.SQLException
Gets the value of a column in the current row as a stream of ASCII characters.
column
- the column number for the desired columnpublic java.io.InputStream getAsciiStream(java.lang.String cname) throws java.sql.SQLException
Gets the value of a column in the current row as a stream of ASCII characters.
cname
- the name of the desired columnpublic java.math.BigDecimal getBigDecimal(int column) throws java.sql.SQLException
column
- the column number of the desired column.public java.math.BigDecimal getBigDecimal(int column, int scale) throws java.sql.SQLException
column
- the column number of the desired columnscale
- the scale with which the BigDecimal should be constructedpublic java.math.BigDecimal getBigDecimal(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the column being soughtpublic java.math.BigDecimal getBigDecimal(java.lang.String cname, int scale) throws java.sql.SQLException
cname
- the name of the column being soughtscale
- the scale with which the BigDecimal should be constructedpublic java.io.InputStream getBinaryStream(int column) throws java.sql.SQLException
Gets the value of a column in the current row as a stream of uninterpreted bytes.
column
- the number of the desired columnpublic java.io.InputStream getBinaryStream(java.lang.String cname) throws java.sql.SQLException
Gets the value of a column in the current row as a stream of uninterpreted bytes.
cname
- the name of the desired columnpublic java.sql.Blob getBlob(java.lang.String cname) throws java.sql.SQLException
JDBC 2.0 Gets a BLOB value in the current row of this ResultSet object.
column
- the number of the desired columnpublic java.sql.Blob getBlob(int column) throws java.sql.SQLException
JDBC 2.0 Gets a BLOB value in the current row of this ResultSet object.
column
- the number of the desired columnpublic boolean getBoolean(int column) throws java.sql.SQLException
Reality does not support the boolean data type, but supports the operation by returning false for values=0 or values=null and true for values>0.
columnIndex
- the first column is 1, the second is 2, ...public boolean getBoolean(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic byte getByte(int column) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...public byte getByte(java.lang.String cname) throws java.sql.SQLException
The driver does not currently support this operation, and will throw an SQLException.
cname
- the name of the desired columnpublic byte[] getBytes(int column) throws java.sql.SQLException
Get the value of a column in the current row as a Java byte array.
columnIndex
- the first column is 1, the second is 2, ...public byte[] getBytes(java.lang.String cname) throws java.sql.SQLException
Gets the value of a column in the current row as a Java byte array.
cname
- the name of the desired columnpublic java.io.Reader getCharacterStream(java.lang.String cname) throws java.sql.SQLException
JDBC 2.0 Gets the value of a column in the current row as a java.io.Reader.
cname
- the name of the desired columnpublic java.io.Reader getCharacterStream(int column) throws java.sql.SQLException
JDBC 2.0 Gets the value of a column in the current row as a java.io.Reader.
column
- the number of the desired columnpublic java.sql.Clob getClob(java.lang.String cname) throws java.sql.SQLException
JDBC 2.0 Gets a CLOB value in the current row of this ResultSet object.
cname
- the name of the desired columnpublic java.sql.Clob getClob(int column) throws java.sql.SQLException
JDBC 2.0 Gets a CLOB value in the current row of this ResultSet object.
column
- the number of the desired columnpublic int getConcurrency() throws java.sql.SQLException
JDBC 2.0 Returns the concurrency mode of this result set.
public java.lang.String getCursorName() throws java.sql.SQLException
Gets the name of the SQL cursor used by this ResultSet.
public java.sql.Date getDate(int column) throws java.sql.SQLException
column
- the number of desired columnpublic java.sql.Date getDate(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.sql.Date getDate(int column, java.util.Calendar cal) throws java.sql.SQLException
column
- the number of desired columncal
- the Calendar to use in constructing the datepublic java.sql.Date getDate(java.lang.String cname, java.util.Calendar cal) throws java.sql.SQLException
cname
- the name of the desired columncal
- the Calendar to use in constructing the Datepublic double getDouble(int column) throws java.sql.SQLException
column
- the number of the desired columnpublic double getDouble(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic int getFetchDirection() throws java.sql.SQLException
public int getFetchSize() throws java.sql.SQLException
public float getFloat(int column) throws java.sql.SQLException
column
- the number of the desired columnpublic float getFloat(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic int getInt(int column) throws java.sql.SQLException
column
- the number of the desired columnpublic int getInt(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic long getLong(int column) throws java.sql.SQLException
column
- the number of the desired columnpublic long getLong(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
public java.lang.Object getObject(int column) throws java.sql.SQLException
column
- the number of the desired columnConnection.getTypeMap()
public java.lang.Object getObject(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnConnection.getTypeMap()
public java.lang.Object getObject(java.lang.String cname, java.util.Map types) throws java.sql.SQLException
JDBC 2.0 Returns the value of a column in the current row as a Java object.
cname
- the name of the desired columnConnection.getTypeMap()
public java.lang.Object getObject(int column, java.util.Map types) throws java.sql.SQLException
JDBC 2.0 Returns the value of a column in the current row as a Java object.
column
- the number of the desired columnConnection.getTypeMap()
public java.sql.Ref getRef(java.lang.String cname) throws java.sql.SQLException
JDBC 2.0 Gets a REF(
RealSQL-JDBC does not currently support referencescname
- the name of the desired column
public java.sql.Ref getRef(int column) throws java.sql.SQLException
JDBC 2.0 Gets a REF(column
- the desired column number
public int getRow() throws java.sql.SQLException
public short getShort(int column) throws java.sql.SQLException
column
- the number of the desired columnpublic short getShort(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.sql.Statement getStatement() throws java.sql.SQLException
public java.lang.String getString(int column) throws java.sql.SQLException
col
- the column number of the desired columnpublic java.lang.String getString(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.sql.Time getTime(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.sql.Time getTime(int column) throws java.sql.SQLException
column
- the number of the desired columnpublic java.sql.Time getTime(java.lang.String cname, java.util.Calendar cal) throws java.sql.SQLException
cname
- the name of the desired columncal
- the Calendar to use in creating the Time objectpublic java.sql.Time getTime(int column, java.util.Calendar cal) throws java.sql.SQLException
column
- the number of the desired columncal
- the Calendar to use in creating the Time objectpublic java.sql.Timestamp getTimestamp(java.lang.String cname) throws java.sql.SQLException
cname
- the name of the desired columnpublic java.sql.Timestamp getTimestamp(int column) throws java.sql.SQLException
column
- the number of the desired columnpublic java.sql.Timestamp getTimestamp(java.lang.String cname, java.util.Calendar cal) throws java.sql.SQLException
cname
- the name of the desired columncal
- this is currently ignoredpublic java.sql.Timestamp getTimestamp(int column, java.util.Calendar cal) throws java.sql.SQLException
column
- the number of the desired columnc
- this is currently ignoredpublic int getType() throws java.sql.SQLException
public java.io.InputStream getUnicodeStream(int column) throws java.sql.SQLException
Gets the value of a column in the current row as a stream of Unicode characters.
column
- the number of the desired columnpublic java.io.InputStream getUnicodeStream(java.lang.String cname) throws java.sql.SQLException
Gets the value of a column in the current row as a stream of Unicode characters.
cname
- the name of the desired columnpublic java.sql.SQLWarning getWarnings() throws java.sql.SQLException
public void insertRow() throws java.sql.SQLException
JDBC 2.0 Inserts the contents of the insert row into the result set and the database.
public boolean isAfterLast() throws java.sql.SQLException
JDBC 2.0 Indicates whether the cursor is after the last row in the result set.
public boolean isBeforeFirst() throws java.sql.SQLException
JDBC 2.0 Indicates whether the cursor is before the first row in the result set.
public boolean isFirst() throws java.sql.SQLException
JDBC 2.0 Indicates whether the cursor is on the first row of the result set.
public boolean isLast() throws java.sql.SQLException
JDBC 2.0 JDBC 2.0 Indicates whether the cursor is on the last row of the result set.
public boolean last() throws java.sql.SQLException
JDBC 2.0 Indicates whether the cursor is on the last row of the result set.
public void moveToCurrentRow() throws java.sql.SQLException
JDBC 2.0 Moves the cursor to the remembered cursor position, usually the current row.
public void moveToInsertRow() throws java.sql.SQLException
JDBC 2.0 Moves the cursor to the insert row.
public boolean next() throws java.sql.SQLException
public boolean previous() throws java.sql.SQLException
JDBC 2.0 Moves the cursor to the previous row in the result set.
public void refreshRow() throws java.sql.SQLException
JDBC 2.0 Refreshes the current row with its most recent value in the database.
This method is a NO-OP. Implementing classes should extend this.
public boolean relative(int count) throws java.sql.SQLException
JDBC 2.0 Moves the cursor a relative number of rows, either positive or negative.
count
- the number of rows to move forwardpublic boolean rowDeleted() throws java.sql.SQLException
JDBC 2.0 Indicates whether a row has been deleted.
public boolean rowInserted() throws java.sql.SQLException
JDBC 2.0 Indicates whether the current row has had an insertion.
public boolean rowUpdated() throws java.sql.SQLException
JDBC 2.0 Indicates whether the current row has been updated.
public void setFetchDirection(int dir) throws java.sql.SQLException
If the direction is not FETCH_FORWARD the method throws an exception.
dir
- the directionpublic void setFetchSize(int unused) throws java.sql.SQLException
JDBC 2.0 Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed for this result set.
unused
- the suggested fetch sizepublic void updateAsciiStream(int col, java.io.InputStream is, int len) throws java.sql.SQLException
JDBC 2.0 Updates a column with an ascii stream value.
column
- the column number for the updateis
- the stream to update the column withlen
- the length of the streampublic void updateAsciiStream(java.lang.String cname, java.io.InputStream is, int len) throws java.sql.SQLException
JDBC 2.0 Updates a column with an ascii stream value.
column
- the name of the column to updateis
- the stream to update the column withlen
- the length of the streampublic void updateBigDecimal(int column, java.math.BigDecimal d) throws java.sql.SQLException
JDBC 2.0 Updates a column with a BigDecimal value.
column
- the column number for the updated
- the value to use in the updatepublic void updateBigDecimal(java.lang.String cname, java.math.BigDecimal d) throws java.sql.SQLException
JDBC 2.0 Updates a column with a BigDecimal value.
column
- the name of the column to updated
- the value to use in the updatepublic void updateBinaryStream(int column, java.io.InputStream is, int len) throws java.sql.SQLException
JDBC 2.0 Updates a column with a binary stream value.
column
- the column number for the updateis
- the stream to update the column withlen
- the length of the streampublic void updateBinaryStream(java.lang.String cname, java.io.InputStream is, int len) throws java.sql.SQLException
JDBC 2.0 Updates a column with a binary stream value.
column
- the name of the column to updateis
- the stream to update the column withlen
- the length of the streampublic void updateBlob(int column, java.sql.Blob b) throws java.sql.SQLException
JDBC 2.0 Performs an in-place modification of a Blob column
.
column
- the name of the column to updateb
- the Blob valuepublic void updateBoolean(int column, boolean b) throws java.sql.SQLException
JDBC 2.0 Updates a column with a boolean value.
column
- the column number for the updateb
- the value to use in the updatepublic void updateBoolean(java.lang.String cname, boolean b) throws java.sql.SQLException
JDBC 2.0 Updates a column with a boolean value.
column
- the name of the column to updateb
- the value to use in the updatepublic void updateByte(int column, byte b) throws java.sql.SQLException
JDBC 2.0 Updates a column with a byte value.
column
- the column number for the updateb
- the value to use in the updatepublic void updateByte(java.lang.String cname, byte b) throws java.sql.SQLException
JDBC 2.0 Updates a column with a byte value.
column
- the name of the column to updateb
- the value to use in the updatepublic void updateBytes(int column, byte[] data) throws java.sql.SQLException
JDBC 2.0 Updates a column with a byte array value.
column
- the column number for the updatedata
- the value to use in the updatepublic void updateBytes(java.lang.String cname, byte[] b) throws java.sql.SQLException
JDBC 2.0 Updates a column with a byte array value.
column
- the name of the column to updateb
- the value to use in the updatepublic void updateCharacterStream(int column, java.io.Reader in, int len) throws java.sql.SQLException
JDBC 2.0 Updates a column with a character stream value.
column
- the column number for the updatein
- the reader to use for the updatelen
- the length of the streampublic void updateCharacterStream(java.lang.String cname, java.io.Reader r, int len) throws java.sql.SQLException
JDBC 2.0 Updates a column with a character stream value.
column
- the name of the column to updater
- the reader to use for the updatelen
- the length of the streampublic void updateDate(int column, java.sql.Date d) throws java.sql.SQLException
JDBC 2.0 Updates a column with a Date value.
column
- the column number for the updated
- the value to use in the updatepublic void updateDate(java.lang.String cname, java.sql.Date d) throws java.sql.SQLException
JDBC 2.0 Updates a column with a Date value.
column
- the name of the column to updated
- the value to use in the updatepublic void updateDouble(int column, double d) throws java.sql.SQLException
JDBC 2.0 Updates a column with a Double value.
column
- the column number for the updated
- the value to use in the updatepublic void updateDouble(java.lang.String cname, double d) throws java.sql.SQLException
JDBC 2.0 Updates a column with a Double value.
column
- the name of the column to updated
- the value to use in the updatepublic void updateFloat(int column, float f) throws java.sql.SQLException
JDBC 2.0 Updates a column with a float value.
column
- the column number for the updatef
- the value to use in the updatepublic void updateFloat(java.lang.String cname, float f) throws java.sql.SQLException
JDBC 2.0 Updates a column with a float value.
column
- the name of the column to updatef
- the value to use in the updatepublic void updateInt(int column, int x) throws java.sql.SQLException
JDBC 2.0 Updates a column with a integer value.
column
- the column number for the updatex
- the value to use in the updatepublic void updateInt(java.lang.String cname, int x) throws java.sql.SQLException
JDBC 2.0 Updates a column with a integer value.
column
- the name of the column to updatex
- the value to use in the updatepublic void updateLong(int column, long l) throws java.sql.SQLException
JDBC 2.0 Updates a column with a long value.
column
- the column number for the updatel
- the value to use in the updatepublic void updateLong(java.lang.String cname, long l) throws java.sql.SQLException
JDBC 2.0 Updates a column with a long value.
column
- the name of the column to updatel
- the value to use in the updatepublic void updateNull(int column) throws java.sql.SQLException
JDBC 2.0 Updates a column with a null value.
column
- the column number for the updatepublic void updateNull(java.lang.String cname) throws java.sql.SQLException
JDBC 2.0 Updates a column with a null value.
cname
- the name of the column to be updatedpublic void updateObject(int column, java.lang.Object ob) throws java.sql.SQLException
JDBC 2.0 Updates a column with a Object value.
column
- the column number for the updateob
- the value to use in the updatepublic void updateObject(int column, java.lang.Object ob, int scale) throws java.sql.SQLException
JDBC 2.0 Updates a column with a Object value.
column
- the column number for the updateob
- the value to use in the updatescale
- the scale to use for numeric typespublic void updateObject(java.lang.String cname, java.lang.Object ob) throws java.sql.SQLException
JDBC 2.0 Updates a column with a Object value.
column
- the name of the column to updateob
- the value to use in the updatepublic void updateObject(java.lang.String cname, java.lang.Object ob, int scale) throws java.sql.SQLException
JDBC 2.0 Updates a column with a Object value.
column
- the name of the column to updateob
- the value to use in the updatescale
- the scale for numeric typespublic void updateRow() throws java.sql.SQLException
JDBC 2.0 Updates the underlying database with the new contents of the current row.
public void updateShort(int column, short s) throws java.sql.SQLException
JDBC 2.0 Updates a column with a short value.
column
- the column number for the updates
- the value to use in the updatepublic void updateShort(java.lang.String cname, short s) throws java.sql.SQLException
JDBC 2.0 Updates a column with a Object value.
column
- the name of the column to updates
- the value to use in the updatepublic void updateString(int column, java.lang.String str) throws java.sql.SQLException
JDBC 2.0 Updates a column with a String value.
column
- the column number for the updatestr
- the value to use in the updatepublic void updateString(java.lang.String cname, java.lang.String str) throws java.sql.SQLException
JDBC 2.0 Updates a column with a String value.
column
- the name of the column to updatestr
- the value to use in the updatepublic void updateTime(int column, java.sql.Time t) throws java.sql.SQLException
JDBC 2.0 Updates a column with a Time value.
column
- the column number for the updatet
- the value to use in the updatepublic void updateTime(java.lang.String cname, java.sql.Time t) throws java.sql.SQLException
JDBC 2.0 Updates a column with a Time value.
column
- the name of the column to updatet
- the value to use in the updatepublic void updateTimestamp(int column, java.sql.Timestamp ts) throws java.sql.SQLException
JDBC 2.0 Updates a column with a Timestamp value.
column
- the column number for the updatets
- the value to use in the updatepublic void updateTimestamp(java.lang.String cname, java.sql.Timestamp ts) throws java.sql.SQLException
JDBC 2.0 Updates a column with a Time value.
column
- the name of the column to updatets
- the value to use in the updatepublic boolean wasNull() throws java.sql.SQLException
public void complete()
protected void addWarning(java.sql.SQLWarning msg)
msg
- new SQLWarning exceptionprotected int getRowCount()
protected boolean isClosed()
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |