public abstract class JRResultSet extends Object implements ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE| Constructor and Description |
|---|
JRResultSet()
Constructs an uninitialized JRResultSet.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
absolute(int row)
JDBC 2.0
|
void |
afterLast()
JDBC 2.0
|
void |
beforeFirst()
JDBC 2.0
|
void |
cancelRowUpdates()
JDBC 2.0
The cancelRowUpdates() method may be called after calling an
updateXXX() method(s) and before calling updateRow() to rollback
the updates made to a row.
|
void |
clearWarnings()
Clears all the SQLWarnings after the calling getWarnings returns null.
|
abstract void |
close()
Closes the JResultSet and releases the resources.
|
void |
deleteRow()
JDBC 2.0
Deletes the current row from the result set and the underlying
database.
|
int |
findColumn(String columnName)
Maps a name of a column to a column index.
|
boolean |
first()
JDBC 2.0
|
Array |
getArray(int i)
JDBC 2.0
Gets an array column.
|
Array |
getArray(String colName)
JDBC 2.0
Gets an array column.
|
InputStream |
getAsciiStream(int columnIndex)
Gets the value of a column in the current row as a stream of ASCII characters,
and then this column value can be read in chunks from the this stream.
|
InputStream |
getAsciiStream(String columnName)
Gets the value of a column in the current row as a stream of ASCII characters
and then the value of the column can be read in chunks from this stream.
|
BigDecimal |
getBigDecimal(int columnIndex)
JDBC 2.0
Gets the value of a column in the current row as a java.math.BigDecimal
object.
|
abstract BigDecimal |
getBigDecimal(int columnIndex,
int scale)
Gets the value of a column in the current row as a java.lang.BigDecimal object.
|
BigDecimal |
getBigDecimal(String columnName)
JDBC 2.0
Gets the value of a column in the current row as a java.math.BigDecimal
object.
|
BigDecimal |
getBigDecimal(String columnName,
int scale)
Gets the value of a column in the current row as a java.lang.BigDecimal object.
|
abstract InputStream |
getBinaryStream(int columnIndex)
Gets the value of a column in the current row as a stream of uninterpreted bytes, then this
column value can be read in chunks from the this stream.
|
InputStream |
getBinaryStream(String columnName)
Gets the value of a column in the current row as a stream of uninterpreted bytes
and then the value of the column can be read in chunks from this stream.
|
Blob |
getBlob(int i)
JDBC 2.0
Gets a BLOB column.
|
Blob |
getBlob(String colName)
JDBC 2.0
Gets a BLOB column.
|
abstract boolean |
getBoolean(int columnIndex)
Gets the value of a column in the current row as a Java boolean.
|
boolean |
getBoolean(String columnName)
Gets the value of a column in the current row as a Java boolean.
|
abstract byte |
getByte(int columnIndex)
Gets the value of a column in the current row as a Java byte.
|
byte |
getByte(String columnName)
Gets the value of a column in the current row as a Java byte.
|
byte[] |
getBytes(int columnIndex)
Gets the value of a column in the current row as a Java byte array.
|
byte[] |
getBytes(String columnName)
Gets the value of a column in the current row as a Java byte array.
|
Reader |
getCharacterStream(int columnIndex)
JDBC 2.0
|
Reader |
getCharacterStream(String columnName)
JDBC 2.0
|
Clob |
getClob(int i)
JDBC 2.0
Gets a CLOB column.
|
Clob |
getClob(String colName)
JDBC 2.0
Gets a CLOB column.
|
int |
getConcurrency()
JDBC 2.0
Returns the concurrency of this result set.
|
String |
getCursorName()
Gets the name of the SQL cursor used by current ResultSet.
|
abstract Date |
getDate(int columnIndex)
Gets the value of a column in the current row as a java.sql.Date object.
|
Date |
getDate(int columnIndex,
Calendar cal)
JDBC 2.0
Gets the value of a column in the current row as a java.sql.Date
object.
|
Date |
getDate(String columnName)
Gets the value of a column in the current row as a java.sql.Date object.
|
Date |
getDate(String col,
Calendar c) |
abstract double |
getDouble(int columnIndex)
Gets the value of a column in the current row as a Java double.
|
double |
getDouble(String columnName)
Gets the value of a column in the current row as a Java double.
|
int |
getFetchDirection()
JDBC 2.0
Returns the fetched direction for this result set.
|
int |
getFetchSize()
JDBC 2.0
Returns the fetched size for this result set.
|
abstract float |
getFloat(int columnIndex)
Gets the value of a column in the current row as a Java float.
|
float |
getFloat(String columnName)
Gets the value of a column in the current row as a Java float.
|
abstract int |
getInt(int columnIndex)
Gets the value of a column in the current row as a Java int.
|
int |
getInt(String columnName)
Gets the value of a column in the current row as a Java int.
|
abstract long |
getLong(int columnIndex)
Gets the value of a column in the current row as a Java long
|
long |
getLong(String columnName)
Gets the value of a column in the current row as a Java long.
|
ResultSetMetaData |
getMetaData()
Gets the number, types and properties of ResultSet's columns.
|
Object |
getObject(int columnIndex)
Gets the value of a column in the current row as a Java object.
|
Object |
getObject(int i,
Map map)
JDBC 2.0
Returns the value of column @i as a Java object.
|
Object |
getObject(String columnName)
Gets the value of a column in the current row as a Java object.
|
Object |
getObject(String colName,
Map map)
JDBC 2.0
Returns the value of column @i as a Java object.
|
Ref |
getRef(int i)
JDBC 2.0
Gets a REF(<structured-type>) column.
|
Ref |
getRef(String colName)
JDBC 2.0
Gets a REF(<structured-type>) column.
|
int |
getRow()
JDBC 2.0
|
abstract short |
getShort(int columnIndex)
Gets the value of a column in the current row as a Java short.
|
short |
getShort(String columnName)
Gets the value of a column in the current row as a Java Short.
|
Statement |
getStatement()
JDBC 2.0
Returns the Statement that produces the ResultSet.
|
abstract String |
getString(int columnIndex)
Gets the value of a column in the current row as a Java String.
|
String |
getString(String columnName)
Gets the value of a column in the current row as a Java String.
|
abstract Time |
getTime(int columnIndex)
Gets the value of a column in the current row as a java.sql.Time object.
|
Time |
getTime(int col,
Calendar c) |
Time |
getTime(String columnName)
Gets the value of a column in the current row as a java.aql.Time object.
|
Time |
getTime(String col,
Calendar c) |
abstract Timestamp |
getTimestamp(int columnIndex)
Gets the value of a column in the current row as a java.sql.Timestamp object.
|
Timestamp |
getTimestamp(int col,
Calendar c) |
Timestamp |
getTimestamp(String columnName)
Gets the value of a column in the current row as a java.sql.Timestamp object.
|
Timestamp |
getTimestamp(String col,
Calendar c) |
int |
getType()
JDBC 2.0
Returns the type of this result set.
|
InputStream |
getUnicodeStream(int columnIndex)
Gets the value of a column in the current row as a stream of Unicode characters,
and then this column value can be read in chunks from the this stream.
|
InputStream |
getUnicodeStream(String columnName)
Gets the value of a column in the current row as a stream of Unicode characters
and then the value of the column can be read in chunks from this stream.
|
URL |
getURL(int columnIndex) |
URL |
getURL(String columnName) |
SQLWarning |
getWarnings()
Gets the first SQLWarnings of the ResultSet warning chain.
|
abstract void |
initialize(jet.datasource.JRColDesc[] colDescs,
String[] args)
Initializes this JRResultSet.
|
void |
insertRow()
JDBC 2.0
Inserts the contents of the inserted row into the result set and
the database, which must be on the inserted row when this method is called.
|
boolean |
isAfterLast()
JDBC 2.0
|
boolean |
isBeforeFirst()
JDBC 2.0
|
boolean |
isFirst()
JDBC 2.0
|
boolean |
isLast()
JDBC 2.0
|
boolean |
last()
JDBC 2.0
|
void |
moveToCurrentRow()
JDBC 2.0
Moves the cursor to the remembered cursor position, which is usually the
current row.
|
void |
moveToInsertRow()
JDBC 2.0
Moves to the inserted row.
|
abstract boolean |
next()
Fetches a new row of data and returns true if it is OK.
|
boolean |
previous()
JDBC 2.0
|
void |
refreshRow()
JDBC 2.0
Refreshes the value of the current row with its current value in
the database.
|
boolean |
relative(int rows)
JDBC 2.0
|
boolean |
rowDeleted()
JDBC 2.0
Determines if this row has been deleted.
|
boolean |
rowInserted()
JDBC 2.0
Determines if the current row has been inserted.
|
boolean |
rowUpdated()
JDBC 2.0
Determines if the current row has been updated.
|
void |
setFetchDirection(int direction)
JDBC 2.0
Gives a hint as to the direction in which the rows in this result set
will be processed.
|
void |
setFetchSize(int rows)
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.
|
void |
updateArray(int columnIndex,
Array x) |
void |
updateArray(String columnName,
Array x) |
void |
updateAsciiStream(int columnIndex,
InputStream x,
int length)
JDBC 2.0
Updates a column with an ascii stream value.
|
void |
updateAsciiStream(String columnName,
InputStream x,
int length)
JDBC 2.0
Updates a column with an ascii stream value.
|
void |
updateBigDecimal(int columnIndex,
BigDecimal x)
JDBC 2.0
Updates a column with a BigDecimal value.
|
void |
updateBigDecimal(String columnName,
BigDecimal x)
JDBC 2.0
Updates a column with a BigDecimal value.
|
void |
updateBinaryStream(int columnIndex,
InputStream x,
int length)
JDBC 2.0
Updates a column with a binary stream value.
|
void |
updateBinaryStream(String columnName,
InputStream x,
int length)
JDBC 2.0
Updates a column with a binary stream value.
|
void |
updateBlob(int columnIndex,
Blob x) |
void |
updateBlob(String columnName,
Blob x) |
void |
updateBoolean(int columnIndex,
boolean x)
JDBC 2.0
Updates a column with a boolean value.
|
void |
updateBoolean(String columnName,
boolean x)
JDBC 2.0
Updates a column with a boolean value.
|
void |
updateByte(int columnIndex,
byte x)
JDBC 2.0
Updates a column with a byte value.
|
void |
updateByte(String columnName,
byte x)
JDBC 2.0
Updates a column with a byte value.
|
void |
updateBytes(int columnIndex,
byte[] x)
JDBC 2.0
Updates a column with a byte array value.
|
void |
updateBytes(String columnName,
byte[] x)
JDBC 2.0
Updates a column with a byte array value.
|
void |
updateCharacterStream(int columnIndex,
Reader x,
int length)
JDBC 2.0
Updates a column with a character stream value.
|
void |
updateCharacterStream(String columnName,
Reader reader,
int length)
JDBC 2.0
Updates a column with a character stream value.
|
void |
updateClob(int columnIndex,
Clob x) |
void |
updateClob(String columnName,
Clob x) |
void |
updateDate(int columnIndex,
Date x)
JDBC 2.0
Updates a column with a Date value.
|
void |
updateDate(String columnName,
Date x)
JDBC 2.0
Updates a column with a Date value.
|
void |
updateDouble(int columnIndex,
double x)
JDBC 2.0
Updates a column with a Double value.
|
void |
updateDouble(String columnName,
double x)
JDBC 2.0
Updates a column with a double value.
|
void |
updateFloat(int columnIndex,
float x)
JDBC 2.0
Updates a column with a float value.
|
void |
updateFloat(String columnName,
float x)
JDBC 2.0
Updates a column with a float value.
|
void |
updateInt(int columnIndex,
int x)
JDBC 2.0
Updates a column with an integer value.
|
void |
updateInt(String columnName,
int x)
JDBC 2.0
Updates a column with an integer value.
|
void |
updateLong(int columnIndex,
long x)
JDBC 2.0
Updates a column with a long value.
|
void |
updateLong(String columnName,
long x)
JDBC 2.0
Updates a column with a long value.
|
void |
updateNull(int columnIndex)
JDBC 2.0
Gives a nullable column a null value.
|
void |
updateNull(String columnName)
JDBC 2.0
Updates a column with a null value.
|
void |
updateObject(int columnIndex,
Object x)
JDBC 2.0
Updates a column with an Object value.
|
void |
updateObject(int columnIndex,
Object x,
int scale)
JDBC 2.0
Updates a column with an Object value.
|
void |
updateObject(String columnName,
Object x)
JDBC 2.0
Updates a column with an Object value.
|
void |
updateObject(String columnName,
Object x,
int scale)
JDBC 2.0
Updates a column with an Object value.
|
void |
updateRef(int columnIndex,
Ref x) |
void |
updateRef(String columnName,
Ref x) |
void |
updateRow()
JDBC 2.0
Updates the underlying database with the new contents of the
current row.
|
void |
updateShort(int columnIndex,
short x)
JDBC 2.0
Updates a column with a short value.
|
void |
updateShort(String columnName,
short x)
JDBC 2.0
Updates a column with a short value.
|
void |
updateString(int columnIndex,
String x)
JDBC 2.0
Updates a column with a String value.
|
void |
updateString(String columnName,
String x)
JDBC 2.0
Updates a column with a String value.
|
void |
updateTime(int columnIndex,
Time x)
JDBC 2.0
Updates a column with a Time value.
|
void |
updateTime(String columnName,
Time x)
JDBC 2.0
Updates a column with a Time value.
|
void |
updateTimestamp(int columnIndex,
Timestamp x)
JDBC 2.0
Updates a column with a Timestamp value.
|
void |
updateTimestamp(String columnName,
Timestamp x)
JDBC 2.0
Updates a column with a Timestamp value.
|
abstract boolean |
wasNull()
To judge whether the last column read has a NULL value.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHoldability, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getRowId, getRowId, getSQLXML, getSQLXML, isClosed, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateObject, updateObject, updateObject, updateObject, updateRowId, updateRowId, updateSQLXML, updateSQLXMLisWrapperFor, unwrappublic abstract void initialize(jet.datasource.JRColDesc[] colDescs,
String[] args)
throws jet.datasource.JRResultSetException
colDescs - the descriptions of columns in the result set.args - the arguments of this class.JRResultSetException - when a data source error occurs.public abstract boolean next()
throws jet.datasource.JRResultSetException
public abstract void close()
throws jet.datasource.JRResultSetException
close in interface AutoCloseableclose in interface ResultSetJRResultSetException - when a data source error occurs.public abstract boolean wasNull()
throws jet.datasource.JRResultSetException
public abstract String getString(int columnIndex) throws jet.datasource.JRResultSetException
public abstract boolean getBoolean(int columnIndex)
throws jet.datasource.JRResultSetException
getBoolean in interface ResultSetcolumnIndex - The index number of the column. The first column is 1, the second is 2,...JRResultSetException - if a data source error occurs.public abstract byte getByte(int columnIndex)
throws jet.datasource.JRResultSetException
public abstract short getShort(int columnIndex)
throws jet.datasource.JRResultSetException
public abstract int getInt(int columnIndex)
throws jet.datasource.JRResultSetException
public abstract long getLong(int columnIndex)
throws jet.datasource.JRResultSetException
public abstract float getFloat(int columnIndex)
throws jet.datasource.JRResultSetException
public abstract double getDouble(int columnIndex)
throws jet.datasource.JRResultSetException
public abstract BigDecimal getBigDecimal(int columnIndex, int scale) throws jet.datasource.JRResultSetException
getBigDecimal in interface ResultSetcolumnIndex - The index number of the column. The first column is 1, the second is 2,...scale - the number of digits to the right of the decimal.JRResultSetException - if a data source error occurs.public abstract Date getDate(int columnIndex) throws jet.datasource.JRResultSetException
public abstract Time getTime(int columnIndex) throws jet.datasource.JRResultSetException
public abstract Timestamp getTimestamp(int columnIndex) throws jet.datasource.JRResultSetException
getTimestamp in interface ResultSetcolumnIndex - The index number of the column. The first column is 1, the second is 2,...JRResultSetException - if a data source error occurs.public abstract InputStream getBinaryStream(int columnIndex) throws jet.datasource.JRResultSetException
getBinaryStream in interface ResultSetcolumnIndex - The index number of the column. The first column is 1, the second is 2,...JRResultSetException - if a data source error occurs.public byte[] getBytes(int columnIndex)
throws jet.datasource.JRResultSetException
public InputStream getAsciiStream(int columnIndex) throws jet.datasource.JRResultSetException
getAsciiStream in interface ResultSetcolumnIndex - The index number of the column. The first column is 1, the second is 2,...JRResultSetException - if a data source error occurs.public InputStream getUnicodeStream(int columnIndex) throws jet.datasource.JRResultSetException
getUnicodeStream in interface ResultSetcolumnIndex - The index number of the column. The first column is 1, the second is 2,...JRResultSetException - if a data source error occurs.public String getString(String columnName) throws jet.datasource.JRResultSetException
public boolean getBoolean(String columnName) throws jet.datasource.JRResultSetException
getBoolean in interface ResultSetcolumnName - The SQL name of the column.JRResultSetException - if a data source error occurs.public byte getByte(String columnName) throws jet.datasource.JRResultSetException
public short getShort(String columnName) throws jet.datasource.JRResultSetException
public int getInt(String columnName) throws jet.datasource.JRResultSetException
public long getLong(String columnName) throws jet.datasource.JRResultSetException
public float getFloat(String columnName) throws jet.datasource.JRResultSetException
public double getDouble(String columnName) throws jet.datasource.JRResultSetException
public BigDecimal getBigDecimal(String columnName, int scale) throws jet.datasource.JRResultSetException
getBigDecimal in interface ResultSetcolumnName - The SQL name of the column.scale - The number of digits to the right of the decimal.JRResultSetException - if a data source error occurs.public byte[] getBytes(String columnName) throws jet.datasource.JRResultSetException
public Date getDate(String columnName) throws jet.datasource.JRResultSetException
public Time getTime(String columnName) throws jet.datasource.JRResultSetException
public Timestamp getTimestamp(String columnName) throws jet.datasource.JRResultSetException
getTimestamp in interface ResultSetcolumnName - The SQL name of the column.JRResultSetException - if a data source error occurs.public InputStream getAsciiStream(String columnName) throws jet.datasource.JRResultSetException
getAsciiStream in interface ResultSetcolumnName - The SQL name of the column.JRResultSetException - if a data source error occurs.public InputStream getUnicodeStream(String columnName) throws jet.datasource.JRResultSetException
getUnicodeStream in interface ResultSetcolumnName - The SQL name of the column.JRResultSetException - if a data source error occurs.public InputStream getBinaryStream(String columnName) throws jet.datasource.JRResultSetException
getBinaryStream in interface ResultSetcolumnName - The SQL name of the column.JRResultSetException - if a data source error occurs.public SQLWarning getWarnings() throws jet.datasource.JRResultSetException
This warning chain only covers warnings caused by ResultSet methods.
getWarnings in interface ResultSetJRResultSetException - when a data source error occurs.public void clearWarnings()
throws jet.datasource.JRResultSetException
clearWarnings in interface ResultSetJRResultSetException - when a data source error occurs.public String getCursorName() throws jet.datasource.JRResultSetException
getCursorName in interface ResultSetjet.datasource.JRResultSetExceptionpublic ResultSetMetaData getMetaData() throws jet.datasource.JRResultSetException
getMetaData in interface ResultSetjet.datasource.JRResultSetExceptionpublic Object getObject(int columnIndex) throws jet.datasource.JRResultSetException
getObject in interface ResultSetcolumnIndex - The Index number of the current column. The first column is 1, the second is 2,...jet.datasource.JRResultSetExceptionpublic Object getObject(String columnName) throws jet.datasource.JRResultSetException
public int findColumn(String columnName) throws jet.datasource.JRResultSetException
findColumn in interface ResultSetcolumnName - The name of the column.jet.datasource.JRResultSetExceptionpublic Reader getCharacterStream(int columnIndex) throws SQLException
getCharacterStream in interface ResultSetcolumnIndex - the Index number of the current column. The first column is 1, the second is 2,...
Gets the value of a column in the current row as a java.io.Reader.
SQLExceptionpublic Reader getCharacterStream(String columnName) throws SQLException
Gets the value of a column in the current row as a java.io.Reader.
getCharacterStream in interface ResultSetSQLExceptionpublic BigDecimal getBigDecimal(int columnIndex) throws SQLException
getBigDecimal in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...SQLException - if a database-access error occurs.public BigDecimal getBigDecimal(String columnName) throws SQLException
getBigDecimal in interface ResultSetSQLExceptionpublic boolean isBeforeFirst()
throws SQLException
Determines if the cursor is before the first row in the result set.
isBeforeFirst in interface ResultSetSQLException - if a database-access error occurs.public boolean isAfterLast()
throws SQLException
Determines if the cursor is after the last row in the result set.
isAfterLast in interface ResultSetSQLException - if a database-access error occurs.public boolean isFirst()
throws SQLException
Determines if the cursor is on the first row of the result set.
isFirst in interface ResultSetSQLException - if a database-access error occurs.public boolean isLast()
throws SQLException
Determines if the cursor is on the last row of the result set. Note: Calling isLast() may be expensive since the JDBC driver might need to fetch ahead one row in order to determine whether the current row is the last row in the result set.
isLast in interface ResultSetSQLException - if a database-access error occurs.public void beforeFirst()
throws SQLException
Moves to the front of the result set, which is just before the first row. It has no effect if the result set contains no rows.
beforeFirst in interface ResultSetSQLException - if a database-access error occurs, or
result set type is TYPE_FORWARD_ONLY.public void afterLast()
throws SQLException
Moves to the end of the result set, which is just after the last row. It has no effect if the result set contains no rows.
afterLast in interface ResultSetSQLException - if a database-access error occurs, or
result set type is TYPE_FORWARD_ONLY.public boolean first()
throws SQLException
Moves to the first row in the result set.
first in interface ResultSetSQLException - if a database-access error occurs, or
the result set type is TYPE_FORWARD_ONLY.public boolean last()
throws SQLException
Moves to the last row in the result set.
last in interface ResultSetSQLException - if a database-access error occurs, or
the result set type is TYPE_FORWARD_ONLY.public int getRow()
throws SQLException
Determines the current row number. The first row is number 1, the second number 2, etc.
getRow in interface ResultSetSQLException - if a database-access error occurs.public boolean absolute(int row)
throws SQLException
Moves to an absolute row number in the result set.
If the row is positive, moves to an absolute row with respect to the beginning of the result set. The first row is row 1, the second is row 2, etc.
If the row is negative, moves to an absolute row position with respect to the end of result set. For example, calling absolute(-1) positions the cursor on the last row, absolute(-2) indicates the next-to-last row, etc.
Two attempts to position the cursor beyond the first/last row in the result set, and leaves the cursor before/after the first/last row, respectively.
Note: calling absolute(1) is the same as calling first(). Calling absolute(-1) is the same as calling last().
absolute in interface ResultSetSQLException - if a database-access error occurs, or
the row is 0, or the result set type is TYPE_FORWARD_ONLY.public boolean relative(int rows)
throws SQLException
Moves a relative number of rows, either positive or negative. Attempting to move beyond the first/last row in the the result set positions the cursor before/after the the first/last row. Calling relative(0) is valid, but does not change the cursor position.
Note: Calling relative(1) is different than calling next() since it makes sense to call next() when there is no current row, for example, when the cursor is positioned before the first row or after the last row of the result set.
relative in interface ResultSetSQLException - if a database-access error occurs, or there
is no current row, or the result set type is TYPE_FORWARD_ONLY.public boolean previous()
throws SQLException
Moves to the previous row in the result set.
Note: previous() is not the same as relative(-1) since it makes sense to call previous() when there is no current row.
previous in interface ResultSetSQLException - if a database-access error occurs, or
the result set type is TYPE_FORWAR_DONLY.public void setFetchDirection(int direction)
throws SQLException
setFetchDirection in interface ResultSetSQLException - if a database-access error occurs, or
the result set type is TYPE_FORWARD_ONLY and the direction is not
FETCH_FORWARD.public int getFetchDirection()
throws SQLException
getFetchDirection in interface ResultSetSQLException - if a database-access error occurs.public void setFetchSize(int rows)
throws SQLException
setFetchSize in interface ResultSetrows - the number of rows to fetch.SQLException - if a database-access error occurs, or the
condition 0 <= rows <= this.getMaxRows() is not satisfied.public int getFetchSize()
throws SQLException
getFetchSize in interface ResultSetSQLException - if a database-access error occurs.public int getType()
throws SQLException
getType in interface ResultSetSQLException - if a database-access error occurs.public int getConcurrency()
throws SQLException
getConcurrency in interface ResultSetSQLException - if a database-access error occurs.public boolean rowUpdated()
throws SQLException
rowUpdated in interface ResultSetSQLException - if a database-access error occurs.DatabaseMetaData#updatesAreDetected.public boolean rowInserted()
throws SQLException
rowInserted in interface ResultSetSQLException - if a database-access error occurs.DatabaseMetaData#insertsAreDetected.public boolean rowDeleted()
throws SQLException
rowDeleted in interface ResultSetSQLException - if a database-access error occurs.DatabaseMetaData#deletesAreDetected.public void updateNull(int columnIndex)
throws SQLException
updateNull in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...SQLException - if a database-access error occurs.public void updateBoolean(int columnIndex,
boolean x)
throws SQLException
updateBoolean in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...x - The new column value.SQLException - if a database-access error occurs.public void updateByte(int columnIndex,
byte x)
throws SQLException
updateByte in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...x - The new column value.SQLException - if a database-access error occurs.public void updateShort(int columnIndex,
short x)
throws SQLException
updateShort in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...x - The new column value.SQLException - if a database-access error occurs.public void updateInt(int columnIndex,
int x)
throws SQLException
updateInt in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...x - The new column value.SQLException - if a database-access error occurs.public void updateLong(int columnIndex,
long x)
throws SQLException
updateLong in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...x - The new column value.SQLException - if a database-access error occurs.public void updateFloat(int columnIndex,
float x)
throws SQLException
updateFloat in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...x - The new column value.SQLException - if a database-access error occurs.public void updateDouble(int columnIndex,
double x)
throws SQLException
updateDouble in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...x - The new column value.SQLException - if a database-access error occurs.public void updateBigDecimal(int columnIndex,
BigDecimal x)
throws SQLException
updateBigDecimal in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...x - The new column value.SQLException - if a database-access error occurs.public void updateString(int columnIndex,
String x)
throws SQLException
updateString in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...x - The new column value.SQLException - if a database-access error occurs.public void updateBytes(int columnIndex,
byte[] x)
throws SQLException
updateBytes in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...x - The new column value.SQLException - if a database-access error occurs.public void updateDate(int columnIndex,
Date x)
throws SQLException
updateDate in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...x - The new column value.SQLException - if a database-access error occurs.public void updateTime(int columnIndex,
Time x)
throws SQLException
updateTime in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...x - The new column value.SQLException - if a database-access error occurs.public void updateTimestamp(int columnIndex,
Timestamp x)
throws SQLException
updateTimestamp in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...x - The new column value.SQLException - if a database-access error occurs.public void updateAsciiStream(int columnIndex,
InputStream x,
int length)
throws SQLException
updateAsciiStream in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...x - The new column value.length - The length of the stream.SQLException - if a database-access error occurs.public void updateBinaryStream(int columnIndex,
InputStream x,
int length)
throws SQLException
updateBinaryStream in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...x - The new column value.length - The length of the stream.SQLException - if a database-access error occurs.public void updateCharacterStream(int columnIndex,
Reader x,
int length)
throws SQLException
updateCharacterStream in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...x - The new column value.length - The length of the stream.SQLException - if a database-access error occurs.public void updateObject(int columnIndex,
Object x,
int scale)
throws SQLException
updateObject in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...x - The new column value.scale - For java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types,
this is the number of digits after the decimal. For all other
types, this value will be ignored.SQLException - if a database-access error occurs.public void updateObject(int columnIndex,
Object x)
throws SQLException
updateObject in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...x - The new column value.SQLException - if a database-access error occurs.public void updateNull(String columnName) throws SQLException
updateNull in interface ResultSetcolumnName - The name of the column.SQLException - if a database-access error occurs.public void updateBoolean(String columnName, boolean x) throws SQLException
updateBoolean in interface ResultSetcolumnName - The name of the column.x - The new column value.SQLException - if a database-access error occurs.public void updateByte(String columnName, byte x) throws SQLException
updateByte in interface ResultSetcolumnName - The name of the column.x - The new column value.SQLException - if a database-access error occurs.public void updateShort(String columnName, short x) throws SQLException
updateShort in interface ResultSetcolumnName - The name of the column.x - The new column value.SQLException - if a database-access error occurs.public void updateInt(String columnName, int x) throws SQLException
updateInt in interface ResultSetcolumnName - The name of the column.x - The new column value.SQLException - if a database-access error occurs.public void updateLong(String columnName, long x) throws SQLException
updateLong in interface ResultSetcolumnName - The name of the column.x - The new column value.SQLException - if a database-access error occurs.public void updateFloat(String columnName, float x) throws SQLException
updateFloat in interface ResultSetcolumnName - The name of the column.x - The new column value.SQLException - if a database-access error occurs.public void updateDouble(String columnName, double x) throws SQLException
updateDouble in interface ResultSetcolumnName - The name of the column.x - The new column value.SQLException - if a database-access error occurs.public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException
updateBigDecimal in interface ResultSetcolumnName - The name of the column.x - The new column value.SQLException - if a database-access error occurs.public void updateString(String columnName, String x) throws SQLException
updateString in interface ResultSetcolumnName - The name of the column.x - The new column value.SQLException - if a database-access error occurs.public void updateBytes(String columnName, byte[] x) throws SQLException
updateBytes in interface ResultSetcolumnName - The name of the column.x - The new column value.SQLException - if a database-access error occurs.public void updateDate(String columnName, Date x) throws SQLException
updateDate in interface ResultSetcolumnName - The name of the column.x - The new column value.SQLException - if a database-access error occurs.public void updateTime(String columnName, Time x) throws SQLException
updateTime in interface ResultSetcolumnName - The name of the column.x - The new column value.SQLException - if a database-access error occurs.public void updateTimestamp(String columnName, Timestamp x) throws SQLException
updateTimestamp in interface ResultSetcolumnName - The name of the column.x - The new column value.SQLException - if a database-access error occurs.public void updateAsciiStream(String columnName, InputStream x, int length) throws SQLException
updateAsciiStream in interface ResultSetcolumnName - The name of the column.x - The new column value.length - of the stream.SQLException - if a database-access error occurs.public void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException
updateBinaryStream in interface ResultSetcolumnName - The name of the column.x - The new column value.length - of the stream.SQLException - if a database-access error occurs.public void updateCharacterStream(String columnName, Reader reader, int length) throws SQLException
updateCharacterStream in interface ResultSetcolumnName - The name of the column.x - The new column value.length - of the stream.SQLException - if a database-access error occurs.public void updateObject(String columnName, Object x, int scale) throws SQLException
updateObject in interface ResultSetcolumnName - The name of the column.x - The new column value.scale - For java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types,
this is the number of digits after the decimal. For all other
types, this value will be ignored.SQLException - if a database-access error occurs.public void updateObject(String columnName, Object x) throws SQLException
updateObject in interface ResultSetcolumnName - The name of the column.x - The new column value.SQLException - if a database-access error occurs.public void insertRow()
throws SQLException
insertRow in interface ResultSetSQLException - if a database-access error occurs,
if called when not on the inserted row, or if all non-nullable columns in
the inserted row have not been given a value.public void updateRow()
throws SQLException
updateRow in interface ResultSetSQLException - if a database-access error occurs, or
if called when on the inserted row.public void deleteRow()
throws SQLException
deleteRow in interface ResultSetSQLException - if a database-access error occurs, or if
called when on the inserted row.public void refreshRow()
throws SQLException
refreshRow in interface ResultSetSQLException - if a database-access error occurs, or if
called when on the inserted row.public void cancelRowUpdates()
throws SQLException
cancelRowUpdates in interface ResultSetSQLException - if a database-access error occurs, or if
called when on the inserted row.public void moveToInsertRow()
throws SQLException
moveToInsertRow in interface ResultSetSQLException - if a database-access error occurs,
or the result set is not updatable.public void moveToCurrentRow()
throws SQLException
moveToCurrentRow in interface ResultSetSQLException - if a database-access error occurs,
or the result set is not updatable.public Statement getStatement() throws SQLException
getStatement in interface ResultSetSQLException - if a database-access error occurs.public Object getObject(int i, Map map) throws SQLException
getObject in interface ResultSeti - The first column is 1, the second is 2, ...map - The mapping from SQL type names to Java classes.SQLExceptionpublic Ref getRef(int i) throws SQLException
getRef in interface ResultSeti - The first column is 1, the second is 2, ...SQLExceptionpublic Blob getBlob(int i) throws SQLException
getBlob in interface ResultSeti - The first column is 1, the second is 2, ...SQLExceptionpublic Clob getClob(int i) throws SQLException
getClob in interface ResultSeti - The first column is 1, the second is 2, ...SQLExceptionpublic Array getArray(int i) throws SQLException
getArray in interface ResultSeti - The first column is 1, the second is 2, ...SQLExceptionpublic Object getObject(String colName, Map map) throws SQLException
getObject in interface ResultSetcolName - The column name.map - The mapping from SQL type names to Java classes.SQLExceptionpublic Ref getRef(String colName) throws SQLException
getRef in interface ResultSetcolName - The column name.SQLExceptionpublic Blob getBlob(String colName) throws SQLException
getBlob in interface ResultSetcolName - The column name.SQLExceptionpublic Clob getClob(String colName) throws SQLException
getClob in interface ResultSetcolName - The column name.SQLExceptionpublic Array getArray(String colName) throws SQLException
getArray in interface ResultSetcolName - The column name.SQLExceptionpublic Date getDate(int columnIndex, Calendar cal) throws SQLException
getDate in interface ResultSetcolumnIndex - The first column is 1, the second is 2, ...cal - The calendar to use when the date is constructed.SQLException - if a database-access error occurs.public Time getTime(int col, Calendar c) throws SQLException
getTime in interface ResultSetSQLExceptionpublic Time getTime(String col, Calendar c) throws SQLException
getTime in interface ResultSetSQLExceptionpublic Date getDate(String col, Calendar c) throws SQLException
getDate in interface ResultSetSQLExceptionpublic Timestamp getTimestamp(int col, Calendar c) throws SQLException
getTimestamp in interface ResultSetSQLExceptionpublic Timestamp getTimestamp(String col, Calendar c) throws SQLException
getTimestamp in interface ResultSetSQLExceptionpublic void updateBlob(int columnIndex,
Blob x)
throws SQLException
updateBlob in interface ResultSetSQLExceptionpublic void updateBlob(String columnName, Blob x) throws SQLException
updateBlob in interface ResultSetSQLExceptionpublic void updateClob(int columnIndex,
Clob x)
throws SQLException
updateClob in interface ResultSetSQLExceptionpublic void updateClob(String columnName, Clob x) throws SQLException
updateClob in interface ResultSetSQLExceptionpublic void updateArray(int columnIndex,
Array x)
throws SQLException
updateArray in interface ResultSetSQLExceptionpublic void updateArray(String columnName, Array x) throws SQLException
updateArray in interface ResultSetSQLExceptionpublic void updateRef(String columnName, Ref x) throws SQLException
updateRef in interface ResultSetSQLExceptionpublic void updateRef(int columnIndex,
Ref x)
throws SQLException
updateRef in interface ResultSetSQLExceptionpublic URL getURL(String columnName) throws SQLException
getURL in interface ResultSetSQLExceptionpublic URL getURL(int columnIndex) throws SQLException
getURL in interface ResultSetSQLException© insightsoftware. All rights reserved.