javax.sql
Interface RowSet

All Superinterfaces:
ResultSet sample code for java.sql.ResultSet definition code for java.sql.ResultSet
All Known Subinterfaces:
CachedRowSet sample code for javax.sql.rowset.CachedRowSet definition code for javax.sql.rowset.CachedRowSet , FilteredRowSet sample code for javax.sql.rowset.FilteredRowSet definition code for javax.sql.rowset.FilteredRowSet , JdbcRowSet sample code for javax.sql.rowset.JdbcRowSet definition code for javax.sql.rowset.JdbcRowSet , JoinRowSet sample code for javax.sql.rowset.JoinRowSet definition code for javax.sql.rowset.JoinRowSet , SyncResolver sample code for javax.sql.rowset.spi.SyncResolver definition code for javax.sql.rowset.spi.SyncResolver , WebRowSet sample code for javax.sql.rowset.WebRowSet definition code for javax.sql.rowset.WebRowSet

public interface RowSet
extends ResultSet sample code for java.sql.ResultSet definition code for java.sql.ResultSet

The interface that adds support to the JDBC API for the JavaBeansTM component model. A rowset, which can be used as a JavaBeans component in a visual Bean development environment, can be created and configured at design time and executed at run time.

The RowSet interface provides a set of JavaBeans properties that allow a RowSet instance to be configured to connect to a JDBC data source and read some data from the data source. A group of setter methods (setInt, setBytes, setString, and so on) provide a way to pass input parameters to a rowset's command property. This command is the SQL query the rowset uses when it gets its data from a relational database, which is generally the case.

The RowSet interface supports JavaBeans events, allowing other components in an application to be notified when an event occurs on a rowset, such as a change in its value.

The RowSet interface is unique in that it is intended to be implemented using the rest of the JDBC API. In other words, a RowSet implementation is a layer of software that executes "on top" of a JDBC driver. Implementations of the RowSet interface can be provided by anyone, including JDBC driver vendors who want to provide a RowSet implementation as part of their JDBC products.

A RowSet object may make a connection with a data source and maintain that connection throughout its life cycle, in which case it is called a connected rowset. A rowset may also make a connection with a data source, get data from it, and then close the connection. Such a rowset is called a disconnected rowset. A disconnected rowset may make changes to its data while it is disconnected and then send the changes back to the original source of the data, but it must reestablish a connection to do so.

A disconnected rowset may have a reader (a RowSetReader object) and a writer (a RowSetWriter object) associated with it. The reader may be implemented in many different ways to populate a rowset with data, including getting data from a non-relational data source. The writer can also be implemented in many different ways to propagate changes made to the rowset's data back to the underlying data source.

Rowsets are easy to use. The RowSet interface extends the standard java.sql.ResultSet interface. The RowSetMetaData interface extends the java.sql.ResultSetMetaData interface. Thus, developers familiar with the JDBC API will have to learn a minimal number of new APIs to use rowsets. In addition, third-party software tools that work with JDBC ResultSet objects will also easily be made to work with rowsets.

Since:
1.4

Field Summary
 
Fields inherited from interface java.sql.ResultSet sample code for java.sql.ResultSet definition code for java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT sample code for java.sql.ResultSet.CLOSE_CURSORS_AT_COMMIT definition code for java.sql.ResultSet.CLOSE_CURSORS_AT_COMMIT , CONCUR_READ_ONLY sample code for java.sql.ResultSet.CONCUR_READ_ONLY definition code for java.sql.ResultSet.CONCUR_READ_ONLY , CONCUR_UPDATABLE sample code for java.sql.ResultSet.CONCUR_UPDATABLE definition code for java.sql.ResultSet.CONCUR_UPDATABLE , FETCH_FORWARD sample code for java.sql.ResultSet.FETCH_FORWARD definition code for java.sql.ResultSet.FETCH_FORWARD , FETCH_REVERSE sample code for java.sql.ResultSet.FETCH_REVERSE definition code for java.sql.ResultSet.FETCH_REVERSE , FETCH_UNKNOWN sample code for java.sql.ResultSet.FETCH_UNKNOWN definition code for java.sql.ResultSet.FETCH_UNKNOWN , HOLD_CURSORS_OVER_COMMIT sample code for java.sql.ResultSet.HOLD_CURSORS_OVER_COMMIT definition code for java.sql.ResultSet.HOLD_CURSORS_OVER_COMMIT , TYPE_FORWARD_ONLY sample code for java.sql.ResultSet.TYPE_FORWARD_ONLY definition code for java.sql.ResultSet.TYPE_FORWARD_ONLY , TYPE_SCROLL_INSENSITIVE sample code for java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE definition code for java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE , TYPE_SCROLL_SENSITIVE sample code for java.sql.ResultSet.TYPE_SCROLL_SENSITIVE definition code for java.sql.ResultSet.TYPE_SCROLL_SENSITIVE
 
Method Summary
 void addRowSetListener sample code for javax.sql.RowSet.addRowSetListener(javax.sql.RowSetListener) definition code for javax.sql.RowSet.addRowSetListener(javax.sql.RowSetListener) (RowSetListener sample code for javax.sql.RowSetListener definition code for javax.sql.RowSetListener  listener)
          Registers the given listener so that it will be notified of events that occur on this RowSet object.
 void clearParameters sample code for javax.sql.RowSet.clearParameters() definition code for javax.sql.RowSet.clearParameters() ()
          Clears the parameters set for this RowSet object's command.
 void execute sample code for javax.sql.RowSet.execute() definition code for javax.sql.RowSet.execute() ()
          Fills this RowSet object with data.
 String sample code for java.lang.String definition code for java.lang.String getCommand sample code for javax.sql.RowSet.getCommand() definition code for javax.sql.RowSet.getCommand() ()
          Retrieves this RowSet object's command property.
 String sample code for java.lang.String definition code for java.lang.String getDataSourceName sample code for javax.sql.RowSet.getDataSourceName() definition code for javax.sql.RowSet.getDataSourceName() ()
          Retrieves the logical name that identifies the data source for this RowSet object.
 boolean getEscapeProcessing sample code for javax.sql.RowSet.getEscapeProcessing() definition code for javax.sql.RowSet.getEscapeProcessing() ()
          Retrieves whether escape processing is enabled for this RowSet object.
 int getMaxFieldSize sample code for javax.sql.RowSet.getMaxFieldSize() definition code for javax.sql.RowSet.getMaxFieldSize() ()
          Retrieves the maximum number of bytes that may be returned for certain column values.
 int getMaxRows sample code for javax.sql.RowSet.getMaxRows() definition code for javax.sql.RowSet.getMaxRows() ()
          Retrieves the maximum number of rows that this RowSet object can contain.
 String sample code for java.lang.String definition code for java.lang.String getPassword sample code for javax.sql.RowSet.getPassword() definition code for javax.sql.RowSet.getPassword() ()
          Retrieves the password used to create a database connection.
 int getQueryTimeout sample code for javax.sql.RowSet.getQueryTimeout() definition code for javax.sql.RowSet.getQueryTimeout() ()
          Retrieves the maximum number of seconds the driver will wait for a statement to execute.
 int getTransactionIsolation sample code for javax.sql.RowSet.getTransactionIsolation() definition code for javax.sql.RowSet.getTransactionIsolation() ()
          Retrieves the transaction isolation level set for this RowSet object.
 Map sample code for java.util.Map definition code for java.util.Map <String sample code for java.lang.String definition code for java.lang.String ,Class sample code for java.lang.Class definition code for java.lang.Class <?>> getTypeMap sample code for javax.sql.RowSet.getTypeMap() definition code for javax.sql.RowSet.getTypeMap() ()
          Retrieves the Map object associated with this RowSet object, which specifies the custom mapping of SQL user-defined types, if any.
 String sample code for java.lang.String definition code for java.lang.String getUrl sample code for javax.sql.RowSet.getUrl() definition code for javax.sql.RowSet.getUrl() ()
          Retrieves the url property this RowSet object will use to create a connection if it uses the DriverManager instead of a DataSource object to establish the connection.
 String sample code for java.lang.String definition code for java.lang.String getUsername sample code for javax.sql.RowSet.getUsername() definition code for javax.sql.RowSet.getUsername() ()
          Retrieves the username used to create a database connection for this RowSet object.
 boolean isReadOnly sample code for javax.sql.RowSet.isReadOnly() definition code for javax.sql.RowSet.isReadOnly() ()
          Retrieves whether this RowSet object is read-only.
 void removeRowSetListener sample code for javax.sql.RowSet.removeRowSetListener(javax.sql.RowSetListener) definition code for javax.sql.RowSet.removeRowSetListener(javax.sql.RowSetListener) (RowSetListener sample code for javax.sql.RowSetListener definition code for javax.sql.RowSetListener  listener)
          Removes the specified listener from the list of components that will be notified when an event occurs on this RowSet object.
 void setArray sample code for javax.sql.RowSet.setArray(int, java.sql.Array) definition code for javax.sql.RowSet.setArray(int, java.sql.Array) (int i, Array sample code for java.sql.Array definition code for java.sql.Array  x)
          Sets the designated parameter in this RowSet object's command with the given Array value.
 void setAsciiStream sample code for javax.sql.RowSet.setAsciiStream(int, java.io.InputStream, int) definition code for javax.sql.RowSet.setAsciiStream(int, java.io.InputStream, int) (int parameterIndex, InputStream sample code for java.io.InputStream definition code for java.io.InputStream  x, int length)
          Sets the designated parameter in this RowSet object's command to the given java.io.InputStream value.
 void setBigDecimal sample code for javax.sql.RowSet.setBigDecimal(int, java.math.BigDecimal) definition code for javax.sql.RowSet.setBigDecimal(int, java.math.BigDecimal) (int parameterIndex, BigDecimal sample code for java.math.BigDecimal definition code for java.math.BigDecimal  x)
          Sets the designated parameter in this RowSet object's command to the given java.math.BigDeciaml value.
 void setBinaryStream sample code for javax.sql.RowSet.setBinaryStream(int, java.io.InputStream, int) definition code for javax.sql.RowSet.setBinaryStream(int, java.io.InputStream, int) (int parameterIndex, InputStream sample code for java.io.InputStream definition code for java.io.InputStream  x, int length)
          Sets the designated parameter in this RowSet object's command to the given java.io.InputStream value.
 void setBlob sample code for javax.sql.RowSet.setBlob(int, java.sql.Blob) definition code for javax.sql.RowSet.setBlob(int, java.sql.Blob) (int i, Blob sample code for java.sql.Blob definition code for java.sql.Blob  x)
          Sets the designated parameter in this RowSet object's command with the given Blob value.
 void setBoolean sample code for javax.sql.RowSet.setBoolean(int, boolean) definition code for javax.sql.RowSet.setBoolean(int, boolean) (int parameterIndex, boolean x)
          Sets the designated parameter in this RowSet object's command to the given Java boolean value.
 void setByte sample code for javax.sql.RowSet.setByte(int, byte) definition code for javax.sql.RowSet.setByte(int, byte) (int parameterIndex, byte x)
          Sets the designated parameter in this RowSet object's command to the given Java byte value.
 void setBytes sample code for javax.sql.RowSet.setBytes(int, byte[]) definition code for javax.sql.RowSet.setBytes(int, byte[]) (int parameterIndex, byte[] x)
          Sets the designated parameter in this RowSet object's command to the given Java array of byte values.
 void setCharacterStream sample code for javax.sql.RowSet.setCharacterStream(int, java.io.Reader, int) definition code for javax.sql.RowSet.setCharacterStream(int, java.io.Reader, int) (int parameterIndex, Reader sample code for java.io.Reader definition code for java.io.Reader  reader, int length)
          Sets the designated parameter in this RowSet object's command to the given java.io.Reader value.
 void setClob sample code for javax.sql.RowSet.setClob(int, java.sql.Clob) definition code for javax.sql.RowSet.setClob(int, java.sql.Clob) (int i, Clob sample code for java.sql.Clob definition code for java.sql.Clob  x)
          Sets the designated parameter in this RowSet object's command with the given Clob value.
 void setCommand sample code for javax.sql.RowSet.setCommand(java.lang.String) definition code for javax.sql.RowSet.setCommand(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  cmd)
          Sets this RowSet object's command property to the given SQL query.
 void setConcurrency sample code for javax.sql.RowSet.setConcurrency(int) definition code for javax.sql.RowSet.setConcurrency(int) (int concurrency)
          Sets the concurrency of this RowSet object to the given concurrency level.
 void setDataSourceName sample code for javax.sql.RowSet.setDataSourceName(java.lang.String) definition code for javax.sql.RowSet.setDataSourceName(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Sets the data source name property for this RowSet object to the given String.
 void setDate sample code for javax.sql.RowSet.setDate(int, java.sql.Date) definition code for javax.sql.RowSet.setDate(int, java.sql.Date) (int parameterIndex, Date sample code for java.sql.Date definition code for java.sql.Date  x)
          Sets the designated parameter in this RowSet object's command to the given java.sql.Date value.
 void setDate sample code for javax.sql.RowSet.setDate(int, java.sql.Date, java.util.Calendar) definition code for javax.sql.RowSet.setDate(int, java.sql.Date, java.util.Calendar) (int parameterIndex, Date sample code for java.sql.Date definition code for java.sql.Date  x, Calendar sample code for java.util.Calendar definition code for java.util.Calendar  cal)
          Sets the designated parameter in this RowSet object's command with the given java.sql.Date value.
 void setDouble sample code for javax.sql.RowSet.setDouble(int, double) definition code for javax.sql.RowSet.setDouble(int, double) (int parameterIndex, double x)
          Sets the designated parameter in this RowSet object's command to the given Java double value.
 void setEscapeProcessing sample code for javax.sql.RowSet.setEscapeProcessing(boolean) definition code for javax.sql.RowSet.setEscapeProcessing(boolean) (boolean enable)
          Sets escape processing for this RowSet object on or off.
 void setFloat sample code for javax.sql.RowSet.setFloat(int, float) definition code for javax.sql.RowSet.setFloat(int, float) (int parameterIndex, float x)
          Sets the designated parameter in this RowSet object's command to the given Java float value.
 void setInt sample code for javax.sql.RowSet.setInt(int, int) definition code for javax.sql.RowSet.setInt(int, int) (int parameterIndex, int x)
          Sets the designated parameter in this RowSet object's command to the given Java int value.
 void setLong sample code for javax.sql.RowSet.setLong(int, long) definition code for javax.sql.RowSet.setLong(int, long) (int parameterIndex, long x)
          Sets the designated parameter in this RowSet object's command to the given Java long value.
 void setMaxFieldSize sample code for javax.sql.RowSet.setMaxFieldSize(int) definition code for javax.sql.RowSet.setMaxFieldSize(int) (int max)
          Sets the maximum number of bytes that can be returned for a column value to the given number of bytes.
 void setMaxRows sample code for javax.sql.RowSet.setMaxRows(int) definition code for javax.sql.RowSet.setMaxRows(int) (int max)
          Sets the maximum number of rows that this RowSet object can contain to the specified number.
 void setNull sample code for javax.sql.RowSet.setNull(int, int) definition code for javax.sql.RowSet.setNull(int, int) (int parameterIndex, int sqlType)
          Sets the designated parameter in this RowSet object's SQL command to SQL NULL.
 void setNull sample code for javax.sql.RowSet.setNull(int, int, java.lang.String) definition code for javax.sql.RowSet.setNull(int, int, java.lang.String) (int paramIndex, int sqlType, String sample code for java.lang.String definition code for java.lang.String  typeName)
          Sets the designated parameter in this RowSet object's SQL command to SQL NULL.
 void setObject sample code for javax.sql.RowSet.setObject(int, java.lang.Object) definition code for javax.sql.RowSet.setObject(int, java.lang.Object) (int parameterIndex, Object sample code for java.lang.Object definition code for java.lang.Object  x)
          Sets the designated parameter in this RowSet object's command with a Java Object.
 void setObject sample code for javax.sql.RowSet.setObject(int, java.lang.Object, int) definition code for javax.sql.RowSet.setObject(int, java.lang.Object, int) (int parameterIndex, Object sample code for java.lang.Object definition code for java.lang.Object  x, int targetSqlType)
          Sets the designated parameter in this RowSet object's command with a Java Object.
 void setObject sample code for javax.sql.RowSet.setObject(int, java.lang.Object, int, int) definition code for javax.sql.RowSet.setObject(int, java.lang.Object, int, int) (int parameterIndex, Object sample code for java.lang.Object definition code for java.lang.Object  x, int targetSqlType, int scale)
          Sets the designated parameter in this RowSet object's command with the given Java Object.
 void setPassword sample code for javax.sql.RowSet.setPassword(java.lang.String) definition code for javax.sql.RowSet.setPassword(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  password)
          Sets the database password for this RowSet object to the given String.
 void setQueryTimeout sample code for javax.sql.RowSet.setQueryTimeout(int) definition code for javax.sql.RowSet.setQueryTimeout(int) (int seconds)
          Sets the maximum time the driver will wait for a statement to execute to the given number of seconds.
 void setReadOnly sample code for javax.sql.RowSet.setReadOnly(boolean) definition code for javax.sql.RowSet.setReadOnly(boolean) (boolean value)
          Sets whether this RowSet object is read-only to the given boolean.
 void setRef sample code for javax.sql.RowSet.setRef(int, java.sql.Ref) definition code for javax.sql.RowSet.setRef(int, java.sql.Ref) (int i, Ref sample code for java.sql.Ref definition code for java.sql.Ref  x)
          Sets the designated parameter in this RowSet object's command with the given Ref value.
 void setShort sample code for javax.sql.RowSet.setShort(int, short) definition code for javax.sql.RowSet.setShort(int, short) (int parameterIndex, short x)
          Sets the designated parameter in this RowSet object's command to the given Java short value.
 void setString sample code for javax.sql.RowSet.setString(int, java.lang.String) definition code for javax.sql.RowSet.setString(int, java.lang.String) (int parameterIndex, String sample code for java.lang.String definition code for java.lang.String  x)
          Sets the designated parameter in this RowSet object's command to the given Java String value.
 void setTime sample code for javax.sql.RowSet.setTime(int, java.sql.Time) definition code for javax.sql.RowSet.setTime(int, java.sql.Time) (int parameterIndex, Time sample code for java.sql.Time definition code for java.sql.Time  x)
          Sets the designated parameter in this RowSet object's command to the given java.sql.Time value.
 void setTime sample code for javax.sql.RowSet.setTime(int, java.sql.Time, java.util.Calendar) definition code for javax.sql.RowSet.setTime(int, java.sql.Time, java.util.Calendar) (int parameterIndex, Time sample code for java.sql.Time definition code for java.sql.Time  x, Calendar sample code for java.util.Calendar definition code for java.util.Calendar  cal)
          Sets the designated parameter in this RowSet object's command with the given java.sql.Time value.
 void setTimestamp sample code for javax.sql.RowSet.setTimestamp(int, java.sql.Timestamp) definition code for javax.sql.RowSet.setTimestamp(int, java.sql.Timestamp) (int parameterIndex, Timestamp sample code for java.sql.Timestamp definition code for java.sql.Timestamp  x)
          Sets the designated parameter in this RowSet object's command to the given java.sql.Timestamp value.
 void setTimestamp sample code for javax.sql.RowSet.setTimestamp(int, java.sql.Timestamp, java.util.Calendar) definition code for javax.sql.RowSet.setTimestamp(int, java.sql.Timestamp, java.util.Calendar) (int parameterIndex, Timestamp sample code for java.sql.Timestamp definition code for java.sql.Timestamp  x, Calendar sample code for java.util.Calendar definition code for java.util.Calendar  cal)
          Sets the designated parameter in this RowSet object's command with the given java.sql.Timestamp value.
 void setTransactionIsolation sample code for javax.sql.RowSet.setTransactionIsolation(int) definition code for javax.sql.RowSet.setTransactionIsolation(int) (int level)
          Sets the transaction isolation level for this RowSet obejct.
 void setType sample code for javax.sql.RowSet.setType(int) definition code for javax.sql.RowSet.setType(int) (int type)
          Sets the type of this RowSet object to the given type.
 void setTypeMap sample code for javax.sql.RowSet.setTypeMap(java.util.Map) definition code for javax.sql.RowSet.setTypeMap(java.util.Map) (Map sample code for java.util.Map definition code for java.util.Map <String sample code for java.lang.String definition code for java.lang.String ,Class sample code for java.lang.Class definition code for java.lang.Class <?>> map)
          Installs the given java.util.Map object as the default type map for this RowSet object.
 void setUrl sample code for javax.sql.RowSet.setUrl(java.lang.String) definition code for javax.sql.RowSet.setUrl(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  url)
          Sets the URL this RowSet object will use when it uses the DriverManager to create a connection.
 void setUsername sample code for javax.sql.RowSet.setUsername(java.lang.String) definition code for javax.sql.RowSet.setUsername(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Sets the username property for this RowSet object to the given String.
 
Methods inherited from interface java.sql.ResultSet sample code for java.sql.ResultSet definition code for java.sql.ResultSet
absolute sample code for java.sql.ResultSet.absolute(int) definition code for java.sql.ResultSet.absolute(int) , afterLast sample code for java.sql.ResultSet.afterLast() definition code for java.sql.ResultSet.afterLast() , beforeFirst sample code for java.sql.ResultSet.beforeFirst() definition code for java.sql.ResultSet.beforeFirst() , cancelRowUpdates sample code for java.sql.ResultSet.cancelRowUpdates() definition code for java.sql.ResultSet.cancelRowUpdates() , clearWarnings sample code for java.sql.ResultSet.clearWarnings() definition code for java.sql.ResultSet.clearWarnings() , close sample code for java.sql.ResultSet.close() definition code for java.sql.ResultSet.close() , deleteRow sample code for java.sql.ResultSet.deleteRow() definition code for java.sql.ResultSet.deleteRow() , findColumn sample code for java.sql.ResultSet.findColumn(java.lang.String) definition code for java.sql.ResultSet.findColumn(java.lang.String) , first sample code for java.sql.ResultSet.first() definition code for java.sql.ResultSet.first() , getArray sample code for java.sql.ResultSet.getArray(int) definition code for java.sql.ResultSet.getArray(int) , getArray sample code for java.sql.ResultSet.getArray(java.lang.String) definition code for java.sql.ResultSet.getArray(java.lang.String) , getAsciiStream sample code for java.sql.ResultSet.getAsciiStream(int) definition code for java.sql.ResultSet.getAsciiStream(int) , getAsciiStream sample code for java.sql.ResultSet.getAsciiStream(java.lang.String) definition code for java.sql.ResultSet.getAsciiStream(java.lang.String) , getBigDecimal sample code for java.sql.ResultSet.getBigDecimal(int) definition code for java.sql.ResultSet.getBigDecimal(int) , getBigDecimal sample code for java.sql.ResultSet.getBigDecimal(int, int) definition code for java.sql.ResultSet.getBigDecimal(int, int) , getBigDecimal sample code for java.sql.ResultSet.getBigDecimal(java.lang.String) definition code for java.sql.ResultSet.getBigDecimal(java.lang.String) , getBigDecimal sample code for java.sql.ResultSet.getBigDecimal(java.lang.String, int) definition code for java.sql.ResultSet.getBigDecimal(java.lang.String, int) , getBinaryStream sample code for java.sql.ResultSet.getBinaryStream(int) definition code for java.sql.ResultSet.getBinaryStream(int) , getBinaryStream sample code for java.sql.ResultSet.getBinaryStream(java.lang.String) definition code for java.sql.ResultSet.getBinaryStream(java.lang.String) , getBlob sample code for java.sql.ResultSet.getBlob(int) definition code for java.sql.ResultSet.getBlob(int) , getBlob sample code for java.sql.ResultSet.getBlob(java.lang.String) definition code for java.sql.ResultSet.getBlob(java.lang.String) , getBoolean sample code for java.sql.ResultSet.getBoolean(int) definition code for java.sql.ResultSet.getBoolean(int) , getBoolean sample code for java.sql.ResultSet.getBoolean(java.lang.String) definition code for java.sql.ResultSet.getBoolean(java.lang.String) , getByte sample code for java.sql.ResultSet.getByte(int) definition code for java.sql.ResultSet.getByte(int) , getByte sample code for java.sql.ResultSet.getByte(java.lang.String) definition code for java.sql.ResultSet.getByte(java.lang.String) , getBytes sample code for java.sql.ResultSet.getBytes(int) definition code for java.sql.ResultSet.getBytes(int) , getBytes sample code for java.sql.ResultSet.getBytes(java.lang.String) definition code for java.sql.ResultSet.getBytes(java.lang.String) , getCharacterStream sample code for java.sql.ResultSet.getCharacterStream(int) definition code for java.sql.ResultSet.getCharacterStream(int) , getCharacterStream sample code for java.sql.ResultSet.getCharacterStream(java.lang.String) definition code for java.sql.ResultSet.getCharacterStream(java.lang.String) , getClob sample code for java.sql.ResultSet.getClob(int) definition code for java.sql.ResultSet.getClob(int) , getClob sample code for java.sql.ResultSet.getClob(java.lang.String) definition code for java.sql.ResultSet.getClob(java.lang.String) , getConcurrency sample code for java.sql.ResultSet.getConcurrency() definition code for java.sql.ResultSet.getConcurrency() , getCursorName sample code for java.sql.ResultSet.getCursorName() definition code for java.sql.ResultSet.getCursorName() , getDate sample code for java.sql.ResultSet.getDate(int) definition code for java.sql.ResultSet.getDate(int) , getDate sample code for java.sql.ResultSet.getDate(int, java.util.Calendar) definition code for java.sql.ResultSet.getDate(int, java.util.Calendar) , getDate sample code for java.sql.ResultSet.getDate(java.lang.String) definition code for java.sql.ResultSet.getDate(java.lang.String) , getDate sample code for java.sql.ResultSet.getDate(java.lang.String, java.util.Calendar) definition code for java.sql.ResultSet.getDate(java.lang.String, java.util.Calendar) , getDouble sample code for java.sql.ResultSet.getDouble(int) definition code for java.sql.ResultSet.getDouble(int) , getDouble sample code for java.sql.ResultSet.getDouble(java.lang.String) definition code for java.sql.ResultSet.getDouble(java.lang.String) , getFetchDirection sample code for java.sql.ResultSet.getFetchDirection() definition code for java.sql.ResultSet.getFetchDirection() , getFetchSize sample code for java.sql.ResultSet.getFetchSize() definition code for java.sql.ResultSet.getFetchSize() , getFloat sample code for java.sql.ResultSet.getFloat(int) definition code for java.sql.ResultSet.getFloat(int) , getFloat sample code for java.sql.ResultSet.getFloat(java.lang.String) definition code for java.sql.ResultSet.getFloat(java.lang.String) , getInt sample code for java.sql.ResultSet.getInt(int) definition code for java.sql.ResultSet.getInt(int) , getInt sample code for java.sql.ResultSet.getInt(java.lang.String) definition code for java.sql.ResultSet.getInt(java.lang.String) , getLong sample code for java.sql.ResultSet.getLong(int) definition code for java.sql.ResultSet.getLong(int) , getLong sample code for java.sql.ResultSet.getLong(java.lang.String) definition code for java.sql.ResultSet.getLong(java.lang.String) , getMetaData sample code for java.sql.ResultSet.getMetaData() definition code for java.sql.ResultSet.getMetaData() , getObject sample code for java.sql.ResultSet.getObject(int) definition code for java.sql.ResultSet.getObject(int) , getObject sample code for java.sql.ResultSet.getObject(int, java.util.Map) definition code for java.sql.ResultSet.getObject(int, java.util.Map) , getObject sample code for java.sql.ResultSet.getObject(java.lang.String) definition code for java.sql.ResultSet.getObject(java.lang.String) , getObject sample code for java.sql.ResultSet.getObject(java.lang.String, java.util.Map) definition code for java.sql.ResultSet.getObject(java.lang.String, java.util.Map) , getRef sample code for java.sql.ResultSet.getRef(int) definition code for java.sql.ResultSet.getRef(int) , getRef sample code for java.sql.ResultSet.getRef(java.lang.String) definition code for java.sql.ResultSet.getRef(java.lang.String) , getRow sample code for java.sql.ResultSet.getRow() definition code for java.sql.ResultSet.getRow() , getShort sample code for java.sql.ResultSet.getShort(int) definition code for java.sql.ResultSet.getShort(int) , getShort sample code for java.sql.ResultSet.getShort(java.lang.String) definition code for java.sql.ResultSet.getShort(java.lang.String) , getStatement sample code for java.sql.ResultSet.getStatement() definition code for java.sql.ResultSet.getStatement() , getString sample code for java.sql.ResultSet.getString(int) definition code for java.sql.ResultSet.getString(int) , getString sample code for java.sql.ResultSet.getString(java.lang.String) definition code for java.sql.ResultSet.getString(java.lang.String) , getTime sample code for java.sql.ResultSet.getTime(int) definition code for java.sql.ResultSet.getTime(int) , getTime sample code for java.sql.ResultSet.getTime(int, java.util.Calendar) definition code for java.sql.ResultSet.getTime(int, java.util.Calendar) , getTime sample code for java.sql.ResultSet.getTime(java.lang.String) definition code for java.sql.ResultSet.getTime(java.lang.String) , getTime sample code for java.sql.ResultSet.getTime(java.lang.String, java.util.Calendar) definition code for java.sql.ResultSet.getTime(java.lang.String, java.util.Calendar) , getTimestamp sample code for java.sql.ResultSet.getTimestamp(int) definition code for java.sql.ResultSet.getTimestamp(int) , getTimestamp sample code for java.sql.ResultSet.getTimestamp(int, java.util.Calendar) definition code for java.sql.ResultSet.getTimestamp(int, java.util.Calendar) , getTimestamp sample code for java.sql.ResultSet.getTimestamp(java.lang.String) definition code for java.sql.ResultSet.getTimestamp(java.lang.String) , getTimestamp sample code for java.sql.ResultSet.getTimestamp(java.lang.String, java.util.Calendar) definition code for java.sql.ResultSet.getTimestamp(java.lang.String, java.util.Calendar) , getType sample code for java.sql.ResultSet.getType() definition code for java.sql.ResultSet.getType() , getUnicodeStream sample code for java.sql.ResultSet.getUnicodeStream(int) definition code for java.sql.ResultSet.getUnicodeStream(int) , getUnicodeStream sample code for java.sql.ResultSet.getUnicodeStream(java.lang.String) definition code for java.sql.ResultSet.getUnicodeStream(java.lang.String) , getURL sample code for java.sql.ResultSet.getURL(int) definition code for java.sql.ResultSet.getURL(int) , getURL sample code for java.sql.ResultSet.getURL(java.lang.String) definition code for java.sql.ResultSet.getURL(java.lang.String) , getWarnings sample code for java.sql.ResultSet.getWarnings() definition code for java.sql.ResultSet.getWarnings() , insertRow sample code for java.sql.ResultSet.insertRow() definition code for java.sql.ResultSet.insertRow() , isAfterLast sample code for java.sql.ResultSet.isAfterLast() definition code for java.sql.ResultSet.isAfterLast() , isBeforeFirst sample code for java.sql.ResultSet.isBeforeFirst() definition code for java.sql.ResultSet.isBeforeFirst() , isFirst sample code for java.sql.ResultSet.isFirst() definition code for java.sql.ResultSet.isFirst() , isLast sample code for java.sql.ResultSet.isLast() definition code for java.sql.ResultSet.isLast() , last sample code for java.sql.ResultSet.last() definition code for java.sql.ResultSet.last() , moveToCurrentRow sample code for java.sql.ResultSet.moveToCurrentRow() definition code for java.sql.ResultSet.moveToCurrentRow() , moveToInsertRow sample code for java.sql.ResultSet.moveToInsertRow() definition code for java.sql.ResultSet.moveToInsertRow() , next sample code for java.sql.ResultSet.next() definition code for java.sql.ResultSet.next() , previous sample code for java.sql.ResultSet.previous() definition code for java.sql.ResultSet.previous() , refreshRow sample code for java.sql.ResultSet.refreshRow() definition code for java.sql.ResultSet.refreshRow() , relative sample code for java.sql.ResultSet.relative(int) definition code for java.sql.ResultSet.relative(int) , rowDeleted sample code for java.sql.ResultSet.rowDeleted() definition code for java.sql.ResultSet.rowDeleted() , rowInserted sample code for java.sql.ResultSet.rowInserted() definition code for java.sql.ResultSet.rowInserted() , rowUpdated sample code for java.sql.ResultSet.rowUpdated() definition code for java.sql.ResultSet.rowUpdated() , setFetchDirection sample code for java.sql.ResultSet.setFetchDirection(int) definition code for java.sql.ResultSet.setFetchDirection(int) , setFetchSize sample code for java.sql.ResultSet.setFetchSize(int) definition code for java.sql.ResultSet.setFetchSize(int) , updateArray sample code for java.sql.ResultSet.updateArray(int, java.sql.Array) definition code for java.sql.ResultSet.updateArray(int, java.sql.Array) , updateArray sample code for java.sql.ResultSet.updateArray(java.lang.String, java.sql.Array) definition code for java.sql.ResultSet.updateArray(java.lang.String, java.sql.Array) , updateAsciiStream sample code for java.sql.ResultSet.updateAsciiStream(int, java.io.InputStream, int) definition code for java.sql.ResultSet.updateAsciiStream(int, java.io.InputStream, int) , updateAsciiStream sample code for java.sql.ResultSet.updateAsciiStream(java.lang.String, java.io.InputStream, int) definition code for java.sql.ResultSet.updateAsciiStream(java.lang.String, java.io.InputStream, int) , updateBigDecimal sample code for java.sql.ResultSet.updateBigDecimal(int, java.math.BigDecimal) definition code for java.sql.ResultSet.updateBigDecimal(int, java.math.BigDecimal) , updateBigDecimal sample code for java.sql.ResultSet.updateBigDecimal(java.lang.String, java.math.BigDecimal) definition code for java.sql.ResultSet.updateBigDecimal(java.lang.String, java.math.BigDecimal) , updateBinaryStream sample code for java.sql.ResultSet.updateBinaryStream(int, java.io.InputStream, int) definition code for java.sql.ResultSet.updateBinaryStream(int, java.io.InputStream, int) , updateBinaryStream sample code for java.sql.ResultSet.updateBinaryStream(java.lang.String, java.io.InputStream, int) definition code for java.sql.ResultSet.updateBinaryStream(java.lang.String, java.io.InputStream, int) , updateBlob sample code for java.sql.ResultSet.updateBlob(int, java.sql.Blob) definition code for java.sql.ResultSet.updateBlob(int, java.sql.Blob) , updateBlob sample code for java.sql.ResultSet.updateBlob(java.lang.String, java.sql.Blob) definition code for java.sql.ResultSet.updateBlob(java.lang.String, java.sql.Blob) , updateBoolean sample code for java.sql.ResultSet.updateBoolean(int, boolean) definition code for java.sql.ResultSet.updateBoolean(int, boolean) , updateBoolean sample code for java.sql.ResultSet.updateBoolean(java.lang.String, boolean) definition code for java.sql.ResultSet.updateBoolean(java.lang.String, boolean) , updateByte sample code for java.sql.ResultSet.updateByte(int, byte) definition code for java.sql.ResultSet.updateByte(int, byte) , updateByte sample code for java.sql.ResultSet.updateByte(java.lang.String, byte) definition code for java.sql.ResultSet.updateByte(java.lang.String, byte) , updateBytes sample code for java.sql.ResultSet.updateBytes(int, byte[]) definition code for java.sql.ResultSet.updateBytes(int, byte[]) , updateBytes sample code for java.sql.ResultSet.updateBytes(java.lang.String, byte[]) definition code for java.sql.ResultSet.updateBytes(java.lang.String, byte[]) , updateCharacterStream sample code for java.sql.ResultSet.updateCharacterStream(int, java.io.Reader, int) definition code for java.sql.ResultSet.updateCharacterStream(int, java.io.Reader, int) , updateCharacterStream sample code for java.sql.ResultSet.updateCharacterStream(java.lang.String, java.io.Reader, int) definition code for java.sql.ResultSet.updateCharacterStream(java.lang.String, java.io.Reader, int) , updateClob sample code for java.sql.ResultSet.updateClob(int, java.sql.Clob) definition code for java.sql.ResultSet.updateClob(int, java.sql.Clob) , updateClob sample code for java.sql.ResultSet.updateClob(java.lang.String, java.sql.Clob) definition code for java.sql.ResultSet.updateClob(java.lang.String, java.sql.Clob) , updateDate sample code for java.sql.ResultSet.updateDate(int, java.sql.Date) definition code for java.sql.ResultSet.updateDate(int, java.sql.Date) , updateDate sample code for java.sql.ResultSet.updateDate(java.lang.String, java.sql.Date) definition code for java.sql.ResultSet.updateDate(java.lang.String, java.sql.Date) , updateDouble sample code for java.sql.ResultSet.updateDouble(int, double) definition code for java.sql.ResultSet.updateDouble(int, double) , updateDouble sample code for java.sql.ResultSet.updateDouble(java.lang.String, double) definition code for java.sql.ResultSet.updateDouble(java.lang.String, double) , updateFloat sample code for java.sql.ResultSet.updateFloat(int, float) definition code for java.sql.ResultSet.updateFloat(int, float) , updateFloat sample code for java.sql.ResultSet.updateFloat(java.lang.String, float) definition code for java.sql.ResultSet.updateFloat(java.lang.String, float) , updateInt sample code for java.sql.ResultSet.updateInt(int, int) definition code for java.sql.ResultSet.updateInt(int, int) , updateInt sample code for java.sql.ResultSet.updateInt(java.lang.String, int) definition code for java.sql.ResultSet.updateInt(java.lang.String, int) , updateLong sample code for java.sql.ResultSet.updateLong(int, long) definition code for java.sql.ResultSet.updateLong(int, long) , updateLong sample code for java.sql.ResultSet.updateLong(java.lang.String, long) definition code for java.sql.ResultSet.updateLong(java.lang.String, long) , updateNull sample code for java.sql.ResultSet.updateNull(int) definition code for java.sql.ResultSet.updateNull(int) , updateNull sample code for java.sql.ResultSet.updateNull(java.lang.String) definition code for java.sql.ResultSet.updateNull(java.lang.String) , updateObject sample code for java.sql.ResultSet.updateObject(int, java.lang.Object) definition code for java.sql.ResultSet.updateObject(int, java.lang.Object) , updateObject sample code for java.sql.ResultSet.updateObject(int, java.lang.Object, int) definition code for java.sql.ResultSet.updateObject(int, java.lang.Object, int) , updateObject sample code for java.sql.ResultSet.updateObject(java.lang.String, java.lang.Object) definition code for java.sql.ResultSet.updateObject(java.lang.String, java.lang.Object) , updateObject sample code for java.sql.ResultSet.updateObject(java.lang.String, java.lang.Object, int) definition code for java.sql.ResultSet.updateObject(java.lang.String, java.lang.Object, int) , updateRef sample code for java.sql.ResultSet.updateRef(int, java.sql.Ref) definition code for java.sql.ResultSet.updateRef(int, java.sql.Ref) , updateRef sample code for java.sql.ResultSet.updateRef(java.lang.String, java.sql.Ref) definition code for java.sql.ResultSet.updateRef(java.lang.String, java.sql.Ref) , updateRow sample code for java.sql.ResultSet.updateRow() definition code for java.sql.ResultSet.updateRow() , updateShort sample code for java.sql.ResultSet.updateShort(int, short) definition code for java.sql.ResultSet.updateShort(int, short) , updateShort sample code for java.sql.ResultSet.updateShort(java.lang.String, short) definition code for java.sql.ResultSet.updateShort(java.lang.String, short) , updateString sample code for java.sql.ResultSet.updateString(int, java.lang.String) definition code for java.sql.ResultSet.updateString(int, java.lang.String) , updateString sample code for java.sql.ResultSet.updateString(java.lang.String, java.lang.String) definition code for java.sql.ResultSet.updateString(java.lang.String, java.lang.String) , updateTime sample code for java.sql.ResultSet.updateTime(int, java.sql.Time) definition code for java.sql.ResultSet.updateTime(int, java.sql.Time) , updateTime sample code for java.sql.ResultSet.updateTime(java.lang.String, java.sql.Time) definition code for java.sql.ResultSet.updateTime(java.lang.String, java.sql.Time) , updateTimestamp sample code for java.sql.ResultSet.updateTimestamp(int, java.sql.Timestamp) definition code for java.sql.ResultSet.updateTimestamp(int, java.sql.Timestamp) , updateTimestamp sample code for java.sql.ResultSet.updateTimestamp(java.lang.String, java.sql.Timestamp) definition code for java.sql.ResultSet.updateTimestamp(java.lang.String, java.sql.Timestamp) , wasNull sample code for java.sql.ResultSet.wasNull() definition code for java.sql.ResultSet.wasNull()
 

Method Detail

getUrl sample code for javax.sql.RowSet.getUrl() definition code for javax.sql.RowSet.getUrl()

String sample code for java.lang.String definition code for java.lang.String  getUrl()
              throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the url property this RowSet object will use to create a connection if it uses the DriverManager instead of a DataSource object to establish the connection. The default value is null.

Returns:
a string url
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
setUrl(java.lang.String) sample code for javax.sql.RowSet.setUrl(java.lang.String) definition code for javax.sql.RowSet.setUrl(java.lang.String)

setUrl sample code for javax.sql.RowSet.setUrl(java.lang.String) definition code for javax.sql.RowSet.setUrl(java.lang.String)

void setUrl(String sample code for java.lang.String definition code for java.lang.String  url)
            throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the URL this RowSet object will use when it uses the DriverManager to create a connection. Setting this property is optional. If a URL is used, a JDBC driver that accepts the URL must be loaded by the application before the rowset is used to connect to a database. The rowset will use the URL internally to create a database connection when reading or writing data. Either a URL or a data source name is used to create a connection, whichever was specified most recently.

Parameters:
url - a string value; may be null
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
getUrl() sample code for javax.sql.RowSet.getUrl() definition code for javax.sql.RowSet.getUrl()

getDataSourceName sample code for javax.sql.RowSet.getDataSourceName() definition code for javax.sql.RowSet.getDataSourceName()

String sample code for java.lang.String definition code for java.lang.String  getDataSourceName()
Retrieves the logical name that identifies the data source for this RowSet object. Users should set either the url property or the data source name property. The rowset will use the property that was set more recently to get a connection.

Returns:
a data source name
See Also:
setDataSourceName(java.lang.String) sample code for javax.sql.RowSet.setDataSourceName(java.lang.String) definition code for javax.sql.RowSet.setDataSourceName(java.lang.String) , setUrl(java.lang.String) sample code for javax.sql.RowSet.setUrl(java.lang.String) definition code for javax.sql.RowSet.setUrl(java.lang.String)

setDataSourceName sample code for javax.sql.RowSet.setDataSourceName(java.lang.String) definition code for javax.sql.RowSet.setDataSourceName(java.lang.String)

void setDataSourceName(String sample code for java.lang.String definition code for java.lang.String  name)
                       throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the data source name property for this RowSet object to the given String.

The value of the data source name property can be used to do a lookup of a DataSource object that has been registered with a naming service. After being retrieved, the DataSource object can be used to create a connection to the data source that it represents.

Parameters:
name - the logical name of the data source for this RowSet object
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
getDataSourceName() sample code for javax.sql.RowSet.getDataSourceName() definition code for javax.sql.RowSet.getDataSourceName()

getUsername sample code for javax.sql.RowSet.getUsername() definition code for javax.sql.RowSet.getUsername()

String sample code for java.lang.String definition code for java.lang.String  getUsername()
Retrieves the username used to create a database connection for this RowSet object. The username property is set at run time before calling the method execute. It is not usually part of the serialized state of a RowSet object.

Returns:
the username property
See Also:
setUsername(java.lang.String) sample code for javax.sql.RowSet.setUsername(java.lang.String) definition code for javax.sql.RowSet.setUsername(java.lang.String)

setUsername sample code for javax.sql.RowSet.setUsername(java.lang.String) definition code for javax.sql.RowSet.setUsername(java.lang.String)

void setUsername(String sample code for java.lang.String definition code for java.lang.String  name)
                 throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the username property for this RowSet object to the given String.

Parameters:
name - a user name
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
getUsername() sample code for javax.sql.RowSet.getUsername() definition code for javax.sql.RowSet.getUsername()

getPassword sample code for javax.sql.RowSet.getPassword() definition code for javax.sql.RowSet.getPassword()

String sample code for java.lang.String definition code for java.lang.String  getPassword()
Retrieves the password used to create a database connection. The password property is set at run time before calling the method execute. It is not usually part of the serialized state of a RowSet object.

Returns:
the password for making a database connection
See Also:
setPassword(java.lang.String) sample code for javax.sql.RowSet.setPassword(java.lang.String) definition code for javax.sql.RowSet.setPassword(java.lang.String)

setPassword sample code for javax.sql.RowSet.setPassword(java.lang.String) definition code for javax.sql.RowSet.setPassword(java.lang.String)

void setPassword(String sample code for java.lang.String definition code for java.lang.String  password)
                 throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the database password for this RowSet object to the given String.

Parameters:
password - the password string
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
getPassword() sample code for javax.sql.RowSet.getPassword() definition code for javax.sql.RowSet.getPassword()

getTransactionIsolation sample code for javax.sql.RowSet.getTransactionIsolation() definition code for javax.sql.RowSet.getTransactionIsolation()

int getTransactionIsolation()
Retrieves the transaction isolation level set for this RowSet object.

Returns:
the transaction isolation level; one of Connection.TRANSACTION_READ_UNCOMMITTED, Connection.TRANSACTION_READ_COMMITTED, Connection.TRANSACTION_REPEATABLE_READ, or Connection.TRANSACTION_SERIALIZABLE
See Also:
setTransactionIsolation(int) sample code for javax.sql.RowSet.setTransactionIsolation(int) definition code for javax.sql.RowSet.setTransactionIsolation(int)

setTransactionIsolation sample code for javax.sql.RowSet.setTransactionIsolation(int) definition code for javax.sql.RowSet.setTransactionIsolation(int)

void setTransactionIsolation(int level)
                             throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the transaction isolation level for this RowSet obejct.

Parameters:
level - the transaction isolation level; one of Connection.TRANSACTION_READ_UNCOMMITTED, Connection.TRANSACTION_READ_COMMITTED, Connection.TRANSACTION_REPEATABLE_READ, or Connection.TRANSACTION_SERIALIZABLE
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
getTransactionIsolation() sample code for javax.sql.RowSet.getTransactionIsolation() definition code for javax.sql.RowSet.getTransactionIsolation()

getTypeMap sample code for javax.sql.RowSet.getTypeMap() definition code for javax.sql.RowSet.getTypeMap()

Map sample code for java.util.Map definition code for java.util.Map <String sample code for java.lang.String definition code for java.lang.String ,Class sample code for java.lang.Class definition code for java.lang.Class <?>> getTypeMap()
                                throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the Map object associated with this RowSet object, which specifies the custom mapping of SQL user-defined types, if any. The default is for the type map to be empty.

Returns:
a java.util.Map object containing the names of SQL user-defined types and the Java classes to which they are to be mapped
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
setTypeMap(java.util.Map>) sample code for javax.sql.RowSet.setTypeMap(java.util.Map) definition code for javax.sql.RowSet.setTypeMap(java.util.Map)

setTypeMap sample code for javax.sql.RowSet.setTypeMap(java.util.Map<java.lang.String, java.lang.Class<?>>) definition code for javax.sql.RowSet.setTypeMap(java.util.Map<java.lang.String, java.lang.Class<?>>)

void setTypeMap(Map sample code for java.util.Map definition code for java.util.Map <String sample code for java.lang.String definition code for java.lang.String ,Class sample code for java.lang.Class definition code for java.lang.Class <?>> map)
                throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Installs the given java.util.Map object as the default type map for this RowSet object. This type map will be used unless another type map is supplied as a method parameter.

Parameters:
map - a java.util.Map object containing the names of SQL user-defined types and the Java classes to which they are to be mapped
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
getTypeMap() sample code for javax.sql.RowSet.getTypeMap() definition code for javax.sql.RowSet.getTypeMap()

getCommand sample code for javax.sql.RowSet.getCommand() definition code for javax.sql.RowSet.getCommand()

String sample code for java.lang.String definition code for java.lang.String  getCommand()
Retrieves this RowSet object's command property. The command property contains a command string, which must be an SQL query, that can be executed to fill the rowset with data. The default value is null.

Returns:
the command string; may be null
See Also:
setCommand(java.lang.String) sample code for javax.sql.RowSet.setCommand(java.lang.String) definition code for javax.sql.RowSet.setCommand(java.lang.String)

setCommand sample code for javax.sql.RowSet.setCommand(java.lang.String) definition code for javax.sql.RowSet.setCommand(java.lang.String)

void setCommand(String sample code for java.lang.String definition code for java.lang.String  cmd)
                throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets this RowSet object's command property to the given SQL query. This property is optional when a rowset gets its data from a data source that does not support commands, such as a spreadsheet.

Parameters:
cmd - the SQL query that will be used to get the data for this RowSet object; may be null
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
getCommand() sample code for javax.sql.RowSet.getCommand() definition code for javax.sql.RowSet.getCommand()

isReadOnly sample code for javax.sql.RowSet.isReadOnly() definition code for javax.sql.RowSet.isReadOnly()

boolean isReadOnly()
Retrieves whether this RowSet object is read-only. If updates are possible, the default is for a rowset to be updatable.

Attempts to update a read-only rowset will result in an SQLException being thrown.

Returns:
true if this RowSet object is read-only; false if it is updatable
See Also:
setReadOnly(boolean) sample code for javax.sql.RowSet.setReadOnly(boolean) definition code for javax.sql.RowSet.setReadOnly(boolean)

setReadOnly sample code for javax.sql.RowSet.setReadOnly(boolean) definition code for javax.sql.RowSet.setReadOnly(boolean)

void setReadOnly(boolean value)
                 throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets whether this RowSet object is read-only to the given boolean.

Parameters:
value - true if read-only; false if updatable
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
isReadOnly() sample code for javax.sql.RowSet.isReadOnly() definition code for javax.sql.RowSet.isReadOnly()

getMaxFieldSize sample code for javax.sql.RowSet.getMaxFieldSize() definition code for javax.sql.RowSet.getMaxFieldSize()

int getMaxFieldSize()
                    throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the maximum number of bytes that may be returned for certain column values. This limit applies only to BINARY, VARBINARY, LONGVARBINARYBINARY, CHAR, VARCHAR, and LONGVARCHAR columns. If the limit is exceeded, the excess data is silently discarded.

Returns:
the current maximum column size limit; zero means that there is no limit
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
setMaxFieldSize(int) sample code for javax.sql.RowSet.setMaxFieldSize(int) definition code for javax.sql.RowSet.setMaxFieldSize(int)

setMaxFieldSize sample code for javax.sql.RowSet.setMaxFieldSize(int) definition code for javax.sql.RowSet.setMaxFieldSize(int)

void setMaxFieldSize(int max)
                     throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the maximum number of bytes that can be returned for a column value to the given number of bytes. This limit applies only to BINARY, VARBINARY, LONGVARBINARYBINARY, CHAR, VARCHAR, and LONGVARCHAR columns. If the limit is exceeded, the excess data is silently discarded. For maximum portability, use values greater than 256.

Parameters:
max - the new max column size limit in bytes; zero means unlimited
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
getMaxFieldSize() sample code for javax.sql.RowSet.getMaxFieldSize() definition code for javax.sql.RowSet.getMaxFieldSize()

getMaxRows sample code for javax.sql.RowSet.getMaxRows() definition code for javax.sql.RowSet.getMaxRows()

int getMaxRows()
               throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the maximum number of rows that this RowSet object can contain. If the limit is exceeded, the excess rows are silently dropped.

Returns:
the current maximum number of rows that this RowSet object can contain; zero means unlimited
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
setMaxRows(int) sample code for javax.sql.RowSet.setMaxRows(int) definition code for javax.sql.RowSet.setMaxRows(int)

setMaxRows sample code for javax.sql.RowSet.setMaxRows(int) definition code for javax.sql.RowSet.setMaxRows(int)

void setMaxRows(int max)
                throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the maximum number of rows that this RowSet object can contain to the specified number. If the limit is exceeded, the excess rows are silently dropped.

Parameters:
max - the new maximum number of rows; zero means unlimited
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
getMaxRows() sample code for javax.sql.RowSet.getMaxRows() definition code for javax.sql.RowSet.getMaxRows()

getEscapeProcessing sample code for javax.sql.RowSet.getEscapeProcessing() definition code for javax.sql.RowSet.getEscapeProcessing()

boolean getEscapeProcessing()
                            throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves whether escape processing is enabled for this RowSet object. If escape scanning is enabled, which is the default, the driver will do escape substitution before sending an SQL statement to the database.

Returns:
true if escape processing is enabled; false if it is disabled
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
setEscapeProcessing(boolean) sample code for javax.sql.RowSet.setEscapeProcessing(boolean) definition code for javax.sql.RowSet.setEscapeProcessing(boolean)

setEscapeProcessing sample code for javax.sql.RowSet.setEscapeProcessing(boolean) definition code for javax.sql.RowSet.setEscapeProcessing(boolean)

void setEscapeProcessing(boolean enable)
                         throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets escape processing for this RowSet object on or off. If escape scanning is on (the default), the driver will do escape substitution before sending an SQL statement to the database.

Parameters:
enable - true to enable escape processing; false to disable it
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
getEscapeProcessing() sample code for javax.sql.RowSet.getEscapeProcessing() definition code for javax.sql.RowSet.getEscapeProcessing()

getQueryTimeout sample code for javax.sql.RowSet.getQueryTimeout() definition code for javax.sql.RowSet.getQueryTimeout()

int getQueryTimeout()
                    throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Retrieves the maximum number of seconds the driver will wait for a statement to execute. If this limit is exceeded, an SQLException is thrown.

Returns:
the current query timeout limit in seconds; zero means unlimited
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
setQueryTimeout(int) sample code for javax.sql.RowSet.setQueryTimeout(int) definition code for javax.sql.RowSet.setQueryTimeout(int)

setQueryTimeout sample code for javax.sql.RowSet.setQueryTimeout(int) definition code for javax.sql.RowSet.setQueryTimeout(int)

void setQueryTimeout(int seconds)
                     throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the maximum time the driver will wait for a statement to execute to the given number of seconds. If this limit is exceeded, an SQLException is thrown.

Parameters:
seconds - the new query timeout limit in seconds; zero means that there is no limit
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
getQueryTimeout() sample code for javax.sql.RowSet.getQueryTimeout() definition code for javax.sql.RowSet.getQueryTimeout()

setType sample code for javax.sql.RowSet.setType(int) definition code for javax.sql.RowSet.setType(int)

void setType(int type)
             throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the type of this RowSet object to the given type. This method is used to change the type of a rowset, which is by default read-only and non-scrollable.

Parameters:
type - one of the ResultSet constants specifying a type: ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, or ResultSet.TYPE_SCROLL_SENSITIVE
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
ResultSet.getType() sample code for java.sql.ResultSet.getType() definition code for java.sql.ResultSet.getType()

setConcurrency sample code for javax.sql.RowSet.setConcurrency(int) definition code for javax.sql.RowSet.setConcurrency(int)

void setConcurrency(int concurrency)
                    throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the concurrency of this RowSet object to the given concurrency level. This method is used to change the concurrency level of a rowset, which is by default ResultSet.CONCUR_READ_ONLY

Parameters:
concurrency - one of the ResultSet constants specifying a concurrency level: ResultSet.CONCUR_READ_ONLY or ResultSet.CONCUR_UPDATABLE
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
ResultSet.getConcurrency() sample code for java.sql.ResultSet.getConcurrency() definition code for java.sql.ResultSet.getConcurrency()

setNull sample code for javax.sql.RowSet.setNull(int, int) definition code for javax.sql.RowSet.setNull(int, int)

void setNull(int parameterIndex,
             int sqlType)
             throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's SQL command to SQL NULL.

Note: You must specify the parameter's SQL type.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
sqlType - a SQL type code defined by java.sql.Types
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setNull sample code for javax.sql.RowSet.setNull(int, int, java.lang.String) definition code for javax.sql.RowSet.setNull(int, int, java.lang.String)

void setNull(int paramIndex,
             int sqlType,
             String sample code for java.lang.String definition code for java.lang.String  typeName)
             throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's SQL command to SQL NULL. This version of the method setNull should be used for SQL user-defined types (UDTs) and REF type parameters. Examples of UDTs include: STRUCT, DISTINCT, JAVA_OBJECT, and named array types.

Note: To be portable, applications must give the SQL type code and the fully qualified SQL type name when specifying a NULL UDT or REF parameter. In the case of a UDT, the name is the type name of the parameter itself. For a REF parameter, the name is the type name of the referenced type. If a JDBC driver does not need the type code or type name information, it may ignore it. Although it is intended for UDT and REF parameters, this method may be used to set a null parameter of any JDBC type. If the parameter does not have a user-defined or REF type, the typeName parameter is ignored.

Parameters:
paramIndex - the first parameter is 1, the second is 2, ...
sqlType - a value from java.sql.Types
typeName - the fully qualified name of an SQL UDT or the type name of the SQL structured type being referenced by a REF type; ignored if the parameter is not a UDT or REF type
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setBoolean sample code for javax.sql.RowSet.setBoolean(int, boolean) definition code for javax.sql.RowSet.setBoolean(int, boolean)

void setBoolean(int parameterIndex,
                boolean x)
                throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command to the given Java boolean value. The driver converts this to an SQL BIT value before sending it to the database.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the parameter value
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setByte sample code for javax.sql.RowSet.setByte(int, byte) definition code for javax.sql.RowSet.setByte(int, byte)

void setByte(int parameterIndex,
             byte x)
             throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command to the given Java byte value. The driver converts this to an SQL TINYINT value before sending it to the database.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the parameter value
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setShort sample code for javax.sql.RowSet.setShort(int, short) definition code for javax.sql.RowSet.setShort(int, short)

void setShort(int parameterIndex,
              short x)
              throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command to the given Java short value. The driver converts this to an SQL SMALLINT value before sending it to the database.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the parameter value
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setInt sample code for javax.sql.RowSet.setInt(int, int) definition code for javax.sql.RowSet.setInt(int, int)

void setInt(int parameterIndex,
            int x)
            throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command to the given Java int value. The driver converts this to an SQL INTEGER value before sending it to the database.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the parameter value
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setLong sample code for javax.sql.RowSet.setLong(int, long) definition code for javax.sql.RowSet.setLong(int, long)

void setLong(int parameterIndex,
             long x)
             throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command to the given Java long value. The driver converts this to an SQL BIGINT value before sending it to the database.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the parameter value
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setFloat sample code for javax.sql.RowSet.setFloat(int, float) definition code for javax.sql.RowSet.setFloat(int, float)

void setFloat(int parameterIndex,
              float x)
              throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command to the given Java float value. The driver converts this to an SQL REAL value before sending it to the database.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the parameter value
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setDouble sample code for javax.sql.RowSet.setDouble(int, double) definition code for javax.sql.RowSet.setDouble(int, double)

void setDouble(int parameterIndex,
               double x)
               throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command to the given Java double value. The driver converts this to an SQL DOUBLE value before sending it to the database.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the parameter value
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setBigDecimal sample code for javax.sql.RowSet.setBigDecimal(int, java.math.BigDecimal) definition code for javax.sql.RowSet.setBigDecimal(int, java.math.BigDecimal)

void setBigDecimal(int parameterIndex,
                   BigDecimal sample code for java.math.BigDecimal definition code for java.math.BigDecimal  x)
                   throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command to the given java.math.BigDeciaml value. The driver converts this to an SQL NUMERIC value before sending it to the database.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the parameter value
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setString sample code for javax.sql.RowSet.setString(int, java.lang.String) definition code for javax.sql.RowSet.setString(int, java.lang.String)

void setString(int parameterIndex,
               String sample code for java.lang.String definition code for java.lang.String  x)
               throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command to the given Java String value. Before sending it to the database, the driver converts this to an SQL VARCHAR or LONGVARCHAR value, depending on the argument's size relative to the driver's limits on VARCHAR values.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the parameter value
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setBytes sample code for javax.sql.RowSet.setBytes(int, byte[]) definition code for javax.sql.RowSet.setBytes(int, byte[])

void setBytes(int parameterIndex,
              byte[] x)
              throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command to the given Java array of byte values. Before sending it to the database, the driver converts this to an SQL VARBINARY or LONGVARBINARY value, depending on the argument's size relative to the driver's limits on VARBINARY values.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the parameter value
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setDate sample code for javax.sql.RowSet.setDate(int, java.sql.Date) definition code for javax.sql.RowSet.setDate(int, java.sql.Date)

void setDate(int parameterIndex,
             Date sample code for java.sql.Date definition code for java.sql.Date  x)
             throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command to the given java.sql.Date value. The driver converts this to an SQL DATE value before sending it to the database, using the default java.util.Calendar to calculate the date.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the parameter value
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setTime sample code for javax.sql.RowSet.setTime(int, java.sql.Time) definition code for javax.sql.RowSet.setTime(int, java.sql.Time)

void setTime(int parameterIndex,
             Time sample code for java.sql.Time definition code for java.sql.Time  x)
             throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command to the given java.sql.Time value. The driver converts this to an SQL TIME value before sending it to the database, using the default java.util.Calendar to calculate it.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the parameter value
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setTimestamp sample code for javax.sql.RowSet.setTimestamp(int, java.sql.Timestamp) definition code for javax.sql.RowSet.setTimestamp(int, java.sql.Timestamp)

void setTimestamp(int parameterIndex,
                  Timestamp sample code for java.sql.Timestamp definition code for java.sql.Timestamp  x)
                  throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command to the given java.sql.Timestamp value. The driver converts this to an SQL TIMESTAMP value before sending it to the database, using the default java.util.Calendar to calculate it.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the parameter value
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setAsciiStream sample code for javax.sql.RowSet.setAsciiStream(int, java.io.InputStream, int) definition code for javax.sql.RowSet.setAsciiStream(int, java.io.InputStream, int)

void setAsciiStream(int parameterIndex,
                    InputStream sample code for java.io.InputStream definition code for java.io.InputStream  x,
                    int length)
                    throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command to the given java.io.InputStream value. It may be more practical to send a very large ASCII value via a java.io.InputStream rather than as a LONGVARCHAR parameter. The driver will read the data from the stream as needed until it reaches end-of-file.

Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the Java input stream that contains the ASCII parameter value
length - the number of bytes in the stream
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setBinaryStream sample code for javax.sql.RowSet.setBinaryStream(int, java.io.InputStream, int) definition code for javax.sql.RowSet.setBinaryStream(int, java.io.InputStream, int)

void setBinaryStream(int parameterIndex,
                     InputStream sample code for java.io.InputStream definition code for java.io.InputStream  x,
                     int length)
                     throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command to the given java.io.InputStream value. It may be more practical to send a very large binary value via a java.io.InputStream rather than as a LONGVARBINARY parameter. The driver will read the data from the stream as needed until it reaches end-of-file.

Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the java input stream which contains the binary parameter value
length - the number of bytes in the stream
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setCharacterStream sample code for javax.sql.RowSet.setCharacterStream(int, java.io.Reader, int) definition code for javax.sql.RowSet.setCharacterStream(int, java.io.Reader, int)

void setCharacterStream(int parameterIndex,
                        Reader sample code for java.io.Reader definition code for java.io.Reader  reader,
                        int length)
                        throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command to the given java.io.Reader value. It may be more practical to send a very large UNICODE value via a java.io.Reader rather than as a LONGVARCHAR parameter. The driver will read the data from the stream as needed until it reaches end-of-file.

Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
reader - the Reader object that contains the UNICODE data to be set
length - the number of characters in the stream
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setObject sample code for javax.sql.RowSet.setObject(int, java.lang.Object, int, int) definition code for javax.sql.RowSet.setObject(int, java.lang.Object, int, int)

void setObject(int parameterIndex,
               Object sample code for java.lang.Object definition code for java.lang.Object  x,
               int targetSqlType,
               int scale)
               throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command with the given Java Object. For integral values, the java.lang equivalent objects should be used (for example, an instance of the class Integer for an int).

The given Java object will be converted to the targetSqlType before being sent to the database.

If the object is of a class implementing SQLData, the rowset should call the method SQLData.writeSQL to write the object to an SQLOutput data stream. If the object is an instance of a class implementing the Ref, Struct, Array, Blob, or Clob interfaces, the driver uses the default mapping to the corresponding SQL type.

Note that this method may be used to pass datatabase-specific abstract data types.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the object containing the input parameter value
targetSqlType - the SQL type (as defined in java.sql.Types) to be sent to the database. The scale argument may further qualify this type.
scale - for java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types, this is the number of digits after the decimal point. For all other types, this value will be ignored.
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs
See Also:
Types sample code for java.sql.Types definition code for java.sql.Types

setObject sample code for javax.sql.RowSet.setObject(int, java.lang.Object, int) definition code for javax.sql.RowSet.setObject(int, java.lang.Object, int)

void setObject(int parameterIndex,
               Object sample code for java.lang.Object definition code for java.lang.Object  x,
               int targetSqlType)
               throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command with a Java Object. For integral values, the java.lang equivalent objects should be used. This method is like setObject above, but the scale used is the scale of the second parameter. Scalar values have a scale of zero. Literal values have the scale present in the literal.

Even though it is supported, it is not recommended that this method be called with floating point input values.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the object containing the input parameter value
targetSqlType - the SQL type (as defined in java.sql.Types) to be sent to the database
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setObject sample code for javax.sql.RowSet.setObject(int, java.lang.Object) definition code for javax.sql.RowSet.setObject(int, java.lang.Object)

void setObject(int parameterIndex,
               Object sample code for java.lang.Object definition code for java.lang.Object  x)
               throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command with a Java Object. For integral values, the java.lang equivalent objects should be used.

The JDBC specification provides a standard mapping from Java Object types to SQL types. The driver will convert the given Java object to its standard SQL mapping before sending it to the database.

Note that this method may be used to pass datatabase-specific abstract data types by using a driver-specific Java type. If the object is of a class implementing SQLData, the rowset should call the method SQLData.writeSQL to write the object to an SQLOutput data stream. If the object is an instance of a class implementing the Ref, Struct, Array, Blob, or Clob interfaces, the driver uses the default mapping to the corresponding SQL type.

An exception is thrown if there is an ambiguity, for example, if the object is of a class implementing more than one of these interfaces.

Parameters:
parameterIndex - The first parameter is 1, the second is 2, ...
x - The object containing the input parameter value
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setRef sample code for javax.sql.RowSet.setRef(int, java.sql.Ref) definition code for javax.sql.RowSet.setRef(int, java.sql.Ref)

void setRef(int i,
            Ref sample code for java.sql.Ref definition code for java.sql.Ref  x)
            throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command with the given Ref value. The driver will convert this to the appropriate REF(<structured-type>) value.

Parameters:
i - the first parameter is 1, the second is 2, ...
x - an object representing data of an SQL REF type
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setBlob sample code for javax.sql.RowSet.setBlob(int, java.sql.Blob) definition code for javax.sql.RowSet.setBlob(int, java.sql.Blob)

void setBlob(int i,
             Blob sample code for java.sql.Blob definition code for java.sql.Blob  x)
             throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command with the given Blob value. The driver will convert this to the BLOB value that the Blob object represents before sending it to the database.

Parameters:
i - the first parameter is 1, the second is 2, ...
x - an object representing a BLOB
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setClob sample code for javax.sql.RowSet.setClob(int, java.sql.Clob) definition code for javax.sql.RowSet.setClob(int, java.sql.Clob)

void setClob(int i,
             Clob sample code for java.sql.Clob definition code for java.sql.Clob  x)
             throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command with the given Clob value. The driver will convert this to the CLOB value that the Clob object represents before sending it to the database.

Parameters:
i - the first parameter is 1, the second is 2, ...
x - an object representing a CLOB
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setArray sample code for javax.sql.RowSet.setArray(int, java.sql.Array) definition code for javax.sql.RowSet.setArray(int, java.sql.Array)

void setArray(int i,
              Array sample code for java.sql.Array definition code for java.sql.Array  x)
              throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command with the given Array value. The driver will convert this to the ARRAY value that the Array object represents before sending it to the database.

Parameters:
i - the first parameter is 1, the second is 2, ...
x - an object representing an SQL array
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setDate sample code for javax.sql.RowSet.setDate(int, java.sql.Date, java.util.Calendar) definition code for javax.sql.RowSet.setDate(int, java.sql.Date, java.util.Calendar)

void setDate(int parameterIndex,
             Date sample code for java.sql.Date definition code for java.sql.Date  x,
             Calendar sample code for java.util.Calendar definition code for java.util.Calendar  cal)
             throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command with the given java.sql.Date value. The driver will convert this to an SQL DATE value, using the given java.util.Calendar object to calculate the date.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the parameter value
cal - the java.util.Calendar object to use for calculating the date
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setTime sample code for javax.sql.RowSet.setTime(int, java.sql.Time, java.util.Calendar) definition code for javax.sql.RowSet.setTime(int, java.sql.Time, java.util.Calendar)

void setTime(int parameterIndex,
             Time sample code for java.sql.Time definition code for java.sql.Time  x,
             Calendar sample code for java.util.Calendar definition code for java.util.Calendar  cal)
             throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command with the given java.sql.Time value. The driver will convert this to an SQL TIME value, using the given java.util.Calendar object to calculate it, before sending it to the database.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the parameter value
cal - the java.util.Calendar object to use for calculating the time
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

setTimestamp sample code for javax.sql.RowSet.setTimestamp(int, java.sql.Timestamp, java.util.Calendar) definition code for javax.sql.RowSet.setTimestamp(int, java.sql.Timestamp, java.util.Calendar)

void setTimestamp(int parameterIndex,
                  Timestamp sample code for java.sql.Timestamp definition code for java.sql.Timestamp  x,
                  Calendar sample code for java.util.Calendar definition code for java.util.Calendar  cal)
                  throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Sets the designated parameter in this RowSet object's command with the given java.sql.Timestamp value. The driver will convert this to an SQL TIMESTAMP value, using the given java.util.Calendar object to calculate it, before sending it to the database.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the parameter value
cal - the java.util.Calendar object to use for calculating the timestamp
Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

clearParameters sample code for javax.sql.RowSet.clearParameters() definition code for javax.sql.RowSet.clearParameters()

void clearParameters()
                     throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Clears the parameters set for this RowSet object's command.

In general, parameter values remain in force for repeated use of a RowSet object. Setting a parameter value automatically clears its previous value. However, in some cases it is useful to immediately release the resources used by the current parameter values, which can be done by calling the method clearParameters.

Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs

execute sample code for javax.sql.RowSet.execute() definition code for javax.sql.RowSet.execute()

void execute()
             throws SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
Fills this RowSet object with data.

The execute method may use the following properties to create a connection for reading data: url, data source name, user name, password, transaction isolation, and type map. The execute method may use the following properties to create a statement to execute a command: command, read only, maximum field size, maximum rows, escape processing, and query timeout.

If the required properties have not been set, an exception is thrown. If this method is successful, the current contents of the rowset are discarded and the rowset's metadata is also (re)set. If there are outstanding updates, they are ignored.

If this RowSet object does not maintain a continuous connection with its source of data, it may use a reader (a RowSetReader object) to fill itself with data. In this case, a reader will have been registered with this RowSet object, and the method execute will call on the reader's readData method as part of its implementation.

Throws:
SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException - if a database access error occurs or any of the properties necessary for making a connection and creating a statement have not been set

addRowSetListener sample code for javax.sql.RowSet.addRowSetListener(javax.sql.RowSetListener) definition code for javax.sql.RowSet.addRowSetListener(javax.sql.RowSetListener)

void addRowSetListener(RowSetListener sample code for javax.sql.RowSetListener definition code for javax.sql.RowSetListener  listener)
Registers the given listener so that it will be notified of events that occur on this RowSet object.

Parameters:
listener - a component that has implemented the RowSetListener interface and wants to be notified when events occur on this RowSet object
See Also:
removeRowSetListener(javax.sql.RowSetListener) sample code for javax.sql.RowSet.removeRowSetListener(javax.sql.RowSetListener) definition code for javax.sql.RowSet.removeRowSetListener(javax.sql.RowSetListener)

removeRowSetListener sample code for javax.sql.RowSet.removeRowSetListener(javax.sql.RowSetListener) definition code for javax.sql.RowSet.removeRowSetListener(javax.sql.RowSetListener)

void removeRowSetListener(RowSetListener sample code for javax.sql.RowSetListener definition code for javax.sql.RowSetListener  listener)
Removes the specified listener from the list of components that will be notified when an event occurs on this RowSet object.

Parameters:
listener - a component that has been registered as a listener for this RowSet object
See Also:
addRowSetListener(javax.sql.RowSetListener) sample code for javax.sql.RowSet.addRowSetListener(javax.sql.RowSetListener) definition code for javax.sql.RowSet.addRowSetListener(javax.sql.RowSetListener)