public class RowSet extends MetaDataProvider implements RowSetInterface
Title: Structured Data Objects
Description: A Structure Data Object representative of a database RowSet.
Copyright: Copyright (c) 2009
Company: StreamScape Technologies
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
DEFAULT_SERIAL_VERSION_ID
Constructor and Description |
---|
RowSet()
Default constructor.
|
RowSet(RowMetaData descriptor)
Creates
RowSet with the specified meta data. |
RowSet(RowSet set)
Creates
RowSet out of the provided RowSet . |
RowSet(java.lang.String[] columnNames,
java.lang.Object[] values)
Creates
RowSet with the specified column names and values. |
Modifier and Type | Method and Description |
---|---|
boolean |
absolute(int row)
Moves the cursor to the given row number in this
ResultSet
object. |
void |
addAll(RowSet other)
Adds all rows from the specified
RowSet at the end of this RowSet . |
boolean |
addRow(java.lang.Object[] rowValues)
Deprecated.
|
void |
addRowSetListener(RowSetListener listener)
Registers the given listener so that it will be notified of events
that occur on this
RowSet object. |
void |
addToRowSet(java.lang.Object[] rowValues)
Adds new row with provided values to the end of
RowSet . |
void |
addToRowSet(Row row)
Adds provided row to the end of
RowSet . |
void |
afterLast()
Moves the cursor to the end of this
ResultSet object, just
after the last row. |
RowSet |
asRowSet()
Returns serialized RowSet.
|
void |
beforeFirst()
Moves the cursor to the front of this
ResultSet object, just
before the first row. |
void |
cancelRowUpdates()
This method is not currently implemented.
|
void |
clearWarnings()
This method is not currently implemented.
|
RowSet |
clone()
Clones the object.
|
void |
close()
No effect on
RowSet . |
static byte[] |
convertStringToBytes(java.lang.String str,
SQLType type) |
static RowMetaData |
createMetaData(ResultSet resultSet) |
Row |
deleteFromRowSet(int index)
Deletes row with provided index from the
RowSet . |
void |
deleteRow()
This method is not currently implemented.
|
int |
findColumn(java.lang.String columnName)
Maps the given
ResultSet column name to its
ResultSet column index. |
boolean |
first()
Moves the cursor to the first row in this
ResultSet object. |
Array |
getArray(int columnIndex)
Retrieves the value of the designated column in the current row
of this
ResultSet object as an Array object
in the Java programming language. |
Array |
getArray(java.lang.String columnName)
Retrieves the value of the designated column in the current row
of this
ResultSet object as an Array object
in the Java programming language. |
java.io.InputStream |
getAsciiStream(int columnIndex)
Retrieves the value of the designated column in the current row
of this
ResultSet object as
a stream of ASCII characters. |
java.io.InputStream |
getAsciiStream(java.lang.String columnName)
Retrieves the value of the designated column in the current row
of this
ResultSet object as a stream of
ASCII characters. |
java.math.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. |
java.math.BigDecimal |
getBigDecimal(int columnIndex,
int scale)
Deprecated.
|
java.math.BigDecimal |
getBigDecimal(java.lang.String columnName)
Retrieves the value of the designated column in the current row
of this
ResultSet object as a
java.math.BigDecimal with full precision. |
java.math.BigDecimal |
getBigDecimal(java.lang.String columnName,
int scale)
Deprecated.
|
java.util.List |
getBigDecimalColumn(int columnIndex) |
java.util.List |
getBigDecimalColumn(java.lang.String columnName) |
java.io.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. |
java.io.InputStream |
getBinaryStream(java.lang.String columnName)
Retrieves the value of the designated column in the current row
of this
ResultSet object as a stream of uninterpreted
byte s. |
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(java.lang.String columnName)
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(java.lang.String columnName)
Retrieves the value of the designated column in the current row
of this
ResultSet object as
a boolean in the Java programming language. |
java.util.List |
getBooleanColumn(int columnIndex) |
java.util.List |
getBooleanColumn(java.lang.String columnName) |
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(java.lang.String columnName)
Retrieves the value of the designated column in the current row
of this
ResultSet object as
a byte in the Java programming language. |
java.util.List |
getByteColumn(int columnIndex) |
java.util.List |
getByteColumn(java.lang.String columnName) |
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(java.lang.String columnName)
Retrieves the value of the designated column in the current row
of this
ResultSet object as
a byte array in the Java programming language. |
java.io.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. |
java.io.Reader |
getCharacterStream(java.lang.String columnName)
Retrieves the value of the designated column in the current row
of this
ResultSet object as a
java.io.Reader object. |
Clob |
getClob(int columnIndex)
Retrieves the value of the designated column in the current row
of this
ResultSet object as a Clob object
in the Java programming language. |
Clob |
getClob(java.lang.String columnName)
Retrieves the value of the designated column in the current row
of this
ResultSet object as a Clob object
in the Java programming language. |
java.util.List |
getColumnNames() |
int |
getConcurrency()
This method is not currently implemented.
|
Row |
getCurrentRow()
Returns current row.
|
java.lang.String |
getCursorName()
This method is not currently implemented.
|
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,
java.util.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(java.lang.String columnName)
Retrieves the value of the designated column in the current row
of this
ResultSet object as
a java.sql.Date object in the Java programming language. |
Date |
getDate(java.lang.String columnName,
java.util.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. |
java.util.List |
getDateColumn(int columnIndex) |
java.util.List |
getDateColumn(java.lang.String columnName) |
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(java.lang.String columnName)
Retrieves the value of the designated column in the current row
of this
ResultSet object as
a double in the Java programming language. |
java.util.List |
getDoubleColumn(int columnIndex) |
java.util.List |
getDoubleColumn(java.lang.String columnName) |
int |
getFetchDirection()
This method is not currently implemented.
|
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(java.lang.String columnName)
Retrieves the value of the designated column in the current row
of this
ResultSet object as
a float in the Java programming language. |
java.util.List |
getFloatColumn(int columnIndex) |
java.util.List |
getFloatColumn(java.lang.String columnName) |
int |
getHoldability()
This method is not currently implemented.
|
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(java.lang.String columnName)
Retrieves the value of the designated column in the current row
of this
ResultSet object as
an int in the Java programming language. |
java.util.List |
getIntColumn(int columnIndex) |
java.util.List |
getIntColumn(java.lang.String columnName) |
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(java.lang.String columnName)
Retrieves the value of the designated column in the current row
of this
ResultSet object as
a long in the Java programming language. |
java.util.List |
getLongColumn(int columnIndex) |
java.util.List |
getLongColumn(java.lang.String columnName) |
RowMetaData |
getMeta()
Returns row meta data.
|
ResultSetMetaData |
getMetaData()
This method is not currently implemented.
|
java.io.Reader |
getNCharacterStream(int columnIndex)
This method is not currently implemented.
|
java.io.Reader |
getNCharacterStream(java.lang.String columnLabel)
This method is not currently implemented.
|
NClob |
getNClob(int columnIndex)
This method is not currently implemented.
|
NClob |
getNClob(java.lang.String columnLabel)
This method is not currently implemented.
|
java.lang.String |
getNString(int columnIndex)
This method is not currently implemented.
|
java.lang.String |
getNString(java.lang.String columnLabel)
This method is not currently implemented.
|
java.lang.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. |
java.lang.Object |
getObject(int columnIndex,
java.lang.Class type) |
java.lang.Object |
getObject(int i,
java.util.Map map)
This method is not currently implemented.
|
java.lang.Object |
getObject(java.lang.String columnName)
Gets the value of the designated column in the current row of this
ResultSet object as an Object in the Java
programming language. |
java.lang.Object |
getObject(java.lang.String columnLabel,
java.lang.Class type) |
java.lang.Object |
getObject(java.lang.String colName,
java.util.Map map)
This method is not currently implemented.
|
java.util.List |
getObjectColumn(int columnIndex) |
java.util.List |
getObjectColumn(java.lang.String columnName) |
int |
getOutParameterIndex(java.lang.String name)
Returns out parameter index by its name.
|
java.lang.String |
getOutParameterName(int index)
Returns output parameter name by its index.
|
java.lang.Object |
getOutParameterValue(int index)
Returns out parameter value by index.
|
java.lang.Object |
getOutParameterValue(java.lang.String name)
Returns out parameter value by name.
|
int |
getPageSize()
Returns the page-size for the
RowSet object
Actually the same as getFetchSize . |
com.streamscape.ds.parser.statement.Statement |
getParserStatement() |
Ref |
getRef(int i)
This method is not currently implemented.
|
Ref |
getRef(java.lang.String colName)
This method is not currently implemented.
|
java.lang.Object |
getReturnCodeValue()
Returns value of return code.
|
int |
getRow()
Retrieves the current row number.
|
Row |
getRowAt(int index)
Returns row by index.
|
int |
getRowCount()
Retrieves the number of rows that this
RowSet contains. |
RowId |
getRowId(int columnIndex)
This method is not currently implemented.
|
RowId |
getRowId(java.lang.String columnLabel)
This method is not currently implemented.
|
RowMetaData |
getRowMetaData()
Returns copy of row meta data
RowMetaData . |
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(java.lang.String columnName)
Retrieves the value of the designated column in the current row
of this
ResultSet object as
a short in the Java programming language. |
java.util.List |
getShortColumn(int columnIndex) |
java.util.List |
getShortColumn(java.lang.String columnName) |
SQLXML |
getSQLXML(int columnIndex)
This method is not currently implemented.
|
SQLXML |
getSQLXML(java.lang.String columnLabel)
This method is not currently implemented.
|
Statement |
getStatement()
This method is not currently implemented.
|
java.lang.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. |
java.lang.String |
getString(java.lang.String columnName)
Retrieves the value of the designated column in the current row
of this
ResultSet object as
a String in the Java programming language. |
java.util.List |
getStringColumn(int columnIndex) |
java.util.List |
getStringColumn(java.lang.String columnName) |
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,
java.util.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(java.lang.String columnName)
Retrieves the value of the designated column in the current row
of this
ResultSet object as
a java.sql.Time object in the Java programming language. |
Time |
getTime(java.lang.String columnName,
java.util.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. |
java.util.List |
getTimeColumn(int columnIndex) |
java.util.List |
getTimeColumn(java.lang.String columnName) |
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,
java.util.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(java.lang.String columnName)
Retrieves the value of the designated column in the current row
of this
ResultSet object as
a java.sql.Timestamp object in the Java programming language. |
Timestamp |
getTimestamp(java.lang.String columnName,
java.util.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. |
java.util.List |
getTimestampColumn(int columnIndex) |
java.util.List |
getTimestampColumn(java.lang.String columnName) |
int |
getType()
This method is not currently implemented.
|
java.io.InputStream |
getUnicodeStream(int columnIndex)
Deprecated.
|
java.io.InputStream |
getUnicodeStream(java.lang.String columnName)
Deprecated.
|
java.net.URL |
getURL(int columnIndex)
This method is not currently implemented.
|
java.net.URL |
getURL(java.lang.String columnName)
This method is not currently implemented.
|
SQLWarning |
getWarnings()
This method is not currently implemented.
|
void |
insertIntoRowSet(int index,
java.lang.Object[] rowValues)
Inserts provided row values to the
RowSet at position index. |
void |
insertIntoRowSet(int index,
Row row)
Inserts provided row to the row set at position index.
|
void |
insertRow()
This method is not currently implemented.
|
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 |
isEmpty()
Checks if RowSet is empty or not.
|
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 |
isProtected()
Is row set protected by password or not.
|
boolean |
isReadOnly()
Returns if
RowSet is read only or not. |
boolean |
isWrapperFor(java.lang.Class iface)
Returns true if this either implements the interface argument or is directly or indirectly a wrapper
for an object that does.
|
boolean |
last()
Moves the cursor to the last row in this
ResultSet object. |
void |
moveToCurrentRow()
This method is not currently implemented.
|
void |
moveToInsertRow()
This method is not currently implemented.
|
Row |
newRow()
Return new row initialized with RowSet meta data.
|
boolean |
next()
Moves the cursor down one row from its current position.
|
boolean |
nextPage()
Increments the current page of the
RowSet . |
void |
populateOutParameters(CallableStatement callable,
SQLQueryParameterList parameters) |
boolean |
previous()
Moves the cursor to the previous row in this
ResultSet
object. |
boolean |
previousPage()
Decrements the current page of the
RowSet . |
void |
protect(java.lang.String password)
Sets RowSet protected with password.
|
void |
refreshRow()
This method is not currently implemented.
|
boolean |
relative(int rowsCount)
Moves the cursor a relative number of rows, either positive or negative.
|
void |
removeRowSetListener(RowSetListener listener)
Removes the specified listener from the list of components that will be
notified when an event occurs on this
RowSet object. |
boolean |
rowDeleted()
This method is not currently implemented.
|
boolean |
rowInserted()
This method is not currently implemented.
|
boolean |
rowUpdated()
This method is not currently implemented.
|
RowSet |
selectFromRowSet(int startRowIndex,
int endRowIndex)
Selects rows from start to end row indexes and adds them to new
RowSet object. |
RowSet |
selectFromRowSet(java.lang.String columnName,
java.lang.Object columnValue)
Selects rows from a
RowSet that satisfy the condition row[objectName]=columnValue . |
void |
setFetchDirection(int direction)
This method is not currently implemented.
|
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 for this
ResultSet object. |
void |
setOutParameterValue(int index,
java.lang.Object value)
Sets out parameter value by index.
|
void |
setOutParameterValue(java.lang.String name,
java.lang.Object value)
Sets out parameter value by name.
|
void |
setPageSize(int pageSize)
Sets the
RowSet object's page-size. |
void |
setParserStatement(com.streamscape.ds.parser.statement.Statement parserStatement) |
void |
setReadOnly(boolean readOnly)
Sets read only flag.
|
void |
setReturnCodeValue(java.lang.Object code)
Sets value of return code.
|
void |
sortRows(java.util.Comparator comparator) |
DataFrame |
toDataFrame() |
java.lang.String |
toText(int maxColumnWidth) |
CollectionTupleSet |
toTupleSet() |
void |
unprotect(java.lang.String password)
Sets RowSet unprotected.
|
java.lang.Object |
unwrap(java.lang.Class iface)
Returns an object that implements the given interface to allow access to
non-standard methods, or standard methods not exposed by the proxy.
|
void |
updateArray(int columnIndex,
Array x)
Updates the designated column with a
java.sql.Array value. |
void |
updateArray(java.lang.String columnName,
Array x)
Updates the designated column with a
java.sql.Array value. |
void |
updateAsciiStream(int columnIndex,
java.io.InputStream x)
Updates the designated column with an ascii stream value.
|
void |
updateAsciiStream(int columnIndex,
java.io.InputStream x,
int length)
Updates the designated column with an ascii stream value, which will have
the specified number of bytes.
|
void |
updateAsciiStream(int columnIndex,
java.io.InputStream x,
long length)
Updates the designated column with an ascii stream value, which will have
the specified number of bytes.
|
void |
updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x)
Updates the designated column with an ascii stream value.
|
void |
updateAsciiStream(java.lang.String columnName,
java.io.InputStream x,
int length)
Updates the designated column with an ascii stream value, which will have
the specified number of bytes.
|
void |
updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x,
long length)
Updates the designated column with an ascii stream value, which will have
the specified number of bytes.
|
void |
updateBigDecimal(int columnIndex,
java.math.BigDecimal x)
Updates the designated column with a
java.math.BigDecimal
value. |
void |
updateBigDecimal(java.lang.String columnName,
java.math.BigDecimal x)
Updates the designated column with a
java.sql.BigDecimal
value. |
void |
updateBinaryStream(int columnIndex,
java.io.InputStream x)
Updates the designated column with a binary stream value.
|
void |
updateBinaryStream(int columnIndex,
java.io.InputStream x,
int length)
Updates the designated column with a binary stream value, which will have
the specified number of bytes.
|
void |
updateBinaryStream(int columnIndex,
java.io.InputStream x,
long length)
Updates the designated column with a binary stream value, which will have
the specified number of bytes.
|
void |
updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x)
Updates the designated column with a binary stream value.
|
void |
updateBinaryStream(java.lang.String columnName,
java.io.InputStream x,
int length)
Updates the designated column with a binary stream value, which will have
the specified number of bytes.
|
void |
updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x,
long length)
Updates the designated column with a binary stream value, which will have
the specified number of bytes.
|
void |
updateBlob(int columnIndex,
Blob x)
Updates the designated column with a
java.sql.Blob value. |
void |
updateBlob(int columnIndex,
java.io.InputStream inputStream)
Updates the designated column using the given input stream.
|
void |
updateBlob(int columnIndex,
java.io.InputStream inputStream,
long length)
Updates the designated column using the given input stream, which
will have the specified number of bytes.
|
void |
updateBlob(java.lang.String columnName,
Blob x)
Updates the designated column with a
java.sql.Blob value. |
void |
updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream)
Updates the designated column using the given input stream.
|
void |
updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream,
long length)
Updates the designated column using the given input stream, which
will have the specified number of bytes.
|
void |
updateBoolean(int columnIndex,
boolean x)
Updates the designated column with a
boolean value. |
void |
updateBoolean(java.lang.String columnName,
boolean x)
Updates the designated column with a
boolean value. |
void |
updateByte(int columnIndex,
byte x)
Updates the designated column with a
byte value. |
void |
updateByte(java.lang.String columnName,
byte x)
Updates the designated column with a
byte value. |
void |
updateBytes(int columnIndex,
byte[] x)
Updates the designated column with a
byte array value. |
void |
updateBytes(java.lang.String columnName,
byte[] x)
Updates the designated column with a byte array value.
|
void |
updateCharacterStream(int columnIndex,
java.io.Reader x)
Updates the designated column with a character stream value.
|
void |
updateCharacterStream(int columnIndex,
java.io.Reader x,
int length)
Updates the designated column with a character stream value, which will have
the specified number of bytes.
|
void |
updateCharacterStream(int columnIndex,
java.io.Reader x,
long length)
Updates the designated column with a character stream value, which will have
the specified number of bytes.
|
void |
updateCharacterStream(java.lang.String columnLabel,
java.io.Reader x)
Updates the designated column with a character stream value.
|
void |
updateCharacterStream(java.lang.String columnName,
java.io.Reader reader,
int length)
Updates the designated column with a character stream value, which will have
the specified number of bytes.
|
void |
updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length)
Updates the designated column with a character stream value, which will have
the specified number of bytes.
|
void |
updateClob(int columnIndex,
Clob x)
Updates the designated column with a
java.sql.Clob value. |
void |
updateClob(int columnIndex,
java.io.Reader reader)
Updates the designated column using the given
Reader
object. |
void |
updateClob(int columnIndex,
java.io.Reader reader,
long length)
Updates the designated column using the given
Reader
object, which is the given number of characters long. |
void |
updateClob(java.lang.String columnName,
Clob x)
Updates the designated column with a
java.sql.Clob value. |
void |
updateClob(java.lang.String columnLabel,
java.io.Reader reader)
Updates the designated column using the given
Reader
object. |
void |
updateClob(java.lang.String columnLabel,
java.io.Reader reader,
long length)
Updates the designated column using the given
Reader
object, which is the given number of characters long. |
void |
updateDate(int columnIndex,
Date x)
Updates the designated column with a
java.sql.Date value. |
void |
updateDate(java.lang.String columnName,
Date x)
Updates the designated column with a
java.sql.Date value. |
void |
updateDouble(int columnIndex,
double x)
Updates the designated column with a
double value. |
void |
updateDouble(java.lang.String columnName,
double x)
Updates the designated column with a
double value. |
void |
updateFloat(int columnIndex,
float x)
Updates the designated column with a
float value. |
void |
updateFloat(java.lang.String columnName,
float x)
Updates the designated column with a
float value. |
void |
updateInt(int columnIndex,
int x)
Updates the designated column with an
int value. |
void |
updateInt(java.lang.String columnName,
int x)
Updates the designated column with an
int value. |
void |
updateLong(int columnIndex,
long x)
Updates the designated column with a
long value. |
void |
updateLong(java.lang.String columnName,
long x)
Updates the designated column with a
long value. |
void |
updateNCharacterStream(int columnIndex,
java.io.Reader x)
This method is not currently implemented.
|
void |
updateNCharacterStream(int columnIndex,
java.io.Reader x,
long length)
This method is not currently implemented.
|
void |
updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader)
This method is not currently implemented.
|
void |
updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length)
This method is not currently implemented.
|
void |
updateNClob(int columnIndex,
NClob nClob)
This method is not currently implemented.
|
void |
updateNClob(int columnIndex,
java.io.Reader reader)
This method is not currently implemented.
|
void |
updateNClob(int columnIndex,
java.io.Reader reader,
long length)
This method is not currently implemented.
|
void |
updateNClob(java.lang.String columnLabel,
NClob nClob)
This method is not currently implemented.
|
void |
updateNClob(java.lang.String columnLabel,
java.io.Reader reader)
This method is not currently implemented.
|
void |
updateNClob(java.lang.String columnLabel,
java.io.Reader reader,
long length)
This method is not currently implemented.
|
void |
updateNString(int columnIndex,
java.lang.String nString)
This method is not currently implemented.
|
void |
updateNString(java.lang.String columnLabel,
java.lang.String nString)
This method is not currently implemented.
|
void |
updateNull(int columnIndex)
Updates the designated column with a
null value. |
void |
updateNull(java.lang.String columnName)
Updates the designated column with a
null value. |
void |
updateObject(int columnIndex,
java.lang.Object x)
Updates the designated column with an
Object value. |
void |
updateObject(int columnIndex,
java.lang.Object x,
int scale)
Updates the designated column with an
Object value. |
void |
updateObject(java.lang.String columnName,
java.lang.Object x)
Updates the designated column with an
Object value. |
void |
updateObject(java.lang.String columnName,
java.lang.Object x,
int scale)
Updates the designated column with an
Object value. |
void |
updateRef(int columnIndex,
Ref x)
This method is not currently implemented.
|
void |
updateRef(java.lang.String columnName,
Ref x)
This method is not currently implemented.
|
void |
updateRow()
This method is not currently implemented.
|
void |
updateRowId(int columnIndex,
RowId x)
This method is not currently implemented.
|
void |
updateRowId(java.lang.String columnLabel,
RowId x)
This method is not currently implemented.
|
java.util.List |
updateRowSet(int index,
java.lang.Object[] rowValues)
Updates row with provided values at provided position index.
|
java.util.List |
updateRowSet(int index,
Row row)
Updates row with provided row at provided position index.
|
void |
updateShort(int columnIndex,
short x)
Updates the designated column with a
short value. |
void |
updateShort(java.lang.String columnName,
short x)
Updates the designated column with a
short value. |
void |
updateSQLXML(int columnIndex,
SQLXML xmlObject)
This method is not currently implemented.
|
void |
updateSQLXML(java.lang.String columnLabel,
SQLXML xmlObject)
This method is not currently implemented.
|
void |
updateString(int columnIndex,
java.lang.String x)
Updates the designated column with a
String value. |
void |
updateString(java.lang.String columnName,
java.lang.String x)
Updates the designated column with a
String value. |
void |
updateTime(int columnIndex,
Time x)
Updates the designated column with a
java.sql.Time value. |
void |
updateTime(java.lang.String columnName,
Time x)
Updates the designated column with a
java.sql.Time value. |
void |
updateTimestamp(int columnIndex,
Timestamp x)
Updates the designated column with a
java.sql.Timestamp
value. |
void |
updateTimestamp(java.lang.String columnName,
Timestamp x)
Updates the designated column with a
java.sql.Timestamp
value. |
boolean |
wasNull()
Reports whether
the last column read had a value of SQL
NULL . |
getSerialVersionUID
public RowSet()
public RowSet(RowMetaData descriptor)
RowSet
with the specified meta data.descriptor
- meta data.public RowSet(RowSet set) throws SQLException
RowSet
out of the provided RowSet
. It is expected that
RowSet
cursor is positioned on the first row so that this row and all
the rows till the end are added to the new RowSet. All rows before the
cursor (if any) are ignored.set
- SQLException
public RowSet(java.lang.String[] columnNames, java.lang.Object[] values) throws SQLException
RowSet
with the specified column names and values.columnNames
- column namesvalues
- column valuesSQLException
public RowMetaData getRowMetaData()
RowMetaData
.getRowMetaData
in interface RowSetInterface
public RowMetaData getMeta()
public java.lang.Object getReturnCodeValue()
getReturnCodeValue
in interface RowSetInterface
public void setReturnCodeValue(java.lang.Object code)
setReturnCodeValue
in interface RowSetInterface
code
- return code valuepublic int getOutParameterIndex(java.lang.String name)
getOutParameterIndex
in interface RowSetInterface
name
- parameter namepublic java.lang.String getOutParameterName(int index)
getOutParameterName
in interface RowSetInterface
index
- out parameter index, 0 - first, 1 - second, ...public java.lang.Object getOutParameterValue(int index)
getOutParameterValue
in interface RowSetInterface
index
- out parameter index, 0 - first, 1 - second, ...public void setOutParameterValue(java.lang.String name, java.lang.Object value) throws RowException
setOutParameterValue
in interface RowSetInterface
name
- out parameter namevalue
- out parameter valueRowException
- if parameter with provided name doesn't existpublic void setOutParameterValue(int index, java.lang.Object value) throws RowException
setOutParameterValue
in interface RowSetInterface
index
- out parameter index, 0 - first, 1 - second, ...value
- out parameter valueRowException
- if index out of range or value type is incompatible.public java.lang.Object getOutParameterValue(java.lang.String name)
getOutParameterValue
in interface RowSetInterface
name
- out parameter namepublic void populateOutParameters(CallableStatement callable, SQLQueryParameterList parameters) throws SQLException
populateOutParameters
in interface RowSetInterface
SQLException
@Deprecated public boolean addRow(java.lang.Object[] rowValues)
RowSet
.addRow
in interface RowSetInterface
rowValues
- new row array of valuespublic void addToRowSet(java.lang.Object[] rowValues) throws SQLException
RowSet
.addToRowSet
in interface RowSetInterface
rowValues
- new row array of valuesSQLException
- if errorspublic void addToRowSet(Row row) throws SQLException
RowSet
.
The row should be created with newRow()
method.
Otherwise meta data matching will be performed.addToRowSet
in interface RowSetInterface
row
- Data row to be added to the row setSQLException
- if errorspublic void addAll(RowSet other) throws SQLException
RowSet
at the end of this RowSet
.other
- the source RowSet
.SQLException
- if some error occurs.public Row deleteFromRowSet(int index) throws SQLException
RowSet
.deleteFromRowSet
in interface RowSetInterface
index
- index of row, the first row is 1, the second is 2, ...SQLException
- if index is out of rangepublic void insertIntoRowSet(int index, Row row) throws SQLException
newRow()
method.
Otherwise meta data matching will be performed.insertIntoRowSet
in interface RowSetInterface
index
- index of the inserted row, the first row is 1, the second is 2, ...row
- Data row to be added to the row setSQLException
- if errorspublic void insertIntoRowSet(int index, java.lang.Object[] rowValues) throws SQLException
RowSet
at position index.insertIntoRowSet
in interface RowSetInterface
index
- index of the inserted row, the first row is 1, the second is 2, ...rowValues
- Data row to be added to the row setSQLException
public java.util.List updateRowSet(int index, Row row) throws SQLException
newRow()
method.
Otherwise meta data matching will be performed.updateRowSet
in interface RowSetInterface
index
- index of the inserted row, the first row is 1, the second is 2, ...row
- row to be added to the row setSQLException
public java.util.List updateRowSet(int index, java.lang.Object[] rowValues) throws SQLException
newRow()
method.
Otherwise meta data matching will be performed.updateRowSet
in interface RowSetInterface
index
- index of the inserted row, the first row is 1, the second is 2, ...rowValues
- row values to be added to the row setSQLException
public Row getRowAt(int index) throws SQLException
getRowAt
in interface RowSetInterface
index
- index of the row to get, the first row is 1, the second is 2, ...SQLException
public Row newRow()
newRow
in interface RowSetInterface
public boolean isEmpty()
isEmpty
in interface RowSetInterface
public int getRowCount()
RowSet
contains.getRowCount
in interface RowSetInterface
RowSet
object containspublic boolean isReadOnly()
RowSet
is read only or not.
If RowSet
is read only then any updates are not allowed.isReadOnly
in interface RowSetInterface
public void setReadOnly(boolean readOnly) throws SQLException
RowSet
are not allowed.setReadOnly
in interface RowSetInterface
SQLException
- if RowSet is protected by password.public boolean isProtected()
RowSet
is protected then read-only flag cannot be changed.isProtected
in interface RowSetInterface
public void protect(java.lang.String password) throws SQLException
protect
in interface RowSetInterface
password
- SQLException
- if RowSet is already protected with another password.public void unprotect(java.lang.String password) throws SQLException
unprotect
in interface RowSetInterface
password
- SQLException
- if RowSet is protected with another password.public void addRowSetListener(RowSetListener listener)
RowSet
object.addRowSetListener
in interface RowSetInterface
listener
- a component that has implemented the RowSetListener
interface and wants to be notified when events occur on this
RowSet
objectpublic void removeRowSetListener(RowSetListener listener)
RowSet
object.removeRowSetListener
in interface RowSetInterface
listener
- a component that has been registered as a listener for this
RowSet
objectpublic RowSet selectFromRowSet(int startRowIndex, int endRowIndex) throws SQLException
RowSet
object.selectFromRowSet
in interface RowSetInterface
startRowIndex
- index of first rowendRowIndex
- index of last rowSQLException
- if provided indexes out of rangepublic RowSet selectFromRowSet(java.lang.String columnName, java.lang.Object columnValue) throws SQLException
RowSet
that satisfy the condition row[objectName]=columnValue
.selectFromRowSet
in interface RowSetInterface
columnName
- condition column namecolumnValue
- condition column's valueSQLException
public int findColumn(java.lang.String columnName)
ResultSet
column name to its
ResultSet
column index.findColumn
in interface ResultSet
columnName
- the name of the column-1
if
column not foundpublic boolean absolute(int row) throws SQLException
ResultSet
object.absolute
in interface ResultSet
row
- 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 settrue
if the cursor is on the result set;
false
otherwiseSQLException
SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void afterLast() throws SQLException
ResultSet
object, just
after the last row.afterLast
in interface ResultSet
SQLException
SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void beforeFirst() throws SQLException
ResultSet
object, just
before the first row.beforeFirst
in interface ResultSet
SQLException
SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic boolean first() throws SQLException
ResultSet
object.first
in interface ResultSet
true
if the cursor is on a valid row;
false
if there are no rows in the result setSQLException
SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic boolean isAfterLast() throws SQLException
ResultSet
object.isAfterLast
in interface ResultSet
true
if the cursor is after the last row;
false
if the cursor is at any other position or the
result set contains no rowsSQLException
SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic boolean isBeforeFirst()
ResultSet
object.isBeforeFirst
in interface ResultSet
true
if the cursor is before the first row;
false
if the cursor is at any other position or the
result set contains no rowspublic boolean isFirst()
ResultSet
object.public boolean isLast() throws SQLException
ResultSet
object.isLast
in interface ResultSet
true
if the cursor is on the last row;
false
otherwiseSQLException
SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic boolean last() throws SQLException
ResultSet
object.last
in interface ResultSet
true
if the cursor is on a valid row;
false
if there are no rows in the result setSQLException
SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic boolean next() throws SQLException
next
in interface ResultSet
true
if the new current row is valid;
false
if there are no more rowsSQLException
public boolean previous() throws SQLException
ResultSet
object.previous
in interface ResultSet
true
if the cursor is on a valid row;
false
if it is off the result setSQLException
SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic boolean relative(int rowsCount) throws SQLException
relative
in interface ResultSet
rowsCount
- 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 backwardtrue
if the cursor is on a row; false
otherwiseSQLException
SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic boolean isClosed()
ResultSet
ResultSet
object has been closed. A ResultSet
is closed if the
method close has been called on it, or if it is automatically closed.public int getRow() throws SQLException
ResultSet
Note:Support for the getRow
method
is optional for ResultSet
s with a result
set type of TYPE_FORWARD_ONLY
getRow
in interface ResultSet
0
if there is no current rowSQLException
- if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic Row getCurrentRow() throws SQLException
RowSetInterface
getCurrentRow
in interface RowSetInterface
SQLException
public boolean wasNull() throws SQLException
ResultSet
NULL
.
Note that you must first call one of the getter methods
on a column to try to read its value and then call
the method wasNull
to see if the value read was
SQL NULL
.wasNull
in interface ResultSet
true
if the last column value read was SQL
NULL
and false
otherwiseSQLException
- if a database access error occurs or this method is
called on a closed result setpublic java.lang.Object getObject(int columnIndex) throws SQLException
Gets the value of the designated column in the current row of this
ResultSet
object as an Object
in the Java
programming language.
getObject
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...java.lang.Object
holding the column valueSQLException
public java.lang.Object getObject(java.lang.String columnName) throws SQLException
Gets the value of the designated column in the current row of this
ResultSet
object as an Object
in the Java
programming language.
getObject
in interface ResultSet
columnName
- the SQL name of the columnjava.lang.Object
holding the column valueSQLException
public java.lang.String getString(int columnIndex) throws SQLException
ResultSet
ResultSet
object as
a String
in the Java programming language.getString
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...NULL
, the
value returned is null
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(int columnIndex) throws SQLException
ResultSet
ResultSet
object as
a boolean
in the Java programming language.
If the designated column has a datatype of CHAR or VARCHAR
and contains a "0" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT
and contains a 0, a value of false
is returned. If the designated column has a datatype
of CHAR or VARCHAR
and contains a "1" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT
and contains a 1, a value of true
is returned.
getBoolean
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...NULL
, the
value returned is false
SQLException
- if the columnIndex is not valid;
if a database access error occurs or this method is
called on a closed result setpublic byte getByte(int columnIndex) throws SQLException
ResultSet
ResultSet
object as
a byte
in the Java programming language.getByte
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...NULL
, the
value returned is 0
SQLException
- if the columnIndex is not valid;
if a database access error occurs or this method is
called on a closed result setpublic short getShort(int columnIndex) throws SQLException
ResultSet
ResultSet
object as
a short
in the Java programming language.getShort
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...NULL
, the
value returned is 0
SQLException
- if the columnIndex is not valid;
if a database access error occurs or this method is
called on a closed result setpublic int getInt(int columnIndex) throws SQLException
ResultSet
ResultSet
object as
an int
in the Java programming language.getInt
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...NULL
, the
value returned is 0
SQLException
- if the columnIndex is not valid;
if a database access error occurs or this method is
called on a closed result setpublic long getLong(int columnIndex) throws SQLException
ResultSet
ResultSet
object as
a long
in the Java programming language.getLong
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...NULL
, the
value returned is 0
SQLException
- if the columnIndex is not valid;
if a database access error occurs or this method is
called on a closed result setpublic float getFloat(int columnIndex) throws SQLException
ResultSet
ResultSet
object as
a float
in the Java programming language.getFloat
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...NULL
, the
value returned is 0
SQLException
- if the columnIndex is not valid;
if a database access error occurs or this method is
called on a closed result setpublic double getDouble(int columnIndex) throws SQLException
ResultSet
ResultSet
object as
a double
in the Java programming language.getDouble
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...NULL
, the
value returned is 0
SQLException
- if the columnIndex is not valid;
if a database access error occurs or this method is
called on a closed result set@Deprecated public java.math.BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException
ResultSet
ResultSet
object as
a java.sql.BigDecimal
in the Java programming language.getBigDecimal
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...scale
- the number of digits to the right of the decimal pointNULL
, the
value returned is null
SQLException
- if the columnIndex is not valid;
if a database access error occurs or this method is
called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic byte[] getBytes(int columnIndex) throws SQLException
ResultSet
ResultSet
object as
a byte
array in the Java programming language.
The bytes represent the raw values returned by the driver.getBytes
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...NULL
, the
value returned is null
SQLException
- if the columnIndex is not valid;
if a database access error occurs or this method is
called on a closed result setpublic static byte[] convertStringToBytes(java.lang.String str, SQLType type) throws SQLException
SQLException
public Date getDate(int columnIndex) throws SQLException
ResultSet
ResultSet
object as
a java.sql.Date
object in the Java programming language.getDate
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...NULL
, the
value returned is null
SQLException
- if the columnIndex is not valid;
if a database access error occurs or this method is
called on a closed result setpublic Time getTime(int columnIndex) throws SQLException
ResultSet
ResultSet
object as
a java.sql.Time
object in the Java programming language.getTime
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...NULL
, the
value returned is null
SQLException
- if the columnIndex is not valid;
if a database access error occurs or this method is
called on a closed result setpublic Timestamp getTimestamp(int columnIndex) throws SQLException
ResultSet
ResultSet
object as
a java.sql.Timestamp
object in the Java programming language.getTimestamp
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...NULL
, the
value returned is null
SQLException
- if the columnIndex is not valid;
if a database access error occurs or this method is
called on a closed result setpublic java.io.InputStream getAsciiStream(int columnIndex) throws SQLException
ResultSet
ResultSet
object as
a stream of ASCII characters. The value can then be read in chunks from the
stream. This method is particularly
suitable for retrieving large Note: All the data in the returned stream must be
read prior to getting the value of any other column. The next
call to a getter method implicitly closes the stream. Also, a
stream may return 0
when the method
InputStream.available
is called whether there is data available or not.
getAsciiStream
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...NULL
, the
value returned is null
SQLException
- if the columnIndex is not valid;
if a database access error occurs or this method is
called on a closed result set@Deprecated public java.io.InputStream getUnicodeStream(int columnIndex) throws SQLException
ResultSet
ResultSet
object as
as a stream of two-byte 3 characters. The first byte is
the high byte; the second byte is the low byte.
The value can then be read in chunks from the
stream. This method is particularly
suitable for retrieving large LONGVARCHAR
values. The
JDBC driver will do any necessary conversion from the database
format into Unicode.
Note: All the data in the returned stream must be
read prior to getting the value of any other column. The next
call to a getter method implicitly closes the stream.
Also, a stream may return 0
when the method
InputStream.available
is called, whether there is data available or not.
getUnicodeStream
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...NULL
, the value returned is
null
SQLException
- if the columnIndex is not valid;
if a database access error occurs or this method is
called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic java.io.InputStream getBinaryStream(int columnIndex) throws SQLException
ResultSet
ResultSet
object as a stream of
uninterpreted bytes. The value can then be read in chunks from the
stream. This method is particularly
suitable for retrieving large LONGVARBINARY
values.
Note: All the data in the returned stream must be
read prior to getting the value of any other column. The next
call to a getter method implicitly closes the stream. Also, a
stream may return 0
when the method
InputStream.available
is called whether there is data available or not.
getBinaryStream
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...NULL
, the value returned is
null
SQLException
- if the columnIndex is not valid;
if a database access error occurs or this method is
called on a closed result setpublic java.lang.String getString(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as
a String
in the Java programming language.getString
in interface ResultSet
columnName
- 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 columnNULL
, the
value returned is null
SQLException
- if the columnLabel is not valid;
if a database access error occurs or this method is
called on a closed result setpublic boolean getBoolean(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as
a boolean
in the Java programming language.
If the designated column has a datatype of CHAR or VARCHAR
and contains a "0" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT
and contains a 0, a value of false
is returned. If the designated column has a datatype
of CHAR or VARCHAR
and contains a "1" or has a datatype of BIT, TINYINT, SMALLINT, INTEGER or BIGINT
and contains a 1, a value of true
is returned.
getBoolean
in interface ResultSet
columnName
- 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 columnNULL
, the
value returned is false
SQLException
- if the columnLabel is not valid;
if a database access error occurs or this method is
called on a closed result setpublic byte getByte(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as
a byte
in the Java programming language.getByte
in interface ResultSet
columnName
- 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 columnNULL
, the
value returned is 0
SQLException
- if the columnLabel is not valid;
if a database access error occurs or this method is
called on a closed result setpublic short getShort(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as
a short
in the Java programming language.getShort
in interface ResultSet
columnName
- 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 columnNULL
, the
value returned is 0
SQLException
- if the columnLabel is not valid;
if a database access error occurs or this method is
called on a closed result setpublic int getInt(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as
an int
in the Java programming language.getInt
in interface ResultSet
columnName
- 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 columnNULL
, the
value returned is 0
SQLException
- if the columnLabel is not valid;
if a database access error occurs or this method is
called on a closed result setpublic long getLong(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as
a long
in the Java programming language.getLong
in interface ResultSet
columnName
- 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 columnNULL
, the
value returned is 0
SQLException
- if the columnLabel is not valid;
if a database access error occurs or this method is
called on a closed result setpublic float getFloat(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as
a float
in the Java programming language.getFloat
in interface ResultSet
columnName
- 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 columnNULL
, the
value returned is 0
SQLException
- if the columnLabel is not valid;
if a database access error occurs or this method is
called on a closed result setpublic double getDouble(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as
a double
in the Java programming language.getDouble
in interface ResultSet
columnName
- 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 columnNULL
, the
value returned is 0
SQLException
- if the columnLabel is not valid;
if a database access error occurs or this method is
called on a closed result set@Deprecated public java.math.BigDecimal getBigDecimal(java.lang.String columnName, int scale) throws SQLException
ResultSet
ResultSet
object as
a java.math.BigDecimal
in the Java programming language.getBigDecimal
in interface ResultSet
columnName
- 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 columnscale
- the number of digits to the right of the decimal pointNULL
, the
value returned is null
SQLException
- if the columnLabel is not valid;
if a database access error occurs or this method is
called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic byte[] getBytes(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as
a byte
array in the Java programming language.
The bytes represent the raw values returned by the driver.getBytes
in interface ResultSet
columnName
- 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 columnNULL
, the
value returned is null
SQLException
- if the columnLabel is not valid;
if a database access error occurs or this method is
called on a closed result setpublic Date getDate(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as
a java.sql.Date
object in the Java programming language.getDate
in interface ResultSet
columnName
- 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 columnNULL
, the
value returned is null
SQLException
- if the columnLabel is not valid;
if a database access error occurs or this method is
called on a closed result setpublic Time getTime(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as
a java.sql.Time
object in the Java programming language.getTime
in interface ResultSet
columnName
- 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 columnNULL
,
the value returned is null
SQLException
- if the columnLabel is not valid;
if a database access error occurs or this method is
called on a closed result setpublic Timestamp getTimestamp(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as
a java.sql.Timestamp
object in the Java programming language.getTimestamp
in interface ResultSet
columnName
- 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 columnNULL
, the
value returned is null
SQLException
- if the columnLabel is not valid;
if a database access error occurs or this method is
called on a closed result setpublic java.io.InputStream getAsciiStream(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as a stream of
ASCII characters. The value can then be read in chunks from the
stream. This method is particularly
suitable for retrieving large LONGVARCHAR
values.
The JDBC driver will
do any necessary conversion from the database format into ASCII.
Note: All the data in the returned stream must be
read prior to getting the value of any other column. The next
call to a getter method implicitly closes the stream. Also, a
stream may return 0
when the method available
is called whether there is data available or not.
getAsciiStream
in interface ResultSet
columnName
- 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 columnNULL
,
the value returned is null
.SQLException
- if the columnLabel is not valid;
if a database access error occurs or this method is
called on a closed result set@Deprecated public java.io.InputStream getUnicodeStream(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as a stream of two-byte
Unicode characters. The first byte is the high byte; the second
byte is the low byte.
The value can then be read in chunks from the
stream. This method is particularly
suitable for retrieving large LONGVARCHAR
values.
The JDBC technology-enabled driver will
do any necessary conversion from the database format into Unicode.
Note: All the data in the returned stream must be
read prior to getting the value of any other column. The next
call to a getter method implicitly closes the stream.
Also, a stream may return 0
when the method
InputStream.available
is called, whether there
is data available or not.
getUnicodeStream
in interface ResultSet
columnName
- 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 columnNULL
, the value returned
is null
.SQLException
- if the columnLabel is not valid;
if a database access error occurs or this method is
called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic java.io.InputStream getBinaryStream(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as a stream of uninterpreted
byte
s.
The value can then be read in chunks from the
stream. This method is particularly
suitable for retrieving large LONGVARBINARY
values.
Note: All the data in the returned stream must be
read prior to getting the value of any other column. The next
call to a getter method implicitly closes the stream. Also, a
stream may return 0
when the method available
is called whether there is data available or not.
getBinaryStream
in interface ResultSet
columnName
- 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 columnNULL
, the result is null
SQLException
- if the columnLabel is not valid;
if a database access error occurs or this method is
called on a closed result setpublic java.io.Reader getCharacterStream(int columnIndex) throws SQLException
ResultSet
ResultSet
object as a
java.io.Reader
object.getCharacterStream
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...java.io.Reader
object that contains the column
value; if the value is SQL NULL
, the value returned is
null
in the Java programming language.SQLException
- if the columnIndex is not valid;
if a database access error occurs or this method is
called on a closed result setpublic java.io.Reader getCharacterStream(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as a
java.io.Reader
object.getCharacterStream
in interface ResultSet
columnName
- 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 columnjava.io.Reader
object that contains the column
value; if the value is SQL NULL
, the value returned is
null
in the Java programming languageSQLException
- if the columnLabel is not valid;
if a database access error occurs or this method is
called on a closed result setpublic java.math.BigDecimal getBigDecimal(int columnIndex) throws SQLException
ResultSet
ResultSet
object as a
java.math.BigDecimal
with full precision.getBigDecimal
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...NULL
, the value returned is
null
in the Java programming language.SQLException
- if the columnIndex is not valid;
if a database access error occurs or this method is
called on a closed result setpublic java.math.BigDecimal getBigDecimal(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as a
java.math.BigDecimal
with full precision.getBigDecimal
in interface ResultSet
columnName
- 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 columnNULL
, the value returned is
null
in the Java programming language.SQLException
- if the columnLabel is not valid;
if a database access error occurs or this method is
called on a closed result setpublic Blob getBlob(int columnIndex) throws SQLException
ResultSet
ResultSet
object as a Blob
object
in the Java programming language.getBlob
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...Blob
object representing the SQL
BLOB
value in the specified columnSQLException
- if the columnIndex is not valid;
if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic Clob getClob(int columnIndex) throws SQLException
ResultSet
ResultSet
object as a Clob
object
in the Java programming language.getClob
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...Clob
object representing the SQL
CLOB
value in the specified columnSQLException
- if the columnIndex is not valid;
if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic Blob getBlob(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as a Blob
object
in the Java programming language.getBlob
in interface ResultSet
columnName
- 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 columnBlob
object representing the SQL BLOB
value in the specified columnSQLException
- if the columnLabel is not valid;
if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic Clob getClob(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as a Clob
object
in the Java programming language.getClob
in interface ResultSet
columnName
- 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 columnClob
object representing the SQL CLOB
value in the specified columnSQLException
- if the columnLabel is not valid;
if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic Array getArray(int columnIndex) throws SQLException
ResultSet
ResultSet
object as an Array
object
in the Java programming language.getArray
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...Array
object representing the SQL
ARRAY
value in the specified columnSQLException
- if the columnIndex is not valid;
if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic Array getArray(java.lang.String columnName) throws SQLException
ResultSet
ResultSet
object as an Array
object
in the Java programming language.getArray
in interface ResultSet
columnName
- 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 columnArray
object representing the SQL ARRAY
value in
the specified columnSQLException
- if the columnLabel is not valid;
if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic Date getDate(int columnIndex, java.util.Calendar cal) throws SQLException
ResultSet
ResultSet
object as a java.sql.Date
object
in the Java programming language.
This method uses the given calendar to construct an appropriate millisecond
value for the date if the underlying database does not store
timezone information.getDate
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...cal
- the java.util.Calendar
object
to use in constructing the datejava.sql.Date
object;
if the value is SQL NULL
,
the value returned is null
in the Java programming languageSQLException
- if the columnIndex is not valid;
if a database access error occurs
or this method is called on a closed result setpublic Date getDate(java.lang.String columnName, java.util.Calendar cal) throws SQLException
ResultSet
ResultSet
object as a java.sql.Date
object
in the Java programming language.
This method uses the given calendar to construct an appropriate millisecond
value for the date if the underlying database does not store
timezone information.getDate
in interface ResultSet
columnName
- 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 columncal
- the java.util.Calendar
object
to use in constructing the datejava.sql.Date
object;
if the value is SQL NULL
,
the value returned is null
in the Java programming languageSQLException
- if the columnLabel is not valid;
if a database access error occurs
or this method is called on a closed result setpublic Time getTime(int columnIndex, java.util.Calendar cal) throws SQLException
ResultSet
ResultSet
object as a java.sql.Time
object
in the Java programming language.
This method uses the given calendar to construct an appropriate millisecond
value for the time if the underlying database does not store
timezone information.getTime
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...cal
- the java.util.Calendar
object
to use in constructing the timejava.sql.Time
object;
if the value is SQL NULL
,
the value returned is null
in the Java programming languageSQLException
- if the columnIndex is not valid;
if a database access error occurs
or this method is called on a closed result setpublic Time getTime(java.lang.String columnName, java.util.Calendar cal) throws SQLException
ResultSet
ResultSet
object as a java.sql.Time
object
in the Java programming language.
This method uses the given calendar to construct an appropriate millisecond
value for the time if the underlying database does not store
timezone information.getTime
in interface ResultSet
columnName
- 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 columncal
- the java.util.Calendar
object
to use in constructing the timejava.sql.Time
object;
if the value is SQL NULL
,
the value returned is null
in the Java programming languageSQLException
- if the columnLabel is not valid;
if a database access error occurs
or this method is called on a closed result setpublic Timestamp getTimestamp(int columnIndex, java.util.Calendar cal) throws SQLException
ResultSet
ResultSet
object as a java.sql.Timestamp
object
in the Java programming language.
This method uses the given calendar to construct an appropriate millisecond
value for the timestamp if the underlying database does not store
timezone information.getTimestamp
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...cal
- the java.util.Calendar
object
to use in constructing the timestampjava.sql.Timestamp
object;
if the value is SQL NULL
,
the value returned is null
in the Java programming languageSQLException
- if the columnIndex is not valid;
if a database access error occurs
or this method is called on a closed result setpublic Timestamp getTimestamp(java.lang.String columnName, java.util.Calendar cal) throws SQLException
ResultSet
ResultSet
object as a java.sql.Timestamp
object
in the Java programming language.
This method uses the given calendar to construct an appropriate millisecond
value for the timestamp if the underlying database does not store
timezone information.getTimestamp
in interface ResultSet
columnName
- 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 columncal
- the java.util.Calendar
object
to use in constructing the datejava.sql.Timestamp
object;
if the value is SQL NULL
,
the value returned is null
in the Java programming languageSQLException
- if the columnLabel is not valid or
if a database access error occurs
or this method is called on a closed result setpublic void updateNull(int columnIndex) throws SQLException
ResultSet
null
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or insertRow
methods are called to update the database.updateNull
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...SQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateBoolean(int columnIndex, boolean x) throws SQLException
ResultSet
boolean
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateBoolean
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateByte(int columnIndex, byte x) throws SQLException
ResultSet
byte
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateByte
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateShort(int columnIndex, short x) throws SQLException
ResultSet
short
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateShort
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateInt(int columnIndex, int x) throws SQLException
ResultSet
int
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateInt
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateLong(int columnIndex, long x) throws SQLException
ResultSet
long
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateLong
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateFloat(int columnIndex, float x) throws SQLException
ResultSet
float
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateFloat
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateDouble(int columnIndex, double x) throws SQLException
ResultSet
double
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateDouble
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateBigDecimal(int columnIndex, java.math.BigDecimal x) throws SQLException
ResultSet
java.math.BigDecimal
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateBigDecimal
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateString(int columnIndex, java.lang.String x) throws SQLException
ResultSet
String
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateString
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateBytes(int columnIndex, byte[] x) throws SQLException
ResultSet
byte
array value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateBytes
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateDate(int columnIndex, Date x) throws SQLException
ResultSet
java.sql.Date
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateDate
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateTime(int columnIndex, Time x) throws SQLException
ResultSet
java.sql.Time
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateTime
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateTimestamp(int columnIndex, Timestamp x) throws SQLException
ResultSet
java.sql.Timestamp
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateTimestamp
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateAsciiStream(int columnIndex, java.io.InputStream x, int length) throws SQLException
ResultSet
updateRow
or
insertRow
methods are called to update the database.updateAsciiStream
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valuelength
- the length of the streamSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateBinaryStream(int columnIndex, java.io.InputStream x, int length) throws SQLException
ResultSet
updateRow
or
insertRow
methods are called to update the database.updateBinaryStream
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valuelength
- the length of the streamSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateCharacterStream(int columnIndex, java.io.Reader x, int length) throws SQLException
ResultSet
updateRow
or
insertRow
methods are called to update the database.updateCharacterStream
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valuelength
- the length of the streamSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateAsciiStream(int columnIndex, java.io.InputStream x) throws SQLException
ResultSet
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
updateAsciiStream
which takes a length parameter.
updateAsciiStream
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x) throws SQLException
ResultSet
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
updateAsciiStream
which takes a length parameter.
updateAsciiStream
in interface ResultSet
columnLabel
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateBinaryStream(int columnIndex, java.io.InputStream x) throws SQLException
ResultSet
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
updateBinaryStream
which takes a length parameter.
updateBinaryStream
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x) throws SQLException
ResultSet
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
updateBinaryStream
which takes a length parameter.
updateBinaryStream
in interface ResultSet
columnLabel
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateCharacterStream(int columnIndex, java.io.Reader x) throws SQLException
ResultSet
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
updateCharacterStream
which takes a length parameter.
updateCharacterStream
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateCharacterStream(java.lang.String columnLabel, java.io.Reader x) throws SQLException
ResultSet
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
updateCharacterStream
which takes a length parameter.
updateCharacterStream
in interface ResultSet
columnLabel
- 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 columnx
- the java.io.Reader
object containing
the new column valueSQLException
- if the columnLabel is not valid; if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateAsciiStream(int columnIndex, java.io.InputStream x, long length) throws SQLException
ResultSet
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
updateAsciiStream
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valuelength
- the length of the streamSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws SQLException
ResultSet
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
updateAsciiStream
in interface ResultSet
columnLabel
- 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 columnx
- the new column valuelength
- the length of the streamSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateBinaryStream(int columnIndex, java.io.InputStream x, long length) throws SQLException
ResultSet
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
updateBinaryStream
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valuelength
- the length of the streamSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws SQLException
ResultSet
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
updateBinaryStream
in interface ResultSet
columnLabel
- 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 columnx
- the new column valuelength
- the length of the streamSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateCharacterStream(int columnIndex, java.io.Reader x, long length) throws SQLException
ResultSet
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
updateCharacterStream
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valuelength
- the length of the streamSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length) throws SQLException
ResultSet
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
updateCharacterStream
in interface ResultSet
columnLabel
- 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 columnreader
- the java.io.Reader
object containing
the new column valuelength
- the length of the streamSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateObject(int columnIndex, java.lang.Object x, int scale) throws SQLException
ResultSet
Object
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
If the second argument is an InputStream
then the stream must contain
the number of bytes specified by scaleOrLength. If the second argument is a
Reader
then the reader must contain the number of characters specified
by scaleOrLength. If these conditions are not true the driver will generate a
SQLException
when the statement is executed.
updateObject
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valuescale
- for an object of java.math.BigDecimal
,
this is the number of digits after the decimal point. For
Java Object types InputStream
and Reader
,
this is the length
of the data in the stream or reader. For all other types,
this value will be ignored.SQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateObject(int columnIndex, java.lang.Object x) throws SQLException
ResultSet
Object
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateObject
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateNull(java.lang.String columnName) throws SQLException
ResultSet
null
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateNull
in interface ResultSet
columnName
- 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;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateBoolean(java.lang.String columnName, boolean x) throws SQLException
ResultSet
boolean
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateBoolean
in interface ResultSet
columnName
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateByte(java.lang.String columnName, byte x) throws SQLException
ResultSet
byte
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateByte
in interface ResultSet
columnName
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateShort(java.lang.String columnName, short x) throws SQLException
ResultSet
short
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateShort
in interface ResultSet
columnName
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateInt(java.lang.String columnName, int x) throws SQLException
ResultSet
int
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateInt
in interface ResultSet
columnName
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateLong(java.lang.String columnName, long x) throws SQLException
ResultSet
long
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateLong
in interface ResultSet
columnName
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateFloat(java.lang.String columnName, float x) throws SQLException
ResultSet
float
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateFloat
in interface ResultSet
columnName
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateDouble(java.lang.String columnName, double x) throws SQLException
ResultSet
double
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateDouble
in interface ResultSet
columnName
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateBigDecimal(java.lang.String columnName, java.math.BigDecimal x) throws SQLException
ResultSet
java.sql.BigDecimal
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateBigDecimal
in interface ResultSet
columnName
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateString(java.lang.String columnName, java.lang.String x) throws SQLException
ResultSet
String
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateString
in interface ResultSet
columnName
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateBytes(java.lang.String columnName, byte[] x) throws SQLException
ResultSet
updateRow
or insertRow
methods are called to update the database.updateBytes
in interface ResultSet
columnName
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateDate(java.lang.String columnName, Date x) throws SQLException
ResultSet
java.sql.Date
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateDate
in interface ResultSet
columnName
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateTime(java.lang.String columnName, Time x) throws SQLException
ResultSet
java.sql.Time
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateTime
in interface ResultSet
columnName
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateTimestamp(java.lang.String columnName, Timestamp x) throws SQLException
ResultSet
java.sql.Timestamp
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateTimestamp
in interface ResultSet
columnName
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateAsciiStream(java.lang.String columnName, java.io.InputStream x, int length) throws SQLException
ResultSet
updateRow
or
insertRow
methods are called to update the database.updateAsciiStream
in interface ResultSet
columnName
- 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 columnx
- the new column valuelength
- the length of the streamSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateBinaryStream(java.lang.String columnName, java.io.InputStream x, int length) throws SQLException
ResultSet
updateRow
or
insertRow
methods are called to update the database.updateBinaryStream
in interface ResultSet
columnName
- 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 columnx
- the new column valuelength
- the length of the streamSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateCharacterStream(java.lang.String columnName, java.io.Reader reader, int length) throws SQLException
ResultSet
updateRow
or
insertRow
methods are called to update the database.updateCharacterStream
in interface ResultSet
columnName
- 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 columnreader
- the java.io.Reader
object containing
the new column valuelength
- the length of the streamSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateObject(java.lang.String columnName, java.lang.Object x, int scale) throws SQLException
ResultSet
Object
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
If the second argument is an InputStream
then the stream must contain
the number of bytes specified by scaleOrLength. If the second argument is a
Reader
then the reader must contain the number of characters specified
by scaleOrLength. If these conditions are not true the driver will generate a
SQLException
when the statement is executed.
updateObject
in interface ResultSet
columnName
- 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 columnx
- the new column valuescale
- for an object of java.math.BigDecimal
,
this is the number of digits after the decimal point. For
Java Object types InputStream
and Reader
,
this is the length
of the data in the stream or reader. For all other types,
this value will be ignored.SQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateObject(java.lang.String columnName, java.lang.Object x) throws SQLException
ResultSet
Object
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateObject
in interface ResultSet
columnName
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateBlob(int columnIndex, Blob x) throws SQLException
ResultSet
java.sql.Blob
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateBlob
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateBlob(java.lang.String columnName, Blob x) throws SQLException
ResultSet
java.sql.Blob
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateBlob
in interface ResultSet
columnName
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateClob(int columnIndex, Clob x) throws SQLException
ResultSet
java.sql.Clob
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateClob
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateClob(java.lang.String columnName, Clob x) throws SQLException
ResultSet
java.sql.Clob
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateClob
in interface ResultSet
columnName
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateBlob(int columnIndex, java.io.InputStream inputStream) throws SQLException
ResultSet
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
updateBlob
which takes a length parameter.
updateBlob
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...inputStream
- An object that contains the data to set the parameter
value to.SQLException
- if the columnIndex is not valid; if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream) throws SQLException
ResultSet
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
updateBlob
which takes a length parameter.
updateBlob
in interface ResultSet
columnLabel
- 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 columninputStream
- An object that contains the data to set the parameter
value to.SQLException
- if the columnLabel is not valid; if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateBlob(int columnIndex, java.io.InputStream inputStream, long length) throws SQLException
ResultSet
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
updateBlob
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...inputStream
- An object that contains the data to set the parameter
value to.length
- the number of bytes in the parameter data.SQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream, long length) throws SQLException
ResultSet
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
updateBlob
in interface ResultSet
columnLabel
- 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 columninputStream
- An object that contains the data to set the parameter
value to.length
- the number of bytes in the parameter data.SQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateClob(int columnIndex, java.io.Reader reader) throws SQLException
ResultSet
Reader
object.
The data will be read from the stream
as needed until end-of-stream is reached. The JDBC driver will
do any necessary conversion from UNICODE to the database char format.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
updateClob
which takes a length parameter.
updateClob
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...reader
- An object that contains the data to set the parameter value to.SQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateClob(java.lang.String columnLabel, java.io.Reader reader) throws SQLException
ResultSet
Reader
object.
The data will be read from the stream
as needed until end-of-stream is reached. The JDBC driver will
do any necessary conversion from UNICODE to the database char format.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
updateClob
which takes a length parameter.
updateClob
in interface ResultSet
columnLabel
- 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 columnreader
- An object that contains the data to set the parameter value to.SQLException
- if the columnLabel is not valid; if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateClob(int columnIndex, java.io.Reader reader, long length) throws SQLException
ResultSet
Reader
object, which is the given number of characters long.
When a very large UNICODE value is input to a LONGVARCHAR
parameter, it may be more practical to send it via a
java.io.Reader
object. The JDBC driver will
do any necessary conversion from UNICODE to the database char format.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
updateClob
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...reader
- An object that contains the data to set the parameter value to.length
- the number of characters in the parameter data.SQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateClob(java.lang.String columnLabel, java.io.Reader reader, long length) throws SQLException
ResultSet
Reader
object, which is the given number of characters long.
When a very large UNICODE value is input to a LONGVARCHAR
parameter, it may be more practical to send it via a
java.io.Reader
object. The JDBC driver will
do any necessary conversion from UNICODE to the database char format.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.
updateClob
in interface ResultSet
columnLabel
- 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 columnreader
- An object that contains the data to set the parameter value to.length
- the number of characters in the parameter data.SQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateArray(int columnIndex, Array x) throws SQLException
ResultSet
java.sql.Array
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateArray
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateArray(java.lang.String columnName, Array x) throws SQLException
ResultSet
java.sql.Array
value.
The updater methods are used to update column values in the
current row or the insert row. The updater methods do not
update the underlying database; instead the updateRow
or
insertRow
methods are called to update the database.updateArray
in interface ResultSet
columnName
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void setFetchSize(int rows) throws SQLException
ResultSet
ResultSet
object.
If the fetch size specified is zero, the JDBC driver
ignores the value and is free to make its own best guess as to what
the fetch size should be. The default value is set by the
Statement
object
that created the result set. The fetch size may be changed at any time.setFetchSize
in interface ResultSet
rows
- the number of rows to fetchSQLException
- if a database access error occurs; this method
is called on a closed result set or the
condition rows >= 0
is not satisfiedResultSet.getFetchSize()
public int getFetchSize() throws SQLException
ResultSet
ResultSet
object.getFetchSize
in interface ResultSet
ResultSet
objectSQLException
- if a database access error occurs
or this method is called on a closed result setResultSet.setFetchSize(int)
public RowSet asRowSet() throws SQLException
RowSetInterface
asRowSet
in interface RowSetInterface
SQLException
public void setPageSize(int pageSize) throws SQLException
RowSetInterface
RowSet
object's page-size. A RowSet
may be configured to populate itself in page-size sized batches of rows. When
either next()
or nextPage()
are called, the
RowSet
fetches an additional page. Actually the same as setFetchSize(int)
.setPageSize
in interface RowSetInterface
SQLException
- if an error occurs setting the RowSet
page size or if the page size is less than 0.public int getPageSize() throws SQLException
RowSetInterface
RowSet
object
Actually the same as getFetchSize
.getPageSize
in interface RowSetInterface
int
page sizeSQLException
public boolean nextPage() throws SQLException
RowSetInterface
RowSet
. This causes
the RowSet
implementation to fetch the next page-size
rows. Pointer will be set on the first row of the new page.
If false returned, RowSet becomes the same.nextPage
in interface RowSetInterface
SQLException
- if an error occurs fetching the next pagepublic boolean previousPage() throws SQLException
RowSetInterface
RowSet
. This causes
the RowSet
implementation to fetch the previous page-size
rows. Pointer will be set on the first row of the new page.
If false returned, RowSet becomes the same.previousPage
in interface RowSetInterface
SQLException
- if an error occurs fetching the previous page.public ResultSetMetaData getMetaData() throws SQLException
getRowMetaData()
.getMetaData
in interface ResultSet
ResultSet
object's columnsSQLException
- if a database access error occurs or this method is
called on a closed result setpublic boolean isWrapperFor(java.lang.Class iface) throws SQLException
Wrapper
isWrapperFor
on the wrapped
object. If this does not implement the interface and is not a wrapper, return false.
This method should be implemented as a low-cost operation compared to unwrap
so that
callers can use this method to avoid expensive unwrap
calls that may fail. If this method
returns true then calling unwrap
with the same argument should succeed.isWrapperFor
in interface Wrapper
iface
- a Class defining an interface.SQLException
- if an error occurs while determining whether this is a wrapper
for an object with the given interface.public java.lang.Object unwrap(java.lang.Class iface) throws SQLException
Wrapper
unwrap
recursively on the wrapped object
or a proxy for that result. If the receiver is not a
wrapper and does not implement the interface, then an SQLException
is thrown.unwrap
in interface Wrapper
iface
- A Class defining an interface that the result must implement.SQLException
- If no object found that implements the interfacepublic java.lang.Object getObject(int columnIndex, java.lang.Class type) throws SQLException
SQLException
public java.lang.Object getObject(java.lang.String columnLabel, java.lang.Class type) throws SQLException
SQLException
public int getHoldability() throws SQLException
getHoldability
in interface ResultSet
ResultSet.HOLD_CURSORS_OVER_COMMIT
or ResultSet.CLOSE_CURSORS_AT_COMMIT
SQLException
- if a database access error occurs
or this method is called on a closed result setpublic java.io.Reader getNCharacterStream(int columnIndex) throws SQLException
getNCharacterStream
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...java.io.Reader
object that contains the column
value; if the value is SQL NULL
, the value returned is
null
in the Java programming language.SQLException
- if the columnIndex is not valid;
if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic java.io.Reader getNCharacterStream(java.lang.String columnLabel) throws SQLException
getNCharacterStream
in interface ResultSet
columnLabel
- 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 columnjava.io.Reader
object that contains the column
value; if the value is SQL NULL
, the value returned is
null
in the Java programming languageSQLException
- if the columnLabel is not valid;
if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic NClob getNClob(int columnIndex) throws SQLException
getNClob
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...NClob
object representing the SQL
NCLOB
value in the specified columnSQLException
- if the columnIndex is not valid;
if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur; this method is called on a closed result set
or if a database access error occursSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic NClob getNClob(java.lang.String columnLabel) throws SQLException
getNClob
in interface ResultSet
columnLabel
- 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 columnNClob
object representing the SQL NCLOB
value in the specified columnSQLException
- if the columnLabel is not valid;
if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur; this method is called on a closed result set
or if a database access error occursSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic java.lang.String getNString(int columnIndex) throws SQLException
getNString
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...NULL
, the
value returned is null
SQLException
- if the columnIndex is not valid;
if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic java.lang.String getNString(java.lang.String columnLabel) throws SQLException
getNString
in interface ResultSet
columnLabel
- 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 columnNULL
, the
value returned is null
SQLException
- if the columnLabel is not valid;
if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic RowId getRowId(int columnIndex) throws SQLException
getRowId
in interface ResultSet
columnIndex
- the first column is 1, the second 2, ...NULL
the
value returned is null
SQLException
- if the columnIndex is not valid;
if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic RowId getRowId(java.lang.String columnLabel) throws SQLException
getRowId
in interface ResultSet
columnLabel
- 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 columnNULL
the
value returned is null
SQLException
- if the columnLabel is not valid;
if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic SQLXML getSQLXML(int columnIndex) throws SQLException
getSQLXML
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...SQLXML
object that maps an SQL XML
valueSQLException
- if the columnIndex is not valid;
if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic SQLXML getSQLXML(java.lang.String columnLabel) throws SQLException
getSQLXML
in interface ResultSet
columnLabel
- 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 columnSQLXML
object that maps an SQL XML
valueSQLException
- if the columnLabel is not valid;
if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateNCharacterStream(int columnIndex, java.io.Reader x) throws SQLException
updateNCharacterStream
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws SQLException
updateNCharacterStream
in interface ResultSet
columnLabel
- 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 columnreader
- the java.io.Reader
object containing
the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateNCharacterStream(int columnIndex, java.io.Reader x, long length) throws SQLException
updateNCharacterStream
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valuelength
- the length of the streamSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length) throws SQLException
updateNCharacterStream
in interface ResultSet
columnLabel
- 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 columnreader
- the java.io.Reader
object containing
the new column valuelength
- the length of the streamSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateNClob(int columnIndex, NClob nClob) throws SQLException
updateNClob
in interface ResultSet
columnIndex
- the first column is 1, the second 2, ...nClob
- the value for the column to be updatedSQLException
- if the columnIndex is not valid;
if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur; this method is called on a closed result set;
if a database access error occurs or
the result set concurrency is CONCUR_READ_ONLY
SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateNClob(java.lang.String columnLabel, NClob nClob) throws SQLException
updateNClob
in interface ResultSet
columnLabel
- 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 columnnClob
- the value for the column to be updatedSQLException
- if the columnLabel is not valid;
if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur; this method is called on a closed result set;
if a database access error occurs or
the result set concurrency is CONCUR_READ_ONLY
SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateNClob(int columnIndex, java.io.Reader reader) throws SQLException
updateNClob
in interface ResultSet
columnIndex
- the first column is 1, the second 2, ...reader
- An object that contains the data to set the parameter value to.SQLException
- if the columnIndex is not valid;
if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur; this method is called on a closed result set,
if a database access error occurs or
the result set concurrency is CONCUR_READ_ONLY
SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateNClob(java.lang.String columnLabel, java.io.Reader reader) throws SQLException
updateNClob
in interface ResultSet
columnLabel
- 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 columnreader
- An object that contains the data to set the parameter value to.SQLException
- if the columnLabel is not valid; if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur; this method is called on a closed result set;
if a database access error occurs or
the result set concurrency is CONCUR_READ_ONLY
SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateNClob(int columnIndex, java.io.Reader reader, long length) throws SQLException
updateNClob
in interface ResultSet
columnIndex
- the first column is 1, the second 2, ...reader
- An object that contains the data to set the parameter value to.length
- the number of characters in the parameter data.SQLException
- if the columnIndex is not valid;
if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur; this method is called on a closed result set,
if a database access error occurs or
the result set concurrency is CONCUR_READ_ONLY
SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateNClob(java.lang.String columnLabel, java.io.Reader reader, long length) throws SQLException
updateNClob
in interface ResultSet
columnLabel
- 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 columnreader
- An object that contains the data to set the parameter value to.length
- the number of characters in the parameter data.SQLException
- if the columnLabel is not valid;
if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur; this method is called on a closed result set;
if a database access error occurs or
the result set concurrency is CONCUR_READ_ONLY
SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateNString(int columnIndex, java.lang.String nString) throws SQLException
updateNString
in interface ResultSet
columnIndex
- the first column is 1, the second 2, ...nString
- the value for the column to be updatedSQLException
- if the columnIndex is not valid;
if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur; this method is called on a closed result set;
the result set concurrency is CONCUR_READ_ONLY
or if a database access error occursSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateNString(java.lang.String columnLabel, java.lang.String nString) throws SQLException
updateNString
in interface ResultSet
columnLabel
- 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 columnnString
- the value for the column to be updatedSQLException
- if the columnLabel is not valid;
if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur; this method is called on a closed result set;
the result set concurrency is CONCUR_READ_ONLY
or if a database access error occursSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateRowId(int columnIndex, RowId x) throws SQLException
updateRowId
in interface ResultSet
columnIndex
- the first column is 1, the second 2, ...x
- the column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateRowId(java.lang.String columnLabel, RowId x) throws SQLException
updateRowId
in interface ResultSet
columnLabel
- 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 columnx
- the column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException
updateSQLXML
in interface ResultSet
columnIndex
- the first column is 1, the second 2, ...xmlObject
- the value for the column to be updatedSQLException
- if the columnIndex is not valid;
if a database access error occurs; this method
is called on a closed result set;
the java.xml.transform.Result
,
Writer
or OutputStream
has not been closed
for the SQLXML
object;
if there is an error processing the XML value or
the result set concurrency is CONCUR_READ_ONLY
. The getCause
method
of the exception may provide a more detailed exception, for example, if the
stream does not contain valid XML.SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateSQLXML(java.lang.String columnLabel, SQLXML xmlObject) throws SQLException
updateSQLXML
in interface ResultSet
columnLabel
- 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 columnxmlObject
- the column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs; this method
is called on a closed result set;
the java.xml.transform.Result
,
Writer
or OutputStream
has not been closed
for the SQLXML
object;
if there is an error processing the XML value or
the result set concurrency is CONCUR_READ_ONLY
. The getCause
method
of the exception may provide a more detailed exception, for example, if the
stream does not contain valid XML.SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void insertRow() throws SQLException
insertRow
in interface ResultSet
SQLException
- if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
,
this method is called on a closed result set,
if this method is called when the cursor is not on the insert row,
or if not all of non-nullable columns in
the insert row have been given a non-null valueSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateRow() throws SQLException
updateRow
in interface ResultSet
SQLException
- if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
;
this method is called on a closed result set or
if this method is called when the cursor is on the insert rowSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void deleteRow() throws SQLException
deleteRow
in interface ResultSet
SQLException
- if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
;
this method is called on a closed result set
or if this method is called when the cursor is on the insert rowSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void refreshRow() throws SQLException
refreshRow
in interface ResultSet
SQLException
- if a database access error
occurs; this method is called on a closed result set;
the result set type is TYPE_FORWARD_ONLY
or if this
method is called when the cursor is on the insert rowSQLFeatureNotSupportedException
- if the JDBC driver does not support
this method or this method is not supported for the specified result
set type and result set concurrency.public void cancelRowUpdates() throws SQLException
cancelRowUpdates
in interface ResultSet
SQLException
- if a database access error
occurs; this method is called on a closed result set;
the result set concurrency is CONCUR_READ_ONLY
or if this method is called when the cursor is
on the insert rowSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void moveToInsertRow() throws SQLException
moveToInsertRow
in interface ResultSet
SQLException
- if a database access error occurs; this
method is called on a closed result set
or the result set concurrency is CONCUR_READ_ONLY
SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void moveToCurrentRow() throws SQLException
moveToCurrentRow
in interface ResultSet
SQLException
- if a database access error occurs; this
method is called on a closed result set
or the result set concurrency is CONCUR_READ_ONLY
SQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic Statement getStatement() throws SQLException
getStatement
in interface ResultSet
Statment
object that produced
this ResultSet
object or null
if the result set was produced some other waySQLException
- if a database access error occurs
or this method is called on a closed result setpublic java.lang.Object getObject(int i, java.util.Map map) throws SQLException
getObject
in interface ResultSet
i
- 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 languageObject
in the Java programming language
representing the SQL valueSQLException
- if the columnIndex is not valid;
if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic java.lang.Object getObject(java.lang.String colName, java.util.Map map) throws SQLException
getObject
in interface ResultSet
colName
- 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 columnmap
- a java.util.Map
object that contains the mapping
from SQL type names to classes in the Java programming languageObject
representing the SQL value in the
specified columnSQLException
- if the columnLabel is not valid;
if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic Ref getRef(int i) throws SQLException
getRef
in interface ResultSet
i
- the first column is 1, the second is 2, ...Ref
object representing an SQL REF
valueSQLException
- if the columnIndex is not valid;
if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic Ref getRef(java.lang.String colName) throws SQLException
getRef
in interface ResultSet
colName
- 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 columnRef
object representing the SQL REF
value in the specified columnSQLException
- if the columnLabel is not valid;
if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic java.net.URL getURL(int columnIndex) throws SQLException
getURL
in interface ResultSet
columnIndex
- the index of the column 1 is the first, 2 is the second,...java.net.URL
object;
if the value is SQL NULL
,
the value returned is null
in the Java programming languageSQLException
- if the columnIndex is not valid;
if a database access error occurs; this method
is called on a closed result set or if a URL is malformedSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic java.net.URL getURL(java.lang.String columnName) throws SQLException
getURL
in interface ResultSet
columnName
- 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 columnjava.net.URL
object;
if the value is SQL NULL
,
the value returned is null
in the Java programming languageSQLException
- if the columnLabel is not valid;
if a database access error occurs; this method
is called on a closed result set or if a URL is malformedSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateRef(int columnIndex, Ref x) throws SQLException
updateRef
in interface ResultSet
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valueSQLException
- if the columnIndex is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void updateRef(java.lang.String columnName, Ref x) throws SQLException
updateRef
in interface ResultSet
columnName
- 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 columnx
- the new column valueSQLException
- if the columnLabel is not valid;
if a database access error occurs;
the result set concurrency is CONCUR_READ_ONLY
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic SQLWarning getWarnings() throws SQLException
getWarnings
in interface ResultSet
SQLWarning
object reported or
null
if there are noneSQLException
- if a database access error occurs or this method is
called on a closed result setpublic void clearWarnings() throws SQLException
clearWarnings
in interface ResultSet
SQLException
- if a database access error occurs or this method is
called on a closed result setpublic java.lang.String getCursorName() throws SQLException
getCursorName
in interface ResultSet
ResultSet
object's cursorSQLException
- if a database access error occurs or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodpublic void setFetchDirection(int direction) throws SQLException
setFetchDirection
in interface ResultSet
direction
- an int
specifying the suggested
fetch direction; one of ResultSet.FETCH_FORWARD
,
ResultSet.FETCH_REVERSE
, or
ResultSet.FETCH_UNKNOWN
SQLException
- if a database access error occurs; this
method is called on a closed result set or
the result set type is TYPE_FORWARD_ONLY
and the fetch
direction is not FETCH_FORWARD
Statement.setFetchDirection(int)
,
ResultSet.getFetchDirection()
public int getFetchDirection() throws SQLException
getFetchDirection
in interface ResultSet
ResultSet
objectSQLException
- if a database access error occurs
or this method is called on a closed result setResultSet.setFetchDirection(int)
public int getConcurrency() throws SQLException
getConcurrency
in interface ResultSet
ResultSet.CONCUR_READ_ONLY
or ResultSet.CONCUR_UPDATABLE
SQLException
- if a database access error occurs
or this method is called on a closed result setpublic int getType() throws SQLException
getType
in interface ResultSet
ResultSet.TYPE_FORWARD_ONLY
,
ResultSet.TYPE_SCROLL_INSENSITIVE
,
or ResultSet.TYPE_SCROLL_SENSITIVE
SQLException
- if a database access error occurs
or this method is called on a closed result setpublic boolean rowUpdated() throws SQLException
rowUpdated
in interface ResultSet
true
if the current row is detected to
have been visibly updated by the owner or another; false
otherwiseSQLException
- if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodDatabaseMetaData.updatesAreDetected(int)
public boolean rowInserted() throws SQLException
rowInserted
in interface ResultSet
true
if the current row is detected to
have been inserted; false
otherwiseSQLException
- if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodDatabaseMetaData.insertsAreDetected(int)
public boolean rowDeleted() throws SQLException
rowDeleted
in interface ResultSet
true
if the current row is detected to
have been deleted by the owner or another; false
otherwiseSQLException
- if a database access error occurs
or this method is called on a closed result setSQLFeatureNotSupportedException
- if the JDBC driver does not support
this methodDatabaseMetaData.deletesAreDetected(int)
public RowSet clone()
CloneableDataObject
clone
in interface CloneableObject
clone
in class CloneableDataObject
public static RowMetaData createMetaData(ResultSet resultSet) throws SQLException
SQLException
public java.lang.String toText(int maxColumnWidth)
public CollectionTupleSet toTupleSet()
public DataFrame toDataFrame() throws SQLException
SQLException
public com.streamscape.ds.parser.statement.Statement getParserStatement()
public void setParserStatement(com.streamscape.ds.parser.statement.Statement parserStatement)
public void sortRows(java.util.Comparator comparator)
public java.util.List getIntColumn(java.lang.String columnName) throws SQLException
SQLException
public java.util.List getIntColumn(int columnIndex) throws SQLException
SQLException
public java.util.List getBigDecimalColumn(java.lang.String columnName) throws SQLException
SQLException
public java.util.List getBigDecimalColumn(int columnIndex) throws SQLException
SQLException
public java.util.List getShortColumn(java.lang.String columnName) throws SQLException
SQLException
public java.util.List getShortColumn(int columnIndex) throws SQLException
SQLException
public java.util.List getLongColumn(java.lang.String columnName) throws SQLException
SQLException
public java.util.List getLongColumn(int columnIndex) throws SQLException
SQLException
public java.util.List getByteColumn(java.lang.String columnName) throws SQLException
SQLException
public java.util.List getByteColumn(int columnIndex) throws SQLException
SQLException
public java.util.List getBooleanColumn(java.lang.String columnName) throws SQLException
SQLException
public java.util.List getBooleanColumn(int columnIndex) throws SQLException
SQLException
public java.util.List getFloatColumn(java.lang.String columnName) throws SQLException
SQLException
public java.util.List getFloatColumn(int columnIndex) throws SQLException
SQLException
public java.util.List getDoubleColumn(java.lang.String columnName) throws SQLException
SQLException
public java.util.List getDoubleColumn(int columnIndex) throws SQLException
SQLException
public java.util.List getStringColumn(java.lang.String columnName) throws SQLException
SQLException
public java.util.List getStringColumn(int columnIndex) throws SQLException
SQLException
public java.util.List getObjectColumn(java.lang.String columnName) throws SQLException
SQLException
public java.util.List getObjectColumn(int columnIndex) throws SQLException
SQLException
public java.util.List getDateColumn(java.lang.String columnName) throws SQLException
SQLException
public java.util.List getDateColumn(int columnIndex) throws SQLException
SQLException
public java.util.List getTimeColumn(java.lang.String columnName) throws SQLException
SQLException
public java.util.List getTimeColumn(int columnIndex) throws SQLException
SQLException
public java.util.List getTimestampColumn(java.lang.String columnName) throws SQLException
SQLException
public java.util.List getTimestampColumn(int columnIndex) throws SQLException
SQLException
public java.util.List getColumnNames()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.