public class JdbcResultSet extends TraceObject implements ResultSet
Represents a result set.
Column labels are case-insensitive, quotes are not supported. The first column has the column index 1.
Updatable result sets: Result sets are updatable when the result only contains columns from one table, and if it contains all columns of a unique index (primary key or other) of this table. Key columns may not contain NULL (because multiple rows with NULL could exist). In updatable result sets, own changes are visible, but not own inserts and deletes.
ARRAY, BLOB, CALLABLE_STATEMENT, CLOB, CONNECTION, DATA_SOURCE, DATABASE_META_DATA, PARAMETER_META_DATA, PREPARED_STATEMENT, RESULT_SET, RESULT_SET_META_DATA, SAVEPOINT, SQL_EXCEPTION, STATEMENT, trace, XA_DATA_SOURCE, XA_RESOURCE, XID
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 rowNumber)
Moves the current position to a specific row.
|
void |
afterLast()
Moves the current position to after the last row, that means after the end.
|
void |
beforeFirst()
Moves the current position to before the first row, that means resets the
result set.
|
void |
cancelRowUpdates()
Cancels updating a row.
|
void |
clearWarnings()
Clears all warnings.
|
void |
close()
Closes the result set.
|
void |
deleteRow()
Deletes the current row.
|
int |
findColumn(String columnLabel)
Searches for a specific column in the result set.
|
boolean |
first()
Moves the current position to the first row.
|
Array |
getArray(int columnIndex)
Returns the value of the specified column as an Array.
|
Array |
getArray(String columnLabel)
Returns the value of the specified column as an Array.
|
InputStream |
getAsciiStream(int columnIndex)
Returns the value of the specified column as an input stream.
|
InputStream |
getAsciiStream(String columnLabel)
Returns the value of the specified column as an input stream.
|
BigDecimal |
getBigDecimal(int columnIndex)
Returns the value of the specified column as a BigDecimal.
|
BigDecimal |
getBigDecimal(int columnIndex,
int scale)
Deprecated.
|
BigDecimal |
getBigDecimal(String columnLabel)
Returns the value of the specified column as a BigDecimal.
|
BigDecimal |
getBigDecimal(String columnLabel,
int scale)
Deprecated.
|
InputStream |
getBinaryStream(int columnIndex)
Returns the value of the specified column as an input stream.
|
InputStream |
getBinaryStream(String columnLabel)
Returns the value of the specified column as an input stream.
|
Blob |
getBlob(int columnIndex)
Returns the value of the specified column as a Blob.
|
Blob |
getBlob(String columnLabel)
Returns the value of the specified column as a Blob.
|
boolean |
getBoolean(int columnIndex)
Returns the value of the specified column as a boolean.
|
boolean |
getBoolean(String columnLabel)
Returns the value of the specified column as a boolean.
|
byte |
getByte(int columnIndex)
Returns the value of the specified column as a byte.
|
byte |
getByte(String columnLabel)
Returns the value of the specified column as a byte.
|
byte[] |
getBytes(int columnIndex)
Returns the value of the specified column as a byte array.
|
byte[] |
getBytes(String columnLabel)
Returns the value of the specified column as a byte array.
|
Reader |
getCharacterStream(int columnIndex)
Returns the value of the specified column as a reader.
|
Reader |
getCharacterStream(String columnLabel)
Returns the value of the specified column as a reader.
|
Clob |
getClob(int columnIndex)
Returns the value of the specified column as a Clob.
|
Clob |
getClob(String columnLabel)
Returns the value of the specified column as a Clob.
|
int |
getConcurrency()
Gets the result set concurrency.
|
String |
getCursorName()
[Not supported] Gets the cursor name if it was defined.
|
Date |
getDate(int columnIndex)
Returns the value of the specified column as a java.sql.Date.
|
Date |
getDate(int columnIndex,
Calendar calendar)
Returns the value of the specified column as a java.sql.Date using a
specified time zone.
|
Date |
getDate(String columnLabel)
Returns the value of the specified column as a java.sql.Date.
|
Date |
getDate(String columnLabel,
Calendar calendar)
Returns the value of the specified column as a java.sql.Date using a
specified time zone.
|
double |
getDouble(int columnIndex)
Returns the value of the specified column as a double.
|
double |
getDouble(String columnLabel)
Returns the value of the specified column as a double.
|
int |
getFetchDirection()
Gets the fetch direction.
|
int |
getFetchSize()
Gets the number of rows suggested to read in one step.
|
float |
getFloat(int columnIndex)
Returns the value of the specified column as a float.
|
float |
getFloat(String columnLabel)
Returns the value of the specified column as a float.
|
int |
getHoldability()
Returns the current result set holdability.
|
int |
getInt(int columnIndex)
Returns the value of the specified column as an int.
|
int |
getInt(String columnLabel)
Returns the value of the specified column as an int.
|
long |
getLong(int columnIndex)
Returns the value of the specified column as a long.
|
long |
getLong(String columnLabel)
Returns the value of the specified column as a long.
|
ResultSetMetaData |
getMetaData()
Gets the meta data of this result set.
|
Object |
getObject(int columnIndex)
Returns a column value as a Java object.
|
Object |
getObject(int columnIndex,
Map<String,Class<?>> map)
[Not supported] Gets a column as a object using the specified type
mapping.
|
Object |
getObject(String columnLabel)
Returns a column value as a Java object.
|
Object |
getObject(String columnLabel,
Map<String,Class<?>> map)
[Not supported] Gets a column as a object using the specified type
mapping.
|
Ref |
getRef(int columnIndex)
[Not supported] Gets a column as a reference.
|
Ref |
getRef(String columnLabel)
[Not supported] Gets a column as a reference.
|
int |
getRow()
Gets the current row number.
|
short |
getShort(int columnIndex)
Returns the value of the specified column as a short.
|
short |
getShort(String columnLabel)
Returns the value of the specified column as a short.
|
Statement |
getStatement()
Returns the statement that created this object.
|
String |
getString(int columnIndex)
Returns the value of the specified column as a String.
|
String |
getString(String columnLabel)
Returns the value of the specified column as a String.
|
Time |
getTime(int columnIndex)
Returns the value of the specified column as a java.sql.Time.
|
Time |
getTime(int columnIndex,
Calendar calendar)
Returns the value of the specified column as a java.sql.Time using a
specified time zone.
|
Time |
getTime(String columnLabel)
Returns the value of the specified column as a java.sql.Time.
|
Time |
getTime(String columnLabel,
Calendar calendar)
Returns the value of the specified column as a java.sql.Time using a
specified time zone.
|
Timestamp |
getTimestamp(int columnIndex)
Returns the value of the specified column as a java.sql.Timestamp.
|
Timestamp |
getTimestamp(int columnIndex,
Calendar calendar)
Returns the value of the specified column as a java.sql.Timestamp using a
specified time zone.
|
Timestamp |
getTimestamp(String columnLabel)
Returns the value of the specified column as a java.sql.Timestamp.
|
Timestamp |
getTimestamp(String columnLabel,
Calendar calendar)
Returns the value of the specified column as a java.sql.Timestamp.
|
int |
getType()
Get the result set type.
|
InputStream |
getUnicodeStream(int columnIndex)
Deprecated.
|
InputStream |
getUnicodeStream(String columnLabel)
Deprecated.
|
URL |
getURL(int columnIndex)
[Not supported]
|
URL |
getURL(String columnLabel)
[Not supported]
|
SQLWarning |
getWarnings()
Gets the first warning reported by calls on this object.
|
void |
insertRow()
Inserts the current row.
|
boolean |
isAfterLast()
Checks if the current position is after the last row, that means next()
was called and returned false, and there was at least one row.
|
boolean |
isBeforeFirst()
Checks if the current position is before the first row, that means next()
was not called yet, and there is at least one row.
|
boolean |
isClosed()
Returns whether this result set is closed.
|
boolean |
isFirst()
Checks if the current position is row 1, that means next() was called
once and returned true.
|
boolean |
isLast()
Checks if the current position is the last row, that means next() was
called and did not yet returned false, but will in the next call.
|
boolean |
last()
Moves the current position to the last row.
|
void |
moveToCurrentRow()
Moves the current position to the current row.
|
void |
moveToInsertRow()
Moves the current position to the insert row.
|
boolean |
next()
Moves the cursor to the next row of the result set.
|
boolean |
previous()
Moves the cursor to the last row, or row before first row if the current
position is the first row.
|
void |
refreshRow()
Re-reads the current row from the database.
|
boolean |
relative(int rowCount)
Moves the current position to a specific row relative to the current row.
|
boolean |
rowDeleted()
Detects if the row was deleted (by somebody else or the caller).
|
boolean |
rowInserted()
Detects if the row was inserted.
|
boolean |
rowUpdated()
Detects if the row was updated (by somebody else or the caller).
|
void |
setFetchDirection(int direction)
[Not supported]
Sets (changes) the fetch direction for this result set.
|
void |
setFetchSize(int rows)
Sets the number of rows suggested to read in one step.
|
String |
toString()
INTERNAL
|
void |
updateArray(int columnIndex,
Array x)
[Not supported]
|
void |
updateArray(String columnLabel,
Array x)
[Not supported]
|
void |
updateAsciiStream(int columnIndex,
InputStream x)
Updates a column in the current or insert row.
|
void |
updateAsciiStream(int columnIndex,
InputStream x,
int length)
Updates a column in the current or insert row.
|
void |
updateAsciiStream(int columnIndex,
InputStream x,
long length)
Updates a column in the current or insert row.
|
void |
updateAsciiStream(String columnLabel,
InputStream x)
Updates a column in the current or insert row.
|
void |
updateAsciiStream(String columnLabel,
InputStream x,
int length)
Updates a column in the current or insert row.
|
void |
updateAsciiStream(String columnLabel,
InputStream x,
long length)
Updates a column in the current or insert row.
|
void |
updateBigDecimal(int columnIndex,
BigDecimal x)
Updates a column in the current or insert row.
|
void |
updateBigDecimal(String columnLabel,
BigDecimal x)
Updates a column in the current or insert row.
|
void |
updateBinaryStream(int columnIndex,
InputStream x)
Updates a column in the current or insert row.
|
void |
updateBinaryStream(int columnIndex,
InputStream x,
int length)
Updates a column in the current or insert row.
|
void |
updateBinaryStream(int columnIndex,
InputStream x,
long length)
Updates a column in the current or insert row.
|
void |
updateBinaryStream(String columnLabel,
InputStream x)
Updates a column in the current or insert row.
|
void |
updateBinaryStream(String columnLabel,
InputStream x,
int length)
Updates a column in the current or insert row.
|
void |
updateBinaryStream(String columnLabel,
InputStream x,
long length)
Updates a column in the current or insert row.
|
void |
updateBlob(int columnIndex,
Blob x)
Updates a column in the current or insert row.
|
void |
updateBlob(int columnIndex,
InputStream x)
Updates a column in the current or insert row.
|
void |
updateBlob(int columnIndex,
InputStream x,
long length)
Updates a column in the current or insert row.
|
void |
updateBlob(String columnLabel,
Blob x)
Updates a column in the current or insert row.
|
void |
updateBlob(String columnLabel,
InputStream x)
Updates a column in the current or insert row.
|
void |
updateBlob(String columnLabel,
InputStream x,
long length)
Updates a column in the current or insert row.
|
void |
updateBoolean(int columnIndex,
boolean x)
Updates a column in the current or insert row.
|
void |
updateBoolean(String columnLabel,
boolean x)
Updates a column in the current or insert row.
|
void |
updateByte(int columnIndex,
byte x)
Updates a column in the current or insert row.
|
void |
updateByte(String columnLabel,
byte x)
Updates a column in the current or insert row.
|
void |
updateBytes(int columnIndex,
byte[] x)
Updates a column in the current or insert row.
|
void |
updateBytes(String columnLabel,
byte[] x)
Updates a column in the current or insert row.
|
void |
updateCharacterStream(int columnIndex,
Reader x)
Updates a column in the current or insert row.
|
void |
updateCharacterStream(int columnIndex,
Reader x,
int length)
Updates a column in the current or insert row.
|
void |
updateCharacterStream(int columnIndex,
Reader x,
long length)
Updates a column in the current or insert row.
|
void |
updateCharacterStream(String columnLabel,
Reader x)
Updates a column in the current or insert row.
|
void |
updateCharacterStream(String columnLabel,
Reader x,
int length)
Updates a column in the current or insert row.
|
void |
updateCharacterStream(String columnLabel,
Reader x,
long length)
Updates a column in the current or insert row.
|
void |
updateClob(int columnIndex,
Clob x)
Updates a column in the current or insert row.
|
void |
updateClob(int columnIndex,
Reader x)
Updates a column in the current or insert row.
|
void |
updateClob(int columnIndex,
Reader x,
long length)
Updates a column in the current or insert row.
|
void |
updateClob(String columnLabel,
Clob x)
Updates a column in the current or insert row.
|
void |
updateClob(String columnLabel,
Reader x)
Updates a column in the current or insert row.
|
void |
updateClob(String columnLabel,
Reader x,
long length)
Updates a column in the current or insert row.
|
void |
updateDate(int columnIndex,
Date x)
Updates a column in the current or insert row.
|
void |
updateDate(String columnLabel,
Date x)
Updates a column in the current or insert row.
|
void |
updateDouble(int columnIndex,
double x)
Updates a column in the current or insert row.
|
void |
updateDouble(String columnLabel,
double x)
Updates a column in the current or insert row.
|
void |
updateFloat(int columnIndex,
float x)
Updates a column in the current or insert row.
|
void |
updateFloat(String columnLabel,
float x)
Updates a column in the current or insert row.
|
void |
updateInt(int columnIndex,
int x)
Updates a column in the current or insert row.
|
void |
updateInt(String columnLabel,
int x)
Updates a column in the current or insert row.
|
void |
updateLong(int columnIndex,
long x)
Updates a column in the current or insert row.
|
void |
updateLong(String columnLabel,
long x)
Updates a column in the current or insert row.
|
void |
updateNull(int columnIndex)
Updates a column in the current or insert row.
|
void |
updateNull(String columnLabel)
Updates a column in the current or insert row.
|
void |
updateObject(int columnIndex,
Object x)
Updates a column in the current or insert row.
|
void |
updateObject(int columnIndex,
Object x,
int scale)
Updates a column in the current or insert row.
|
void |
updateObject(String columnLabel,
Object x)
Updates a column in the current or insert row.
|
void |
updateObject(String columnLabel,
Object x,
int scale)
Updates a column in the current or insert row.
|
void |
updateRef(int columnIndex,
Ref x)
[Not supported]
|
void |
updateRef(String columnLabel,
Ref x)
[Not supported]
|
void |
updateRow()
Updates the current row.
|
void |
updateShort(int columnIndex,
short x)
Updates a column in the current or insert row.
|
void |
updateShort(String columnLabel,
short x)
Updates a column in the current or insert row.
|
void |
updateString(int columnIndex,
String x)
Updates a column in the current or insert row.
|
void |
updateString(String columnLabel,
String x)
Updates a column in the current or insert row.
|
void |
updateTime(int columnIndex,
Time x)
Updates a column in the current or insert row.
|
void |
updateTime(String columnLabel,
Time x)
Updates a column in the current or insert row.
|
void |
updateTimestamp(int columnIndex,
Timestamp x)
Updates a column in the current or insert row.
|
void |
updateTimestamp(String columnLabel,
Timestamp x)
Updates a column in the current or insert row.
|
boolean |
wasNull()
Returns whether the last column accessed was null.
|
debugCode, debugCodeAssign, debugCodeCall, debugCodeCall, debugCodeCall, getNextId, getTrace, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, unsupported
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getRowId, getRowId, getSQLXML, getSQLXML, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateRowId, updateRowId, updateSQLXML, updateSQLXML
isWrapperFor, unwrap
public boolean next() throws SQLException
next
in interface ResultSet
SQLException
public ResultSetMetaData getMetaData() throws SQLException
getMetaData
in interface ResultSet
SQLException
public boolean wasNull() throws SQLException
wasNull
in interface ResultSet
SQLException
public int findColumn(String columnLabel) throws SQLException
findColumn
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic void close() throws SQLException
close
in interface AutoCloseable
close
in interface ResultSet
SQLException
public Statement getStatement() throws SQLException
getStatement
in interface ResultSet
SQLException
public SQLWarning getWarnings() throws SQLException
getWarnings
in interface ResultSet
SQLException
public void clearWarnings() throws SQLException
clearWarnings
in interface ResultSet
SQLException
public String getString(int columnIndex) throws SQLException
getString
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is closedpublic String getString(String columnLabel) throws SQLException
getString
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is closedpublic int getInt(int columnIndex) throws SQLException
getInt
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is closedpublic int getInt(String columnLabel) throws SQLException
getInt
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is closedpublic BigDecimal getBigDecimal(int columnIndex) throws SQLException
getBigDecimal
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is closedpublic Date getDate(int columnIndex) throws SQLException
getDate
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is closedpublic Time getTime(int columnIndex) throws SQLException
getTime
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is closedpublic Timestamp getTimestamp(int columnIndex) throws SQLException
getTimestamp
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is closedpublic BigDecimal getBigDecimal(String columnLabel) throws SQLException
getBigDecimal
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic Date getDate(String columnLabel) throws SQLException
getDate
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is closedpublic Time getTime(String columnLabel) throws SQLException
getTime
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic Timestamp getTimestamp(String columnLabel) throws SQLException
getTimestamp
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic Object getObject(int columnIndex) throws SQLException
getObject
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is
closedpublic Object getObject(String columnLabel) throws SQLException
getObject
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic boolean getBoolean(int columnIndex) throws SQLException
getBoolean
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is
closedpublic boolean getBoolean(String columnLabel) throws SQLException
getBoolean
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic byte getByte(int columnIndex) throws SQLException
getByte
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is
closedpublic byte getByte(String columnLabel) throws SQLException
getByte
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic short getShort(int columnIndex) throws SQLException
getShort
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is
closedpublic short getShort(String columnLabel) throws SQLException
getShort
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic long getLong(int columnIndex) throws SQLException
getLong
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is
closedpublic long getLong(String columnLabel) throws SQLException
getLong
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic float getFloat(int columnIndex) throws SQLException
getFloat
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is
closedpublic float getFloat(String columnLabel) throws SQLException
getFloat
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic double getDouble(int columnIndex) throws SQLException
getDouble
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is
closedpublic double getDouble(String columnLabel) throws SQLException
getDouble
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException
getBigDecimal(String)
getBigDecimal
in interface ResultSet
columnLabel
- the column labelscale
- the scale of the returned valueSQLException
- if the column is not found or if the result set is
closedpublic BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException
getBigDecimal(int)
getBigDecimal
in interface ResultSet
columnIndex
- (1,2,...)scale
- the scale of the returned valueSQLException
- if the column is not found or if the result set is
closedpublic InputStream getUnicodeStream(int columnIndex) throws SQLException
getUnicodeStream
in interface ResultSet
SQLException
public InputStream getUnicodeStream(String columnLabel) throws SQLException
getUnicodeStream
in interface ResultSet
SQLException
public Object getObject(int columnIndex, Map<String,Class<?>> map) throws SQLException
getObject
in interface ResultSet
SQLException
public Object getObject(String columnLabel, Map<String,Class<?>> map) throws SQLException
getObject
in interface ResultSet
SQLException
public Ref getRef(int columnIndex) throws SQLException
getRef
in interface ResultSet
SQLException
public Ref getRef(String columnLabel) throws SQLException
getRef
in interface ResultSet
SQLException
public Date getDate(int columnIndex, Calendar calendar) throws SQLException
getDate
in interface ResultSet
columnIndex
- (1,2,...)calendar
- the calendarSQLException
- if the column is not found or if the result set is
closedpublic Date getDate(String columnLabel, Calendar calendar) throws SQLException
getDate
in interface ResultSet
columnLabel
- the column labelcalendar
- the calendarSQLException
- if the column is not found or if the result set is
closedpublic Time getTime(int columnIndex, Calendar calendar) throws SQLException
getTime
in interface ResultSet
columnIndex
- (1,2,...)calendar
- the calendarSQLException
- if the column is not found or if the result set is
closedpublic Time getTime(String columnLabel, Calendar calendar) throws SQLException
getTime
in interface ResultSet
columnLabel
- the column labelcalendar
- the calendarSQLException
- if the column is not found or if the result set is
closedpublic Timestamp getTimestamp(int columnIndex, Calendar calendar) throws SQLException
getTimestamp
in interface ResultSet
columnIndex
- (1,2,...)calendar
- the calendarSQLException
- if the column is not found or if the result set is
closedpublic Timestamp getTimestamp(String columnLabel, Calendar calendar) throws SQLException
getTimestamp
in interface ResultSet
columnLabel
- the column labelcalendar
- the calendarSQLException
- if the column is not found or if the result set is
closedpublic Blob getBlob(int columnIndex) throws SQLException
getBlob
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is
closedpublic Blob getBlob(String columnLabel) throws SQLException
getBlob
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic byte[] getBytes(int columnIndex) throws SQLException
getBytes
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is
closedpublic byte[] getBytes(String columnLabel) throws SQLException
getBytes
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic InputStream getBinaryStream(int columnIndex) throws SQLException
getBinaryStream
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is
closedpublic InputStream getBinaryStream(String columnLabel) throws SQLException
getBinaryStream
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic Clob getClob(int columnIndex) throws SQLException
getClob
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is
closedpublic Clob getClob(String columnLabel) throws SQLException
getClob
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic Array getArray(int columnIndex) throws SQLException
getArray
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is
closedpublic Array getArray(String columnLabel) throws SQLException
getArray
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic InputStream getAsciiStream(int columnIndex) throws SQLException
getAsciiStream
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is
closedpublic InputStream getAsciiStream(String columnLabel) throws SQLException
getAsciiStream
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic Reader getCharacterStream(int columnIndex) throws SQLException
getCharacterStream
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the column is not found or if the result set is
closedpublic Reader getCharacterStream(String columnLabel) throws SQLException
getCharacterStream
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic URL getURL(int columnIndex) throws SQLException
getURL
in interface ResultSet
SQLException
public URL getURL(String columnLabel) throws SQLException
getURL
in interface ResultSet
SQLException
public void updateNull(int columnIndex) throws SQLException
updateNull
in interface ResultSet
columnIndex
- (1,2,...)SQLException
- if the result set is closed or not updatablepublic void updateNull(String columnLabel) throws SQLException
updateNull
in interface ResultSet
columnLabel
- the column labelSQLException
- if the result set is closed or not updatablepublic void updateBoolean(int columnIndex, boolean x) throws SQLException
updateBoolean
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateBoolean(String columnLabel, boolean x) throws SQLException
updateBoolean
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if result set is closed or not updatablepublic void updateByte(int columnIndex, byte x) throws SQLException
updateByte
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateByte(String columnLabel, byte x) throws SQLException
updateByte
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateBytes(int columnIndex, byte[] x) throws SQLException
updateBytes
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateBytes(String columnLabel, byte[] x) throws SQLException
updateBytes
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateShort(int columnIndex, short x) throws SQLException
updateShort
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateShort(String columnLabel, short x) throws SQLException
updateShort
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateInt(int columnIndex, int x) throws SQLException
updateInt
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateInt(String columnLabel, int x) throws SQLException
updateInt
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateLong(int columnIndex, long x) throws SQLException
updateLong
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateLong(String columnLabel, long x) throws SQLException
updateLong
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateFloat(int columnIndex, float x) throws SQLException
updateFloat
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateFloat(String columnLabel, float x) throws SQLException
updateFloat
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateDouble(int columnIndex, double x) throws SQLException
updateDouble
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateDouble(String columnLabel, double x) throws SQLException
updateDouble
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException
updateBigDecimal
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateBigDecimal(String columnLabel, BigDecimal x) throws SQLException
updateBigDecimal
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateString(int columnIndex, String x) throws SQLException
updateString
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateString(String columnLabel, String x) throws SQLException
updateString
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateDate(int columnIndex, Date x) throws SQLException
updateDate
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateDate(String columnLabel, Date x) throws SQLException
updateDate
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateTime(int columnIndex, Time x) throws SQLException
updateTime
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateTime(String columnLabel, Time x) throws SQLException
updateTime
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateTimestamp(int columnIndex, Timestamp x) throws SQLException
updateTimestamp
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateTimestamp(String columnLabel, Timestamp x) throws SQLException
updateTimestamp
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException
updateAsciiStream
in interface ResultSet
columnIndex
- (1,2,...)x
- the valuelength
- the number of charactersSQLException
- if the result set is closed or not updatablepublic void updateAsciiStream(int columnIndex, InputStream x) throws SQLException
updateAsciiStream
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException
updateAsciiStream
in interface ResultSet
columnIndex
- (1,2,...)x
- the valuelength
- the number of charactersSQLException
- if the result set is closed or not updatablepublic void updateAsciiStream(String columnLabel, InputStream x, int length) throws SQLException
updateAsciiStream
in interface ResultSet
columnLabel
- the column labelx
- the valuelength
- the number of charactersSQLException
- if the result set is closed or not updatablepublic void updateAsciiStream(String columnLabel, InputStream x) throws SQLException
updateAsciiStream
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closedpublic void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException
updateAsciiStream
in interface ResultSet
columnLabel
- the column labelx
- the valuelength
- the number of charactersSQLException
- if the result set is closed or not updatablepublic void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException
updateBinaryStream
in interface ResultSet
columnIndex
- (1,2,...)x
- the valuelength
- the number of charactersSQLException
- if the result set is closed or not updatablepublic void updateBinaryStream(int columnIndex, InputStream x) throws SQLException
updateBinaryStream
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException
updateBinaryStream
in interface ResultSet
columnIndex
- (1,2,...)x
- the valuelength
- the number of charactersSQLException
- if the result set is closed or not updatablepublic void updateBinaryStream(String columnLabel, InputStream x) throws SQLException
updateBinaryStream
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateBinaryStream(String columnLabel, InputStream x, int length) throws SQLException
updateBinaryStream
in interface ResultSet
columnLabel
- the column labelx
- the valuelength
- the number of charactersSQLException
- if the result set is closed or not updatablepublic void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException
updateBinaryStream
in interface ResultSet
columnLabel
- the column labelx
- the valuelength
- the number of charactersSQLException
- if the result set is closed or not updatablepublic void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException
updateCharacterStream
in interface ResultSet
columnIndex
- (1,2,...)x
- the valuelength
- the number of charactersSQLException
- if the result set is closed or not updatablepublic void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException
updateCharacterStream
in interface ResultSet
columnIndex
- (1,2,...)x
- the valuelength
- the number of charactersSQLException
- if the result set is closed or not updatablepublic void updateCharacterStream(int columnIndex, Reader x) throws SQLException
updateCharacterStream
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateCharacterStream(String columnLabel, Reader x, int length) throws SQLException
updateCharacterStream
in interface ResultSet
columnLabel
- the column labelx
- the valuelength
- the number of charactersSQLException
- if the result set is closed or not updatablepublic void updateCharacterStream(String columnLabel, Reader x) throws SQLException
updateCharacterStream
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateCharacterStream(String columnLabel, Reader x, long length) throws SQLException
updateCharacterStream
in interface ResultSet
columnLabel
- the column labelx
- the valuelength
- the number of charactersSQLException
- if the result set is closed or not updatablepublic void updateObject(int columnIndex, Object x, int scale) throws SQLException
updateObject
in interface ResultSet
columnIndex
- (1,2,...)x
- the valuescale
- is ignoredSQLException
- if the result set is closed or not updatablepublic void updateObject(String columnLabel, Object x, int scale) throws SQLException
updateObject
in interface ResultSet
columnLabel
- the column labelx
- the valuescale
- is ignoredSQLException
- if the result set is closed or not updatablepublic void updateObject(int columnIndex, Object x) throws SQLException
updateObject
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateObject(String columnLabel, Object x) throws SQLException
updateObject
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateRef(int columnIndex, Ref x) throws SQLException
updateRef
in interface ResultSet
SQLException
public void updateRef(String columnLabel, Ref x) throws SQLException
updateRef
in interface ResultSet
SQLException
public void updateBlob(int columnIndex, InputStream x) throws SQLException
updateBlob
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateBlob(int columnIndex, InputStream x, long length) throws SQLException
updateBlob
in interface ResultSet
columnIndex
- (1,2,...)x
- the valuelength
- the lengthSQLException
- if the result set is closed or not updatablepublic void updateBlob(int columnIndex, Blob x) throws SQLException
updateBlob
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateBlob(String columnLabel, Blob x) throws SQLException
updateBlob
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateBlob(String columnLabel, InputStream x) throws SQLException
updateBlob
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateBlob(String columnLabel, InputStream x, long length) throws SQLException
updateBlob
in interface ResultSet
columnLabel
- the column labelx
- the valuelength
- the lengthSQLException
- if the result set is closed or not updatablepublic void updateClob(int columnIndex, Clob x) throws SQLException
updateClob
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateClob(int columnIndex, Reader x) throws SQLException
updateClob
in interface ResultSet
columnIndex
- (1,2,...)x
- the valueSQLException
- if the result set is closed or not updatablepublic void updateClob(int columnIndex, Reader x, long length) throws SQLException
updateClob
in interface ResultSet
columnIndex
- (1,2,...)x
- the valuelength
- the lengthSQLException
- if the result set is closed or not updatablepublic void updateClob(String columnLabel, Clob x) throws SQLException
updateClob
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateClob(String columnLabel, Reader x) throws SQLException
updateClob
in interface ResultSet
columnLabel
- the column labelx
- the valueSQLException
- if the result set is closed or not updatablepublic void updateClob(String columnLabel, Reader x, long length) throws SQLException
updateClob
in interface ResultSet
columnLabel
- the column labelx
- the valuelength
- the lengthSQLException
- if the result set is closed or not updatablepublic void updateArray(int columnIndex, Array x) throws SQLException
updateArray
in interface ResultSet
SQLException
public void updateArray(String columnLabel, Array x) throws SQLException
updateArray
in interface ResultSet
SQLException
public String getCursorName() throws SQLException
getCursorName
in interface ResultSet
SQLException
public int getRow() throws SQLException
getRow
in interface ResultSet
SQLException
public int getConcurrency() throws SQLException
getConcurrency
in interface ResultSet
SQLException
public int getFetchDirection() throws SQLException
getFetchDirection
in interface ResultSet
SQLException
public int getFetchSize() throws SQLException
getFetchSize
in interface ResultSet
SQLException
public void setFetchSize(int rows) throws SQLException
setFetchSize
in interface ResultSet
rows
- the number of rowsSQLException
public void setFetchDirection(int direction) throws SQLException
setFetchDirection
in interface ResultSet
direction
- the new fetch directionSQLException
- Unsupported Feature if the method is called for a
forward-only result setpublic int getType() throws SQLException
getType
in interface ResultSet
SQLException
- if the column is not found or if the result set is
closedpublic boolean isBeforeFirst() throws SQLException
isBeforeFirst
in interface ResultSet
SQLException
- if the result set is closedpublic boolean isAfterLast() throws SQLException
isAfterLast
in interface ResultSet
SQLException
- if the result set is closedpublic boolean isFirst() throws SQLException
isFirst
in interface ResultSet
SQLException
- if the result set is closedpublic boolean isLast() throws SQLException
isLast
in interface ResultSet
SQLException
- if the result set is closedpublic void beforeFirst() throws SQLException
beforeFirst
in interface ResultSet
SQLException
- if the result set is closedpublic void afterLast() throws SQLException
afterLast
in interface ResultSet
SQLException
- if the result set is closedpublic boolean first() throws SQLException
first
in interface ResultSet
SQLException
- if the result set is closedpublic boolean last() throws SQLException
last
in interface ResultSet
SQLException
- if the result set is closedpublic boolean absolute(int rowNumber) throws SQLException
absolute
in interface ResultSet
rowNumber
- the row number. 0 is not allowed, 1 means the first row,
2 the second. -1 means the last row, -2 the row before the
last row. If the value is too large, the position is moved
after the last row, if if the value is too small it is moved
before the first row.SQLException
- if the result set is closedpublic boolean relative(int rowCount) throws SQLException
relative
in interface ResultSet
rowCount
- 0 means don't do anything, 1 is the next row, -1 the
previous. If the value is too large, the position is moved
after the last row, if if the value is too small it is moved
before the first row.SQLException
- if the result set is closedpublic boolean previous() throws SQLException
previous
in interface ResultSet
SQLException
- if the result set is closedpublic void moveToInsertRow() throws SQLException
moveToInsertRow
in interface ResultSet
SQLException
- if the result set is closed or is not updatablepublic void moveToCurrentRow() throws SQLException
moveToCurrentRow
in interface ResultSet
SQLException
- if the result set is closed or is not updatablepublic boolean rowUpdated() throws SQLException
rowUpdated
in interface ResultSet
SQLException
public boolean rowInserted() throws SQLException
rowInserted
in interface ResultSet
SQLException
public boolean rowDeleted() throws SQLException
rowDeleted
in interface ResultSet
SQLException
public void insertRow() throws SQLException
insertRow
in interface ResultSet
SQLException
- if the result set is closed or if not on the insert
row, or if the result set it not updatablepublic void updateRow() throws SQLException
updateRow
in interface ResultSet
SQLException
- if the result set is closed, if the current row is
the insert row or if not on a valid row, or if the result set
it not updatablepublic void deleteRow() throws SQLException
deleteRow
in interface ResultSet
SQLException
- if the result set is closed, if the current row is
the insert row or if not on a valid row, or if the result set
it not updatablepublic void refreshRow() throws SQLException
refreshRow
in interface ResultSet
SQLException
- if the result set is closed or if the current row is
the insert row or if the row has been deleted or if not on a
valid rowpublic void cancelRowUpdates() throws SQLException
cancelRowUpdates
in interface ResultSet
SQLException
- if the result set is closed or if the current row is
the insert rowpublic int getHoldability() throws SQLException
getHoldability
in interface ResultSet
SQLException
- if the connection is closedpublic boolean isClosed() throws SQLException
isClosed
in interface ResultSet
SQLException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.