API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.sql.rowset. BaseRowSet View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      BaseRowSet
Implements
 Serializable
 Cloneable
Subclasses
Description
publicabstract abstract class BaseRowSet
  An abstract class providing a RowSet object with its basic functionality.
See also:   
Constructors
public BaseRowSet ()
  Constructs a new BaseRowSet object initialized with a default Vector object for its listeners field.
Methods
Hide/Show inherited methods
public void addRowSetListener (RowSetListener listener)
  The listener will be notified whenever an event occurs on this RowSet object.
public void clearParameters () throws SQLException
  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.
public String getCommand ()
  Retrieves the SQL query that is the command for this RowSet object.
public int getConcurrency () throws SQLException
  Returns the concurrency for this RowSet object.
public String 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.
public boolean getEscapeProcessing () throws SQLException
  Ascertains whether escape processing is enabled for this RowSet object.
public int getFetchDirection () throws SQLException
  Retrieves this RowSet object's current setting for the fetch direction.
public int getFetchSize () throws SQLException
  Returns the fetch size for this RowSet object.
public int getMaxFieldSize () throws SQLException
  Retrieves the maximum number of bytes that can be used for a column value in this RowSet object.
public int getMaxRows () throws SQLException
  Retrieves the maximum number of rows that this RowSet object may contain.
public Object getParams () throws SQLException
  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.
public String getPassword ()
  Returns the password used to create a database connection for this RowSet object.
public int getQueryTimeout () throws SQLException
  Retrieves the maximum number of seconds the driver will wait for a query to execute.
public boolean getShowDeleted () throws SQLException
  Retrieves a boolean indicating whether rows marked for deletion appear in the set of current rows.
public int getTransactionIsolation ()
  Returns the transaction isolation property for this RowSet object's connection.
public int getType () throws SQLException
  Returns the type of this RowSet object.
public Map<String, Class<Object>> getTypeMap ()
  Retrieves the type map associated with the Connection object for this RowSet object.
public String getUrl () throws SQLException
  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.
public String getUsername ()
  Returns the user name used to create a database connection.
protected void 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.
public boolean isReadOnly ()
  Returns a boolean indicating whether this RowSet object is read-only.
protected void notifyCursorMoved () throws SQLException
  Notifies all of the listeners registered with this RowSet object that its cursor has moved.
protected void notifyRowChanged () throws SQLException
  Notifies all of the listeners registered with this RowSet object that one of its rows has changed.
protected void notifyRowSetChanged () throws SQLException
  Notifies all of the listeners registered with this RowSet object that its entire contents have changed.
public void removeRowSetListener (RowSetListener listener)
  Removes the designated object from this RowSet object's list of listeners.
public void setArray (int parameterIndex, Array array) throws SQLException
  Sets the designated parameter to an Array object in the Java programming language.
public void setAsciiStream (int parameterIndex, InputStream x) throws SQLException
  Sets the designated parameter in this RowSet object's command to the given input stream.
public void setAsciiStream (int parameterIndex, InputStream x, int length) throws SQLException
  Sets the designated parameter to the given java.io.InputStream object, which will have the specified number of bytes.
public void setAsciiStream (String parameterName, InputStream x) throws SQLException
  Sets the designated parameter to the given input stream.
public void setAsciiStream (String parameterName, InputStream x, int length) throws SQLException
  Sets the designated parameter to the given input stream, which will have the specified number of bytes.
public void setBigDecimal (int parameterIndex, BigDecimal x) throws SQLException
  Sets the designated parameter to the given java.lang.BigDecimal value.
public void setBigDecimal (String parameterName, BigDecimal x) throws SQLException
  Sets the designated parameter to the given java.math.BigDecimal value.
public void setBinaryStream (int parameterIndex, InputStream x) throws SQLException
  Sets the designated parameter in this RowSet object's command to the given input stream.
public void setBinaryStream (int parameterIndex, InputStream x, int length) throws SQLException
  Sets the designated parameter to the given java.io.InputStream object, which will have the specified number of bytes.
public void setBinaryStream (String parameterName, InputStream x) throws SQLException
  Sets the designated parameter to the given input stream.
public void setBinaryStream (String parameterName, InputStream x, int length) throws SQLException
  Sets the designated parameter to the given input stream, which will have the specified number of bytes.
public void setBlob (int parameterIndex, Blob x) throws SQLException
  Sets the designated parameter to the given Blob object in the Java programming language.
public void setBlob (int parameterIndex, InputStream inputStream) throws SQLException
  Sets the designated parameter to a InputStream object.
public void setBlob (int parameterIndex, InputStream inputStream, long length) throws SQLException
  Sets the designated parameter to a InputStream object.
public void setBlob (String parameterName, Blob x) throws SQLException
  Sets the designated parameter to the given java.sql.Blob object.
public void setBlob (String parameterName, InputStream inputStream) throws SQLException
  Sets the designated parameter to a InputStream object.
public void setBlob (String parameterName, InputStream inputStream, long length) throws SQLException
  Sets the designated parameter to a InputStream object.
public void setBoolean (int parameterIndex, boolean x) throws SQLException
  Sets the designated parameter to the given boolean in the Java programming language.
public void setBoolean (String parameterName, boolean x) throws SQLException
  Sets the designated parameter to the given Java boolean value.
public void setByte (int parameterIndex, byte x) throws SQLException
  Sets the designated parameter to the given byte in the Java programming language.
public void setByte (String parameterName, byte x) throws SQLException
  Sets the designated parameter to the given Java byte value.
public void setBytes (int parameterIndex, byte[] x) throws SQLException
  Sets the designated parameter to the given array of bytes.
public void setBytes (String parameterName, byte[] x) throws SQLException
  Sets the designated parameter to the given Java array of bytes.
public void setCharacterStream (int parameterIndex, Reader reader) throws SQLException
  Sets the designated parameter in this RowSet object's command to the given Reader object.
public void setCharacterStream (int parameterIndex, Reader reader, int length) throws SQLException
  Sets the designated parameter to the given java.io.Reader object, which will have the specified number of characters.
public void setCharacterStream (String parameterName, Reader reader) throws SQLException
  Sets the designated parameter to the given Reader object.
public void setCharacterStream (String parameterName, Reader reader, int length) throws SQLException
  Sets the designated parameter to the given Reader object, which is the given number of characters long.
public void setClob (int parameterIndex, Clob x) throws SQLException
  Sets the designated parameter to the given Clob object in the Java programming language.
public void setClob (int parameterIndex, Reader reader) throws SQLException
  Sets the designated parameter to a Reader object.
public void setClob (int parameterIndex, Reader reader, long length) throws SQLException
  Sets the designated parameter to a Reader object.
public void setClob (String parameterName, Clob x) throws SQLException
  Sets the designated parameter to the given java.sql.Clob object.
public void setClob (String parameterName, Reader reader) throws SQLException
  Sets the designated parameter to a Reader object.
public void setClob (String parameterName, Reader reader, long length) throws SQLException
  Sets the designated parameter to a Reader object.
public void setCommand (String cmd) throws SQLException
  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.
public void setConcurrency (int concurrency) throws SQLException
  Sets the concurrency for this RowSet object to the specified concurrency.
public void setDataSourceName (String name) throws SQLException
  Sets the DataSource name property for this RowSet object to the given logical name and sets this RowSet object's Url property to null.
public void setDate (int parameterIndex, Date x) throws SQLException
  Sets the designated parameter to the given java.sql.Date value.
public void setDate (int parameterIndex, Date x, Calendar cal) throws SQLException
  Sets the designated parameter to the given java.sql.Date object.
public void setDate (String parameterName, Date x) throws SQLException
  Sets the designated parameter to the given java.sql.Date value using the default time zone of the virtual machine that is running the application.
public void setDate (String parameterName, Date x, Calendar cal) throws SQLException
  Sets the designated parameter to the given java.sql.Date value, using the given Calendar object.
public void setDouble (int parameterIndex, double x) throws SQLException
  Sets the designated parameter to the given double in the Java programming language.
public void setDouble (String parameterName, double x) throws SQLException
  Sets the designated parameter to the given Java double value.
public void setEscapeProcessing (boolean enable) throws SQLException
  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.
public void setFetchDirection (int direction) throws SQLException
  Gives the driver a performance hint as to the direction in which the rows in this RowSet object will be processed.
public void setFetchSize (int rows) throws SQLException
  Sets the fetch size for this RowSet object to the given number of rows.
public void setFloat (int parameterIndex, float x) throws SQLException
  Sets the designated parameter to the given float in the Java programming language.
public void setFloat (String parameterName, float x) throws SQLException
  Sets the designated parameter to the given Java float value.
public void setInt (int parameterIndex, int x) throws SQLException
  Sets the designated parameter to an int in the Java programming language.
public void setInt (String parameterName, int x) throws SQLException
  Sets the designated parameter to the given Java int value.
public void setLong (int parameterIndex, long x) throws SQLException
  Sets the designated parameter to the given long in the Java programming language.
public void setLong (String parameterName, long x) throws SQLException
  Sets the designated parameter to the given Java long value.
public void setMaxFieldSize (int max) throws SQLException
  Sets the maximum number of bytes that can be used for a column value in this RowSet object to the given number.
public void setMaxRows (int max) throws SQLException
  Sets the maximum number of rows that this RowSet object may contain to the given number.
public void setNCharacterStream (int parameterIndex, Reader value) throws SQLException
  Sets the designated parameter in this RowSet object's command to a Reader object.
public void setNCharacterStream (int parameterIndex, Reader value, long length) throws SQLException
  Sets the designated parameter to a Reader object.
public void setNCharacterStream (String parameterName, Reader value) throws SQLException
  Sets the designated parameter to a Reader object.
public void setNCharacterStream (String parameterName, Reader value, long length) throws SQLException
  Sets the designated parameter to a Reader object.
public void setNClob (int parameterIndex, NClob value) throws SQLException
  Sets the designated parameter to a java.sql.NClob object.
public void setNClob (int parameterIndex, Reader reader) throws SQLException
  Sets the designated parameter to a Reader object.
public void setNClob (int parameterIndex, Reader reader, long length) throws SQLException
  Sets the designated parameter to a Reader object.
public void setNClob (String parameterName, NClob value) throws SQLException
  Sets the designated parameter to a java.sql.NClob object.
public void setNClob (String parameterName, Reader reader) throws SQLException
  Sets the designated parameter to a Reader object.
public void setNClob (String parameterName, Reader reader, long length) throws SQLException
  Sets the designated parameter to a Reader object.
public void setNString (int parameterIndex, String value) throws SQLException
  Sets the designated paramter to the given String object.
public void setNString (String parameterName, String value) throws SQLException
  Sets the designated paramter to the given String object.
public void setNull (int parameterIndex, int sqlType) throws SQLException
  Sets the designated parameter to SQL NULL.
public void setNull (int parameterIndex, int sqlType, String typeName) throws SQLException
  Sets the designated parameter to SQL NULL.
public void setNull (String parameterName, int sqlType) throws SQLException
  Sets the designated parameter to SQL NULL.
public void setNull (String parameterName, int sqlType, String typeName) throws SQLException
  Sets the designated parameter to SQL NULL.
public void setObject (int parameterIndex, Object x) throws SQLException
  Sets the designated parameter to an Object in the Java programming language.
public void setObject (int parameterIndex, Object x, int targetSqlType) throws SQLException
  Sets the value of the designated parameter with the given Object value.
public void setObject (int parameterIndex, Object x, int targetSqlType, int scale) throws SQLException
  Sets the designated parameter to an Object in the Java programming language.
public void setObject (String parameterName, Object x) throws SQLException
  Sets the value of the designated parameter with the given object.
public void setObject (String parameterName, Object x, int targetSqlType) throws SQLException
  Sets the value of the designated parameter with the given object.
public void setObject (String parameterName, Object x, int targetSqlType, int scale) throws SQLException
  Sets the value of the designated parameter with the given object.
public void setPassword (String pass)
  Sets the password used to create a database connection for this RowSet object to the given String object.
public void setQueryTimeout (int seconds) throws SQLException
  Sets to the given number the maximum number of seconds the driver will wait for a query to execute.
public void setReadOnly (boolean value)
  Sets this RowSet object's readOnly property to the given boolean.
public void setRef (int parameterIndex, Ref ref) throws SQLException
  Sets the designated parameter to the given Ref object in the Java programming language.
public void setRowId (int parameterIndex, RowId x) throws SQLException
  Sets the designated parameter to the given java.sql.RowId object.
public void setRowId (String parameterName, RowId x) throws SQLException
  Sets the designated parameter to the given java.sql.RowId object.
public void setShort (int parameterIndex, short x) throws SQLException
  Sets the designated parameter to the given short in the Java programming language.
public void setShort (String parameterName, short x) throws SQLException
  Sets the designated parameter to the given Java short value.
public void setShowDeleted (boolean value) throws SQLException
  Sets the property showDeleted to the given boolean value, which determines whether rows marked for deletion appear in the set of current rows.
public void setSQLXML (int parameterIndex, SQLXML xmlObject) throws SQLException
  Sets the designated parameter to the given java.sql.SQLXML object.
public void setSQLXML (String parameterName, SQLXML xmlObject) throws SQLException
  Sets the designated parameter to the given java.sql.SQLXML object.
public void setString (int parameterIndex, String x) throws SQLException
  Sets the designated parameter to the given String value.
public void setString (String parameterName, String x) throws SQLException
  Sets the designated parameter to the given Java String value.
public void setTime (int parameterIndex, Time x) throws SQLException
  Sets the designated parameter to the given java.sql.Time value.
public void setTime (int parameterIndex, Time x, Calendar cal) throws SQLException
  Sets the designated parameter to the given java.sql.Time object.
public void setTime (String parameterName, Time x) throws SQLException
  Sets the designated parameter to the given java.sql.Time value.
public void setTime (String parameterName, Time x, Calendar cal) throws SQLException
  Sets the designated parameter to the given java.sql.Time value, using the given Calendar object.
public void setTimestamp (int parameterIndex, Timestamp x) throws SQLException
  Sets the designated parameter to the given java.sql.Timestamp value.
public void setTimestamp (int parameterIndex, Timestamp x, Calendar cal) throws SQLException
  Sets the designated parameter to the given java.sql.Timestamp object.
public void setTimestamp (String parameterName, Timestamp x) throws SQLException
  Sets the designated parameter to the given java.sql.Timestamp value.
public void setTimestamp (String parameterName, Timestamp x, Calendar cal) throws SQLException
  Sets the designated parameter to the given java.sql.Timestamp value, using the given Calendar object.
public void setTransactionIsolation (int level) throws SQLException
  Sets the transaction isolation property for this JDBC RowSet object to the given constant.
public void setType (int type) throws SQLException
  Sets the type for this RowSet object to the specified type.
public void setTypeMap (Map<String, Class<Object>> map)
  Installs the given java.util.Map object as the type map associated with the Connection object for this RowSet object.
public void setUnicodeStream (int parameterIndex, InputStream x, int length) throws SQLException
  Sets the designated parameter to the given java.io.InputStream object, which will have the specified number of bytes.
public void setURL (int parameterIndex, URL x) throws SQLException
  Sets the designated parameter to the given java.net.URL value.
public void setUrl (String url) throws SQLException
  Sets the Url property for this RowSet object to the given String object and sets the dataSource name property to null.
public void setUsername (String name)
  Sets the username property for this RowSet object to the given user name.
Fields
Hide/Show inherited fields
publicfinalstatic int ASCII_STREAM_PARAM = "2"
  A constant indicating to a RowSetReaderImpl object that a given parameter is an ASCII stream.
protected InputStream asciiStream
The InputStream object that will be returned by the method getAsciiStream, which is specified in the ResultSet interface.
publicfinalstatic int BINARY_STREAM_PARAM = "1"
  A constant indicating to a RowSetReaderImpl object that a given parameter is a binary stream.
protected InputStream binaryStream
The InputStream object that will be returned by the method getBinaryStream, which is specified in the ResultSet interface.
protected Reader charStream
The Reader object that will be returned by the method getCharacterStream, which is specified in the ResultSet interface.
pack-privatefinalstatic long serialVersionUID = "4886719666485113312"
publicfinalstatic int UNICODE_STREAM_PARAM = "0"
  A constant indicating to a RowSetReaderImpl object that a given parameter is a Unicode stream.
protected InputStream unicodeStream
The InputStream object that will be returned by the method getUnicodeStream, which is specified in the ResultSet interface.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar