BEA Systems, Inc.

weblogic.jdbc.rowset
Class JdbcRowSetImpl

java.lang.Object
  extended by weblogic.jdbc.rowset.JdbcRowSetImpl
All Implemented Interfaces:
ResultSet, RowSet, JdbcRowSet, Joinable

public class JdbcRowSetImpl
extends Object
implements JdbcRowSet

JdbcRowSet is an implementation of the JDBC RowSet API (javax.sql.RowSet). JdbcRowSet is a wrapper around a ResultSet object that makes it possible to use the result set as a JavaBeans component. Thus, a JdbcRowSet can be one of the beans that a tool makes available for creating a component-based application. Because a JdbcRowSet object is a connected rowset (that is, it continually maintains its connection to the database using a JDBC technology-enabled driver) it effectively makes the driver a JavaBeans component.


Field Summary
 
Fields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
 
Constructor Summary
JdbcRowSetImpl()
          Constructs a default JdbcRowSet object.
JdbcRowSetImpl(String url, String user, String password)
           
 
Method Summary
 boolean absolute(int i)
          Moves the cursor to the given row number in this ResultSet object
 void addRowSetListener(RowSetListener rsl)
          Registers the given listener so that it will be notified of events that occur on this RowSet object
 void afterLast()
          Moves the cursor to the end of this ResultSet object, just after the last row
 void beforeFirst()
          Moves the cursor to the front of this ResultSet object, just before the first row
 void cancelRowUpdates()
          Cancels the updates made to the current row in this ResultSet object and notifies listeners that a row has changed.
 void clearParameters()
          Clears the parameters set for this RowSet object's command.
 void clearWarnings()
          Clears all warnings reported on this rowset's ResultSet object
 void close()
          Releases this rowset's ResultSet object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed
 void commit()
          Commits all updates in this JdbcRowSet object by wrapping the internal Connection object and calling its commit method.
 void deleteRow()
          Deletes the current row from this rowset's ResultSet object and from the underlying database and also notifies listeners that a row has changed
 void execute()
          Creates the internal ResultSet object for which this JdbcRowSet object is a wrapper, effectively making the result set a JavaBeans component.
 boolean first()
          Moves the cursor to the first row in this ResultSet object
 Array getArray(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as an Array object in the Java programming language
 Array getArray(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as an Array object in the Java programming language
 InputStream getAsciiStream(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as a stream of ASCII characters
 InputStream getAsciiStream(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a stream of ASCII characters
 boolean getAutoCommit()
          Returns the auto-commit status with this JdbcRowSet
 BigDecimal getBigDecimal(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.math.BigDecimal with full precision.
 BigDecimal getBigDecimal(int i, int scale)
          Deprecated.  
 BigDecimal getBigDecimal(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.math.BigDecimal with full precision.
 BigDecimal getBigDecimal(String s, int n)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.math.BigDecimal with full precision.
 InputStream getBinaryStream(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as a binary stream of uninterpreted bytes
 InputStream getBinaryStream(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a binary stream of uninterpreted bytes
 Blob getBlob(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as a Blob object in the Java programming language
 Blob getBlob(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a Blob object in the Java programming language
 boolean getBoolean(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as a boolean in the Java programming language.
 boolean getBoolean(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a boolean in the Java programming language.
 byte getByte(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as a byte in the Java programming language.
 byte getByte(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a byte in the Java programming language.
 byte[] getBytes(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as a byte array in the Java programming language.
 byte[] getBytes(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a byte array in the Java programming language.
 Reader getCharacterStream(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object.
 Reader getCharacterStream(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object.
 Clob getClob(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as a Clob object in the Java programming language
 Clob getClob(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a Clob object in the Java programming language
 String getCommand()
          Retrieves this RowSet object's command property
 int getConcurrency()
          Retrieves the concurrency mode of this ResultSet object.
 String getCursorName()
          Gets the name of the SQL cursor used by this rowset's ResultSet object
 String getDataSourceName()
          Retrieves the logical name that identifies the data source for this RowSet object
 Date getDate(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language
 Date getDate(int i, Calendar c)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language
 Date getDate(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language
 Date getDate(String s, Calendar c)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language
 double getDouble(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as a double in the Java programming language.
 double getDouble(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a double in the Java programming language.
 boolean getEscapeProcessing()
          Retrieves whether escape processing is enabled for this RowSet object.
 int getFetchDirection()
          Retrieves the fetch direction for this ResultSet object
 int getFetchSize()
          Retrieves the fetch size for this ResultSet object.
 float getFloat(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as a float in the Java programming language.
 float getFloat(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a float in the Java programming language.
 int getInt(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as an int in the Java programming language.
 int getInt(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as an int in the Java programming language.
 long getLong(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as a long in the Java programming language
 long getLong(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a long in the Java programming language
 int[] getMatchColumnIndexes()
          Retrieves the column id as int array that was set using setMatchColumn(int []) for this rowset
 String[] getMatchColumnNames()
          Retrieves the column name as String array that was set using setMatchColumn(String []) for this rowset
 int getMaxFieldSize()
          Retrieves the maximum number of bytes that may be returned for certain column values
 int getMaxRows()
          Retrieves the maximum number of rows that this RowSet object can contain
 ResultSetMetaData getMetaData()
          Retrieves the number, types and properties of this rowset's ResultSet object's columns.
 Object getObject(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language.
 Object getObject(int i, Map m)
          Retrieves the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language.
 Object getObject(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language.
 Object getObject(String s, Map m)
          Retrieves the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language.
 String getPassword()
          Retrieves the password used to create a database connection.
 int getQueryTimeout()
          Retrieves the maximum number of seconds the driver will wait for a statement to execute
 Ref getRef(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as a Ref object in the Java programming language
 Ref getRef(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a Ref object in the Java programming language
 int getRow()
          Retrieves the current row number
 RowSetWarning getRowSetWarnings()
          Return the RowSetWarning object for the current row of a JdbcRowSetImpl
 short getShort(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as a short in the Java programming language.
 short getShort(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a short in the Java programming language.
 boolean getShowDeleted()
          See javax.sql.rowset.JdbcRowSet
 Statement getStatement()
          Returns the Statement object that produced this ResultSet object.
 String getString(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.
 String getString(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.
 Time getTime(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.
 Time getTime(int i, Calendar c)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.
 Time getTime(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.
 Time getTime(String s, Calendar c)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.
 Timestamp getTimestamp(int i)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object
 Timestamp getTimestamp(int i, Calendar c)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object
 Timestamp getTimestamp(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object
 Timestamp getTimestamp(String s, Calendar c)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object
 int getTransactionIsolation()
          Retrieves the transaction isolation level set for this RowSet object
 int getType()
          Retrieves the type of this ResultSet object
 Map getTypeMap()
          Retrieves the Map object associated with this RowSet object, which specifies the custom mapping of SQL user-defined types, if any
 InputStream getUnicodeStream(int i)
          Deprecated.
 InputStream getUnicodeStream(String s)
          Deprecated.
 String 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
 URL getURL(int a)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language
 URL getURL(String s)
          Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language
 String getUsername()
          Retrieves the username used to create a database connection for this RowSet object
 SQLWarning getWarnings()
          Returns the first warning reported by calls on this rowset's ResultSet object.
 boolean isAfterLast()
          Retrieves whether the cursor is after the last row in this ResultSet object
 boolean isBeforeFirst()
          Retrieves whether the cursor is before the first row in this ResultSet object
 boolean isFirst()
          Retrieves whether the cursor is on the first row of this ResultSet object
 boolean isLast()
          Retrieves whether the cursor is on the last row of this ResultSet object
 boolean isReadOnly()
          Retrieves whether this RowSet object is read-only
 boolean last()
          Moves the cursor to the last row in this ResultSet object
 void moveToCurrentRow()
          Moves the cursor to the remembered cursor position, usually the current row
 void moveToInsertRow()
          Moves the cursor to the insert row.
 boolean next()
          Moves the cursor down one row from its current position
 boolean previous()
          Moves the cursor to the previous row in this ResultSet object
 boolean relative(int i)
          Moves the cursor a relative number of rows, either positive or negative
 void removeRowSetListener(RowSetListener rsl)
          Removes the specified listener from the list of components that will be notified when an event occurs on this RowSet object
 void rollback()
          Rolls back all the updates in this JdbcRowSet object by wrapping the internal Connection object and calling its rollback method.
 void rollback(Savepoint s)
          Rollbacks all the updates in the JdbcRowSet back to the last Savepoint transaction marker
 boolean rowDeleted()
          Retrieves whether a row has been deleted
 boolean rowInserted()
          Retrieves whether the current row has had an insertion
 boolean rowUpdated()
          Retrieves whether the current row has been updated
 void setArray(int i, Array x)
          Sets the designated parameter in this RowSet object's command with the given Array value
 void setAsciiStream(int i, InputStream is, int x)
          Sets the designated parameter in this RowSet object's command to the given java.io.InputStream value
 void setAutoCommit(boolean autoCommit)
          Sets auto-commit on the internal Connection object with this JdbcRowSet
 void setBigDecimal(int i, BigDecimal bd)
          Sets the designated parameter in this RowSet object's command to the given java.math.BigDeciaml value.
 void setBinaryStream(int i, InputStream is, int x)
          Sets the designated parameter in this RowSet object's command to the given java.io.InputStream value
 void setBlob(int i, Blob b)
          Sets the designated parameter in this RowSet object's command with the given Blob value.
 void setBoolean(int i, boolean b)
          Sets the designated parameter in this RowSet object's command to the given Java boolean value
 void setByte(int i, byte b)
          Sets the designated parameter in this RowSet object's command to the given Java byte value
 void setBytes(int i, byte[] b)
          Sets the designated parameter in this RowSet object's command to the given Java array of byte values
 void setCharacterStream(int i, Reader r, int x)
          Sets the designated parameter in this RowSet object's command to the given java.io.Reader value
 void setClob(int i, Clob c)
          Sets the designated parameter in this RowSet object's command with the given Clob value
 void setCommand(String s)
          Sets this RowSet object's command property to the given SQL query.
 void setConcurrency(int c)
          Sets the concurrency of this RowSet object to the given concurrency level.
 void setDataSourceName(String s)
          Sets the data source name property for this RowSet object to the given String
 void setDate(int i, Date d)
          Sets the designated parameter in this RowSet object's command with the given java.sql.Date value
 void setDate(int i, Date d, Calendar c)
          Sets the designated parameter in this RowSet object's command with the given java.sql.Date value.
 void setDouble(int i, double d)
          Sets the designated parameter in this RowSet object's command to the given Java double value.
 void setFetchDirection(int i)
          Gives a hint as to the direction in which the rows in this ResultSet object will be processed.
 void setFetchSize(int i)
          Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed for this ResultSet object.
 void setFloat(int i, float f)
          Sets the designated parameter in this RowSet object's command to the given Java float value.
 void setInt(int i, int x)
          Sets the designated parameter in this RowSet object's command to the given Java int value
 void setLong(int i, long l)
          Sets the designated parameter in this RowSet object's command to the given Java long value
 void setMatchColumn(int columnIdx)
          Sets the designated parameter to the given int object.
 void setMatchColumn(int[] columnIdxes)
          Sets the designated parameter to the given int array.
 void setMatchColumn(String columnName)
          Sets the designated parameter to the given String object.
 void setMatchColumn(String[] columnNames)
          Sets the designated parameter to the given String array.
 void setMaxFieldSize(int x)
          Sets the maximum number of bytes that can be returned for a column value to the given number of bytes.
 void setMaxRows(int n)
          Sets the maximum number of rows that this RowSet object can contain to the specified number
 void setNull(int i, int x)
          Sets the designated parameter in this RowSet object's SQL command to SQL NULL
 void setNull(int i, int x, String s)
          Sets the designated parameter in this RowSet object's SQL command to SQL NULL
 void setObject(int i, Object o)
          Sets the designated parameter in this RowSet object's command with a Java Object
 void setObject(int i, Object o, int x)
          Sets the designated parameter in this RowSet object's command with a Java Object
 void setObject(int i, Object o, int x, int scale)
          Sets the designated parameter in this RowSet object's command with a Java Object
 void setPassword(String p)
          Sets the database password for this RowSet object to the given String.
 void setQueryTimeout(int t)
          Sets the maximum time the driver will wait for a statement to execute to the given number of seconds
 void setReadOnly(boolean b)
          Sets whether this RowSet object is read-only to the given boolean.
 void setRef(int i, Ref r)
          Sets the designated parameter in this RowSet object's command with the given Ref value
 void setShort(int i, short s)
          Sets the designated parameter in this RowSet object's command to the given Java short value
 void setShowDeleted(boolean b)
          See javax.sql.rowset.JdbcRowSet
 void setString(int i, String s)
          Sets the designated parameter in this RowSet object's command to the given Java String value
 void setTime(int i, Time t)
          Sets the designated parameter in this RowSet object's command to the given java.sql.Time value
 void setTime(int i, Time t, Calendar c)
          Sets the designated parameter in this RowSet object's command to the given java.sql.Time value
 void setTimestamp(int i, Timestamp t)
          Sets the designated parameter in this RowSet object's command to the given java.sql.Timestamp value
 void setTimestamp(int i, Timestamp t, Calendar c)
          Sets the designated parameter in this RowSet object's command to the given java.sql.Timestamp value
 void setTransactionIsolation(int i)
          Sets the transaction isolation level for this RowSet obejct.
 void setType(int t)
          Sets the type of this RowSet object to the given type.
 void setTypeMap(Map m)
          Installs the given java.util.Map object as the default type map for this RowSet object
 void setUrl(String u)
          Sets the URL this RowSet object will use when it uses the DriverManager to create a connection.
 void setUsername(String un)
          Sets the username property for this RowSet object to the given String
 void unsetMatchColumn(int columnIdx)
          Unsets the designated parameter to the given int object
 void unsetMatchColumn(int[] columnIdxes)
          Unsets the designated parameter to the given int array
 void unsetMatchColumn(String columnName)
          Unsets the designated parameter to the given string object
 void unsetMatchColumn(String[] columnNames)
          Unsets the designated parameter to the given String array.
 void updateArray(int a, Array b)
          Updates the designated column with a java.sql.Array value
 void updateArray(String s, Array b)
          Updates the designated column with a java.sql.Array value
 void updateAsciiStream(int i, InputStream is, int n)
          Updates the designated column with an ascii stream value
 void updateAsciiStream(String s, InputStream is, int x)
          Updates the designated column with an ascii stream value
 void updateBigDecimal(int i, BigDecimal bd)
          Updates the designated column with a java.sql.BigDecimal value
 void updateBigDecimal(String s, BigDecimal bd)
          Updates the designated column with a java.sql.BigDecimal value
 void updateBinaryStream(int i, InputStream is, int n)
          Updates the designated column with a binary stream value
 void updateBinaryStream(String s, InputStream is, int x)
          Updates the designated column with a binary stream value
 void updateBlob(int a, Blob b)
          Updates the designated column with a java.sql.Blob value
 void updateBlob(String s, Blob b)
          Updates the designated column with a java.sql.Blob value
 void updateBoolean(int i, boolean b)
          Updates the designated column with a boolean value
 void updateByte(int i, byte b)
          Updates the designated column with a byte value
 void updateByte(String s, byte b)
          Updates the designated column with a byte value
 void updateBytes(int i, byte[] b)
          Updates the designated column with a byte array value.
 void updateBytes(String s, byte[] b)
          Updates the designated column with a byte array value.
 void updateCharacterStream(int i, Reader r, int n)
          Updates the designated column with a character stream value
 void updateCharacterStream(String s, Reader r, int x)
          Updates the designated column with a character stream value
 void updateClob(int a, Clob b)
          Updates the designated column with a java.sql.Clob value
 void updateClob(String s, Clob b)
          Updates the designated column with a java.sql.Clob value
 void updateDate(int i, Date d)
          Updates the designated column with a java.sql.Date value
 void updateDate(String s, Date d)
          Updates the designated column with a java.sql.Date value
 void updateDouble(int i, double d)
          Updates the designated column with a double value
 void updateDouble(String s, double d)
          Updates the designated column with a double value
 void updateFloat(int i, float f)
          Updates the designated column with a float value
 void updateFloat(String s, float f)
          Updates the designated column with a float value
 void updateInt(int i, int x)
          Updates the designated column with an int value
 void updateInt(String s, int x)
          Updates the designated column with an int value
 void updateLong(int i, long l)
          Updates the designated column with a long value
 void updateNull(int i)
          Gives a nullable column a null value
 void updateNull(String s)
          Gives a nullable column a null value
 void updateObject(int i, Object o)
          Updates the designated column with an Object value
 void updateObject(int i, Object o, int x)
          Updates the designated column with an Object value
 void updateObject(String s, Object o)
          Updates the designated column with an Object value
 void updateObject(String s, Object o, int x)
          Updates the designated column with an Object value
 void updateRef(int a, Ref b)
          Updates the designated column with a java.sql.Ref value
 void updateRef(String s, Ref b)
          Updates the designated column with a java.sql.Ref value
 void updateShort(int i, short s)
          Updates the designated column with a short value
 void updateShort(String s, short x)
          Updates the designated column with a short value
 void updateString(int i, String s)
          Updates the designated column with a String value.
 void updateString(String s, String n)
          Updates the designated column with a String value.
 void updateTime(int i, Time t)
          Updates the designated column with a java.sql.Time value
 void updateTime(String s, Time t)
          Updates the designated column with a java.sql.Time value
 void updateTimestamp(int i, Timestamp t)
          Updates the designated column with a java.sql.Timestamp value
 void updateTimestamp(String s, Timestamp t)
          Updates the designated column with a java.sql.Timestamp value
 boolean wasNull()
          Reports whether the last column read had a value of SQL NULL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sql.RowSet
setEscapeProcessing
 
Methods inherited from interface java.sql.ResultSet
findColumn, insertRow, refreshRow, updateBoolean, updateLong, updateRow
 

Constructor Detail

JdbcRowSetImpl

public JdbcRowSetImpl()
Constructs a default JdbcRowSet object.


JdbcRowSetImpl