public class MonetResultSet extends MonetWrapper 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| Modifier and Type | Method and Description |
|---|---|
boolean |
absolute(int row)
Moves the cursor to the given row number in this ResultSet object.
|
void |
addWarning(String reason,
String sqlstate)
Adds a warning to the pile of warnings this ResultSet object has.
|
void |
afterLast()
Moves the cursor to the end of this ResultSet object, just after the last row.
|
void |
beforeFirst()
Moves the cursor to the front of this ResultSet object, just before the first row.
|
void |
cancelRowUpdates() |
void |
clearWarnings()
Clears all warnings reported for this ResultSet object.
|
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 |
deleteRow() |
int |
findColumn(String columnName)
Maps the given ResultSet column name to its ResultSet column index.
|
boolean |
first()
Moves the cursor to the first row in this ResultSet object.
|
Array |
getArray(int columnIndex) |
Array |
getArray(String colName) |
InputStream |
getAsciiStream(int columnIndex) |
InputStream |
getAsciiStream(String columnName) |
BigDecimal |
getBigDecimal(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a java.math.BigDecimal with full precision.
|
BigDecimal |
getBigDecimal(int columnIndex,
int scale)
Deprecated.
|
BigDecimal |
getBigDecimal(String columnName)
Retrieves the value of the designated column in the current row of this
ResultSet object as a java.math.BigDecimal with full precision.
|
BigDecimal |
getBigDecimal(String columnName,
int scale)
Deprecated.
|
InputStream |
getBinaryStream(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a stream of
uninterpreted bytes.
|
InputStream |
getBinaryStream(String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a stream of
uninterpreted bytes.
|
Blob |
getBlob(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a Blob object in
the Java programming language.
|
Blob |
getBlob(String colName)
Retrieves the value of the designated column in the current row of this ResultSet object as a Blob object in the
Java programming language.
|
boolean |
getBoolean(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a boolean in the Java
programming language.
|
boolean |
getBoolean(String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a boolean in the Java
programming language.
|
byte |
getByte(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a byte in the Java
programming language.
|
byte |
getByte(String columnName)
Retrieves the value of the designated column in the current row of this
ResultSet object as a byte in the Java programming language.
|
byte[] |
getBytes(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a byte array in the Java programming language.
|
byte[] |
getBytes(String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a byte array in the
Java programming language.
|
Reader |
getCharacterStream(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader
object.
|
Reader |
getCharacterStream(String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader
object.
|
Clob |
getClob(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a Clob object in the
Java programming language.
|
Clob |
getClob(String colName)
Retrieves the value of the designated column in the current row of this ResultSet object as a Clob object in the
Java programming language.
|
int |
getConcurrency()
Retrieves the concurrency mode of this ResultSet object.
|
String |
getCursorName()
Retrieves the name of the SQL cursor used by this ResultSet object.
|
Date |
getDate(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a java.sql.Date object in the Java programming
language.
|
Date |
getDate(int columnIndex,
Calendar cal)
Retrieves the value of the designated column in the current row of this
ResultSet object as a java.sql.Date object in the Java programming
language.
|
Date |
getDate(String columnName)
Retrieves the value of the designated column in the current row of this
ResultSet object as a java.sql.Date object in the Java programming
language.
|
Date |
getDate(String columnName,
Calendar cal)
Retrieves the value of the designated column in the current row of this
ResultSet object as a java.sql.Date object in the Java programming
language.
|
double |
getDouble(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a double in the Java programming language.
|
double |
getDouble(String columnName)
Retrieves the value of the designated column in the current row of this
ResultSet object as a double in the Java programming language.
|
int |
getFetchDirection()
Retrieves the fetch direction for this ResultSet object.
|
int |
getFetchSize()
Retrieves the fetch size for this ResultSet object.
|
float |
getFloat(int columnIndex)
Retrieves the value of the designated column in the current row of this
ResultSet object as a float in the Java programming language.
|
float |
getFloat(String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a float in the Java
programming language.
|
int |
getHoldability()
Retrieves the holdability of this ResultSet object.
|
int |
getInt(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as an int in the
Java programming language.
|
int |
getInt(String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as an int in the
Java programming language.
|
long |
getLong(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a long in the Java
programming language.
|
long |
getLong(String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a long in the Java
programming language.
|
ResultSetMetaData |
getMetaData()
Retrieves the number, types and properties of this ResultSet object's columns.
|
Reader |
getNCharacterStream(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader
object.
|
Reader |
getNCharacterStream(String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader
object.
|
NClob |
getNClob(int i)
Retrieves the value of the designated column in the current row of this ResultSet object as a NClob object in the
Java programming language.
|
NClob |
getNClob(String colName)
Retrieves the value of the designated column in the current row of this ResultSet object as a NClob object in the
Java programming language.
|
String |
getNString(int columnIndex)
Retrieves the value of the designated column in the current row
of this ResultSet object as a String in the Java programming
language.
|
String |
getNString(String columnName)
Retrieves the value of the designated column in the current row
of this ResultSet object as a String in the Java programming
language.
|
Object |
getObject(int columnIndex)
Gets the value of the designated column in the current row of this
ResultSet object as an Object in the Java programming language.
|
<T> T |
getObject(int columnIndex,
Class<T> type)
Retrieves the value of the designated column in the current row
of this ResultSet object and will convert from the SQL type of
the column to the requested Java data type, if the conversion is
supported.
|
Object |
getObject(int columnIndex,
Map<String,Class<?>> map)
Gets the value of the designated column in the current row of this
ResultSet object as an Object in the Java programming language.
|
Object |
getObject(String columnName)
Gets the value of the designated column in the current row of this
ResultSet object as an Object in the Java programming language.
|
<T> T |
getObject(String columnLabel,
Class<T> type)
Retrieves the value of the designated column in the current row
of this ResultSet object and will convert from the SQL type of
the column to the requested Java data type, if the conversion is
supported.
|
Object |
getObject(String colName,
Map<String,Class<?>> map)
Retrieves the value of the designated column in the current row of this
ResultSet object as an Object in the Java programming language.
|
Ref |
getRef(int i) |
Ref |
getRef(String colName) |
int |
getRow()
Retrieves the current row number.
|
RowId |
getRowId(int columnIndex)
Retrieves the value of the designated column in the current row
of this ResultSet object as a java.sql.RowId object in the Java
programming language.
|
RowId |
getRowId(String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.RowId
object in the Java programming language.
|
short |
getShort(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a short in the Java
programming language.
|
short |
getShort(String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a short in the Java
programming language.
|
SQLXML |
getSQLXML(int i)
Retrieves the value of the designated column in the current row of this ResultSet as a java.sql.SQLXML object
in the Java programming language.
|
SQLXML |
getSQLXML(String colName)
Retrieves the value of the designated column in the current row of this ResultSet as a java.sql.SQLXML object
in the Java programming language.
|
Statement |
getStatement()
Retrieves the Statement object that produced this ResultSet object.
|
String |
getString(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java
programming language.
|
String |
getString(String columnName)
Retrieves the value of the designated column in the current row of this
ResultSet object as a String in the Java programming language.
|
Time |
getTime(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time
object in the Java programming language.
|
Time |
getTime(int columnIndex,
Calendar cal)
Retrieves the value of the designated column in the current row of
this ResultSet object as a java.sql.Time object in the Java programming
language.
|
Time |
getTime(String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time
object in the Java programming language.
|
Time |
getTime(String columnName,
Calendar cal)
Retrieves the value of the designated column in the current row of
this ResultSet object as a java.sql.Time object in the Java programming
language.
|
Timestamp |
getTimestamp(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp
object in the Java programming language.
|
Timestamp |
getTimestamp(int columnIndex,
Calendar cal)
Retrieves the value of the designated column in the current row of this
ResultSet object as a java.sql.Timestamp object in the Java programming
language.
|
Timestamp |
getTimestamp(String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp
object in the Java programming language.
|
Timestamp |
getTimestamp(String columnName,
Calendar cal)
Retrieves the value of the designated column in the current row of this
ResultSet object as a java.sql.Timestamp object in the Java programming
language.
|
int |
getType()
Retrieves the type of this ResultSet object.
|
InputStream |
getUnicodeStream(int columnIndex)
Deprecated.
|
InputStream |
getUnicodeStream(String columnName)
Deprecated.
|
URL |
getURL(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL
object in the Java programming language.
|
URL |
getURL(String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object
in the Java programming language.
|
SQLWarning |
getWarnings()
Retrieves the first warning reported by calls on this ResultSet object.
|
void |
insertRow() |
boolean |
isAfterLast()
Retrieves whether the cursor is after the last row in this ResultSet object.
|
boolean |
isBeforeFirst()
Retrieves whether the cursor is before the first row in this ResultSet object.
|
boolean |
isClosed()
Retrieves whether this ResultSet object has been closed.
|
boolean |
isFirst()
Retrieves whether the cursor is on the first row of this ResultSet object.
|
boolean |
isLast()
Retrieves whether the cursor is on the last row of this ResultSet object.
|
boolean |
last()
Moves the cursor to the last row in this ResultSet object.
|
void |
moveToCurrentRow() |
void |
moveToInsertRow() |
boolean |
next()
Moves the cursor down one row from its current position.
|
boolean |
previous()
Moves the cursor to the previous row in this ResultSet object.
|
void |
refreshRow() |
boolean |
relative(int rows)
Moves the cursor a relative number of rows, either positive or negative.
|
boolean |
rowDeleted()
Retrieves whether a row has been deleted.
|
boolean |
rowInserted()
Retrieves whether the current row has had an insertion.
|
boolean |
rowUpdated()
Retrieves whether the current row has been updated.
|
void |
setFetchDirection(int direction)
Gives a hint as to the direction in which the rows in this ResultSet
object will be processed.
|
void |
setFetchSize(int rows)
Gives the JDBC driver a hint as to the number of rows that should be
fetched from the database when more rows are needed.
|
void |
updateArray(int columnIndex,
Array x) |
void |
updateArray(String columnName,
Array x) |
void |
updateAsciiStream(int columnIndex,
InputStream xh) |
void |
updateAsciiStream(int columnIndex,
InputStream x,
int length) |
void |
updateAsciiStream(int columnIndex,
InputStream x,
long length) |
void |
updateAsciiStream(String columnName,
InputStream x) |
void |
updateAsciiStream(String columnName,
InputStream x,
int length) |
void |
updateAsciiStream(String columnName,
InputStream x,
long length) |
void |
updateBigDecimal(int columnIndex,
BigDecimal x) |
void |
updateBigDecimal(String columnName,
BigDecimal x) |
void |
updateBinaryStream(int columnIndex,
InputStream x) |
void |
updateBinaryStream(int columnIndex,
InputStream x,
int length) |
void |
updateBinaryStream(int columnIndex,
InputStream x,
long length) |
void |
updateBinaryStream(String columnName,
InputStream x) |
void |
updateBinaryStream(String columnName,
InputStream x,
int length) |
void |
updateBinaryStream(String columnName,
InputStream x,
long length) |
void |
updateBlob(int columnIndex,
Blob x) |
void |
updateBlob(int columnIndex,
InputStream s) |
void |
updateBlob(int columnIndex,
InputStream s,
long length) |
void |
updateBlob(String columnName,
Blob x) |
void |
updateBlob(String columnName,
InputStream s) |
void |
updateBlob(String columnName,
InputStream s,
long length) |
void |
updateBoolean(int columnIndex,
boolean x) |
void |
updateBoolean(String columnName,
boolean x) |
void |
updateByte(int columnIndex,
byte x) |
void |
updateByte(String columnName,
byte x) |
void |
updateBytes(int columnIndex,
byte[] x) |
void |
updateBytes(String columnName,
byte[] x) |
void |
updateCharacterStream(int columnIndex,
Reader x) |
void |
updateCharacterStream(int columnIndex,
Reader x,
int length) |
void |
updateCharacterStream(int columnIndex,
Reader x,
long length) |
void |
updateCharacterStream(String columnName,
Reader reader) |
void |
updateCharacterStream(String columnName,
Reader reader,
int length) |
void |
updateCharacterStream(String columnName,
Reader reader,
long length) |
void |
updateClob(int columnIndex,
Clob x) |
void |
updateClob(int columnIndex,
Reader r) |
void |
updateClob(int columnIndex,
Reader r,
long length) |
void |
updateClob(String columnName,
Clob x) |
void |
updateClob(String columnName,
Reader r) |
void |
updateClob(String columnName,
Reader r,
long length) |
void |
updateDate(int columnIndex,
Date x) |
void |
updateDate(String columnName,
Date x) |
void |
updateDouble(int columnIndex,
double x) |
void |
updateDouble(String columnName,
double x) |
void |
updateFloat(int columnIndex,
float x) |
void |
updateFloat(String columnName,
float x) |
void |
updateInt(int columnIndex,
int x) |
void |
updateInt(String columnName,
int x) |
void |
updateLong(int columnIndex,
long x) |
void |
updateLong(String columnName,
long x) |
void |
updateNCharacterStream(int columnIndex,
Reader x) |
void |
updateNCharacterStream(int columnIndex,
Reader x,
long length) |
void |
updateNCharacterStream(String columnName,
Reader reader) |
void |
updateNCharacterStream(String columnName,
Reader reader,
long length) |
void |
updateNClob(int columnIndex,
NClob x) |
void |
updateNClob(int columnIndex,
Reader r) |
void |
updateNClob(int columnIndex,
Reader r,
long length) |
void |
updateNClob(String columnName,
NClob x) |
void |
updateNClob(String columnName,
Reader r) |
void |
updateNClob(String columnName,
Reader r,
long length) |
void |
updateNString(int columnIndex,
String x) |
void |
updateNString(String columnName,
String x) |
void |
updateNull(int columnIndex) |
void |
updateNull(String columnName) |
void |
updateObject(int columnIndex,
Object x) |
void |
updateObject(int columnIndex,
Object x,
int scale) |
void |
updateObject(String columnName,
Object x) |
void |
updateObject(String columnName,
Object x,
int scale) |
void |
updateRef(int columnIndex,
Ref x) |
void |
updateRef(String columnName,
Ref x) |
void |
updateRow() |
void |
updateRowId(int columnIndex,
RowId x) |
void |
updateRowId(String columnLabel,
RowId x) |
void |
updateShort(int columnIndex,
short x) |
void |
updateShort(String columnName,
short x) |
void |
updateSQLXML(int columnIndex,
SQLXML x) |
void |
updateSQLXML(String columnName,
SQLXML x) |
void |
updateString(int columnIndex,
String x) |
void |
updateString(String columnName,
String x) |
void |
updateTime(int columnIndex,
Time x) |
void |
updateTime(String columnName,
Time x) |
void |
updateTimestamp(int columnIndex,
Timestamp x) |
void |
updateTimestamp(String columnName,
Timestamp x) |
boolean |
wasNull()
Reports whether the last column read had a value of SQL NULL.
|
isWrapperFor, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdateObject, updateObject, updateObject, updateObjectisWrapperFor, unwrappublic boolean absolute(int row)
throws SQLException
absolute in interface ResultSetrow - the number of the row to which the cursor should move. A positive number indicates the row number
counting from the beginning of the result set; a negative number indicates the row number counting from
the end of the result setSQLException - if a database access error occurs, or the result set type is TYPE_FORWARD_ONLYpublic void afterLast()
throws SQLException
afterLast in interface ResultSetSQLException - if a database access error occurs or the result set type is TYPE_FORWARD_ONLYpublic void beforeFirst()
throws SQLException
beforeFirst in interface ResultSetSQLException - if a database access error occurs or the result set type is TYPE_FORWARD_ONLYpublic void clearWarnings()
clearWarnings in interface ResultSetpublic void close()
close in interface AutoCloseableclose in interface ResultSetpublic int findColumn(String columnName) throws SQLException
findColumn in interface ResultSetcolumnName - the name of the columnSQLException - if the ResultSet object does not contain columnNamepublic boolean first()
throws SQLException
first in interface ResultSetSQLException - - if a database access error occurs or the result set type is TYPE_FORWARD_ONLYpublic Array getArray(int columnIndex) throws SQLException
getArray in interface ResultSetSQLExceptionpublic Array getArray(String colName) throws SQLException
getArray in interface ResultSetSQLExceptionpublic InputStream getAsciiStream(int columnIndex) throws SQLException
getAsciiStream in interface ResultSetSQLExceptionpublic InputStream getAsciiStream(String columnName) throws SQLException
getAsciiStream in interface ResultSetSQLException@Deprecated public InputStream getUnicodeStream(int columnIndex) throws SQLException
getUnicodeStream in interface ResultSetSQLException@Deprecated public InputStream getUnicodeStream(String columnName) throws SQLException
getUnicodeStream in interface ResultSetSQLExceptionpublic InputStream getBinaryStream(int columnIndex) throws SQLException
getBinaryStream in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if the columnIndex is not valid; if a database access error occurs or this method is called
on a closed result setpublic InputStream getBinaryStream(String columnName) throws SQLException
getBinaryStream in interface ResultSetcolumnName - the label for the column specified with the SQL AS clause. If the SQL AS clause was not
specified, then the label is the name of the columnSQLException - if the columnLabel is not valid; if a database access error occurs or this method is called
on a closed result setpublic Reader getCharacterStream(int columnIndex) throws SQLException
getCharacterStream in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if a database access error occurspublic Reader getCharacterStream(String columnName) throws SQLException
getCharacterStream in interface ResultSetcolumnName - the name of the columnSQLException - if a database access error occurspublic Reader getNCharacterStream(int columnIndex) throws SQLException
getNCharacterStream in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if a database access error occursSQLFeatureNotSupportedException - the JDBC driver does not support this methodpublic Reader getNCharacterStream(String columnName) throws SQLException
getNCharacterStream in interface ResultSetcolumnName - the name of the columnSQLException - if a database access error occursSQLFeatureNotSupportedException - the JDBC driver does
not support this methodpublic Blob getBlob(int columnIndex) throws SQLException
getBlob in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if a database access error occurspublic Blob getBlob(String colName) throws SQLException
getBlob in interface ResultSetcolName - the name of the column from which to retrieve the valueSQLException - if a database access error occurspublic Clob getClob(int columnIndex) throws SQLException
getClob in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if a database access error occurspublic Clob getClob(String colName) throws SQLException
getClob in interface ResultSetcolName - the name of the column from which to retrieve the valueSQLException - if a database access error occurspublic NClob getNClob(int i) throws SQLException
getNClob in interface ResultSeti - the first column is 1, the second is 2, ...SQLException - if a database access error occursSQLFeatureNotSupportedException - the JDBC driver does not support this methodpublic NClob getNClob(String colName) throws SQLException
getNClob in interface ResultSetcolName - the name of the column from which to retrieve the valueSQLException - if a database access error occursSQLFeatureNotSupportedException - the JDBC driver does not support this methodpublic 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@Deprecated public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException
getBigDecimal in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...scale - the number of digits to the right of the decimal pointSQLException - if a database access error occurspublic BigDecimal getBigDecimal(String columnName) throws SQLException
getBigDecimal in interface ResultSetcolumnName - the SQL name of the columnSQLException - if a database access error occurs@Deprecated public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException
getBigDecimal in interface ResultSetcolumnName - the SQL name of the columnscale - the number of digits to the right of the decimal pointSQLException - if a database access error occurspublic boolean getBoolean(int columnIndex)
throws SQLException
getBoolean in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if there is no such columnpublic boolean getBoolean(String columnName) throws SQLException
getBoolean in interface ResultSetcolumnName - the SQL name of the columnSQLException - if the ResultSet object does not contain columnNamepublic byte getByte(int columnIndex)
throws SQLException
getByte in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if a database access error occurspublic byte getByte(String columnName) throws SQLException
getByte in interface ResultSetcolumnName - the SQL name of the columnSQLException - if a database access error occurspublic byte[] getBytes(int columnIndex)
throws SQLException
getBytes in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if a database access error occurspublic byte[] getBytes(String columnName) throws SQLException
getBytes in interface ResultSetcolumnName - the SQL name of the columnSQLException - if a database access error occurspublic int getConcurrency()
getConcurrency in interface ResultSetpublic String getCursorName() throws SQLException
getCursorName in interface ResultSetSQLException - if a database access error occurspublic double getDouble(int columnIndex)
throws SQLException
getDouble in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if there is no such columnpublic double getDouble(String columnName) throws SQLException
getDouble in interface ResultSetcolumnName - the SQL name of the columnSQLException - if the ResultSet object does not contain columnNamepublic int getHoldability()
throws SQLException
getHoldability in interface ResultSetSQLException - if a database access error occurspublic int getFetchDirection()
getFetchDirection in interface ResultSetpublic void setFetchDirection(int direction)
throws SQLException
setFetchDirection in interface ResultSetdirection - - an int specifying the suggested fetch direction;
one of ResultSet.FETCH_FORWARD, ResultSet.FETCH_REVERSE, or ResultSet.FETCH_UNKNOWNSQLExceptionpublic int getFetchSize()
throws SQLException
getFetchSize in interface ResultSetSQLException - if a database access error occurspublic void setFetchSize(int rows)
throws SQLException
setFetchSize in interface ResultSetrows - the number of rows to fetchSQLException - if the condition 0 <= rows is not satisfiedpublic float getFloat(int columnIndex)
throws SQLException
getFloat in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if there is no such columnpublic float getFloat(String columnName) throws SQLException
getFloat in interface ResultSetcolumnName - the SQL name of the columnSQLException - if the ResultSet object does not contain columnNamepublic int getInt(int columnIndex)
throws SQLException
getInt in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if there is no such columnpublic int getInt(String columnName) throws SQLException
getInt in interface ResultSetcolumnName - the SQL name of the columnSQLException - if the ResultSet object does not contain columnNamepublic long getLong(int columnIndex)
throws SQLException
getLong in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if there is no such columnpublic long getLong(String columnName) throws SQLException
getLong in interface ResultSetcolumnName - the SQL name of the columnSQLException - if the ResultSet object does not contain columnNamepublic ResultSetMetaData getMetaData()
getMetaData in interface ResultSetpublic Object getObject(int columnIndex) throws SQLException
getObject in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if a database access error occurspublic Object getObject(int columnIndex, Map<String,Class<?>> map) throws SQLException
getObject in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...map - a java.util.Map object that contains the mapping from SQL
type names to classes in the Java programming languageSQLException - if a database access error occurspublic <T> T getObject(int columnIndex,
Class<T> type)
throws SQLException
getObject in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...type - Class representing the Java data type to convert the designated column toSQLException - if conversion is not supported, type is null or another error occurs. The getCause() method
of the exception may provide a more detailed exception, for example, if a conversion error occurspublic <T> T getObject(String columnLabel, Class<T> type) throws SQLException
getObject in interface ResultSetcolumnLabel - the label for the column specified with the SQL AS clause. If the SQL AS clause was not
specified, then the label is the name of the columntype - Class representing the Java data type to convert the designated column toSQLException - if conversion is not supported, type is null or another error occurs. The getCause() method
of the exception may provide a more detailed exception, for example, if a conversion error occurspublic Object getObject(String columnName) throws SQLException
getObject in interface ResultSetcolumnName - the SQL name of the columnSQLException - if a database access error occurspublic Object getObject(String colName, Map<String,Class<?>> map) throws SQLException
getObject in interface ResultSetcolName - the name of the column from which to retrieve the valuemap - a java.util.Map object that contains the mapping from SQL
type names to classes in the Java programming languageSQLException - if a database access error occurspublic Ref getRef(int i) throws SQLException
getRef in interface ResultSetSQLExceptionpublic Ref getRef(String colName) throws SQLException
getRef in interface ResultSetSQLExceptionpublic int getRow()
public RowId getRowId(int columnIndex) throws SQLException
getRowId in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if there is no such columnSQLFeatureNotSupportedException - the JDBC driver does not support this methodpublic RowId getRowId(String columnName) throws SQLException
getRowId in interface ResultSetcolumnName - the SQL name of the columnSQLException - if the ResultSet object does not contain columnNameSQLFeatureNotSupportedException - the JDBC driver does not support this methodpublic short getShort(int columnIndex)
throws SQLException
getShort in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if there is no such columnpublic short getShort(String columnName) throws SQLException
getShort in interface ResultSetcolumnName - the SQL name of the columnSQLException - if the ResultSet object does not contain columnNamepublic Statement getStatement()
getStatement in interface ResultSetpublic String getString(int columnIndex) throws SQLException
getString in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if there is no such columnpublic String getString(String columnName) throws SQLException
getString in interface ResultSetcolumnName - the SQL name of the columnSQLException - if the ResultSet object does not contain columnNamepublic String getNString(int columnIndex) throws SQLException
getNString in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if there is no such columnSQLFeatureNotSupportedException - the JDBC driver does not support this methodpublic String getNString(String columnName) throws SQLException
getNString in interface ResultSetcolumnName - the SQL name of the columnSQLException - if the ResultSet object does not contain columnNameSQLFeatureNotSupportedException - the JDBC driver does not support this methodpublic SQLXML getSQLXML(int i) throws SQLException
getSQLXML in interface ResultSeti - the first column is 1, the second is 2, ...SQLException - if a database access error occursSQLFeatureNotSupportedException - the JDBC driver does not support this methodpublic SQLXML getSQLXML(String colName) throws SQLException
getSQLXML in interface ResultSetcolName - the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified,
then the label is the name of the columnSQLException - if a database access error occursSQLFeatureNotSupportedException - the JDBC driver does not support this methodpublic Date getDate(int columnIndex) throws SQLException
getDate in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if a database access error occursgetDate(int col, Calendar cal)public Date getDate(int columnIndex, Calendar cal) throws SQLException
getDate in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...cal - the java.util.Calendar object to use in constructing the dateSQLException - if a database access error occurspublic Date getDate(String columnName) throws SQLException
getDate in interface ResultSetcolumnName - the SQL name of the column from which to retrieve the valueSQLException - if a database access error occurspublic Date getDate(String columnName, Calendar cal) throws SQLException
getDate in interface ResultSetcolumnName - the SQL name of the column from which to retrieve the valuecal - the java.util.Calendar object to use in constructing the dateSQLException - if a database access error occurspublic Time getTime(int columnIndex) throws SQLException
getTime in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if a database access error occurspublic Time getTime(int columnIndex, Calendar cal) throws SQLException
getTime in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...cal - the java.util.Calendar object to use in constructing the timestampSQLException - if a database access error occurspublic Time getTime(String columnName) throws SQLException
getTime in interface ResultSetcolumnName - the SQL name of the columnSQLException - if a database access error occurspublic Time getTime(String columnName, Calendar cal) throws SQLException
getTime in interface ResultSetcolumnName - the SQL name of the columncal - the java.util.Calendar object to use in constructing the timestampSQLException - if a database access error occurspublic Timestamp getTimestamp(int columnIndex) throws SQLException
getTimestamp in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...SQLException - if a database access error occurspublic Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException
getTimestamp in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...cal - the java.util.Calendar object to use in constructing the timestampSQLException - if a database access error occurspublic Timestamp getTimestamp(String columnName) throws SQLException
getTimestamp in interface ResultSetcolumnName - the SQL name of the columnSQLException - if a database access error occurspublic Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException
getTimestamp in interface ResultSetcolumnName - the SQL name of the columncal - the java.util.Calendar object to use in constructing the timestampSQLException - if a database access error occurspublic int getType()
public URL getURL(int columnIndex) throws SQLException
getURL in interface ResultSetcolumnIndex - the index of the column 1 is the first, 2 is the second,...SQLException - if a database access error occurs, or if a URL is malformedpublic URL getURL(String columnName) throws SQLException
getURL in interface ResultSetcolumnName - the SQL name of the columnSQLException - if a database access error occurs, or if a URL is malformedpublic SQLWarning getWarnings() throws SQLException
getWarnings in interface ResultSetSQLException - if a database access error occurs or this method is
called on a closed connectionpublic boolean isAfterLast()
isAfterLast in interface ResultSetpublic boolean isBeforeFirst()
isBeforeFirst in interface ResultSetpublic boolean isClosed()
public boolean isFirst()
public boolean isLast()
public boolean last()
throws SQLException
last in interface ResultSetSQLException - if a database access error occurs or the result set type is TYPE_FORWARD_ONLYpublic boolean next()
throws SQLException
next in interface ResultSetSQLException - if a database access error occurs or ResultSet is closedpublic boolean previous()
throws SQLException
previous in interface ResultSetSQLException - if a database access error occurs or ResultSet is closed or the result set type is
TYPE_FORWARD_ONLYpublic boolean relative(int rows)
throws SQLException
relative in interface ResultSetrows - an int specifying the number of rows to move from the current
row; a positive number moves the cursor forward; a negative number
moves the cursor backwardSQLException - if a database access error occurs, there is no current
row, or the result set type is TYPE_FORWARD_ONLYpublic boolean rowDeleted()
throws SQLException
rowDeleted in interface ResultSetSQLExceptionpublic boolean rowInserted()
throws SQLException
rowInserted in interface ResultSetSQLExceptionpublic boolean rowUpdated()
throws SQLException
rowUpdated in interface ResultSetSQLExceptionpublic void addWarning(String reason, String sqlstate)
reason - the warning messagepublic void cancelRowUpdates()
throws SQLException
cancelRowUpdates in interface ResultSetSQLExceptionpublic void deleteRow()
throws SQLException
deleteRow in interface ResultSetSQLExceptionpublic void insertRow()
throws SQLException
insertRow in interface ResultSetSQLExceptionpublic void moveToCurrentRow()
throws SQLException
moveToCurrentRow in interface ResultSetSQLExceptionpublic void moveToInsertRow()
throws SQLException
moveToInsertRow in interface ResultSetSQLExceptionpublic void refreshRow()
throws SQLException
refreshRow 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 updateAsciiStream(int columnIndex,
InputStream xh)
throws SQLException
updateAsciiStream in interface ResultSetSQLExceptionpublic void updateAsciiStream(int columnIndex,
InputStream x,
int length)
throws SQLException
updateAsciiStream in interface ResultSetSQLExceptionpublic void updateAsciiStream(int columnIndex,
InputStream x,
long length)
throws SQLException
updateAsciiStream in interface ResultSetSQLExceptionpublic void updateAsciiStream(String columnName, InputStream x) throws SQLException
updateAsciiStream in interface ResultSetSQLExceptionpublic void updateAsciiStream(String columnName, InputStream x, int length) throws SQLException
updateAsciiStream in interface ResultSetSQLExceptionpublic void updateAsciiStream(String columnName, InputStream x, long length) throws SQLException
updateAsciiStream in interface ResultSetSQLExceptionpublic void updateBigDecimal(int columnIndex,
BigDecimal x)
throws SQLException
updateBigDecimal in interface ResultSetSQLExceptionpublic void updateBigDecimal(String columnName, BigDecimal x) throws SQLException
updateBigDecimal in interface ResultSetSQLExceptionpublic void updateBinaryStream(int columnIndex,
InputStream x)
throws SQLException
updateBinaryStream in interface ResultSetSQLExceptionpublic void updateBinaryStream(int columnIndex,
InputStream x,
int length)
throws SQLException
updateBinaryStream in interface ResultSetSQLExceptionpublic void updateBinaryStream(int columnIndex,
InputStream x,
long length)
throws SQLException
updateBinaryStream in interface ResultSetSQLExceptionpublic void updateBinaryStream(String columnName, InputStream x) throws SQLException
updateBinaryStream in interface ResultSetSQLExceptionpublic void updateBinaryStream(String columnName, InputStream x, int length) throws SQLException
updateBinaryStream in interface ResultSetSQLExceptionpublic void updateBinaryStream(String columnName, InputStream x, long length) throws SQLException
updateBinaryStream in interface ResultSetSQLExceptionpublic void updateBlob(int columnIndex,
Blob x)
throws SQLException
updateBlob in interface ResultSetSQLExceptionpublic void updateBlob(int columnIndex,
InputStream s)
throws SQLException
updateBlob in interface ResultSetSQLExceptionpublic void updateBlob(int columnIndex,
InputStream s,
long length)
throws SQLException
updateBlob in interface ResultSetSQLExceptionpublic void updateBlob(String columnName, Blob x) throws SQLException
updateBlob in interface ResultSetSQLExceptionpublic void updateBlob(String columnName, InputStream s) throws SQLException
updateBlob in interface ResultSetSQLExceptionpublic void updateBlob(String columnName, InputStream s, long length) throws SQLException
updateBlob in interface ResultSetSQLExceptionpublic void updateBoolean(int columnIndex,
boolean x)
throws SQLException
updateBoolean in interface ResultSetSQLExceptionpublic void updateBoolean(String columnName, boolean x) throws SQLException
updateBoolean in interface ResultSetSQLExceptionpublic void updateByte(int columnIndex,
byte x)
throws SQLException
updateByte in interface ResultSetSQLExceptionpublic void updateByte(String columnName, byte x) throws SQLException
updateByte in interface ResultSetSQLExceptionpublic void updateBytes(int columnIndex,
byte[] x)
throws SQLException
updateBytes in interface ResultSetSQLExceptionpublic void updateBytes(String columnName, byte[] x) throws SQLException
updateBytes in interface ResultSetSQLExceptionpublic void updateCharacterStream(int columnIndex,
Reader x)
throws SQLException
updateCharacterStream in interface ResultSetSQLExceptionpublic void updateCharacterStream(int columnIndex,
Reader x,
int length)
throws SQLException
updateCharacterStream in interface ResultSetSQLExceptionpublic void updateCharacterStream(int columnIndex,
Reader x,
long length)
throws SQLException
updateCharacterStream in interface ResultSetSQLExceptionpublic void updateCharacterStream(String columnName, Reader reader) throws SQLException
updateCharacterStream in interface ResultSetSQLExceptionpublic void updateCharacterStream(String columnName, Reader reader, int length) throws SQLException
updateCharacterStream in interface ResultSetSQLExceptionpublic void updateCharacterStream(String columnName, Reader reader, long length) throws SQLException
updateCharacterStream in interface ResultSetSQLExceptionpublic void updateNCharacterStream(int columnIndex,
Reader x)
throws SQLException
updateNCharacterStream in interface ResultSetSQLExceptionpublic void updateNCharacterStream(int columnIndex,
Reader x,
long length)
throws SQLException
updateNCharacterStream in interface ResultSetSQLExceptionpublic void updateNCharacterStream(String columnName, Reader reader) throws SQLException
updateNCharacterStream in interface ResultSetSQLExceptionpublic void updateNCharacterStream(String columnName, Reader reader, long length) throws SQLException
updateNCharacterStream in interface ResultSetSQLExceptionpublic void updateClob(int columnIndex,
Clob x)
throws SQLException
updateClob in interface ResultSetSQLExceptionpublic void updateClob(int columnIndex,
Reader r)
throws SQLException
updateClob in interface ResultSetSQLExceptionpublic void updateClob(int columnIndex,
Reader r,
long length)
throws SQLException
updateClob in interface ResultSetSQLExceptionpublic void updateClob(String columnName, Clob x) throws SQLException
updateClob in interface ResultSetSQLExceptionpublic void updateClob(String columnName, Reader r) throws SQLException
updateClob in interface ResultSetSQLExceptionpublic void updateClob(String columnName, Reader r, long length) throws SQLException
updateClob in interface ResultSetSQLExceptionpublic void updateNClob(int columnIndex,
NClob x)
throws SQLException
updateNClob in interface ResultSetSQLExceptionpublic void updateNClob(int columnIndex,
Reader r)
throws SQLException
updateNClob in interface ResultSetSQLExceptionpublic void updateNClob(int columnIndex,
Reader r,
long length)
throws SQLException
updateNClob in interface ResultSetSQLExceptionpublic void updateNClob(String columnName, NClob x) throws SQLException
updateNClob in interface ResultSetSQLExceptionpublic void updateNClob(String columnName, Reader r) throws SQLException
updateNClob in interface ResultSetSQLExceptionpublic void updateNClob(String columnName, Reader r, long length) throws SQLException
updateNClob in interface ResultSetSQLExceptionpublic void updateDate(int columnIndex,
Date x)
throws SQLException
updateDate in interface ResultSetSQLExceptionpublic void updateDate(String columnName, Date x) throws SQLException
updateDate in interface ResultSetSQLExceptionpublic void updateDouble(int columnIndex,
double x)
throws SQLException
updateDouble in interface ResultSetSQLExceptionpublic void updateDouble(String columnName, double x) throws SQLException
updateDouble in interface ResultSetSQLExceptionpublic void updateFloat(int columnIndex,
float x)
throws SQLException
updateFloat in interface ResultSetSQLExceptionpublic void updateFloat(String columnName, float x) throws SQLException
updateFloat in interface ResultSetSQLExceptionpublic void updateInt(int columnIndex,
int x)
throws SQLException
updateInt in interface ResultSetSQLExceptionpublic void updateInt(String columnName, int x) throws SQLException
updateInt in interface ResultSetSQLExceptionpublic void updateLong(int columnIndex,
long x)
throws SQLException
updateLong in interface ResultSetSQLExceptionpublic void updateLong(String columnName, long x) throws SQLException
updateLong in interface ResultSetSQLExceptionpublic void updateNull(int columnIndex)
throws SQLException
updateNull in interface ResultSetSQLExceptionpublic void updateNull(String columnName) throws SQLException
updateNull in interface ResultSetSQLExceptionpublic void updateObject(int columnIndex,
Object x)
throws SQLException
updateObject in interface ResultSetSQLExceptionpublic void updateObject(int columnIndex,
Object x,
int scale)
throws SQLException
updateObject in interface ResultSetSQLExceptionpublic void updateObject(String columnName, Object x) throws SQLException
updateObject in interface ResultSetSQLExceptionpublic void updateObject(String columnName, Object x, int scale) throws SQLException
updateObject in interface ResultSetSQLExceptionpublic void updateRef(int columnIndex,
Ref x)
throws SQLException
updateRef in interface ResultSetSQLExceptionpublic void updateRef(String columnName, Ref x) throws SQLException
updateRef in interface ResultSetSQLExceptionpublic void updateRow()
throws SQLException
updateRow in interface ResultSetSQLExceptionpublic void updateRowId(int columnIndex,
RowId x)
throws SQLException
updateRowId in interface ResultSetSQLExceptionpublic void updateRowId(String columnLabel, RowId x) throws SQLException
updateRowId in interface ResultSetSQLExceptionpublic void updateShort(int columnIndex,
short x)
throws SQLException
updateShort in interface ResultSetSQLExceptionpublic void updateShort(String columnName, short x) throws SQLException
updateShort in interface ResultSetSQLExceptionpublic void updateString(int columnIndex,
String x)
throws SQLException
updateString in interface ResultSetSQLExceptionpublic void updateString(String columnName, String x) throws SQLException
updateString in interface ResultSetSQLExceptionpublic void updateNString(int columnIndex,
String x)
throws SQLException
updateNString in interface ResultSetSQLExceptionpublic void updateNString(String columnName, String x) throws SQLException
updateNString in interface ResultSetSQLExceptionpublic void updateSQLXML(String columnName, SQLXML x) throws SQLException
updateSQLXML in interface ResultSetSQLExceptionpublic void updateSQLXML(int columnIndex,
SQLXML x)
throws SQLException
updateSQLXML in interface ResultSetSQLExceptionpublic void updateTime(int columnIndex,
Time x)
throws SQLException
updateTime in interface ResultSetSQLExceptionpublic void updateTime(String columnName, Time x) throws SQLException
updateTime in interface ResultSetSQLExceptionpublic void updateTimestamp(int columnIndex,
Timestamp x)
throws SQLException
updateTimestamp in interface ResultSetSQLExceptionpublic void updateTimestamp(String columnName, Timestamp x) throws SQLException
updateTimestamp in interface ResultSetSQLExceptionpublic boolean wasNull()
Copyright © 2017. All rights reserved.