javax.sql.rowset
Class BaseRowSet

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.sql.rowset.BaseRowSet
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable

public abstract class BaseRowSet
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable

An abstract class providing a RowSet object with its basic functionality. The basic functions include having properties and sending event notifications, which all JavaBeansTM components must implement.

1.0 Overview

The BaseRowSet class provides the core functionality for all RowSet implementations, and all standard implementations may use this class in combination with one or more RowSet interfaces in order to provide a standard vendor-specific implementation. To clarify, all implementations must implement at least one of the RowSet interfaces (JdbcRowSet, CachedRowSet, JoinRowSet, FilteredRowSet, or WebRowSet). This means that any implementation that extends the BaseRowSet class must also implement one of the RowSet interfaces.

The BaseRowSet class provides the following:

2.0 Setting Properties

All rowsets maintain a set of properties, which will usually be set using a tool. The number and kinds of properties a rowset has will vary, depending on what the RowSet implementation does and how it gets its data. For example, rowsets that get their data from a ResultSet object need to set the properties that are required for making a database connection. If a RowSet object uses the DriverManager facility to make a connection, it needs to set a property for the JDBC URL that identifies the appropriate driver, and it needs to set the properties that give the user name and password. If, on the other hand, the rowset uses a DataSource object to make the connection, which is the preferred method, it does not need to set the property for the JDBC URL. Instead, it needs to set the property for the logical name of the data source along with the properties for the user name and password.

NOTE: In order to use a DataSource object for making a connection, the DataSource object must have been registered with a naming service that uses the Java Naming and Directory InterfaceTM (JNDI) API. This registration is usually done by a person acting in the capacity of a system administrator.

3.0 Setting the Command and Its Parameters

When a rowset gets its data from a relational database, it executes a command (a query) that produces a ResultSet object. This query is the command that is set for the RowSet object's command property. The rowset populates itself with data by reading the data from the ResultSet object into itself. If the query contains placeholders for values to be set, the BaseRowSet setter methods are used to set these values. All setter methods allow these values to be set to null if required.

The following code fragment illustrates how the CachedRowSetTM object crs might have its command property set. Note that if a tool is used to set properties, this is the code that the tool would use.

    crs.setCommand("SELECT FIRST_NAME, LAST_NAME, ADDRESS FROM CUSTOMERS" +
                   "WHERE CREDIT_LIMIT > ? AND REGION = ?");
 

In this example, the values for CREDIT_LIMIT and REGION are placeholder parameters, which are indicated with a question mark (?). The first question mark is placeholder parameter number 1, the second question mark is placeholder parameter number 2, and so on. Any placeholder parameters must be set with values before the query can be executed. To set these placeholder parameters, the BaseRowSet class provides a set of setter methods, similar to those provided by the PreparedStatement interface, for setting values of each data type. A RowSet object stores the parameter values internally, and its execute method uses them internally to set values for the placeholder parameters before it sends the command to the DBMS to be executed.

The following code fragment demonstrates setting the two parameters in the query from the previous example.

    crs.setInt(1, 5000);
    crs.setString(2, "West");
 
If the execute method is called at this point, the query sent to the DBMS will be:
    "SELECT FIRST_NAME, LAST_NAME, ADDRESS FROM CUSTOMERS" +
                   "WHERE CREDIT_LIMIT > 5000 AND REGION = 'West'"
 
NOTE: Setting Array, Clob, Blob and Ref objects as a command parameter, stores these values as SerialArray, SerialClob, SerialBlob and SerialRef objects respectively.

4.0 Handling of Parameters Behind the Scenes

NOTE: The BaseRowSet class provides two kinds of setter methods, those that set properties and those that set placeholder parameters. The setter methods discussed in this section are those that set placeholder parameters.

The placeholder parameters set with the BaseRowSet setter methods are stored as objects in an internal Hashtable object. Primitives are stored as their Object type. For example, byte is stored as Byte object, and int is stored as an Integer object. When the method execute is called, the values in the Hashtable object are substituted for the appropriate placeholder parameters in the command. A call to the method getParams returns the values stored in the Hashtable object as an array of Object instances. An element in this array may be a simple Object instance or an array (which is a type of Object). The particular setter method used determines whether an element in this array is an Object or an array.

The majority of methods for setting placeholder parameters take two parameters, with the first parameter indicating which placeholder parameter is to be set, and the second parameter giving the value to be set. Methods such as getInt, getString, getBoolean, and getLong fall into this category. After these methods have been called, a call to the method getParams will return an array with the values that have been set. Each element in the array is an Object instance representing the values that have been set. The order of these values in the array is determined by the int (the first parameter) passed to the setter method. The values in the array are the values (the second parameter) passed to the setter method. In other words, the first element in the array is the value to be set for the first placeholder parameter in the RowSet object's command. The second element is the value to be set for the second placeholder parameter, and so on.

Several setter methods send the driver and DBMS information beyond the value to be set. When the method getParams is called after one of these setter methods has been used, the elements in the array will themselves be arrays to accommodate the additional information. In this category, the method setNull is a special case because one version takes only two parameters (setNull(int parameterIndex, int SqlType)). Nevertheless, it requires an array to contain the information that will be passed to the driver and DBMS. The first element in this array is the value to be set, which is null, and the second element is the int supplied for sqlType, which indicates the type of SQL value that is being set to null. This information is needed by some DBMSs and is therefore required in order to ensure that applications are portable. The other version is intended to be used when the value to be set to null is a user-defined type. It takes three parameters (setNull(int parameterIndex, int sqlType, String typeName)) and also requires an array to contain the information to be passed to the driver and DBMS. The first two elements in this array are the same as for the first version of setNull. The third element, typeName, gives the SQL name of the user-defined type. As is true with the other setter methods, the number of the placeholder parameter to be set is indicated by an element's position in the array returned by getParams. So, for example, if the parameter supplied to setNull is 2, the second element in the array returned by getParams will be an array of two or three elements.

Some methods, such as setObject and setDate have versions that take more than two parameters, with the extra parameters giving information to the driver or the DBMS. For example, the methods setDate, setTime, and setTimestamp can take a Calendar object as their third parameter. If the DBMS does not store time zone information, the drivern uses the Calendar object to construct the Date, Time, or Timestamp object being set. As is true with other methods that provide additional information, the element in the array returned by getParams is an array instead of a simple Object instance.

The methods setAsciiStream, setBinaryStream, setCharacterStream, and setUnicodeStream (which is deprecated, so applications should use getCharacterStream instead) take three parameters, so for them, the element in the array returned by getParams is also an array. What is different about these setter methods is that in addition to the information provided by parameters, the array contains one of the BaseRowSet constants indicating the type of stream being set.

NOTE: The method getParams is called internally by RowSet implementations extending this class; it is not normally called by an application programmer directly.

5.0 Event Notification

The BaseRowSet class provides the event notification mechanism for rowsets. It contains the field listeners, methods for adding and removing listeners, and methods for notifying listeners of changes.

A listener is an object that has implemented the RowSetListener interface. If it has been added to a RowSet object's list of listeners, it will be notified when an event occurs on that RowSet object. Each listener's implementation of the RowSetListener methods defines what that object will do when it is notified that an event has occurred.

There are three possible events for a RowSet object:

  1. the cursor moves
  2. an individual row is changed (updated, deleted, or inserted)
  3. the contents of the entire RowSet object are changed

The BaseRowSet method used for the notification indicates the type of event that has occurred. For example, the method notifyRowChanged indicates that a row has been updated, deleted, or inserted. Each of the notification methods creates a RowSetEvent object, which is supplied to the listener in order to identify the RowSet object on which the event occurred. What the listener does with this information, which may be nothing, depends on how it was implemented.

6.0 Default Behavior

A default BaseRowSet object is initialized with many starting values. The following is true of a default RowSet instance that extends the BaseRowSet class:

If other values are desired, an application must set the property values explicitly. For example, the following line of code sets the maximum number of rows for the CachedRowSet object crs to 500.

    crs.setMaxRows(500);
 
Methods implemented in extensions of this BaseRowSet class must throw an SQLException object for any violation of the defined assertions. Also, if the extending class overrides and reimplements any BaseRowSet method and encounters connectivity or underlying data source issues, that method may in addition throw an SQLException object for that reason.

See Also:
Serialized Form

Field Summary
static int ASCII_STREAM_PARAM sample code for javax.sql.rowset.BaseRowSet.ASCII_STREAM_PARAM definition code for javax.sql.rowset.BaseRowSet.ASCII_STREAM_PARAM
          A constant indicating to a RowSetReaderImpl object that a given parameter is an ASCII stream.
protected  InputStream sample code for java.io.InputStream definition code for java.io.InputStream asciiStream sample code for javax.sql.rowset.BaseRowSet.asciiStream definition code for javax.sql.rowset.BaseRowSet.asciiStream
          The InputStream object that will be returned by the method getAsciiStream, which is specified in the ResultSet interface.
static int BINARY_STREAM_PARAM sample code for javax.sql.rowset.BaseRowSet.BINARY_STREAM_PARAM definition code for javax.sql.rowset.BaseRowSet.BINARY_STREAM_PARAM
          A constant indicating to a RowSetReaderImpl object that a given parameter is a binary stream.
protected  InputStream sample code for java.io.InputStream definition code for java.io.InputStream binaryStream sample code for javax.sql.rowset.BaseRowSet.binaryStream definition code for javax.sql.rowset.BaseRowSet.binaryStream
          The InputStream object that will be returned by the method getBinaryStream, which is specified in the ResultSet interface.
protected  Reader sample code for java.io.Reader definition code for java.io.Reader charStream sample code for javax.sql.rowset.BaseRowSet.charStream definition code for javax.sql.rowset.BaseRowSet.charStream
          The Reader object that will be returned by the method getCharacterStream, which is specified in the ResultSet interface.
static int UNICODE_STREAM_PARAM sample code for javax.sql.rowset.BaseRowSet.UNICODE_STREAM_PARAM definition code for javax.sql.rowset.BaseRowSet.UNICODE_STREAM_PARAM
          A constant indicating to a RowSetReaderImpl object that a given parameter is a Unicode stream.
protected  InputStream sample code for java.io.InputStream definition code for java.io.InputStream unicodeStream sample code for javax.sql.rowset.BaseRowSet.unicodeStream definition code for javax.sql.rowset.BaseRowSet.unicodeStream
          The InputStream object that will be returned by the method getUnicodeStream, which is specified in the ResultSet interface.
 
Constructor Summary
BaseRowSet sample code for javax.sql.rowset.BaseRowSet.BaseRowSet() definition code for javax.sql.rowset.BaseRowSet.BaseRowSet() ()
          Constructs a new BaseRowSet object initialized with a default Vector object for its listeners field.
 
Method Summary
 void addRowSetListener sample code for javax.sql.rowset.BaseRowSet.addRowSetListener(javax.sql.RowSetListener) definition code for javax.sql.rowset.BaseRowSet.addRowSetListener(javax.sql.RowSetListener) (RowSetListener sample code for javax.sql.RowSetListener definition code for javax.sql.RowSetListener  listener)
          The listener will be notified whenever an event occurs on this RowSet object.
 void clearParameters sample code for javax.sql.rowset.BaseRowSet.clearParameters() definition code for javax.sql.rowset.BaseRowSet.clearParameters() ()
          Clears all of the current parameter values in this RowSet object's internal representation of the parameters to be set in this RowSet object's command when it is executed.
 String sample code for java.lang.String definition code for java.lang.String getCommand sample code for javax.sql.rowset.BaseRowSet.getCommand() definition code for javax.sql.rowset.BaseRowSet.getCommand() ()
          Retrieves the SQL query that is the command for this RowSet object.
 int getConcurrency sample code for javax.sql.rowset.BaseRowSet.getConcurrency() definition code for javax.sql.rowset.BaseRowSet.getConcurrency() ()
          Returns the concurrency for this RowSet object.
 String sample code for java.lang.String definition code for java.lang.String getDataSourceName sample code for javax.sql.rowset.BaseRowSet.getDataSourceName() definition code for javax.sql.rowset.BaseRowSet.getDataSourceName() ()
          Returns the logical name that when supplied to a naming service that uses the Java Naming and Directory Interface (JNDI) API, will retrieve a javax.sql.DataSource object.
 boolean getEscapeProcessing sample code for javax.sql.rowset.BaseRowSet.getEscapeProcessing() definition code for javax.sql.rowset.BaseRowSet.getEscapeProcessing() ()
          Ascertains whether escape processing is enabled for this RowSet object.
 int getFetchDirection sample code for javax.sql.rowset.BaseRowSet.getFetchDirection() definition code for javax.sql.rowset.BaseRowSet.getFetchDirection() ()
          Retrieves this RowSet object's current setting for the fetch direction.
 int getFetchSize sample code for javax.sql.rowset.BaseRowSet.getFetchSize() definition code for javax.sql.rowset.BaseRowSet.getFetchSize() ()
          Returns the fetch size for this RowSet object.
 int getMaxFieldSize sample code for javax.sql.rowset.BaseRowSet.getMaxFieldSize() definition code for javax.sql.rowset.BaseRowSet.getMaxFieldSize() ()
          Retrieves the maximum number of bytes that can be used for a column value in this RowSet object.
 int getMaxRows sample code for javax.sql.rowset.BaseRowSet.getMaxRows() definition code for javax.sql.rowset.BaseRowSet.getMaxRows() ()
          Retrieves the maximum number of rows that this RowSet object may contain.
 Object sample code for java.lang.Object definition code for java.lang.Object [] getParams sample code for javax.sql.rowset.BaseRowSet.getParams() definition code for javax.sql.rowset.BaseRowSet.getParams() ()
          Retrieves an array containing the parameter values (both Objects and primitives) that have been set for this RowSet object's command and throws an SQLException object if all parameters have not been set.
 String sample code for java.lang.String definition code for java.lang.String getPassword sample code for javax.sql.rowset.BaseRowSet.getPassword() definition code for javax.sql.rowset.BaseRowSet.getPassword() ()
          Returns the password used to create a database connection for this RowSet object.
 int getQueryTimeout sample code for javax.sql.rowset.BaseRowSet.getQueryTimeout() definition code for javax.sql.rowset.BaseRowSet.getQueryTimeout() ()
          Retrieves the maximum number of seconds the driver will wait for a query to execute.
 boolean getShowDeleted sample code for javax.sql.rowset.BaseRowSet.getShowDeleted() definition code for javax.sql.rowset.BaseRowSet.getShowDeleted() ()
          Retrieves a boolean indicating whether rows marked for deletion appear in the set of current rows.
 int getTransactionIsolation sample code for javax.sql.rowset.BaseRowSet.getTransactionIsolation() definition code for javax.sql.rowset.BaseRowSet.getTransactionIsolation() ()
          Returns the transaction isolation property for this RowSet object's connection.
 int getType sample code for javax.sql.rowset.BaseRowSet.getType() definition code for javax.sql.rowset.BaseRowSet.getType() ()
          Returns the type of 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.BaseRowSet.getTypeMap() definition code for javax.sql.rowset.BaseRowSet.getTypeMap() ()
          Retrieves the type map associated with the Connection object for this RowSet object.
 String sample code for java.lang.String definition code for java.lang.String getUrl sample code for javax.sql.rowset.BaseRowSet.getUrl() definition code for javax.sql.rowset.BaseRowSet.getUrl() ()
          Retrieves the JDBC URL that this RowSet object's javax.sql.Reader object uses to make a connection with a relational database using a JDBC technology-enabled driver.
 String sample code for java.lang.String definition code for java.lang.String getUsername sample code for javax.sql.rowset.BaseRowSet.getUsername() definition code for javax.sql.rowset.BaseRowSet.getUsername() ()
          Returns the user name used to create a database connection.
protected  void initParams sample code for javax.sql.rowset.BaseRowSet.initParams() definition code for javax.sql.rowset.BaseRowSet.initParams() ()
          Performs the necessary internal configurations and initializations to allow any JDBC RowSet implementation to start using the standard facilities provided by a BaseRowSet instance.
 boolean isReadOnly sample code for javax.sql.rowset.BaseRowSet.isReadOnly() definition code for javax.sql.rowset.BaseRowSet.isReadOnly() ()
          Returns a boolean indicating whether this RowSet object is read-only.
protected  void notifyCursorMoved sample code for javax.sql.rowset.BaseRowSet.notifyCursorMoved() definition code for javax.sql.rowset.BaseRowSet.notifyCursorMoved() ()
          Notifies all of the listeners registered with this RowSet object that its cursor has moved.
protected  void notifyRowChanged sample code for javax.sql.rowset.BaseRowSet.notifyRowChanged() definition code for javax.sql.rowset.BaseRowSet.notifyRowChanged() ()
          Notifies all of the listeners registered with this RowSet object that one of its rows has changed.
protected  void notifyRowSetChanged sample code for javax.sql.rowset.BaseRowSet.notifyRowSetChanged() definition code for javax.sql.rowset.BaseRowSet.notifyRowSetChanged() ()
          Notifies all of the listeners registered with this RowSet object that its entire contents have changed.
 void removeRowSetListener sample code for javax.sql.rowset.BaseRowSet.removeRowSetListener(javax.sql.RowSetListener) definition code for javax.sql.rowset.BaseRowSet.removeRowSetListener(javax.sql.RowSetListener) (RowSetListener sample code for javax.sql.RowSetListener definition code for javax.sql.RowSetListener  listener)
          Removes the designated object from this RowSet object's list of listeners.
 void setArray sample code for javax.sql.rowset.BaseRowSet.setArray(int, java.sql.Array) definition code for javax.sql.rowset.BaseRowSet.setArray(int, java.sql.Array) (int parameterIndex, Array sample code for java.sql.Array definition code for java.sql.Array  array)
          Sets the designated parameter to an Array object in the Java programming language.
 void setAsciiStream sample code for javax.sql.rowset.BaseRowSet.setAsciiStream(int, java.io.InputStream, int) definition code for javax.sql.rowset.BaseRowSet.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 to the given java.io.InputStream object, which will have the specified number of bytes.
 void setBigDecimal sample code for javax.sql.rowset.BaseRowSet.setBigDecimal(int, java.math.BigDecimal) definition code for javax.sql.rowset.BaseRowSet.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 to the given java.lang.BigDecimal value.
 void setBinaryStream sample code for javax.sql.rowset.BaseRowSet.setBinaryStream(int, java.io.InputStream, int) definition code for javax.sql.rowset.BaseRowSet.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 to the given java.io.InputStream object, which will have the specified number of bytes.
 void setBlob sample code for javax.sql.rowset.BaseRowSet.setBlob(int, java.sql.Blob) definition code for javax.sql.rowset.BaseRowSet.setBlob(int, java.sql.Blob) (int parameterIndex, Blob sample code for java.sql.Blob definition code for java.sql.Blob  x)
          Sets the designated parameter to the given Blob object in the Java programming language.
 void setBoolean sample code for javax.sql.rowset.BaseRowSet.setBoolean(int, boolean) definition code for javax.sql.rowset.BaseRowSet.setBoolean(int, boolean) (int parameterIndex, boolean x)
          Sets the designated parameter to the given boolean in the Java programming language.
 void setByte sample code for javax.sql.rowset.BaseRowSet.setByte(int, byte) definition code for javax.sql.rowset.BaseRowSet.setByte(int, byte) (int parameterIndex, byte x)
          Sets the designated parameter to the given byte in the Java programming language.
 void setBytes sample code for javax.sql.rowset.BaseRowSet.setBytes(int, byte[]) definition code for javax.sql.rowset.BaseRowSet.setBytes(int, byte[]) (int parameterIndex, byte[] x)
          Sets the designated parameter to the given array of bytes.
 void setCharacterStream sample code for javax.sql.rowset.BaseRowSet.setCharacterStream(int, java.io.Reader, int) definition code for javax.sql.rowset.BaseRowSet.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 to the given java.io.Reader object, which will have the specified number of characters.
 void setClob sample code for javax.sql.rowset.BaseRowSet.setClob(int, java.sql.Clob) definition code for javax.sql.rowset.BaseRowSet.setClob(int, java.sql.Clob) (int parameterIndex, Clob sample code for java.sql.Clob definition code for java.sql.Clob  x)
          Sets the designated parameter to the given Clob object in the Java programming language.
 void setCommand sample code for javax.sql.rowset.BaseRowSet.setCommand(java.lang.String) definition code for javax.sql.rowset.BaseRowSet.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 String object and clears the parameters, if any, that were set for the previous command.
 void setConcurrency sample code for javax.sql.rowset.BaseRowSet.setConcurrency(int) definition code for javax.sql.rowset.BaseRowSet.setConcurrency(int) (int concurrency)
          Sets the concurrency for this RowSet object to the specified concurrency.
 void setDataSourceName sample code for javax.sql.rowset.BaseRowSet.setDataSourceName(java.lang.String) definition code for javax.sql.rowset.BaseRowSet.setDataSourceName(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Sets the DataSource name property for this RowSet object to the given logical name and sets this RowSet object's Url property to null.
 void setDate sample code for javax.sql.rowset.BaseRowSet.setDate(int, java.sql.Date) definition code for javax.sql.rowset.BaseRowSet.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 to the given java.sql.Date value.
 void setDate sample code for javax.sql.rowset.BaseRowSet.setDate(int, java.sql.Date, java.util.Calendar) definition code for javax.sql.rowset.BaseRowSet.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 to the given java.sql.Date object.
 void setDouble sample code for javax.sql.rowset.BaseRowSet.setDouble(int, double) definition code for javax.sql.rowset.BaseRowSet.setDouble(int, double) (int parameterIndex, double x)
          Sets the designated parameter to the given double in the Java programming language.
 void setEscapeProcessing sample code for javax.sql.rowset.BaseRowSet.setEscapeProcessing(boolean) definition code for javax.sql.rowset.BaseRowSet.setEscapeProcessing(boolean) (boolean enable)
          Sets to the given boolean whether or not the driver will scan for escape syntax and do escape substitution before sending SQL statements to the database.
 void setFetchDirection sample code for javax.sql.rowset.BaseRowSet.setFetchDirection(int) definition code for javax.sql.rowset.BaseRowSet.setFetchDirection(int) (int direction)
          Gives the driver a performance hint as to the direction in which the rows in this RowSet object will be processed.
 void setFetchSize sample code for javax.sql.rowset.BaseRowSet.setFetchSize(int) definition code for javax.sql.rowset.BaseRowSet.setFetchSize(int) (int rows)
          Sets the fetch size for this RowSet object to the given number of rows.
 void setFloat sample code for javax.sql.rowset.BaseRowSet.setFloat(int, float) definition code for javax.sql.rowset.BaseRowSet.setFloat(int, float) (int parameterIndex, float x)
          Sets the designated parameter to the given float in the Java programming language.
 void setInt sample code for javax.sql.rowset.BaseRowSet.setInt(int, int) definition code for javax.sql.rowset.BaseRowSet.setInt(int, int) (int parameterIndex, int x)
          Sets the designated parameter to an int in the Java programming language.
 void setLong sample code for javax.sql.rowset.BaseRowSet.setLong(int, long) definition code for javax.sql.rowset.BaseRowSet.setLong(int, long) (int parameterIndex, long x)
          Sets the designated parameter to the given long in the Java programming language.
 void setMaxFieldSize sample code for javax.sql.rowset.BaseRowSet.setMaxFieldSize(int) definition code for javax.sql.rowset.BaseRowSet.setMaxFieldSize(int) (int max)
          Sets the maximum number of bytes that can be used for a column value in this RowSet object to the given number.
 void setMaxRows sample code for javax.sql.rowset.BaseRowSet.setMaxRows(int) definition code for javax.sql.rowset.BaseRowSet.setMaxRows(int) (int max)
          Sets the maximum number of rows that this RowSet object may contain to the given number.
 void setNull sample code for javax.sql.rowset.BaseRowSet.setNull(int, int) definition code for javax.sql.rowset.BaseRowSet.setNull(int, int) (int parameterIndex, int sqlType)
          Sets the designated parameter to SQL NULL.
 void setNull sample code for javax.sql.rowset.BaseRowSet.setNull(int, int, java.lang.String) definition code for javax.sql.rowset.BaseRowSet.setNull(int, int, java.lang.String) (int parameterIndex, int sqlType, String sample code for java.lang.String definition code for java.lang.String  typeName)
          Sets the designated parameter to SQL NULL.
 void setObject sample code for javax.sql.rowset.BaseRowSet.setObject(int, java.lang.Object) definition code for javax.sql.rowset.BaseRowSet.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 to an Object in the Java programming language.
 void setObject sample code for javax.sql.rowset.BaseRowSet.setObject(int, java.lang.Object, int) definition code for javax.sql.rowset.BaseRowSet.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 value of the designated parameter with the given Object value.
 void setObject sample code for javax.sql.rowset.BaseRowSet.setObject(int, java.lang.Object, int, int) definition code for javax.sql.rowset.BaseRowSet.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 to an Object in the Java programming language.
 void setPassword sample code for javax.sql.rowset.BaseRowSet.setPassword(java.lang.String) definition code for javax.sql.rowset.BaseRowSet.setPassword(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  pass)
          Sets the password used to create a database connection for this RowSet object to the given String object.
 void setQueryTimeout sample code for javax.sql.rowset.BaseRowSet.setQueryTimeout(int) definition code for javax.sql.rowset.BaseRowSet.setQueryTimeout(int) (int seconds)
          Sets to the given number the maximum number of seconds the driver will wait for a query to execute.
 void setReadOnly sample code for javax.sql.rowset.BaseRowSet.setReadOnly(boolean) definition code for javax.sql.rowset.BaseRowSet.setReadOnly(boolean) (boolean value)
          Sets this RowSet object's readOnly property to the given boolean.
 void setRef sample code for javax.sql.rowset.BaseRowSet.setRef(int, java.sql.Ref) definition code for javax.sql.rowset.BaseRowSet.setRef(int, java.sql.Ref) (int parameterIndex, Ref sample code for java.sql.Ref definition code for java.sql.Ref  ref)
          Sets the designated parameter to the given Ref object in the Java programming language.
 void setShort sample code for javax.sql.rowset.BaseRowSet.setShort(int, short) definition code for javax.sql.rowset.BaseRowSet.setShort(int, short) (int parameterIndex, short x)
          Sets the designated parameter to the given short in the Java programming language.
 void setShowDeleted sample code for javax.sql.rowset.BaseRowSet.setShowDeleted(boolean) definition code for javax.sql.rowset.BaseRowSet.setShowDeleted(boolean) (boolean value)
          Sets the property showDeleted to the given boolean value, which determines whether rows marked for deletion appear in the set of current rows.
 void setString sample code for javax.sql.rowset.BaseRowSet.setString(int, java.lang.String) definition code for javax.sql.rowset.BaseRowSet.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 to the given String value.
 void setTime sample code for javax.sql.rowset.BaseRowSet.setTime(int, java.sql.Time) definition code for javax.sql.rowset.BaseRowSet.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 to the given java.sql.Time value.
 void setTime sample code for javax.sql.rowset.BaseRowSet.setTime(int, java.sql.Time, java.util.Calendar) definition code for javax.sql.rowset.BaseRowSet.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 to the given java.sql.Time object.
 void setTimestamp sample code for javax.sql.rowset.BaseRowSet.setTimestamp(int, java.sql.Timestamp) definition code for javax.sql.rowset.BaseRowSet.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 to the given java.sql.Timestamp value.
 void setTimestamp sample code for javax.sql.rowset.BaseRowSet.setTimestamp(int, java.sql.Timestamp, java.util.Calendar) definition code for javax.sql.rowset.BaseRowSet.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 to the given java.sql.Timestamp object.
 void setTransactionIsolation sample code for javax.sql.rowset.BaseRowSet.setTransactionIsolation(int) definition code for javax.sql.rowset.BaseRowSet.setTransactionIsolation(int) (int level)
          Sets the transaction isolation property for this JDBC RowSet object to the given constant.
 void setType sample code for javax.sql.rowset.BaseRowSet.setType(int) definition code for javax.sql.rowset.BaseRowSet.setType(int) (int type)
          Sets the type for this RowSet object to the specified type.
 void setTypeMap sample code for javax.sql.rowset.BaseRowSet.setTypeMap(java.util.Map) definition code for javax.sql.rowset.BaseRowSet.setTypeMap(java.util.Map) (Map sample code for java.util.Map definition code for java.util.Map <String sample code for java.lang.String