Interface WebRowSet
- All Superinterfaces:
AutoCloseable, CachedRowSet, Joinable, ResultSet, RowSet, Wrapper
- All Known Subinterfaces:
FilteredRowSet, JoinRowSet
The standard interface that all implementations of a 2.1 State 1 - Outputting a
In this example, a
WebRowSet
must implement.
1.0 Overview
TheWebRowSetImpl
provides the standard
reference implementation, which may be extended if required.
The standard WebRowSet XML Schema definition is available at the following URI:
It describes the standard XML document format required when describing aRowSet
object in XML and must be used be all standard implementations
of the WebRowSet
interface to ensure interoperability. In addition,
the WebRowSet
schema uses specific SQL/XML Schema annotations,
thus ensuring greater cross
platform interoperability. This is an effort currently under way at the ISO
organization. The SQL/XML definition is available at the following URI:
The schema definition describes the internal data of a RowSet
object
in three distinct areas:
- properties - These properties describe the standard synchronization
provider properties in addition to the more general
RowSet
properties. - metadata - This describes the metadata associated with the tabular structure governed by a
WebRowSet
object. The metadata described is closely aligned with the metadata accessible in the underlyingjava.sql.ResultSet
interface. - data - This describes the original data (the state of data since the
last population
or last synchronization of the
WebRowSet
object) and the current data. By keeping track of the delta between the original data and the current data, aWebRowSet
maintains the ability to synchronize changes in its data back to the originating data source.
2.0 WebRowSet States
The following sections demonstrates how aWebRowSet
implementation
should use the XML Schema to describe update, insert, and delete operations
and to describe the state of a WebRowSet
object in XML.
2.1 State 1 - Outputting a WebRowSet
Object to XML
In this example, a WebRowSet
object is created and populated with a simple 2 column,
5 row table from a data source. Having the 5 rows in a WebRowSet
object
makes it possible to describe them in XML. The
metadata describing the various standard JavaBeans properties as defined
in the RowSet interface plus the standard properties defined in
the CachedRowSet
interface
provide key details that describe WebRowSet
properties. Outputting the WebRowSet object to XML using the standard
writeXml
methods describes the internal properties as follows:
<properties>
<command>select co1, col2 from test_table</command>
<concurrency>1</concurrency>
<datasource/>
<escape-processing>true</escape-processing>
<fetch-direction>0</fetch-direction>
<fetch-size>0</fetch-size>
<isolation-level>1</isolation-level>
<key-columns/>
<map/>
<max-field-size>0</max-field-size>
<max-rows>0</max-rows>
<query-timeout>0</query-timeout>
<read-only>false</read-only>
<rowset-type>TRANSACTION_READ_UNCOMMITTED</rowset-type>
<show-deleted>false</show-deleted>
<table-name/>
<url>jdbc:thin:oracle</url>
<sync-provider>
<sync-provider-name>.com.rowset.provider.RIOptimisticProvider</sync-provider-name>
<sync-provider-vendor>Oracle Corporation</sync-provider-vendor>
<sync-provider-version>1.0</sync-provider-name>
<sync-provider-grade>LOW</sync-provider-grade>
<data-source-lock>NONE</data-source-lock>
</sync-provider>
</properties>
The meta-data describing the make up of the WebRowSet is described
in XML as detailed below. Note both columns are described between the
column-definition
tags.
<metadata>
<column-count>2</column-count>
<column-definition>
<column-index>1</column-index>
<auto-increment>false</auto-increment>
<case-sensitive>true</case-sensitive>
<currency>false</currency>
<nullable>1</nullable>
<signed>false</signed>
<searchable>true</searchable>
<column-display-size>10</column-display-size>
<column-label>COL1</column-label>
<column-name>COL1</column-name>
<schema-name/>
<column-precision>10</column-precision>
<column-scale>0</column-scale>
<table-name/>
<catalog-name/>
<column-type>1</column-type>
<column-type-name>CHAR</column-type-name>
</column-definition>
<column-definition>
<column-index>2</column-index>
<auto-increment>false</auto-increment>
<case-sensitive>false</case-sensitive>
<currency>false</currency>
<nullable>1</nullable>
<signed>true</signed>
<searchable>true</searchable>
<column-display-size>39</column-display-size>
<column-label>COL2</column-label>
<column-name>COL2</column-name>
<schema-name/>
<column-precision>38</column-precision>
<column-scale>0</column-scale>
<table-name/>
<catalog-name/>
<column-type>3</column-type>
<column-type-name>NUMBER</column-type-name>
</column-definition>
</metadata>
Having detailed how the properties and metadata are described, the following details
how the contents of a WebRowSet
object is described in XML. Note, that
this describes a WebRowSet
object that has not undergone any
modifications since its instantiation.
A currentRow
tag is mapped to each row of the table structure that the
WebRowSet
object provides. A columnValue
tag may contain
either the stringData
or binaryData
tag, according to
the SQL type that
the XML value is mapping back to. The binaryData
tag contains data in the
Base64 encoding and is typically used for BLOB
and CLOB
type data.
<data>
<currentRow>
<columnValue>
firstrow
</columnValue>
<columnValue>
1
</columnValue>
</currentRow>
<currentRow>
<columnValue>
secondrow
</columnValue>
<columnValue>
2
</columnValue>
</currentRow>
<currentRow>
<columnValue>
thirdrow
</columnValue>
<columnValue>
3
</columnValue>
</currentRow>
<currentRow>
<columnValue>
fourthrow
</columnValue>
<columnValue>
4
</columnValue>
</currentRow>
</data>
2.2 State 2 - Deleting a Row
Deleting a row in aWebRowSet
object involves simply moving to the row
to be deleted and then calling the method deleteRow
, as in any other
RowSet
object. The following
two lines of code, in which wrs is a WebRowSet
object, delete
the third row.
wrs.absolute(3); wrs.deleteRow();The XML description shows the third row is marked as a
deleteRow
,
which eliminates the third row in the WebRowSet
object.
<data>
<currentRow>
<columnValue>
firstrow
</columnValue>
<columnValue>
1
</columnValue>
</currentRow>
<currentRow>
<columnValue>
secondrow
</columnValue>
<columnValue>
2
</columnValue>
</currentRow>
<deleteRow>
<columnValue>
thirdrow
</columnValue>
<columnValue>
3
</columnValue>
</deleteRow>
<currentRow>
<columnValue>
fourthrow
</columnValue>
<columnValue>
4
</columnValue>
</currentRow>
</data>
2.3 State 3 - Inserting a Row
AWebRowSet
object can insert a new row by moving to the insert row,
calling the appropriate updater methods for each column in the row, and then
calling the method insertRow
.
wrs.moveToInsertRow();
wrs.updateString(1, "fifththrow");
wrs.updateString(2, "5");
wrs.insertRow();
The following code fragment changes the second column value in the row just inserted.
Note that this code applies when new rows are inserted right after the current row,
which is why the method next
moves the cursor to the correct row.
Calling the method acceptChanges
writes the change to the data source.
wrs.moveToCurrentRow();
wrs.next();
wrs.updateString(2, "V");
wrs.acceptChanges();
Describing this in XML demonstrates where the Java code inserts a new row and then
performs an update on the newly inserted row on an individual field.
<data>
<currentRow>
<columnValue>
firstrow
</columnValue>
<columnValue>
1
</columnValue>
</currentRow>
<currentRow>
<columnValue>
secondrow
</columnValue>
<columnValue>
2
</columnValue>
</currentRow>
<currentRow>
<columnValue>
newthirdrow
</columnValue>
<columnValue>
III
</columnValue>
</currentRow>
<insertRow>
<columnValue>
fifthrow
</columnValue>
<columnValue>
5
</columnValue>
<updateValue>
V
</updateValue>
</insertRow>
<currentRow>
<columnValue>
fourthrow
</columnValue>
<columnValue>
4
</columnValue>
</currentRow>
</date>
2.4 State 4 - Modifying a Row
Modifying a row produces specific XML that records both the new value and the value that was replaced. The value that was replaced becomes the original value, and the new value becomes the current value. The following code moves the cursor to a specific row, performs some modifications, and updates the row when complete.
wrs.absolute(5);
wrs.updateString(1, "new4thRow");
wrs.updateString(2, "IV");
wrs.updateRow();
In XML, this is described by the modifyRow
tag. Both the original and new
values are contained within the tag for original row tracking purposes.
<data>
<currentRow>
<columnValue>
firstrow
</columnValue>
<columnValue>
1
</columnValue>
</currentRow>
<currentRow>
<columnValue>
secondrow
</columnValue>
<columnValue>
2
</columnValue>
</currentRow>
<currentRow>
<columnValue>
newthirdrow
</columnValue>
<columnValue>
III
</columnValue>
</currentRow>
<currentRow>
<columnValue>
fifthrow
</columnValue>
<columnValue>
5
</columnValue>
</currentRow>
<modifyRow>
<columnValue>
fourthrow
</columnValue>
<updateValue>
new4thRow
</updateValue>
<columnValue>
4
</columnValue>
<updateValue>
IV
</updateValue>
</modifyRow>
</data>
- Since:
- 1.5
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The public identifier for the XML Schema definition that defines the XML tags and their valid values for aWebRowSet
implementation.static final String
The URL for the XML Schema definition file that defines the XML tags and their valid values for aWebRowSet
implementation.Fields declared in interface CachedRowSet
COMMIT_ON_ACCEPT_CHANGES
Modifier and TypeFieldDescriptionstatic final boolean
Deprecated.Because this field is final (it is part of an interface), its value cannot be changed.Fields declared in interface ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
Modifier and TypeFieldDescriptionstatic final int
The constant indicating that openResultSet
objects with this holdability will be closed when the current transaction is committed.static final int
The constant indicating the concurrency mode for aResultSet
object that may NOT be updated.static final int
The constant indicating the concurrency mode for aResultSet
object that may be updated.static final int
The constant indicating that the rows in a result set will be processed in a forward direction; first-to-last.static final int
The constant indicating that the rows in a result set will be processed in a reverse direction; last-to-first.static final int
The constant indicating that the order in which rows in a result set will be processed is unknown.static final int
The constant indicating that openResultSet
objects with this holdability will remain open when the current transaction is committed.static final int
The constant indicating the type for aResultSet
object whose cursor may move only forward.static final int
The constant indicating the type for aResultSet
object that is scrollable but generally not sensitive to changes to the data that underlies theResultSet
.static final int
The constant indicating the type for aResultSet
object that is scrollable and generally sensitive to changes to the data that underlies theResultSet
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
readXml
(InputStream iStream) Reads a stream based XML input to populate thisWebRowSet
object.void
Reads aWebRowSet
object in its XML format from the givenReader
object.void
writeXml
(OutputStream oStream) Writes the data, properties, and metadata for thisWebRowSet
object to the givenOutputStream
object in XML format.void
Writes the data, properties, and metadata for thisWebRowSet
object to the givenWriter
object in XML format.void
writeXml
(ResultSet rs, OutputStream oStream) Populates thisWebRowSet
object with the contents of the givenResultSet
object and writes its data, properties, and metadata to the givenOutputStream
object in XML format.void
Populates thisWebRowSet
object with the contents of the givenResultSet
object and writes its data, properties, and metadata to the givenWriter
object in XML format.Methods declared in interface CachedRowSet
acceptChanges, acceptChanges, columnUpdated, columnUpdated, commit, createCopy, createCopyNoConstraints, createCopySchema, createShared, execute, getKeyColumns, getOriginal, getOriginalRow, getPageSize, getRowSetWarnings, getShowDeleted, getSyncProvider, getTableName, nextPage, populate, populate, previousPage, release, restoreOriginal, rollback, rollback, rowSetPopulated, setKeyColumns, setMetaData, setOriginalRow, setPageSize, setShowDeleted, setSyncProvider, setTableName, size, toCollection, toCollection, toCollection, undoDelete, undoInsert, undoUpdate
Modifier and TypeMethodDescriptionvoid
Propagates row update, insert and delete changes made to thisCachedRowSet
object to the underlying data source.void
acceptChanges
(Connection con) Propagates all row update, insert and delete changes to the data source backing thisCachedRowSet
object using the specifiedConnection
object to establish a connection to the data source.boolean
columnUpdated
(int idx) Indicates whether the designated column in the current row of thisCachedRowSet
object has been updated.boolean
columnUpdated
(String columnName) Indicates whether the designated column in the current row of thisCachedRowSet
object has been updated.void
commit()
EachCachedRowSet
object'sSyncProvider
contains aConnection
object from theResultSet
or JDBC properties passed to it's constructors.Creates aRowSet
object that is a deep copy of the data in thisCachedRowSet
object.Creates aCachedRowSet
object that is a deep copy of thisCachedRowSet
object's data but is independent of it.Creates aCachedRowSet
object that is an empty copy of thisCachedRowSet
object.Returns a newRowSet
object backed by the same data as that of thisCachedRowSet
object.void
execute
(Connection conn) Populates thisCachedRowSet
object with data, using the given connection to produce the result set from which the data will be read.int[]
Returns an array containing one or more column numbers indicating the columns that form a key that uniquely identifies a row in thisCachedRowSet
object.Returns aResultSet
object containing the original value of thisCachedRowSet
object.Returns aResultSet
object containing the original value for the current row only of thisCachedRowSet
object.int
Returns the page-size for theCachedRowSet
objectRetrieves the first warning reported by calls on thisRowSet
object.boolean
Retrieves aboolean
indicating whether rows marked for deletion appear in the set of current rows.Retrieves theSyncProvider
implementation for thisCachedRowSet
object.Returns an identifier for the object (table) that was used to create thisCachedRowSet
object.boolean
nextPage()
Increments the current page of theCachedRowSet
.void
Populates thisCachedRowSet
object with data from the givenResultSet
object.void
Populates thisCachedRowSet
object with data from the givenResultSet
object.boolean
Decrements the current page of theCachedRowSet
.void
release()
Releases the current contents of thisCachedRowSet
object and sends arowSetChanged
event to all registered listeners.void
Restores thisCachedRowSet
object to its original value, that is, its value before the last set of changes.void
rollback()
EachCachedRowSet
object'sSyncProvider
contains aConnection
object from the originalResultSet
or JDBC properties passed to it.void
EachCachedRowSet
object'sSyncProvider
contains aConnection
object from the originalResultSet
or JDBC properties passed to it.void
rowSetPopulated
(RowSetEvent event, int numRows) Notifies registered listeners that a RowSet object in the given RowSetEvent object has populated a number of additional rows.void
setKeyColumns
(int[] keys) Sets thisCachedRowSet
object'skeyCols
field with the given array of column numbers, which forms a key for uniquely identifying a row in thisCachedRowSet
object.void
Sets the metadata for thisCachedRowSet
object with the givenRowSetMetaData
object.void
Sets the current row in thisCachedRowSet
object as the original row.void
setPageSize
(int size) Sets theCachedRowSet
object's page-size.void
setShowDeleted
(boolean b) Sets the propertyshowDeleted
to the givenboolean
value, which determines whether rows marked for deletion appear in the set of current rows.void
setSyncProvider
(String provider) Sets theSyncProvider
object for thisCachedRowSet
object to the one specified.void
setTableName
(String tabName) Sets the identifier for the table from which thisCachedRowSet
object was derived to the given table name.int
size()
Returns the number of rows in thisCachedRowSet
object.Collection
<?> Converts thisCachedRowSet
object to aCollection
object that contains all of thisCachedRowSet
object's data.Collection
<?> toCollection
(int column) Converts the designated column in thisCachedRowSet
object to aCollection
object.Collection
<?> toCollection
(String column) Converts the designated column in thisCachedRowSet
object to aCollection
object.void
Cancels the deletion of the current row and notifies listeners that a row has changed.void
Immediately removes the current row from thisCachedRowSet
object if the row has been inserted, and also notifies listeners that a row has changed.void
Immediately reverses the last update operation if the row has been modified.Methods declared in interface Joinable
getMatchColumnIndexes, getMatchColumnNames, setMatchColumn, setMatchColumn, setMatchColumn, setMatchColumn, unsetMatchColumn, unsetMatchColumn, unsetMatchColumn, unsetMatchColumn
Modifier and TypeMethodDescriptionint[]
Retrieves the indexes of the match columns that were set for thisRowSet
object with the methodsetMatchColumn(int[] columnIdxes)
.String[]
Retrieves the names of the match columns that were set for thisRowSet
object with the methodsetMatchColumn(String [] columnNames)
.void
setMatchColumn
(int columnIdx) Sets the designated column as the match column for thisRowSet
object.void
setMatchColumn
(int[] columnIdxes) Sets the designated columns as the match column for thisRowSet
object.void
setMatchColumn
(String columnName) Sets the designated column as the match column for thisRowSet
object.void
setMatchColumn
(String[] columnNames) Sets the designated columns as the match column for thisRowSet
object.void
unsetMatchColumn
(int columnIdx) Unsets the designated column as the match column for thisRowSet
object.void
unsetMatchColumn
(int[] columnIdxes) Unsets the designated columns as the match column for thisRowSet
object.void
unsetMatchColumn
(String columnName) Unsets the designated column as the match column for thisRowSet
object.void
unsetMatchColumn
(String[] columnName) Unsets the designated columns as the match columns for thisRowSet
object.Methods declared in interface ResultSet
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, close, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getHoldability, getInt, getInt, getLong, getLong, getMetaData, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull
Modifier and TypeMethodDescriptionboolean
absolute
(int row) Moves the cursor to the given row number in thisResultSet
object.void
Moves the cursor to the end of thisResultSet
object, just after the last row.void
Moves the cursor to the front of thisResultSet
object, just before the first row.void
Cancels the updates made to the current row in thisResultSet
object.void
Clears all warnings reported on thisResultSet
object.void
close()
Releases thisResultSet
object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed.void
Deletes the current row from thisResultSet
object and from the underlying database.int
findColumn
(String columnLabel) Maps the givenResultSet
column label to itsResultSet
column index.boolean
first()
Moves the cursor to the first row in thisResultSet
object.getArray
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as anArray
object in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSet
object as anArray
object in the Java programming language.getAsciiStream
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as a stream of ASCII characters.getAsciiStream
(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSet
object as a stream of ASCII characters.getBigDecimal
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.math.BigDecimal
with full precision.getBigDecimal
(int columnIndex, int scale) Deprecated.UsegetBigDecimal(int columnIndex)
orgetBigDecimal(String columnLabel)
getBigDecimal
(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.math.BigDecimal
with full precision.getBigDecimal
(String columnLabel, int scale) Deprecated.UsegetBigDecimal(int columnIndex)
orgetBigDecimal(String columnLabel)
getBinaryStream
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as a stream of uninterpreted bytes.getBinaryStream
(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSet
object as a stream of uninterpretedbyte
s.getBlob
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as aBlob
object in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSet
object as aBlob
object in the Java programming language.boolean
getBoolean
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as aboolean
in the Java programming language.boolean
getBoolean
(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSet
object as aboolean
in the Java programming language.byte
getByte
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as abyte
in the Java programming language.byte
Retrieves the value of the designated column in the current row of thisResultSet
object as abyte
in the Java programming language.byte[]
getBytes
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as abyte
array in the Java programming language.byte[]
Retrieves the value of the designated column in the current row of thisResultSet
object as abyte
array in the Java programming language.getCharacterStream
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.io.Reader
object.getCharacterStream
(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.io.Reader
object.getClob
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as aClob
object in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSet
object as aClob
object in the Java programming language.int
Retrieves the concurrency mode of thisResultSet
object.Retrieves the name of the SQL cursor used by thisResultSet
object.getDate
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.Date
object in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.Date
object in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.Date
object in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.Date
object in the Java programming language.double
getDouble
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as adouble
in the Java programming language.double
Retrieves the value of the designated column in the current row of thisResultSet
object as adouble
in the Java programming language.int
Retrieves the fetch direction for thisResultSet
object.int
Retrieves the fetch size for thisResultSet
object.float
getFloat
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as afloat
in the Java programming language.float
Retrieves the value of the designated column in the current row of thisResultSet
object as afloat
in the Java programming language.int
Retrieves the holdability of thisResultSet
objectint
getInt
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as anint
in the Java programming language.int
Retrieves the value of the designated column in the current row of thisResultSet
object as anint
in the Java programming language.long
getLong
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as along
in the Java programming language.long
Retrieves the value of the designated column in the current row of thisResultSet
object as along
in the Java programming language.Retrieves the number, types and properties of thisResultSet
object's columns.getNCharacterStream
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.io.Reader
object.getNCharacterStream
(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.io.Reader
object.getNClob
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as aNClob
object in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSet
object as aNClob
object in the Java programming language.getNString
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as aString
in the Java programming language.getNString
(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSet
object as aString
in the Java programming language.getObject
(int columnIndex) Gets the value of the designated column in the current row of thisResultSet
object as anObject
in the Java programming language.<T> T
Retrieves the value of the designated column in the current row of thisResultSet
object and will convert from the SQL type of the column to the requested Java data type, if the conversion is supported.Retrieves the value of the designated column in the current row of thisResultSet
object as anObject
in the Java programming language.Gets the value of the designated column in the current row of thisResultSet
object as anObject
in the Java programming language.<T> T
Retrieves the value of the designated column in the current row of thisResultSet
object and will convert from the SQL type of the column to the requested Java data type, if the conversion is supported.Retrieves the value of the designated column in the current row of thisResultSet
object as anObject
in the Java programming language.getRef
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as aRef
object in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSet
object as aRef
object in the Java programming language.int
getRow()
Retrieves the current row number.getRowId
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.RowId
object in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.RowId
object in the Java programming language.short
getShort
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as ashort
in the Java programming language.short
Retrieves the value of the designated column in the current row of thisResultSet
object as ashort
in the Java programming language.getSQLXML
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
as ajava.sql.SQLXML
object in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSet
as ajava.sql.SQLXML
object in the Java programming language.Retrieves theStatement
object that produced thisResultSet
object.getString
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as aString
in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSet
object as aString
in the Java programming language.getTime
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.Time
object in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.Time
object in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.Time
object in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.Time
object in the Java programming language.getTimestamp
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.Timestamp
object in the Java programming language.getTimestamp
(int columnIndex, Calendar cal) Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.Timestamp
object in the Java programming language.getTimestamp
(String columnLabel) Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.Timestamp
object in the Java programming language.getTimestamp
(String columnLabel, Calendar cal) Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.sql.Timestamp
object in the Java programming language.int
getType()
Retrieves the type of thisResultSet
object.getUnicodeStream
(int columnIndex) Deprecated.usegetCharacterStream
in place ofgetUnicodeStream
getUnicodeStream
(String columnLabel) Deprecated.usegetCharacterStream
insteadgetURL
(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.net.URL
object in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSet
object as ajava.net.URL
object in the Java programming language.Retrieves the first warning reported by calls on thisResultSet
object.void
Inserts the contents of the insert row into thisResultSet
object and into the database.boolean
Retrieves whether the cursor is after the last row in thisResultSet
object.boolean
Retrieves whether the cursor is before the first row in thisResultSet
object.boolean
isClosed()
Retrieves whether thisResultSet
object has been closed.boolean
isFirst()
Retrieves whether the cursor is on the first row of thisResultSet
object.boolean
isLast()
Retrieves whether the cursor is on the last row of thisResultSet
object.boolean
last()
Moves the cursor to the last row in thisResultSet
object.void
Moves the cursor to the remembered cursor position, usually the current row.void
Moves the cursor to the insert row.boolean
next()
Moves the cursor forward one row from its current position.boolean
previous()
Moves the cursor to the previous row in thisResultSet
object.void
Refreshes the current row with its most recent value in the database.boolean
relative
(int rows) Moves the cursor a relative number of rows, either positive or negative.boolean
Retrieves whether a row has been deleted.boolean
Retrieves whether the current row has had an insertion.boolean
Retrieves whether the current row has been updated.void
setFetchDirection
(int direction) Gives a hint as to the direction in which the rows in thisResultSet
object will be processed.void
setFetchSize
(int rows) Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed for thisResultSet
object.void
updateArray
(int columnIndex, Array x) Updates the designated column with ajava.sql.Array
value.void
updateArray
(String columnLabel, Array x) Updates the designated column with ajava.sql.Array
value.void
updateAsciiStream
(int columnIndex, InputStream x) Updates the designated column with an ascii stream value.void
updateAsciiStream
(int columnIndex, 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, InputStream x, long length) Updates the designated column with an ascii stream value, which will have the specified number of bytes.void
updateAsciiStream
(String columnLabel, InputStream x) Updates the designated column with an ascii stream value.void
updateAsciiStream
(String columnLabel, InputStream x, int length) Updates the designated column with an ascii stream value, which will have the specified number of bytes.void
updateAsciiStream
(String columnLabel, 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, BigDecimal x) Updates the designated column with ajava.math.BigDecimal
value.void
updateBigDecimal
(String columnLabel, BigDecimal x) Updates the designated column with ajava.sql.BigDecimal
value.void
updateBinaryStream
(int columnIndex, InputStream x) Updates the designated column with a binary stream value.void
updateBinaryStream
(int columnIndex, 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, InputStream x, long length) Updates the designated column with a binary stream value, which will have the specified number of bytes.void
updateBinaryStream
(String columnLabel, InputStream x) Updates the designated column with a binary stream value.void
updateBinaryStream
(String columnLabel, InputStream x, int length) Updates the designated column with a binary stream value, which will have the specified number of bytes.void
updateBinaryStream
(String columnLabel, 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, InputStream inputStream) Updates the designated column using the given input stream.void
updateBlob
(int columnIndex, InputStream inputStream, long length) Updates the designated column using the given input stream, which will have the specified number of bytes.void
updateBlob
(int columnIndex, Blob x) Updates the designated column with ajava.sql.Blob
value.void
updateBlob
(String columnLabel, InputStream inputStream) Updates the designated column using the given input stream.void
updateBlob
(String columnLabel, InputStream inputStream, long length) Updates the designated column using the given input stream, which will have the specified number of bytes.void
updateBlob
(String columnLabel, Blob x) Updates the designated column with ajava.sql.Blob
value.void
updateBoolean
(int columnIndex, boolean x) Updates the designated column with aboolean
value.void
updateBoolean
(String columnLabel, boolean x) Updates the designated column with aboolean
value.void
updateByte
(int columnIndex, byte x) Updates the designated column with abyte
value.void
updateByte
(String columnLabel, byte x) Updates the designated column with abyte
value.void
updateBytes
(int columnIndex, byte[] x) Updates the designated column with abyte
array value.void
updateBytes
(String columnLabel, byte[] x) Updates the designated column with a byte array value.void
updateCharacterStream
(int columnIndex, Reader x) Updates the designated column with a character stream value.void
updateCharacterStream
(int columnIndex, 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, Reader x, long length) Updates the designated column with a character stream value, which will have the specified number of bytes.void
updateCharacterStream
(String columnLabel, Reader reader) Updates the designated column with a character stream value.void
updateCharacterStream
(String columnLabel, Reader reader, int length) Updates the designated column with a character stream value, which will have the specified number of bytes.void
updateCharacterStream
(String columnLabel, 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, Reader reader) Updates the designated column using the givenReader
object.void
updateClob
(int columnIndex, Reader reader, long length) Updates the designated column using the givenReader
object, which is the given number of characters long.void
updateClob
(int columnIndex, Clob x) Updates the designated column with ajava.sql.Clob
value.void
updateClob
(String columnLabel, Reader reader) Updates the designated column using the givenReader
object.void
updateClob
(String columnLabel, Reader reader, long length) Updates the designated column using the givenReader
object, which is the given number of characters long.void
updateClob
(String columnLabel, Clob x) Updates the designated column with ajava.sql.Clob
value.void
updateDate
(int columnIndex, Date x) Updates the designated column with ajava.sql.Date
value.void
updateDate
(String columnLabel, Date x) Updates the designated column with ajava.sql.Date
value.void
updateDouble
(int columnIndex, double x) Updates the designated column with adouble
value.void
updateDouble
(String columnLabel, double x) Updates the designated column with adouble
value.void
updateFloat
(int columnIndex, float x) Updates the designated column with afloat
value.void
updateFloat
(String columnLabel, float x) Updates the designated column with afloat
value.void
updateInt
(int columnIndex, int x) Updates the designated column with anint
value.void
Updates the designated column with anint
value.void
updateLong
(int columnIndex, long x) Updates the designated column with along
value.void
updateLong
(String columnLabel, long x) Updates the designated column with along
value.void
updateNCharacterStream
(int columnIndex, Reader x) Updates the designated column with a character stream value.void
updateNCharacterStream
(int columnIndex, Reader x, long length) Updates the designated column with a character stream value, which will have the specified number of bytes.void
updateNCharacterStream
(String columnLabel, Reader reader) Updates the designated column with a character stream value.void
updateNCharacterStream
(String columnLabel, Reader reader, long length) Updates the designated column with a character stream value, which will have the specified number of bytes.void
updateNClob
(int columnIndex, Reader reader) Updates the designated column using the givenReader
The data will be read from the stream as needed until end-of-stream is reached.void
updateNClob
(int columnIndex, Reader reader, long length) Updates the designated column using the givenReader
object, which is the given number of characters long.void
updateNClob
(int columnIndex, NClob nClob) Updates the designated column with ajava.sql.NClob
value.void
updateNClob
(String columnLabel, Reader reader) Updates the designated column using the givenReader
object.void
updateNClob
(String columnLabel, Reader reader, long length) Updates the designated column using the givenReader
object, which is the given number of characters long.void
updateNClob
(String columnLabel, NClob nClob) Updates the designated column with ajava.sql.NClob
value.void
updateNString
(int columnIndex, String nString) Updates the designated column with aString
value.void
updateNString
(String columnLabel, String nString) Updates the designated column with aString
value.void
updateNull
(int columnIndex) Updates the designated column with anull
value.void
updateNull
(String columnLabel) Updates the designated column with anull
value.void
updateObject
(int columnIndex, Object x) Updates the designated column with anObject
value.void
updateObject
(int columnIndex, Object x, int scaleOrLength) Updates the designated column with anObject
value.default void
updateObject
(int columnIndex, Object x, SQLType targetSqlType) Updates the designated column with anObject
value.default void
updateObject
(int columnIndex, Object x, SQLType targetSqlType, int scaleOrLength) Updates the designated column with anObject
value.void
updateObject
(String columnLabel, Object x) Updates the designated column with anObject
value.void
updateObject
(String columnLabel, Object x, int scaleOrLength) Updates the designated column with anObject
value.default void
updateObject
(String columnLabel, Object x, SQLType targetSqlType) Updates the designated column with anObject
value.default void
updateObject
(String columnLabel, Object x, SQLType targetSqlType, int scaleOrLength) Updates the designated column with anObject
value.void
Updates the designated column with ajava.sql.Ref
value.void
Updates the designated column with ajava.sql.Ref
value.void
Updates the underlying database with the new contents of the current row of thisResultSet
object.void
updateRowId
(int columnIndex, RowId x) Updates the designated column with aRowId
value.void
updateRowId
(String columnLabel, RowId x) Updates the designated column with aRowId
value.void
updateShort
(int columnIndex, short x) Updates the designated column with ashort
value.void
updateShort
(String columnLabel, short x) Updates the designated column with ashort
value.void
updateSQLXML
(int columnIndex, SQLXML xmlObject) Updates the designated column with ajava.sql.SQLXML
value.void
updateSQLXML
(String columnLabel, SQLXML xmlObject) Updates the designated column with ajava.sql.SQLXML
value.void
updateString
(int columnIndex, String x) Updates the designated column with aString
value.void
updateString
(String columnLabel, String x) Updates the designated column with aString
value.void
updateTime
(int columnIndex, Time x) Updates the designated column with ajava.sql.Time
value.void
updateTime
(String columnLabel, Time x) Updates the designated column with ajava.sql.Time
value.void
updateTimestamp
(int columnIndex, Timestamp x) Updates the designated column with ajava.sql.Timestamp
value.void
updateTimestamp
(String columnLabel, Timestamp x) Updates the designated column with ajava.sql.Timestamp
value.boolean
wasNull()
Reports whether the last column read had a value of SQLNULL
.Methods declared in interface RowSet
addRowSetListener, clearParameters, execute, getCommand, getDataSourceName, getEscapeProcessing, getMaxFieldSize, getMaxRows, getPassword, getQueryTimeout, getTransactionIsolation, getTypeMap, getUrl, getUsername, isReadOnly, removeRowSetListener, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBlob, setBlob, setBlob, setBoolean, setBoolean, setByte, setByte, setBytes, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setClob, setClob, setClob, setCommand, setConcurrency, setDataSourceName, setDate, setDate, setDate, setDate, setDouble, setDouble, setEscapeProcessing, setFloat, setFloat, setInt, setInt, setLong, setLong, setMaxFieldSize, setMaxRows, setNCharacterStream, setNCharacterStream, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNClob, setNClob, setNClob, setNString, setNString, setNull, setNull, setNull, setNull, setObject, setObject, setObject, setObject, setObject, setObject, setPassword, setQueryTimeout, setReadOnly, setRef, setRowId, setRowId, setShort, setShort, setSQLXML, setSQLXML, setString, setString, setTime, setTime, setTime, setTime, setTimestamp, setTimestamp, setTimestamp, setTimestamp, setTransactionIsolation, setType, setTypeMap, setUrl, setURL, setUsername
Modifier and TypeMethodDescriptionvoid
addRowSetListener
(RowSetListener listener) Registers the given listener so that it will be notified of events that occur on thisRowSet
object.void
Clears the parameters set for thisRowSet
object's command.void
execute()
Fills thisRowSet
object with data.Retrieves thisRowSet
object's command property.Retrieves the logical name that identifies the data source for thisRowSet
object.boolean
Retrieves whether escape processing is enabled for thisRowSet
object.int
Retrieves the maximum number of bytes that may be returned for certain column values.int
Retrieves the maximum number of rows that thisRowSet
object can contain.Retrieves the password used to create a database connection.int
Retrieves the maximum number of seconds the driver will wait for a statement to execute.int
Retrieves the transaction isolation level set for thisRowSet
object.Retrieves theMap
object associated with thisRowSet
object, which specifies the custom mapping of SQL user-defined types, if any.getUrl()
Retrieves the url property thisRowSet
object will use to create a connection if it uses theDriverManager
instead of aDataSource
object to establish the connection.Retrieves the username used to create a database connection for thisRowSet
object.boolean
Retrieves whether thisRowSet
object is read-only.void
removeRowSetListener
(RowSetListener listener) Removes the specified listener from the list of components that will be notified when an event occurs on thisRowSet
object.void
Sets the designated parameter in thisRowSet
object's command with the givenArray
value.void
setAsciiStream
(int parameterIndex, InputStream x) Sets the designated parameter in thisRowSet
object's command to the given input stream.void
setAsciiStream
(int parameterIndex, InputStream x, int length) Sets the designated parameter in thisRowSet
object's command to the givenjava.io.InputStream
value.void
setAsciiStream
(String parameterName, InputStream x) Sets the designated parameter to the given input stream.void
setAsciiStream
(String parameterName, InputStream x, int length) Sets the designated parameter to the given input stream, which will have the specified number of bytes.void
setBigDecimal
(int parameterIndex, BigDecimal x) Sets the designated parameter in thisRowSet
object's command to the givenjava.math.BigDecimal
value.void
setBigDecimal
(String parameterName, BigDecimal x) Sets the designated parameter to the givenjava.math.BigDecimal
value.void
setBinaryStream
(int parameterIndex, InputStream x) Sets the designated parameter in thisRowSet
object's command to the given input stream.void
setBinaryStream
(int parameterIndex, InputStream x, int length) Sets the designated parameter in thisRowSet
object's command to the givenjava.io.InputStream
value.void
setBinaryStream
(String parameterName, InputStream x) Sets the designated parameter to the given input stream.void
setBinaryStream
(String parameterName, InputStream x, int length) Sets the designated parameter to the given input stream, which will have the specified number of bytes.void
setBlob
(int parameterIndex, InputStream inputStream) Sets the designated parameter to aInputStream
object.void
setBlob
(int parameterIndex, InputStream inputStream, long length) Sets the designated parameter to aInputStream
object.void
Sets the designated parameter in thisRowSet
object's command with the givenBlob
value.void
setBlob
(String parameterName, InputStream inputStream) Sets the designated parameter to aInputStream
object.void
setBlob
(String parameterName, InputStream inputStream, long length) Sets the designated parameter to aInputStream
object.void
Sets the designated parameter to the givenjava.sql.Blob
object.void
setBoolean
(int parameterIndex, boolean x) Sets the designated parameter in thisRowSet
object's command to the given Javaboolean
value.void
setBoolean
(String parameterName, boolean x) Sets the designated parameter to the given Javaboolean
value.void
setByte
(int parameterIndex, byte x) Sets the designated parameter in thisRowSet
object's command to the given Javabyte
value.void
Sets the designated parameter to the given Javabyte
value.void
setBytes
(int parameterIndex, byte[] x) Sets the designated parameter in thisRowSet
object's command to the given Java array ofbyte
values.void
Sets the designated parameter to the given Java array of bytes.void
setCharacterStream
(int parameterIndex, Reader reader) Sets the designated parameter in thisRowSet
object's command to the givenReader
object.void
setCharacterStream
(int parameterIndex, Reader reader, int length) Sets the designated parameter in thisRowSet
object's command to the givenjava.io.Reader
value.void
setCharacterStream
(String parameterName, Reader reader) Sets the designated parameter to the givenReader
object.void
setCharacterStream
(String parameterName, Reader reader, int length) Sets the designated parameter to the givenReader
object, which is the given number of characters long.void
Sets the designated parameter to aReader
object.void
Sets the designated parameter to aReader
object.void
Sets the designated parameter in thisRowSet
object's command with the givenClob
value.void
Sets the designated parameter to aReader
object.void
Sets the designated parameter to aReader
object.void
Sets the designated parameter to the givenjava.sql.Clob
object.void
setCommand
(String cmd) Sets thisRowSet
object's command property to the given SQL query.void
setConcurrency
(int concurrency) Sets the concurrency of thisRowSet
object to the given concurrency level.void
setDataSourceName
(String name) Sets the data source name property for thisRowSet
object to the givenString
.void
Sets the designated parameter in thisRowSet
object's command to the givenjava.sql.Date
value.void
Sets the designated parameter in thisRowSet
object's command with the givenjava.sql.Date
value.void
Sets the designated parameter to the givenjava.sql.Date
value using the default time zone of the virtual machine that is running the application.void
Sets the designated parameter to the givenjava.sql.Date
value, using the givenCalendar
object.void
setDouble
(int parameterIndex, double x) Sets the designated parameter in thisRowSet
object's command to the given Javadouble
value.void
Sets the designated parameter to the given Javadouble
value.void
setEscapeProcessing
(boolean enable) Sets escape processing for thisRowSet
object on or off.void
setFloat
(int parameterIndex, float x) Sets the designated parameter in thisRowSet
object's command to the given Javafloat
value.void
Sets the designated parameter to the given Javafloat
value.void
setInt
(int parameterIndex, int x) Sets the designated parameter in thisRowSet
object's command to the given Javaint
value.void
Sets the designated parameter to the given Javaint
value.void
setLong
(int parameterIndex, long x) Sets the designated parameter in thisRowSet
object's command to the given Javalong
value.void
Sets the designated parameter to the given Javalong
value.void
setMaxFieldSize
(int max) Sets the maximum number of bytes that can be returned for a column value to the given number of bytes.void
setMaxRows
(int max) Sets the maximum number of rows that thisRowSet
object can contain to the specified number.void
setNCharacterStream
(int parameterIndex, Reader value) Sets the designated parameter in thisRowSet
object's command to aReader
object.void
setNCharacterStream
(int parameterIndex, Reader value, long length) Sets the designated parameter to aReader
object.void
setNCharacterStream
(String parameterName, Reader value) Sets the designated parameter to aReader
object.void
setNCharacterStream
(String parameterName, Reader value, long length) Sets the designated parameter to aReader
object.void
Sets the designated parameter to aReader
object.void
Sets the designated parameter to aReader
object.void
Sets the designated parameter to ajava.sql.NClob
object.void
Sets the designated parameter to aReader
object.void
Sets the designated parameter to aReader
object.void
Sets the designated parameter to ajava.sql.NClob
object.void
setNString
(int parameterIndex, String value) Sets the designated parameter to the givenString
object.void
setNString
(String parameterName, String value) Sets the designated parameter to the givenString
object.void
setNull
(int parameterIndex, int sqlType) Sets the designated parameter in thisRowSet
object's SQL command to SQLNULL
.void
Sets the designated parameter in thisRowSet
object's SQL command to SQLNULL
.void
Sets the designated parameter to SQLNULL
.void
Sets the designated parameter to SQLNULL
.void
Sets the designated parameter in thisRowSet
object's command with a JavaObject
.void
Sets the designated parameter in thisRowSet
object's command with a JavaObject
.void
Sets the designated parameter in thisRowSet
object's command with the given JavaObject
.void
Sets the value of the designated parameter with the given object.void
Sets the value of the designated parameter with the given object.void
Sets the value of the designated parameter with the given object.void
setPassword
(String password) Sets the database password for thisRowSet
object to the givenString
.void
setQueryTimeout
(int seconds) Sets the maximum time the driver will wait for a statement to execute to the given number of seconds.void
setReadOnly
(boolean value) Sets whether thisRowSet
object is read-only to the givenboolean
.void
Sets the designated parameter in thisRowSet
object's command with the givenRef
value.void
Sets the designated parameter to the givenjava.sql.RowId
object.void
Sets the designated parameter to the givenjava.sql.RowId
object.void
setShort
(int parameterIndex, short x) Sets the designated parameter in thisRowSet
object's command to the given Javashort
value.void
Sets the designated parameter to the given Javashort
value.void
Sets the designated parameter to the givenjava.sql.SQLXML
object.void
Sets the designated parameter to the givenjava.sql.SQLXML
object.void
Sets the designated parameter in thisRowSet
object's command to the given JavaString
value.void
Sets the designated parameter to the given JavaString
value.void
Sets the designated parameter in thisRowSet
object's command to the givenjava.sql.Time
value.void
Sets the designated parameter in thisRowSet
object's command with the givenjava.sql.Time
value.void
Sets the designated parameter to the givenjava.sql.Time
value.void
Sets the designated parameter to the givenjava.sql.Time
value, using the givenCalendar
object.void
setTimestamp
(int parameterIndex, Timestamp x) Sets the designated parameter in thisRowSet
object's command to the givenjava.sql.Timestamp
value.void
setTimestamp
(int parameterIndex, Timestamp x, Calendar cal) Sets the designated parameter in thisRowSet
object's command with the givenjava.sql.Timestamp
value.void
setTimestamp
(String parameterName, Timestamp x) Sets the designated parameter to the givenjava.sql.Timestamp
value.void
setTimestamp
(String parameterName, Timestamp x, Calendar cal) Sets the designated parameter to the givenjava.sql.Timestamp
value, using the givenCalendar
object.void
setTransactionIsolation
(int level) Sets the transaction isolation level for thisRowSet
object.void
setType
(int type) Sets the type of thisRowSet
object to the given type.void
setTypeMap
(Map<String, Class<?>> map) Installs the givenjava.util.Map
object as the default type map for thisRowSet
object.void
Sets the URL thisRowSet
object will use when it uses theDriverManager
to create a connection.void
Sets the designated parameter to the givenjava.net.URL
value.void
setUsername
(String name) Sets the username property for thisRowSet
object to the givenString
.Methods declared in interface Wrapper
isWrapperFor, unwrap
Modifier and TypeMethodDescriptionboolean
isWrapperFor
(Class<?> iface) Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does.<T> T
Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.
-
Field Details
-
PUBLIC_XML_SCHEMA
The public identifier for the XML Schema definition that defines the XML tags and their valid values for aWebRowSet
implementation.- See Also:
-
SCHEMA_SYSTEM_ID
The URL for the XML Schema definition file that defines the XML tags and their valid values for aWebRowSet
implementation.- See Also:
-
-
Method Details
-
readXml
Reads aWebRowSet
object in its XML format from the givenReader
object.- Parameters:
reader
- thejava.io.Reader
stream from which thisWebRowSet
object will be populated- Throws:
SQLException
- if a database access error occurs
-
readXml
Reads a stream based XML input to populate thisWebRowSet
object.- Parameters:
iStream
- thejava.io.InputStream
from which thisWebRowSet
object will be populated- Throws:
SQLException
- if a data source access error occursIOException
- if an IO exception occurs
-
writeXml
Populates thisWebRowSet
object with the contents of the givenResultSet
object and writes its data, properties, and metadata to the givenWriter
object in XML format.NOTE: The
WebRowSet
cursor may be moved to write out the contents to the XML data source. If implemented in this way, the cursor must be returned to its position just prior to thewriteXml()
call.- Parameters:
rs
- theResultSet
object with which to populate thisWebRowSet
objectwriter
- thejava.io.Writer
object to write to.- Throws:
SQLException
- if an error occurs writing out the rowset contents in XML format
-
writeXml
Populates thisWebRowSet
object with the contents of the givenResultSet
object and writes its data, properties, and metadata to the givenOutputStream
object in XML format.NOTE: The
WebRowSet
cursor may be moved to write out the contents to the XML data source. If implemented in this way, the cursor must be returned to its position just prior to thewriteXml()
call.- Parameters:
rs
- theResultSet
object with which to populate thisWebRowSet
objectoStream
- thejava.io.OutputStream
to write to- Throws:
SQLException
- if a data source access error occursIOException
- if a IO exception occurs
-
writeXml
Writes the data, properties, and metadata for thisWebRowSet
object to the givenWriter
object in XML format.- Parameters:
writer
- thejava.io.Writer
stream to write to- Throws:
SQLException
- if an error occurs writing out the rowset contents to XML
-
writeXml
Writes the data, properties, and metadata for thisWebRowSet
object to the givenOutputStream
object in XML format.- Parameters:
oStream
- thejava.io.OutputStream
stream to write to- Throws:
SQLException
- if a data source access error occursIOException
- if a IO exception occurs
-