public class MonetResultSet extends MonetWrapper implements ResultSet, AutoCloseable
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 columnLabel)
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 columnLabel) |
InputStream |
getAsciiStream(int columnIndex) |
InputStream |
getAsciiStream(String columnLabel) |
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 columnLabel)
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 columnLabel,
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 columnLabel)
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 columnLabel)
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 columnLabel)
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 columnLabel)
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 columnLabel)
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 columnLabel)
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 columnLabel)
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 columnLabel)
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 columnLabel,
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 columnLabel)
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 columnLabel)
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 columnLabel)
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 columnLabel)
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 columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader
object.
|
NClob |
getNClob(int columnIndex)
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 columnLabel)
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 columnLabel)
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 columnLabel)
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 columnLabel,
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 columnIndex) |
Ref |
getRef(String columnLabel) |
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 columnLabel)
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 columnLabel)
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 columnIndex)
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 columnLabel)
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 columnLabel)
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 columnLabel)
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 columnLabel,
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 columnLabel)
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 columnLabel,
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 columnLabel)
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 columnLabel)
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() |
static SQLDataException |
newSQLInvalidColumnIndexException(int colIdx)
Small helper method that formats the "Invalid Column Index number ..." message
and creates a new SQLDataException object whose SQLState is set to "22010": invalid indicator parameter value.
|
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 columnLabel,
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 columnLabel,
InputStream x) |
void |
updateAsciiStream(String columnLabel,
InputStream x,
int length) |
void |
updateAsciiStream(String columnLabel,
InputStream x,
long length) |
void |
updateBigDecimal(int columnIndex,
BigDecimal x) |
void |
updateBigDecimal(String columnLabel,
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 columnLabel,
InputStream x) |
void |
updateBinaryStream(String columnLabel,
InputStream x,
int length) |
void |
updateBinaryStream(String columnLabel,
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 columnLabel,
Blob x) |
void |
updateBlob(String columnLabel,
InputStream s) |
void |
updateBlob(String columnLabel,
InputStream s,
long length) |
void |
updateBoolean(int columnIndex,
boolean x) |
void |
updateBoolean(String columnLabel,
boolean x) |
void |
updateByte(int columnIndex,
byte x) |
void |
updateByte(String columnLabel,
byte x) |
void |
updateBytes(int columnIndex,
byte[] x) |
void |
updateBytes(String columnLabel,
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 columnLabel,
Reader reader) |
void |
updateCharacterStream(String columnLabel,
Reader reader,
int length) |
void |
updateCharacterStream(String columnLabel,
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 columnLabel,
Clob x) |
void |
updateClob(String columnLabel,
Reader r) |
void |
updateClob(String columnLabel,
Reader r,
long length) |
void |
updateDate(int columnIndex,
Date x) |
void |
updateDate(String columnLabel,
Date x) |
void |
updateDouble(int columnIndex,
double x) |
void |
updateDouble(String columnLabel,
double x) |
void |
updateFloat(int columnIndex,
float x) |
void |
updateFloat(String columnLabel,
float x) |
void |
updateInt(int columnIndex,
int x) |
void |
updateInt(String columnLabel,
int x) |
void |
updateLong(int columnIndex,
long x) |
void |
updateLong(String columnLabel,
long x) |
void |
updateNCharacterStream(int columnIndex,
Reader x) |
void |
updateNCharacterStream(int columnIndex,
Reader x,
long length) |
void |
updateNCharacterStream(String columnLabel,
Reader reader) |
void |
updateNCharacterStream(String columnLabel,
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 columnLabel,
NClob x) |
void |
updateNClob(String columnLabel,
Reader r) |
void |
updateNClob(String columnLabel,
Reader r,
long length) |
void |
updateNString(int columnIndex,
String x) |
void |
updateNString(String columnLabel,
String x) |
void |
updateNull(int columnIndex) |
void |
updateNull(String columnLabel) |
void |
updateObject(int columnIndex,
Object x) |
void |
updateObject(int columnIndex,
Object x,
int scale) |
void |
updateObject(String columnLabel,
Object x) |
void |
updateObject(String columnLabel,
Object x,
int scale) |
void |
updateRef(int columnIndex,
Ref x) |
void |
updateRef(String columnLabel,
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 columnLabel,
short x) |
void |
updateSQLXML(int columnIndex,
SQLXML x) |
void |
updateSQLXML(String columnLabel,
SQLXML x) |
void |
updateString(int columnIndex,
String x) |
void |
updateString(String columnLabel,
String x) |
void |
updateTime(int columnIndex,
Time x) |
void |
updateTime(String columnLabel,
Time x) |
void |
updateTimestamp(int columnIndex,
Timestamp x) |
void |
updateTimestamp(String columnLabel,
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 columnLabel) throws SQLException
findColumn in interface ResultSetcolumnLabel - the name of the columnSQLException - if the ResultSet object does not contain a column labeled columnLabel,
a database access error occurs or this method is called on a closed result setpublic 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 columnLabel) throws SQLException
getArray in interface ResultSetSQLExceptionpublic InputStream getAsciiStream(int columnIndex) throws SQLException
getAsciiStream in interface ResultSetSQLExceptionpublic InputStream getAsciiStream(String columnLabel) throws SQLException
getAsciiStream in interface ResultSetSQLException@Deprecated public InputStream getUnicodeStream(int columnIndex) throws SQLException
getUnicodeStream in interface ResultSetSQLException@Deprecated public InputStream getUnicodeStream(String columnLabel) 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 columnLabel) throws SQLException
getBinaryStream 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 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 occurs or this method is called on a closed result setpublic Reader getCharacterStream(String columnLabel) throws SQLException
getCharacterStream in interface ResultSetcolumnLabel - 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 columnLabel) throws SQLException
getNCharacterStream in interface ResultSetcolumnLabel - 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 occurs or this method is called on a closed result setpublic Blob getBlob(String columnLabel) throws SQLException
getBlob in interface ResultSetcolumnLabel - 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 occurs or this method is called on a closed result setpublic Clob getClob(String columnLabel) throws SQLException
getClob in interface ResultSetcolumnLabel - the name of the column from which to retrieve the valueSQLException - if a database access error occurspublic NClob getNClob(int columnIndex) throws SQLException
getNClob 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 NClob getNClob(String columnLabel) throws SQLException
getNClob in interface ResultSetcolumnLabel - 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 or this method is called on a closed result set@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 occurs or this method is called on a closed result setpublic BigDecimal getBigDecimal(String columnLabel) throws SQLException
getBigDecimal in interface ResultSetcolumnLabel - the SQL name of the columnSQLException - if a database access error occurs@Deprecated public BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException
getBigDecimal in interface ResultSetcolumnLabel - 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 the columnIndex is not valid; if a database access error occurs
or this method is called on a closed result setpublic boolean getBoolean(String columnLabel) throws SQLException
getBoolean in interface ResultSetcolumnLabel - the SQL name of the columnSQLException - if the ResultSet object does not contain columnLabelpublic 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 occurs or this method is called on a closed result setpublic byte getByte(String columnLabel) throws SQLException
getByte in interface ResultSetcolumnLabel - 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 occurs or this method is called on a closed result setpublic byte[] getBytes(String columnLabel) throws SQLException
getBytes in interface ResultSetcolumnLabel - 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 column or this method is called on a closed result setpublic double getDouble(String columnLabel) throws SQLException
getDouble in interface ResultSetcolumnLabel - the SQL name of the columnSQLException - if the ResultSet object does not contain columnLabelpublic 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 column or this method is called on a closed result setpublic float getFloat(String columnLabel) throws SQLException
getFloat in interface ResultSetcolumnLabel - the SQL name of the columnSQLException - if the ResultSet object does not contain columnLabelpublic 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 column or this method is called on a closed result setpublic int getInt(String columnLabel) throws SQLException
getInt in interface ResultSetcolumnLabel - the SQL name of the columnSQLException - if the ResultSet object does not contain columnLabelpublic 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 column or this method is called on a closed result setpublic long getLong(String columnLabel) throws SQLException
getLong in interface ResultSetcolumnLabel - the SQL name of the columnSQLException - if the ResultSet object does not contain columnLabelpublic 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 occurs or this method is called on a closed result setpublic 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 occurs or this method is called on a closed result setpublic <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 columnLabel) throws SQLException
getObject in interface ResultSetcolumnLabel - the SQL name of the columnSQLException - if a database access error occurs or this method is called on a closed result setpublic Object getObject(String columnLabel, Map<String,Class<?>> map) throws SQLException
getObject in interface ResultSetcolumnLabel - 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 occurs or this method is called on a closed result setpublic Ref getRef(int columnIndex) throws SQLException
getRef in interface ResultSetSQLExceptionpublic Ref getRef(String columnLabel) 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 columnLabel) throws SQLException
getRowId in interface ResultSetcolumnLabel - the SQL name of the columnSQLException - if the ResultSet object does not contain columnLabelSQLFeatureNotSupportedException - 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 column or this method is called on a closed result setpublic short getShort(String columnLabel) throws SQLException
getShort in interface ResultSetcolumnLabel - the SQL name of the columnSQLException - if the ResultSet object does not contain columnLabelpublic 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 column or this method is called on a closed result setpublic String getString(String columnLabel) throws SQLException
getString in interface ResultSetcolumnLabel - the SQL name of the columnSQLException - if the ResultSet object does not contain columnLabelpublic 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 columnLabel) throws SQLException
getNString in interface ResultSetcolumnLabel - the SQL name of the columnSQLException - if the ResultSet object does not contain columnLabelSQLFeatureNotSupportedException - the JDBC driver does not support this methodpublic SQLXML getSQLXML(int columnIndex) throws SQLException
getSQLXML 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 SQLXML getSQLXML(String columnLabel) throws SQLException
getSQLXML 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 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 columnLabel) throws SQLException
getDate in interface ResultSetcolumnLabel - the SQL name of the column from which to retrieve the valueSQLException - if a database access error occurspublic Date getDate(String columnLabel, Calendar cal) throws SQLException
getDate in interface ResultSetcolumnLabel - 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 columnLabel) throws SQLException
getTime in interface ResultSetcolumnLabel - the SQL name of the columnSQLException - if a database access error occurspublic Time getTime(String columnLabel, Calendar cal) throws SQLException
getTime in interface ResultSetcolumnLabel - 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 columnLabel) throws SQLException
getTimestamp in interface ResultSetcolumnLabel - the SQL name of the columnSQLException - if a database access error occurspublic Timestamp getTimestamp(String columnLabel, Calendar cal) throws SQLException
getTimestamp in interface ResultSetcolumnLabel - 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 columnLabel) throws SQLException
getURL in interface ResultSetcolumnLabel - 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 result setpublic boolean isAfterLast()
throws SQLException
isAfterLast in interface ResultSetSQLException - if a database access error occurs or this method is called on a closed result setpublic boolean isBeforeFirst()
throws SQLException
isBeforeFirst in interface ResultSetSQLException - if a database access error occurs or this method is called on a closed result setpublic boolean isClosed()
throws SQLException
isClosed in interface ResultSetSQLException - if a database access error occurs or this method is called on a closed result setpublic boolean isFirst()
throws SQLException
isFirst in interface ResultSetSQLException - if a database access error occurs or this method is called on a closed result setpublic boolean isLast()
throws SQLException
isLast in interface ResultSetSQLException - if a database access error occurs or this method is called on a closed result setpublic boolean last()
throws SQLException
last in interface ResultSetSQLException - if a database access error occurs or the result set
type is TYPE_FORWARD_ONLYSQLException - if a database access error occurs or this method is called on a closed result setpublic 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 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 columnLabel, 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 columnLabel, InputStream x) throws SQLException
updateAsciiStream in interface ResultSetSQLExceptionpublic void updateAsciiStream(String columnLabel, InputStream x, int length) throws SQLException
updateAsciiStream in interface ResultSetSQLExceptionpublic void updateAsciiStream(String columnLabel, 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 columnLabel, 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 columnLabel, InputStream x) throws SQLException
updateBinaryStream in interface ResultSetSQLExceptionpublic void updateBinaryStream(String columnLabel, InputStream x, int length) throws SQLException
updateBinaryStream in interface ResultSetSQLExceptionpublic void updateBinaryStream(String columnLabel, 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 columnLabel, Blob x) throws SQLException
updateBlob in interface ResultSetSQLExceptionpublic void updateBlob(String columnLabel, InputStream s) throws SQLException
updateBlob in interface ResultSetSQLExceptionpublic void updateBlob(String columnLabel, 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 columnLabel, boolean x) throws SQLException
updateBoolean in interface ResultSetSQLExceptionpublic void updateByte(int columnIndex,
byte x)
throws SQLException
updateByte in interface ResultSetSQLExceptionpublic void updateByte(String columnLabel, byte x) throws SQLException
updateByte in interface ResultSetSQLExceptionpublic void updateBytes(int columnIndex,
byte[] x)
throws SQLException
updateBytes in interface ResultSetSQLExceptionpublic void updateBytes(String columnLabel, 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 columnLabel, Reader reader) throws SQLException
updateCharacterStream in interface ResultSetSQLExceptionpublic void updateCharacterStream(String columnLabel, Reader reader, int length) throws SQLException
updateCharacterStream in interface ResultSetSQLExceptionpublic void updateCharacterStream(String columnLabel, 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 columnLabel, Reader reader) throws SQLException
updateNCharacterStream in interface ResultSetSQLExceptionpublic void updateNCharacterStream(String columnLabel, 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 columnLabel, Clob x) throws SQLException
updateClob in interface ResultSetSQLExceptionpublic void updateClob(String columnLabel, Reader r) throws SQLException
updateClob in interface ResultSetSQLExceptionpublic void updateClob(String columnLabel, 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 columnLabel, NClob x) throws SQLException
updateNClob in interface ResultSetSQLExceptionpublic void updateNClob(String columnLabel, Reader r) throws SQLException
updateNClob in interface ResultSetSQLExceptionpublic void updateNClob(String columnLabel, 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 columnLabel, Date x) throws SQLException
updateDate in interface ResultSetSQLExceptionpublic void updateDouble(int columnIndex,
double x)
throws SQLException
updateDouble in interface ResultSetSQLExceptionpublic void updateDouble(String columnLabel, double x) throws SQLException
updateDouble in interface ResultSetSQLExceptionpublic void updateFloat(int columnIndex,
float x)
throws SQLException
updateFloat in interface ResultSetSQLExceptionpublic void updateFloat(String columnLabel, float x) throws SQLException
updateFloat in interface ResultSetSQLExceptionpublic void updateInt(int columnIndex,
int x)
throws SQLException
updateInt in interface ResultSetSQLExceptionpublic void updateInt(String columnLabel, int x) throws SQLException
updateInt in interface ResultSetSQLExceptionpublic void updateLong(int columnIndex,
long x)
throws SQLException
updateLong in interface ResultSetSQLExceptionpublic void updateLong(String columnLabel, long x) throws SQLException
updateLong in interface ResultSetSQLExceptionpublic void updateNull(int columnIndex)
throws SQLException
updateNull in interface ResultSetSQLExceptionpublic void updateNull(String columnLabel) 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 columnLabel, Object x) throws SQLException
updateObject in interface ResultSetSQLExceptionpublic void updateObject(String columnLabel, 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 columnLabel, 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 columnLabel, short x) throws SQLException
updateShort in interface ResultSetSQLExceptionpublic void updateString(int columnIndex,
String x)
throws SQLException
updateString in interface ResultSetSQLExceptionpublic void updateString(String columnLabel, String x) throws SQLException
updateString in interface ResultSetSQLExceptionpublic void updateNString(int columnIndex,
String x)
throws SQLException
updateNString in interface ResultSetSQLExceptionpublic void updateNString(String columnLabel, String x) throws SQLException
updateNString in interface ResultSetSQLExceptionpublic void updateSQLXML(String columnLabel, 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 columnLabel, Time x) throws SQLException
updateTime in interface ResultSetSQLExceptionpublic void updateTimestamp(int columnIndex,
Timestamp x)
throws SQLException
updateTimestamp in interface ResultSetSQLExceptionpublic void updateTimestamp(String columnLabel, Timestamp x) throws SQLException
updateTimestamp in interface ResultSetSQLExceptionpublic boolean wasNull()
public void addWarning(String reason, String sqlstate)
reason - the warning messagepublic static final SQLDataException newSQLInvalidColumnIndexException(int colIdx)
colIdx - the column index numberCopyright © 2018. All rights reserved.