com.sun.sql.rowset
Class CachedRowSetXImpl5

java.lang.Object
  extended by javax.sql.rowset.BaseRowSet
      extended by com.sun.sql.rowset.BaseRowSetX
          extended by com.sun.sql.rowset.CachedRowSetXImpl5
All Implemented Interfaces:
CachedRowSetX, java.io.Serializable, java.lang.Cloneable, java.sql.ResultSet, javax.sql.RowSet, javax.sql.rowset.CachedRowSet, javax.sql.rowset.Joinable, javax.sql.RowSetInternal
Direct Known Subclasses:
CachedRowSetXImpl

public abstract class CachedRowSetXImpl5
extends BaseRowSetX
implements CachedRowSetX, javax.sql.RowSetInternal, java.io.Serializable, java.lang.Cloneable

The reference implementation of the CachedRowSetX interface. See the interface definition for full behavior and implementation requirements. Note: This implementation is based on the Sun Microsystems Reference Implemenation of CachedRowSet All jdbc4.0-specific methods have been split offinto a sub-class CachedRowSetXImpl, to enable usage in both JDK5 and JDK6. This class, which has been made abstract, is used in the BeanInfo when running in JDK5.

See Also:
Serialized Form

Field Summary
protected  int cursorPos
          The current postion of the cursor in this CachedRowSetXImpl object.
protected  boolean internalUseInstance
          The internalUseInstance flag tells to ignore exceptional conditions with regard to the rowset not being executed.
protected  int numDeleted
          The number of deleted rows currently in this CachedRowSetXImpl object.
protected  int numRows
          The total number of rows currently in this CachedRowSetXImpl object.
protected  java.beans.PropertyChangeSupport propertyChangeSupport
          The PropertyChangeSupport object helps in providing support for property change listeners.
protected  javax.sql.rowset.spi.SyncProvider provider
          The SyncProvider used by the CachedRowSet
protected static java.util.ResourceBundle rb
           
protected  javax.sql.RowSetMetaData rowSetMD
          The RowSetMetaData object that contains information about the columns in this CachedRowSetXImpl object.
protected  javax.sql.RowSetReader rowSetReader
          The RowSetReaderImpl object that is the reader for this rowset.
protected  javax.sql.rowset.RowSetWarning rowsetWarning
          A RowSetWarning which logs on the warnings
protected  javax.sql.RowSetWriter rowSetWriter
          The RowSetWriterImpl object that is the writer for this rowset.
protected  java.util.Vector rvh
          A Vector object containing the Row objects that comprise this CachedRowSetXImpl object.
protected  java.sql.SQLWarning sqlwarn
          A SQLWarning which logs on the warnings
 
Fields inherited from class javax.sql.rowset.BaseRowSet
ASCII_STREAM_PARAM, asciiStream, BINARY_STREAM_PARAM, binaryStream, charStream, UNICODE_STREAM_PARAM, unicodeStream
 
Fields inherited from interface javax.sql.rowset.CachedRowSet
COMMIT_ON_ACCEPT_CHANGES
 
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
CachedRowSetXImpl5()
           
 
Method Summary
 boolean absolute(int row)
          
 void acceptChanges()
          
 void acceptChanges(java.sql.Connection con)
          
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Add a PropertyChangeListener to the listener list.
 void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
          Add a PropertyChangeListener for a specific property.
 void afterLast()
          
 void beforeFirst()
          
 void cancelRowUpdates()
           
 void clearWarnings()
          
protected  java.lang.Object clone()
          Returns a new RowSet object containing by the same data as this CachedRowSetXImpl object.
 void close()
          
 boolean columnUpdated(int idx)
          
 boolean columnUpdated(java.lang.String columnName)
          
 void commit()
           
 javax.sql.rowset.CachedRowSet createCopy()
          
 javax.sql.rowset.CachedRowSet createCopyNoConstraints()
          
 javax.sql.rowset.CachedRowSet createCopySchema()
          
 javax.sql.RowSet createShared()
          
 void deleteRow()
           
 void execute()
          
 void execute(java.sql.Connection conn)
          
 int findColumn(java.lang.String columnName)
          
 boolean first()
          
 java.sql.Array getArray(int columnIndex)
           
 java.sql.Array getArray(java.lang.String colName)
           
 java.io.InputStream getAsciiStream(int columnIndex)
          
 java.io.InputStream getAsciiStream(java.lang.String columnName)
          
 java.math.BigDecimal getBigDecimal(int columnIndex)
          
 java.math.BigDecimal getBigDecimal(int columnIndex, int scale)
          
 java.math.BigDecimal getBigDecimal(java.lang.String columnName)
          
 java.math.BigDecimal getBigDecimal(java.lang.String columnName, int scale)
          
 java.io.InputStream getBinaryStream(int columnIndex)
          
 java.io.InputStream getBinaryStream(java.lang.String columnName)
          
 java.sql.Blob getBlob(int columnIndex)
           
 java.sql.Blob getBlob(java.lang.String colName)
           
 boolean getBoolean(int columnIndex)
          
 boolean getBoolean(java.lang.String columnName)
          
 byte getByte(int columnIndex)
          
 byte getByte(java.lang.String columnName)
          
 byte[] getBytes(int columnIndex)
          
 byte[] getBytes(java.lang.String columnName)
          
 java.lang.String getCatalogName()
          Returns the catalog in which the table referred to by the tableName property resides.
 java.io.Reader getCharacterStream(int columnIndex)
          
 java.io.Reader getCharacterStream(java.lang.String columnName)
          
 java.sql.Clob getClob(int columnIndex)
           
 java.sql.Clob getClob(java.lang.String colName)
           
 java.lang.String[] getColumnCatalogNames()
          Returns an array of String.
 java.lang.String getColumnCatalogNames(int index)
          Returns a String which contains the catalog name set for the column or null.
 java.lang.String[] getColumnNames()
          Returns an array of String.
 java.lang.String getColumnNames(int index)
          Returns a String which contains the column name set for the column or null.
 java.lang.String[] getColumnSchemaNames()
          Returns an array of String.
 java.lang.String getColumnSchemaNames(int index)
          Returns a String which contains the schema name set for the column or null.
 java.lang.String[] getColumnTableNames()
          Returns an array of String.
 java.lang.String getColumnTableNames(int index)
          Returns a String which contains the table name set for the column or null.
 java.sql.Connection getConnection()
          Retrieves the Connection object passed to this CachedRowSetXImpl object.
protected  com.sun.rowset.internal.BaseRow getCurrentRow()
          Returns the insert row or the current row of this CachedRowSetXImplobject.
 java.lang.String getCursorName()
          
 java.sql.Date getDate(int columnIndex)
          
 java.sql.Date getDate(int columnIndex, java.util.Calendar cal)
           
 java.sql.Date getDate(java.lang.String columnName)
          
 java.sql.Date getDate(java.lang.String columnName, java.util.Calendar cal)
           
 double getDouble(int columnIndex)
          
 double getDouble(java.lang.String columnName)
          
 float getFloat(int columnIndex)
          
 float getFloat(java.lang.String columnName)
          
 boolean[] getInsertableColumns()
          Returns an array of boolean{/code>.
 boolean getInsertableColumns(int index)
          Returns a boolean{/code> of true if the column should be inserted when when adding rows or null.
 int getInt(int columnIndex)
           
 int getInt(java.lang.String columnName)
          
 int[] getKeyColumns()
           
 long getLong(int columnIndex)
          
 long getLong(java.lang.String columnName)
          
 int[] getMatchColumnIndexes()
           
 java.lang.String[] getMatchColumnNames()
           
 java.sql.ResultSetMetaData getMetaData()
          
 java.lang.Object getObject(int columnIndex)
          
 java.lang.Object getObject(int columnIndex, java.util.Map map)
           
 java.lang.Object getObject(java.lang.String columnName)
          
 java.lang.Object getObject(java.lang.String columnName, java.util.Map map)
           
abstract  java.sql.ResultSet getOriginal()
           
abstract  java.sql.ResultSet getOriginalRow()
           
 int getPageSize()
           
 boolean getPrintStatements()
          Returns the printStatements property.
 java.sql.Ref getRef(int columnIndex)
           
 java.sql.Ref getRef(java.lang.String colName)
           
 int getRow()
          
 javax.sql.rowset.RowSetWarning getRowSetWarnings()
           
 java.lang.String getSchemaName()
          Returns the schema in which the table referred to by the tableName property resides.
 short getShort(int columnIndex)
          
 short getShort(java.lang.String columnName)
          
 java.sql.Statement getStatement()
          Returns null.
 java.lang.String getString(int columnIndex)
          
 java.lang.String getString(java.lang.String columnName)
          
 javax.sql.rowset.spi.SyncProvider getSyncProvider()
          
 java.lang.String getTableName()
           
 java.sql.Time getTime(int columnIndex)
          
 java.sql.Time getTime(int columnIndex, java.util.Calendar cal)
           
 java.sql.Time getTime(java.lang.String columnName)
          
 java.sql.Time getTime(java.lang.String columnName, java.util.Calendar cal)
           
 java.sql.Timestamp getTimestamp(int columnIndex)
          
 java.sql.Timestamp getTimestamp(int columnIndex, java.util.Calendar cal)
           
 java.sql.Timestamp getTimestamp(java.lang.String columnName)
          
 java.sql.Timestamp getTimestamp(java.lang.String columnName, java.util.Calendar cal)
           
 java.io.InputStream getUnicodeStream(int columnIndex)
          
 java.io.InputStream getUnicodeStream(java.lang.String columnName)
          
 boolean[] getUpdatableColumns()
          Returns an array of boolean{/code>.
 boolean getUpdatableColumns(int index)
          Returns a boolean{/code> of true if the column should be updated when when updating rows or null.
 java.net.URL getURL(int columnIndex)
           
 java.net.URL getURL(java.lang.String columnName)
           
 java.sql.SQLWarning getWarnings()
          
protected  void initContainer()
          Sets the rvh field to a new Vector object with a capacity of 100 and sets the cursorPos and numRows fields to zero.
protected  void initParams()
           
protected  void initProperties()
          Sets the properties for this CachedRowSetXImpl object to their default values.
 void insertRow()
           
protected  boolean internalFirst()
           
protected  boolean internalLast()
           
protected  boolean internalNext()
          Moves this CachedRowSetXImpl object's cursor to the next row and returns true if the cursor is still in the rowset; returns false if the cursor has moved to the position after the last row.
protected  boolean internalPrevious()
           
 boolean isAfterLast()
          
 boolean isBeforeFirst()
          
 boolean isExecuted()
          Returns true if this rowset is in an executed state
 boolean isFirst()
          
 boolean isLast()
          
 boolean last()
          
 void moveToCurrentRow()
           
 void moveToInsertRow()
           
 boolean next()
          
 boolean nextPage()
           
 void populate(java.sql.ResultSet data)
          
 void populate(java.sql.ResultSet data, int start)
           
 boolean previous()
          
 boolean previousPage()
           
 void refreshRow()
           
 boolean relative(int rows)
          
 void release()
          
protected  void removeCurrentRow()
          Removes the row on which the cursor is positioned.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Deprecated.  
 void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
          Remove a PropertyChangeListener for a specific property.
 void restoreOriginal()
          
 void rollback()
           
 void rollback(java.sql.Savepoint s)
           
 boolean rowDeleted()
          
 boolean rowInserted()
          
 void rowSetPopulated(javax.sql.RowSetEvent event, int numRows)
           
 boolean rowUpdated()
          
 void setCatalogName(java.lang.String catalogName)
          Sets the identifier for catalog of the table referred to in the tableName property.
 void setColumnCatalogNames(int index, java.lang.String columnCatalogName)
          Set the columnCatalogNames property.
 void setColumnCatalogNames(java.lang.String[] columnCatalogNames)
          Set the columnCatalogNames property.
 void setColumnNames(int index, java.lang.String columnName)
          Set the columnNames property.
 void setColumnNames(java.lang.String[] columnNames)
          Set the columnNames property.
 void setColumnSchemaNames(int index, java.lang.String columnSchemaName)
          Set the columnSchemaNames property.
 void setColumnSchemaNames(java.lang.String[] columnSchemaNames)
          Set the columnSchemaNames property.
 void setColumnTableNames(int index, java.lang.String columnTableName)
          Set the columnTableNames property.
 void setColumnTableNames(java.lang.String[] columnTableNames)
          Set the columnTableNames property.
 void setCommand(java.lang.String command)
          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(int concurrency)
          
 void setDataSourceName(java.lang.String dataSourceName)
          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 setInsertableColumns(boolean[] insertableColumns)
          Set the insertableColumns property.
 void setInsertableColumns(int index, boolean insertableColumn)
          Set the insertableColumns property.
 void setKeyColumns(int[] keys)
           
 void setMatchColumn(int columnIdx)
           
 void setMatchColumn(int[] columnIdxes)
           
 void setMatchColumn(java.lang.String columnName)
           
 void setMatchColumn(java.lang.String[] columnNames)
           
 void setMaxRows(int maxRows)
          Sets the maximum number of rows that this RowSet object may contain to the given number.
 void setMetaData(javax.sql.RowSetMetaData md)
           
 void setOriginal()
           
 void setOriginalRow()
           
 void setPageSize(int size)
           
 void setPassword(java.lang.String password)
          
 void setPrintStatements(boolean printStatements)
          Sets the printStatements property.
 void setReadOnly(boolean isReadOnly)
          
 void setSchemaName(java.lang.String schemaName)
          Sets the identifier for schema of the table referred to in the tableName property.
 void setSyncProvider(java.lang.String providerStr)
          
 void setTableName(java.lang.String tabName)
           
 void setTransactionIsolation(int transactionIsolation)
          
 void setType(int type)
          
 void setUpdatableColumns(boolean[] updatableColumns)
          Set the updatableColumns property.
 void setUpdatableColumns(int index, boolean updatableColumn)
          Set the updatableColumns property.
 void setUrl(java.lang.String url)
          Sets the Url property for this RowSet object to the given String object and sets the dataSource name property to null.
 void setUsername(java.lang.String username)
          
 int size()
          
 java.util.Collection toCollection()
          
 java.util.Collection toCollection(int column)
          
 java.util.Collection toCollection(java.lang.String column)
          
 void undoDelete()
          
 void undoInsert()
          
 void undoUpdate()
          
 void unsetMatchColumn(int columnIdx)
           
 void unsetMatchColumn(int[] columnIdxes)
           
 void unsetMatchColumn(java.lang.String columnName)
           
 void unsetMatchColumn(java.lang.String[] columnIdxes)
           
 void updateArray(int columnIndex, java.sql.Array a)
           
 void updateArray(java.lang.String columnName, java.sql.Array a)
           
 void updateAsciiStream(int columnIndex, java.io.InputStream x, int length)
          
 void updateAsciiStream(java.lang.String columnName, java.io.InputStream x, int length)
           
 void updateBigDecimal(int columnIndex, java.math.BigDecimal x)
          
 void updateBigDecimal(java.lang.String columnName, java.math.BigDecimal x)
           
 void updateBinaryStream(int columnIndex, java.io.InputStream x, int length)
          
 void updateBinaryStream(java.lang.String columnName, java.io.InputStream x, int length)
           
 void updateBlob(int columnIndex, java.sql.Blob b)
           
 void updateBlob(java.lang.String columnName, java.sql.Blob b)
           
 void updateBoolean(int columnIndex, boolean x)
          
 void updateBoolean(java.lang.String columnName, boolean x)
          
 void updateByte(int columnIndex, byte x)
          
 void updateByte(java.lang.String columnName, byte x)
           
 void updateBytes(int columnIndex, byte[] x)
          
 void updateBytes(java.lang.String columnName, byte[] x)
           
 void updateCharacterStream(int columnIndex, java.io.Reader x, int length)
          
 void updateCharacterStream(java.lang.String columnName, java.io.Reader reader, int length)
           
 void updateClob(int columnIndex, java.sql.Clob c)
           
 void updateClob(java.lang.String columnName, java.sql.Clob c)
           
 void updateDate(int columnIndex, java.sql.Date x)
          
 void updateDate(java.lang.String columnName, java.sql.Date x)
           
 void updateDouble(int columnIndex, double x)
          
 void updateDouble(java.lang.String columnName, double x)
           
 void updateFloat(int columnIndex, float x)
          
 void updateFloat(java.lang.String columnName, float x)
           
 void updateInt(int columnIndex, int x)
          
 void updateInt(java.lang.String columnName, int x)
           
 void updateLong(int columnIndex, long x)
          
 void updateLong(java.lang.String columnName, long x)
           
 void updateNull(int columnIndex)
          
 void updateNull(java.lang.String columnName)
          
 void updateObject(int columnIndex, java.lang.Object x)
          
 void updateObject(int columnIndex, java.lang.Object x, int scale)
          
 void updateObject(java.lang.String columnName, java.lang.Object x)
           
 void updateObject(java.lang.String columnName, java.lang.Object x, int scale)
           
 void updateRef(int columnIndex, java.sql.Ref ref)
           
 void updateRef(java.lang.String columnName, java.sql.Ref ref)
           
 void updateRow()
           
 void updateShort(int columnIndex, short x)
          
 void updateShort(java.lang.String columnName, short x)
           
 void updateString(int columnIndex, java.lang.String x)
          
 void updateString(java.lang.String columnName, java.lang.String x)
           
 void updateTime(int columnIndex, java.sql.Time x)
          
 void updateTime(java.lang.String columnName, java.sql.Time x)
           
 void updateTimestamp(int columnIndex, java.sql.Timestamp x)
          
 void updateTimestamp(java.lang.String columnName, java.sql.Timestamp x)
           
 boolean wasNull()
          
 
Methods inherited from class com.sun.sql.rowset.BaseRowSetX
getFetchDirection, getFetchSize, getMaxRows, setFetchDirection, setFetchSize
 
Methods inherited from class javax.sql.rowset.BaseRowSet
addRowSetListener, clearParameters, getCommand, getConcurrency, getDataSourceName, getEscapeProcessing, getMaxFieldSize, getParams, getPassword, getQueryTimeout, getShowDeleted, getTransactionIsolation, getType, getTypeMap, getUrl, getUsername, isReadOnly, notifyCursorMoved, notifyRowChanged, notifyRowSetChanged, removeRowSetListener, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDate, setDouble, setEscapeProcessing, setFloat, setInt, setLong, setMaxFieldSize, setNull, setNull, setObject, setObject, setObject, setQueryTimeout, setRef, setShort, setShowDeleted, setString, setTime, setTime, setTimestamp, setTimestamp, setTypeMap, setUnicodeStream
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sql.rowset.CachedRowSet
getShowDeleted, setShowDeleted
 
Methods inherited from interface javax.sql.RowSet
addRowSetListener, clearParameters, getCommand, getDataSourceName, getEscapeProcessing, getMaxFieldSize, getMaxRows, getPassword, getQueryTimeout, getTransactionIsolation, getTypeMap, getUrl, getUsername, isReadOnly, removeRowSetListener, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDate, setDouble, setEscapeProcessing, setFloat, setInt, setLong, setMaxFieldSize, setNull, setNull, setObject, setObject, setObject, setQueryTimeout, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setTypeMap
 
Methods inherited from interface java.sql.ResultSet
getConcurrency, getFetchDirection, getFetchSize, getType, setFetchDirection, setFetchSize
 
Methods inherited from interface javax.sql.RowSetInternal
getParams
 

Field Detail

rb

protected static java.util.ResourceBundle rb

propertyChangeSupport

protected java.beans.PropertyChangeSupport propertyChangeSupport
The PropertyChangeSupport object helps in providing support for property change listeners.


internalUseInstance

protected boolean internalUseInstance
The internalUseInstance flag tells to ignore exceptional conditions with regard to the rowset not being executed. We must do this because this class is also used internally and methods are called that would result in a rowset not executed sqlexception if the user called them.


provider

protected javax.sql.rowset.spi.SyncProvider provider
The SyncProvider used by the CachedRowSet


rowSetReader

protected javax.sql.RowSetReader rowSetReader
The RowSetReaderImpl object that is the reader for this rowset. The method execute uses this reader as part of its implementation.


rowSetWriter

protected javax.sql.RowSetWriter rowSetWriter
The RowSetWriterImpl object that is the writer for this rowset. The method acceptChanges uses this writer as part of its implementation.


rowSetMD

protected javax.sql.RowSetMetaData rowSetMD
The RowSetMetaData object that contains information about the columns in this CachedRowSetXImpl object.


rvh

protected java.util.Vector rvh
A Vector object containing the Row objects that comprise this CachedRowSetXImpl object.


cursorPos

protected int cursorPos
The current postion of the cursor in this CachedRowSetXImpl object.


numDeleted

protected int numDeleted
The number of deleted rows currently in this CachedRowSetXImpl object.


numRows

protected int numRows
The total number of rows currently in this CachedRowSetXImpl object.


sqlwarn

protected java.sql.SQLWarning sqlwarn
A SQLWarning which logs on the warnings


rowsetWarning

protected javax.sql.rowset.RowSetWarning rowsetWarning
A RowSetWarning which logs on the warnings

Constructor Detail

CachedRowSetXImpl5

public CachedRowSetXImpl5()
Method Detail

initParams

protected void initParams()
Overrides:
initParams in class javax.sql.rowset.BaseRowSet

isExecuted

public boolean isExecuted()
                   throws java.sql.SQLException
Returns true if this rowset is in an executed state

Specified by:
isExecuted in interface CachedRowSetX
Returns:
a boolean true if the CachedRowSetX is in a state where navigation and getters and setters can be called on rows returned from the database (i.e., returns true if execute() or populate has been called.
Throws:
java.sql.SQLException - if a database access error occurs

setDataSourceName

public void setDataSourceName(java.lang.String dataSourceName)
                       throws java.sql.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. The name must have been bound to a DataSource object in a JNDI naming service so that an application can do a lookup using that name to retrieve the DataSource object bound to it. The DataSource object can then be used to establish a connection to the data source it represents.

Users should set either the Url property or the dataSourceName property. If both properties are set, the driver will use the property set most recently.

Specified by:
setDataSourceName in interface javax.sql.RowSet
Overrides:
setDataSourceName in class BaseRowSetX
Parameters:
dataSourceName - a String object with the name that can be supplied to a naming service based on JNDI technology to retrieve the DataSource object that can be used to get a connection; may be null but must not be an empty string
Throws:
java.sql.SQLException - if there is a problem setting the dataSourceName property or name is an empty string
See Also:
BaseRowSet.getDataSourceName()

setUrl

public void setUrl(java.lang.String url)
            throws java.sql.SQLException
Sets the Url property for this RowSet object to the given String object and sets the dataSource name property to null. The Url property is a JDBC URL that is used when the connection is created using a JDBC technology-enabled driver ("JDBC driver") and the DriverManager. The correct JDBC URL for the specific driver to be used can be found in the driver documentation. Although there are guidelines for for how a JDBC URL is formed, a driver vendor can specify any String object except one with a length of 0 (an empty string).

Setting the Url property is optional if connections are established using a DataSource object instead of the DriverManager. The driver will use either the URL property or the dataSourceName property to create a connection, whichever was specified most recently. If an application uses a JDBC URL, it must load a JDBC driver that accepts the JDBC URL before it uses the RowSet object to connect to a database. The RowSet object will use the URL internally to create a database connection in order to read or write data.

Specified by:
setUrl in interface javax.sql.RowSet
Overrides:
setUrl in class BaseRowSetX
Parameters:
url - a String object that contains the JDBC URL that will be used to establish the connection to a database for this RowSet object; may be null but must not be an empty string
Throws:
java.sql.SQLException - if an error occurs setting the Url property or the parameter supplied is a string with a length of 0 (an empty string)
See Also:
BaseRowSet.getUrl()

setUsername

public void setUsername(java.lang.String username)

Specified by:
setUsername in interface javax.sql.RowSet
Overrides:
setUsername in class javax.sql.rowset.BaseRowSet

setPassword

public void setPassword(java.lang.String password)

Specified by:
setPassword in interface javax.sql.RowSet
Overrides:
setPassword in class javax.sql.rowset.BaseRowSet

setType

public void setType(int type)
             throws java.sql.SQLException

Specified by:
setType in interface javax.sql.RowSet
Overrides:
setType in class javax.sql.rowset.BaseRowSet
Throws:
java.sql.SQLException

setConcurrency

public void setConcurrency(int concurrency)
                    throws java.sql.SQLException

Specified by:
setConcurrency in interface javax.sql.RowSet
Overrides:
setConcurrency in class javax.sql.rowset.BaseRowSet
Throws:
java.sql.SQLException

setTransactionIsolation

public void setTransactionIsolation(int transactionIsolation)
                             throws java.sql.SQLException

Specified by:
setTransactionIsolation in interface javax.sql.RowSet
Overrides:
setTransactionIsolation in class javax.sql.rowset.BaseRowSet
Throws:
java.sql.SQLException

setMaxRows

public void setMaxRows(int maxRows)
                throws java.sql.SQLException
Sets the maximum number of rows that this RowSet object may contain to the given number. If this limit is exceeded, the excess rows are silently dropped.

Specified by:
setMaxRows in interface javax.sql.RowSet
Overrides:
setMaxRows in class BaseRowSetX
Parameters:
maxRows - an int indicating the current maximum number of rows; zero means that there is no limit
Throws:
java.sql.SQLException - if an error occurs internally setting the maximum limit on the number of rows that a JDBC RowSet object can contain; or if max is less than 0; or if max is less than the fetchSize of the RowSet

setReadOnly

public void setReadOnly(boolean isReadOnly)

Specified by:
setReadOnly in interface javax.sql.RowSet
Overrides:
setReadOnly in class javax.sql.rowset.BaseRowSet

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. The listener is registered for all bound properties.

Specified by:
addPropertyChangeListener in interface CachedRowSetX
Parameters:
listener - The PropertyChangeListener to be added

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String propertyName,
                                      java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener for a specific property. The listener will be invoked only on a change of the specific property.

Specified by:
addPropertyChangeListener in interface CachedRowSetX
Parameters:
propertyName - The name of the property to listen on.
listener - The PropertyChangeListener to be added

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Deprecated. 

Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all bound properties.

Specified by:
removePropertyChangeListener in interface CachedRowSetX
Parameters:
listener - The PropertyChangeListener to be removed

removePropertyChangeListener

public void removePropertyChangeListener(java.lang.String propertyName,
                                         java.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener for a specific property.

Specified by:
removePropertyChangeListener in interface CachedRowSetX
Parameters:
propertyName - The name of the property that was listened on.
listener - The PropertyChangeListener to be removed

initContainer

protected void initContainer()
Sets the rvh field to a new Vector object with a capacity of 100 and sets the cursorPos and numRows fields to zero.


initProperties

protected void initProperties()
                       throws java.sql.SQLException
Sets the properties for this CachedRowSetXImpl object to their default values. This method is called internally by the default constructor.

Throws:
java.sql.SQLException

setCommand

public void setCommand(java.lang.String command)
                throws java.sql.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.

The command property may not be needed if the RowSet object gets its data from a source that does not support commands, such as a spreadsheet or other tabular file. Thus, this property is optional and may be null.

Specified by:
setCommand in interface javax.sql.RowSet
Overrides:
setCommand in class BaseRowSetX
Parameters:
command - a String object containing an SQL query that will be set as this RowSet object's command property; may be null but may not be an empty string
Throws:
java.sql.SQLException - if an empty string is provided as the command value
See Also:
BaseRowSet.getCommand()

populate

public void populate(java.sql.ResultSet data)
              throws java.sql.SQLException

Specified by:
populate in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

execute

public void execute(java.sql.Connection conn)
             throws java.sql.SQLException

Specified by:
execute in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

acceptChanges

public void acceptChanges()
                   throws javax.sql.rowset.spi.SyncProviderException

Specified by:
acceptChanges in interface javax.sql.rowset.CachedRowSet
Throws:
javax.sql.rowset.spi.SyncProviderException

acceptChanges

public void acceptChanges(java.sql.Connection con)
                   throws javax.sql.rowset.spi.SyncProviderException

Specified by:
acceptChanges in interface javax.sql.rowset.CachedRowSet
Throws:
javax.sql.rowset.spi.SyncProviderException

restoreOriginal

public void restoreOriginal()
                     throws java.sql.SQLException

Specified by:
restoreOriginal in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

release

public void release()
             throws java.sql.SQLException

Specified by:
release in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

undoDelete

public void undoDelete()
                throws java.sql.SQLException

Specified by:
undoDelete in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

undoInsert

public void undoInsert()
                throws java.sql.SQLException

Specified by:
undoInsert in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

undoUpdate

public void undoUpdate()
                throws java.sql.SQLException

Specified by:
undoUpdate in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

createShared

public javax.sql.RowSet createShared()
                              throws java.sql.SQLException

Specified by:
createShared in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

clone

protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
Returns a new RowSet object containing by the same data as this CachedRowSetXImpl object. This method differs from the method createCopy in that it throws a CloneNotSupportedException object instead of an SQLException object, as the method createShared does. This clone method is called internally by the method createShared, which catches the CloneNotSupportedException object and in turn throws a new SQLException object.

Overrides:
clone in class java.lang.Object
Returns:
a copy of this CachedRowSetXImpl object
Throws:
java.lang.CloneNotSupportedException - if an error occurs when attempting to clone this CachedRowSetXImpl object
See Also:
createShared()

createCopy

public javax.sql.rowset.CachedRowSet createCopy()
                                         throws java.sql.SQLException

Specified by:
createCopy in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

createCopySchema

public javax.sql.rowset.CachedRowSet createCopySchema()
                                               throws java.sql.SQLException

Specified by:
createCopySchema in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

createCopyNoConstraints

public javax.sql.rowset.CachedRowSet createCopyNoConstraints()
                                                      throws java.sql.SQLException

Specified by:
createCopyNoConstraints in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

toCollection

public java.util.Collection toCollection()
                                  throws java.sql.SQLException

Specified by:
toCollection in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

toCollection

public java.util.Collection toCollection(int column)
                                  throws java.sql.SQLException

Specified by:
toCollection in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

toCollection

public java.util.Collection toCollection(java.lang.String column)
                                  throws java.sql.SQLException

Specified by:
toCollection in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

getSyncProvider

public javax.sql.rowset.spi.SyncProvider getSyncProvider()
                                                  throws java.sql.SQLException

Specified by:
getSyncProvider in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

setSyncProvider

public void setSyncProvider(java.lang.String providerStr)
                     throws java.sql.SQLException

Specified by:
setSyncProvider in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

execute

public void execute()
             throws java.sql.SQLException

Specified by:
execute in interface javax.sql.RowSet
Throws:
java.sql.SQLException

next

public boolean next()
             throws java.sql.SQLException

Specified by:
next in interface java.sql.ResultSet
Throws:
java.sql.SQLException

internalNext

protected boolean internalNext()
                        throws java.sql.SQLException
Moves this CachedRowSetXImpl object's cursor to the next row and returns true if the cursor is still in the rowset; returns false if the cursor has moved to the position after the last row.

This method handles the cases where the cursor moves to a row that has been deleted. If this rowset shows deleted rows and the cursor moves to a row that has been deleted, this method moves the cursor to the next row until the cursor is on a row that has not been deleted.

The method internalNext is called by methods such as next, absolute, and relative, and, as its name implies, is only called internally.

This is a implementation only method and is not required as a standard implementation of the CachedRowSet interface.

Returns:
true if the cursor is on a valid row in this rowset; false if it is after the last row
Throws:
java.sql.SQLException - if an error occurs

close

public void close()

Specified by:
close in interface java.sql.ResultSet

wasNull

public boolean wasNull()
                throws java.sql.SQLException

Specified by:
wasNull in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getCurrentRow

protected com.sun.rowset.internal.BaseRow getCurrentRow()
                                                 throws java.sql.SQLException
Returns the insert row or the current row of this CachedRowSetXImplobject.

Returns:
the Row object on which this CachedRowSetXImpl objects's cursor is positioned
Throws:
java.sql.SQLException

removeCurrentRow

protected void removeCurrentRow()
                         throws java.sql.SQLException
Removes the row on which the cursor is positioned.

This is a implementation only method and is not required as a standard implementation of the CachedRowSet interface.

Throws:
java.sql.SQLException - if the cursor is positioned on the insert row

getString

public java.lang.String getString(int columnIndex)
                           throws java.sql.SQLException

Specified by:
getString in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBoolean

public boolean getBoolean(int columnIndex)
                   throws java.sql.SQLException

Specified by:
getBoolean in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getByte

public byte getByte(int columnIndex)
             throws java.sql.SQLException

Specified by:
getByte in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getShort

public short getShort(int columnIndex)
               throws java.sql.SQLException

Specified by:
getShort in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getInt

public int getInt(int columnIndex)
           throws java.sql.SQLException
Specified by:
getInt in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getLong

public long getLong(int columnIndex)
             throws java.sql.SQLException

Specified by:
getLong in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getFloat

public float getFloat(int columnIndex)
               throws java.sql.SQLException

Specified by:
getFloat in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getDouble

public double getDouble(int columnIndex)
                 throws java.sql.SQLException

Specified by:
getDouble in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBigDecimal

public java.math.BigDecimal getBigDecimal(int columnIndex,
                                          int scale)
                                   throws java.sql.SQLException

Specified by:
getBigDecimal in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBytes

public byte[] getBytes(int columnIndex)
                throws java.sql.SQLException

Specified by:
getBytes in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getDate

public java.sql.Date getDate(int columnIndex)
                      throws java.sql.SQLException

Specified by:
getDate in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getTime

public java.sql.Time getTime(int columnIndex)
                      throws java.sql.SQLException

Specified by:
getTime in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getTimestamp

public java.sql.Timestamp getTimestamp(int columnIndex)
                                throws java.sql.SQLException

Specified by:
getTimestamp in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getAsciiStream

public java.io.InputStream getAsciiStream(int columnIndex)
                                   throws java.sql.SQLException

Specified by:
getAsciiStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getUnicodeStream

public java.io.InputStream getUnicodeStream(int columnIndex)
                                     throws java.sql.SQLException

Specified by:
getUnicodeStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBinaryStream

public java.io.InputStream getBinaryStream(int columnIndex)
                                    throws java.sql.SQLException

Specified by:
getBinaryStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getString

public java.lang.String getString(java.lang.String columnName)
                           throws java.sql.SQLException

Specified by:
getString in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBoolean

public boolean getBoolean(java.lang.String columnName)
                   throws java.sql.SQLException

Specified by:
getBoolean in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getByte

public byte getByte(java.lang.String columnName)
             throws java.sql.SQLException

Specified by:
getByte in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getShort

public short getShort(java.lang.String columnName)
               throws java.sql.SQLException

Specified by:
getShort in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getInt

public int getInt(java.lang.String columnName)
           throws java.sql.SQLException

Specified by:
getInt in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getLong

public long getLong(java.lang.String columnName)
             throws java.sql.SQLException

Specified by:
getLong in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getFloat

public float getFloat(java.lang.String columnName)
               throws java.sql.SQLException

Specified by:
getFloat in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getDouble

public double getDouble(java.lang.String columnName)
                 throws java.sql.SQLException

Specified by:
getDouble in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBigDecimal

public java.math.BigDecimal getBigDecimal(java.lang.String columnName,
                                          int scale)
                                   throws java.sql.SQLException

Specified by:
getBigDecimal in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBytes

public byte[] getBytes(java.lang.String columnName)
                throws java.sql.SQLException

Specified by:
getBytes in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getDate

public java.sql.Date getDate(java.lang.String columnName)
                      throws java.sql.SQLException

Specified by:
getDate in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getTime

public java.sql.Time getTime(java.lang.String columnName)
                      throws java.sql.SQLException

Specified by:
getTime in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getTimestamp

public java.sql.Timestamp getTimestamp(java.lang.String columnName)
                                throws java.sql.SQLException

Specified by:
getTimestamp in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getAsciiStream

public java.io.InputStream getAsciiStream(java.lang.String columnName)
                                   throws java.sql.SQLException

Specified by:
getAsciiStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getUnicodeStream

public java.io.InputStream getUnicodeStream(java.lang.String columnName)
                                     throws java.sql.SQLException

Specified by:
getUnicodeStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBinaryStream

public java.io.InputStream getBinaryStream(java.lang.String columnName)
                                    throws java.sql.SQLException

Specified by:
getBinaryStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getWarnings

public java.sql.SQLWarning getWarnings()

Specified by:
getWarnings in interface java.sql.ResultSet

clearWarnings

public void clearWarnings()

Specified by:
clearWarnings in interface java.sql.ResultSet

getCursorName

public java.lang.String getCursorName()
                               throws java.sql.SQLException

Specified by:
getCursorName in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getMetaData

public java.sql.ResultSetMetaData getMetaData()
                                       throws java.sql.SQLException

Specified by:
getMetaData in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getObject

public java.lang.Object getObject(int columnIndex)
                           throws java.sql.SQLException

Specified by:
getObject in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getObject

public java.lang.Object getObject(java.lang.String columnName)
                           throws java.sql.SQLException

Specified by:
getObject in interface java.sql.ResultSet
Throws:
java.sql.SQLException

findColumn

public int findColumn(java.lang.String columnName)
               throws java.sql.SQLException

Specified by:
findColumn in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getCharacterStream

public java.io.Reader getCharacterStream(int columnIndex)
                                  throws java.sql.SQLException

Specified by:
getCharacterStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getCharacterStream

public java.io.Reader getCharacterStream(java.lang.String columnName)
                                  throws java.sql.SQLException

Specified by:
getCharacterStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBigDecimal

public java.math.BigDecimal getBigDecimal(int columnIndex)
                                   throws java.sql.SQLException

Specified by:
getBigDecimal in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBigDecimal

public java.math.BigDecimal getBigDecimal(java.lang.String columnName)
                                   throws java.sql.SQLException

Specified by:
getBigDecimal in interface java.sql.ResultSet
Throws:
java.sql.SQLException

size

public int size()

Specified by:
size in interface javax.sql.rowset.CachedRowSet

isBeforeFirst

public boolean isBeforeFirst()
                      throws java.sql.SQLException

Specified by:
isBeforeFirst in interface java.sql.ResultSet
Throws:
java.sql.SQLException

isAfterLast

public boolean isAfterLast()
                    throws java.sql.SQLException

Specified by:
isAfterLast in interface java.sql.ResultSet
Throws:
java.sql.SQLException

isFirst

public boolean isFirst()
                throws java.sql.SQLException

Specified by:
isFirst in interface java.sql.ResultSet
Throws:
java.sql.SQLException

isLast

public boolean isLast()
               throws java.sql.SQLException

Specified by:
isLast in interface java.sql.ResultSet
Throws:
java.sql.SQLException

beforeFirst

public void beforeFirst()
                 throws java.sql.SQLException

Specified by:
beforeFirst in interface java.sql.ResultSet
Throws:
java.sql.SQLException

afterLast

public void afterLast()
               throws java.sql.SQLException

Specified by:
afterLast in interface java.sql.ResultSet
Throws:
java.sql.SQLException

first

public boolean first()
              throws java.sql.SQLException

Specified by:
first in interface java.sql.ResultSet
Throws:
java.sql.SQLException

internalFirst

protected boolean internalFirst()
                         throws java.sql.SQLException
Throws:
java.sql.SQLException

last

public boolean last()
             throws java.sql.SQLException

Specified by:
last in interface java.sql.ResultSet
Throws:
java.sql.SQLException

internalLast

protected boolean internalLast()
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

getRow

public int getRow()
           throws java.sql.SQLException

Specified by:
getRow in interface java.sql.ResultSet
Throws:
java.sql.SQLException

absolute

public boolean absolute(int row)
                 throws java.sql.SQLException

Specified by:
absolute in interface java.sql.ResultSet
Throws:
java.sql.SQLException

relative

public boolean relative(int rows)
                 throws java.sql.SQLException

Specified by:
relative in interface java.sql.ResultSet
Throws:
java.sql.SQLException

previous

public boolean previous()
                 throws java.sql.SQLException

Specified by:
previous in interface java.sql.ResultSet
Throws:
java.sql.SQLException

internalPrevious

protected boolean internalPrevious()
                            throws java.sql.SQLException
Throws:
java.sql.SQLException

rowUpdated

public boolean rowUpdated()
                   throws java.sql.SQLException

Specified by:
rowUpdated in interface java.sql.ResultSet
Throws:
java.sql.SQLException

columnUpdated

public boolean columnUpdated(int idx)
                      throws java.sql.SQLException

Specified by:
columnUpdated in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

columnUpdated

public boolean columnUpdated(java.lang.String columnName)
                      throws java.sql.SQLException

Specified by:
columnUpdated in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

rowInserted

public boolean rowInserted()
                    throws java.sql.SQLException

Specified by:
rowInserted in interface java.sql.ResultSet
Throws:
java.sql.SQLException

rowDeleted

public boolean rowDeleted()
                   throws java.sql.SQLException

Specified by:
rowDeleted in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateNull

public void updateNull(int columnIndex)
                throws java.sql.SQLException

Specified by:
updateNull in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBoolean

public void updateBoolean(int columnIndex,
                          boolean x)
                   throws java.sql.SQLException

Specified by:
updateBoolean in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateByte

public void updateByte(int columnIndex,
                       byte x)
                throws java.sql.SQLException

Specified by:
updateByte in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateShort

public void updateShort(int columnIndex,
                        short x)
                 throws java.sql.SQLException

Specified by:
updateShort in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateInt

public void updateInt(int columnIndex,
                      int x)
               throws java.sql.SQLException

Specified by:
updateInt in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateLong

public void updateLong(int columnIndex,
                       long x)
                throws java.sql.SQLException

Specified by:
updateLong in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateFloat

public void updateFloat(int columnIndex,
                        float x)
                 throws java.sql.SQLException

Specified by:
updateFloat in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateDouble

public void updateDouble(int columnIndex,
                         double x)
                  throws java.sql.SQLException

Specified by:
updateDouble in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBigDecimal

public void updateBigDecimal(int columnIndex,
                             java.math.BigDecimal x)
                      throws java.sql.SQLException

Specified by:
updateBigDecimal in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateString

public void updateString(int columnIndex,
                         java.lang.String x)
                  throws java.sql.SQLException

Specified by:
updateString in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBytes

public void updateBytes(int columnIndex,
                        byte[] x)
                 throws java.sql.SQLException

Specified by:
updateBytes in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateDate

public void updateDate(int columnIndex,
                       java.sql.Date x)
                throws java.sql.SQLException

Specified by:
updateDate in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateTime

public void updateTime(int columnIndex,
                       java.sql.Time x)
                throws java.sql.SQLException

Specified by:
updateTime in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateTimestamp

public void updateTimestamp(int columnIndex,
                            java.sql.Timestamp x)
                     throws java.sql.SQLException

Specified by:
updateTimestamp in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateAsciiStream

public void updateAsciiStream(int columnIndex,
                              java.io.InputStream x,
                              int length)
                       throws java.sql.SQLException

Specified by:
updateAsciiStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBinaryStream

public void updateBinaryStream(int columnIndex,
                               java.io.InputStream x,
                               int length)
                        throws java.sql.SQLException

Specified by:
updateBinaryStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateCharacterStream

public void updateCharacterStream(int columnIndex,
                                  java.io.Reader x,
                                  int length)
                           throws java.sql.SQLException

Specified by:
updateCharacterStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateObject

public void updateObject(int columnIndex,
                         java.lang.Object x,
                         int scale)
                  throws java.sql.SQLException

Specified by:
updateObject in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateObject

public void updateObject(int columnIndex,
                         java.lang.Object x)
                  throws java.sql.SQLException

Specified by:
updateObject in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateNull

public void updateNull(java.lang.String columnName)
                throws java.sql.SQLException

Specified by:
updateNull in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBoolean

public void updateBoolean(java.lang.String columnName,
                          boolean x)
                   throws java.sql.SQLException

Specified by:
updateBoolean in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateByte

public void updateByte(java.lang.String columnName,
                       byte x)
                throws java.sql.SQLException
Specified by:
updateByte in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateShort

public void updateShort(java.lang.String columnName,
                        short x)
                 throws java.sql.SQLException
Specified by:
updateShort in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateInt

public void updateInt(java.lang.String columnName,
                      int x)
               throws java.sql.SQLException
Specified by:
updateInt in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateLong

public void updateLong(java.lang.String columnName,
                       long x)
                throws java.sql.SQLException
Specified by:
updateLong in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateFloat

public void updateFloat(java.lang.String columnName,
                        float x)
                 throws java.sql.SQLException
Specified by:
updateFloat in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateDouble

public void updateDouble(java.lang.String columnName,
                         double x)
                  throws java.sql.SQLException
Specified by:
updateDouble in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBigDecimal

public void updateBigDecimal(java.lang.String columnName,
                             java.math.BigDecimal x)
                      throws java.sql.SQLException
Specified by:
updateBigDecimal in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateString

public void updateString(java.lang.String columnName,
                         java.lang.String x)
                  throws java.sql.SQLException
Specified by:
updateString in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBytes

public void updateBytes(java.lang.String columnName,
                        byte[] x)
                 throws java.sql.SQLException
Specified by:
updateBytes in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateDate

public void updateDate(java.lang.String columnName,
                       java.sql.Date x)
                throws java.sql.SQLException
Specified by:
updateDate in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateTime

public void updateTime(java.lang.String columnName,
                       java.sql.Time x)
                throws java.sql.SQLException
Specified by:
updateTime in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateTimestamp

public void updateTimestamp(java.lang.String columnName,
                            java.sql.Timestamp x)
                     throws java.sql.SQLException
Specified by:
updateTimestamp in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateAsciiStream

public void updateAsciiStream(java.lang.String columnName,
                              java.io.InputStream x,
                              int length)
                       throws java.sql.SQLException
Specified by:
updateAsciiStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBinaryStream

public void updateBinaryStream(java.lang.String columnName,
                               java.io.InputStream x,
                               int length)
                        throws java.sql.SQLException
Specified by:
updateBinaryStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateCharacterStream

public void updateCharacterStream(java.lang.String columnName,
                                  java.io.Reader reader,
                                  int length)
                           throws java.sql.SQLException
Specified by:
updateCharacterStream in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateObject

public void updateObject(java.lang.String columnName,
                         java.lang.Object x,
                         int scale)
                  throws java.sql.SQLException
Specified by:
updateObject in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateObject

public void updateObject(java.lang.String columnName,
                         java.lang.Object x)
                  throws java.sql.SQLException
Specified by:
updateObject in interface java.sql.ResultSet
Throws:
java.sql.SQLException

insertRow

public void insertRow()
               throws java.sql.SQLException
Specified by:
insertRow in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateRow

public void updateRow()
               throws java.sql.SQLException
Specified by:
updateRow in interface java.sql.ResultSet
Throws:
java.sql.SQLException

deleteRow

public void deleteRow()
               throws java.sql.SQLException
Specified by:
deleteRow in interface java.sql.ResultSet
Throws:
java.sql.SQLException

refreshRow

public void refreshRow()
                throws java.sql.SQLException
Specified by:
refreshRow in interface java.sql.ResultSet
Throws:
java.sql.SQLException

cancelRowUpdates

public void cancelRowUpdates()
                      throws java.sql.SQLException
Specified by:
cancelRowUpdates in interface java.sql.ResultSet
Throws:
java.sql.SQLException

moveToInsertRow

public void moveToInsertRow()
                     throws java.sql.SQLException
Specified by:
moveToInsertRow in interface java.sql.ResultSet
Throws:
java.sql.SQLException

moveToCurrentRow

public void moveToCurrentRow()
                      throws java.sql.SQLException
Specified by:
moveToCurrentRow in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getStatement

public java.sql.Statement getStatement()
                                throws java.sql.SQLException
Returns null.

Specified by:
getStatement in interface java.sql.ResultSet
Returns:
null
Throws:
java.sql.SQLException - if an error occurs

getObject

public java.lang.Object getObject(int columnIndex,
                                  java.util.Map map)
                           throws java.sql.SQLException
Specified by:
getObject in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getRef

public java.sql.Ref getRef(int columnIndex)
                    throws java.sql.SQLException
Specified by:
getRef in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBlob

public java.sql.Blob getBlob(int columnIndex)
                      throws java.sql.SQLException
Specified by:
getBlob in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getClob

public java.sql.Clob getClob(int columnIndex)
                      throws java.sql.SQLException
Specified by:
getClob in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getArray

public java.sql.Array getArray(int columnIndex)
                        throws java.sql.SQLException
Specified by:
getArray in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getObject

public java.lang.Object getObject(java.lang.String columnName,
                                  java.util.Map map)
                           throws java.sql.SQLException
Specified by:
getObject in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getRef

public java.sql.Ref getRef(java.lang.String colName)
                    throws java.sql.SQLException
Specified by:
getRef in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getBlob

public java.sql.Blob getBlob(java.lang.String colName)
                      throws java.sql.SQLException
Specified by:
getBlob in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getClob

public java.sql.Clob getClob(java.lang.String colName)
                      throws java.sql.SQLException
Specified by:
getClob in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getArray

public java.sql.Array getArray(java.lang.String colName)
                        throws java.sql.SQLException
Specified by:
getArray in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getDate

public java.sql.Date getDate(int columnIndex,
                             java.util.Calendar cal)
                      throws java.sql.SQLException
Specified by:
getDate in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getDate

public java.sql.Date getDate(java.lang.String columnName,
                             java.util.Calendar cal)
                      throws java.sql.SQLException
Specified by:
getDate in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getTime

public java.sql.Time getTime(int columnIndex,
                             java.util.Calendar cal)
                      throws java.sql.SQLException
Specified by:
getTime in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getTime

public java.sql.Time getTime(java.lang.String columnName,
                             java.util.Calendar cal)
                      throws java.sql.SQLException
Specified by:
getTime in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getTimestamp

public java.sql.Timestamp getTimestamp(int columnIndex,
                                       java.util.Calendar cal)
                                throws java.sql.SQLException
Specified by:
getTimestamp in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getTimestamp

public java.sql.Timestamp getTimestamp(java.lang.String columnName,
                                       java.util.Calendar cal)
                                throws java.sql.SQLException
Specified by:
getTimestamp in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Retrieves the Connection object passed to this CachedRowSetXImpl object. This connection may be used to populate this rowset with data or to write data back to its underlying data source.

Specified by:
getConnection in interface javax.sql.RowSetInternal
Returns:
the Connection object passed to this rowset; may be null if there is no connection
Throws:
java.sql.SQLException - if an error occurs

setMetaData

public void setMetaData(javax.sql.RowSetMetaData md)
                 throws java.sql.SQLException
Specified by:
setMetaData in interface javax.sql.rowset.CachedRowSet
Specified by:
setMetaData in interface javax.sql.RowSetInternal
Throws:
java.sql.SQLException

getOriginal

public abstract java.sql.ResultSet getOriginal()
                                        throws java.sql.SQLException
Specified by:
getOriginal in interface javax.sql.rowset.CachedRowSet
Specified by:
getOriginal in interface javax.sql.RowSetInternal
Throws:
java.sql.SQLException

getOriginalRow

public abstract java.sql.ResultSet getOriginalRow()
                                           throws java.sql.SQLException
Specified by:
getOriginalRow in interface javax.sql.rowset.CachedRowSet
Specified by:
getOriginalRow in interface javax.sql.RowSetInternal
Throws:
java.sql.SQLException

setOriginalRow

public void setOriginalRow()
                    throws java.sql.SQLException
Specified by:
setOriginalRow in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

setOriginal

public void setOriginal()
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

getTableName

public java.lang.String getTableName()
                              throws java.sql.SQLException
Specified by:
getTableName in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

setTableName

public void setTableName(java.lang.String tabName)
                  throws java.sql.SQLException
Specified by:
setTableName in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

getKeyColumns

public int[] getKeyColumns()
                    throws java.sql.SQLException
Specified by:
getKeyColumns in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

setKeyColumns

public void setKeyColumns(int[] keys)
                   throws java.sql.SQLException
Specified by:
setKeyColumns in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

updateRef

public void updateRef(int columnIndex,
                      java.sql.Ref ref)
               throws java.sql.SQLException
Specified by:
updateRef in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateRef

public void updateRef(java.lang.String columnName,
                      java.sql.Ref ref)
               throws java.sql.SQLException
Specified by:
updateRef in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateClob

public void updateClob(int columnIndex,
                       java.sql.Clob c)
                throws java.sql.SQLException
Specified by:
updateClob in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateClob

public void updateClob(java.lang.String columnName,
                       java.sql.Clob c)
                throws java.sql.SQLException
Specified by:
updateClob in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBlob

public void updateBlob(int columnIndex,
                       java.sql.Blob b)
                throws java.sql.SQLException
Specified by:
updateBlob in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateBlob

public void updateBlob(java.lang.String columnName,
                       java.sql.Blob b)
                throws java.sql.SQLException
Specified by:
updateBlob in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateArray

public void updateArray(int columnIndex,
                        java.sql.Array a)
                 throws java.sql.SQLException
Specified by:
updateArray in interface java.sql.ResultSet
Throws:
java.sql.SQLException

updateArray

public void updateArray(java.lang.String columnName,
                        java.sql.Array a)
                 throws java.sql.SQLException
Specified by:
updateArray in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getURL

public java.net.URL getURL(int columnIndex)
                    throws java.sql.SQLException
Specified by:
getURL in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getURL

public java.net.URL getURL(java.lang.String columnName)
                    throws java.sql.SQLException
Specified by:
getURL in interface java.sql.ResultSet
Throws:
java.sql.SQLException

getRowSetWarnings

public javax.sql.rowset.RowSetWarning getRowSetWarnings()
Specified by:
getRowSetWarnings in interface javax.sql.rowset.CachedRowSet

commit

public void commit()
            throws java.sql.SQLException
Specified by:
commit in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

rollback

public void rollback()
              throws java.sql.SQLException
Specified by:
rollback in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

rollback

public void rollback(java.sql.Savepoint s)
              throws java.sql.SQLException
Specified by:
rollback in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

unsetMatchColumn

public void unsetMatchColumn(int[] columnIdxes)
                      throws java.sql.SQLException
Specified by:
unsetMatchColumn in interface javax.sql.rowset.Joinable
Throws:
java.sql.SQLException

unsetMatchColumn

public void unsetMatchColumn(java.lang.String[] columnIdxes)
                      throws java.sql.SQLException
Specified by:
unsetMatchColumn in interface javax.sql.rowset.Joinable
Throws:
java.sql.SQLException

getMatchColumnNames

public java.lang.String[] getMatchColumnNames()
                                       throws java.sql.SQLException
Specified by:
getMatchColumnNames in interface javax.sql.rowset.Joinable
Throws:
java.sql.SQLException

getMatchColumnIndexes

public int[] getMatchColumnIndexes()
                            throws java.sql.SQLException
Specified by:
getMatchColumnIndexes in interface javax.sql.rowset.Joinable
Throws:
java.sql.SQLException

setMatchColumn

public void setMatchColumn(int[] columnIdxes)
                    throws java.sql.SQLException
Specified by:
setMatchColumn in interface javax.sql.rowset.Joinable
Throws:
java.sql.SQLException

setMatchColumn

public void setMatchColumn(java.lang.String[] columnNames)
                    throws java.sql.SQLException
Specified by:
setMatchColumn in interface javax.sql.rowset.Joinable
Throws:
java.sql.SQLException

setMatchColumn

public void setMatchColumn(int columnIdx)
                    throws java.sql.SQLException
Specified by:
setMatchColumn in interface javax.sql.rowset.Joinable
Throws:
java.sql.SQLException

setMatchColumn

public void setMatchColumn(java.lang.String columnName)
                    throws java.sql.SQLException
Specified by:
setMatchColumn in interface javax.sql.rowset.Joinable
Throws:
java.sql.SQLException

unsetMatchColumn

public void unsetMatchColumn(int columnIdx)
                      throws java.sql.SQLException
Specified by:
unsetMatchColumn in interface javax.sql.rowset.Joinable
Throws:
java.sql.SQLException

unsetMatchColumn

public void unsetMatchColumn(java.lang.String columnName)
                      throws java.sql.SQLException
Specified by:
unsetMatchColumn in interface javax.sql.rowset.Joinable
Throws:
java.sql.SQLException

rowSetPopulated

public void rowSetPopulated(javax.sql.RowSetEvent event,
                            int numRows)
                     throws java.sql.SQLException
Specified by:
rowSetPopulated in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

populate

public void populate(java.sql.ResultSet data,
                     int start)
              throws java.sql.SQLException
Specified by:
populate in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

nextPage

public boolean nextPage()
                 throws java.sql.SQLException
Specified by:
nextPage in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

setPageSize

public void setPageSize(int size)
                 throws java.sql.SQLException
Specified by:
setPageSize in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

getPageSize

public int getPageSize()
Specified by:
getPageSize in interface javax.sql.rowset.CachedRowSet

previousPage

public boolean previousPage()
                     throws java.sql.SQLException
Specified by:
previousPage in interface javax.sql.rowset.CachedRowSet
Throws:
java.sql.SQLException

getCatalogName

public java.lang.String getCatalogName()
Returns the catalog in which the table referred to by the tableName property resides.

Specified by:
getCatalogName in interface CachedRowSetX
Returns:
a String object giving the name of the catalog that contains the table referred to by tableName

Note: This method is called by CachedRowSetXWriter.

See Also:
ResultSetMetaData.getCatalogName(int)

setCatalogName

public void setCatalogName(java.lang.String catalogName)
Sets the identifier for catalog of the table referred to in the tableName property. The writer uses this name to determine which table to use when comparing the values in the data source with the CachedRowSetX object's values during a synchronization attempt. The catalogName property also indicates where modified values from this CachedRowSetX object should be written.

The implementation of this CachedRowSetX object may obtain the the name internally from the RowSetMetaDataXImpl object.

Note: This method is called by CachedRowSetXWriter.

Specified by:
setCatalogName in interface CachedRowSetX
Parameters:
catalogName - a String object identifying the catalog of the table from which this CachedRowSetX object was derived; can be null or an empty String
See Also:
RowSetMetaData.setCatalogName(int, java.lang.String), RowSetWriter

getSchemaName

public java.lang.String getSchemaName()
Returns the schema in which the table referred to by the tableName property resides.

Specified by:
getSchemaName in interface CachedRowSetX
Returns:
a String object giving the name of the catalog that contains the table referred to by tableName

Note: This method is called by CachedRowSetXWriter.

See Also:
ResultSetMetaData.getCatalogName(int)

setSchemaName

public void setSchemaName(java.lang.String schemaName)
Sets the identifier for schema of the table referred to in the tableName property. The writer uses this name to determine which table to use when comparing the values in the data source with the CachedRowSetX object's values during a synchronization attempt. The schemaName property also indicates where modified values from this CachedRowSetX object should be written.

The implementation of this CachedRowSetX object may obtain the the name internally from the RowSetMetaDataXImpl object.

Specified by:
setSchemaName in interface CachedRowSetX
Parameters:
schemaName - a String object identifying the schema of the table from which this CachedRowSetX object was derived; can be null or an empty String
See Also:
RowSetMetaData.setSchemaName(int, java.lang.String), RowSetWriter

getColumnCatalogNames

public java.lang.String[] getColumnCatalogNames()
Returns an array of String. If setColumnCatalogNames was never called, null is returned, else the value set when calling setColumnCatalogNames{/code> is returned. See setColumnCatalogNames for details.

Note, the column is zero based whereas most jdbc calls are one based.

Note: This method is called by CachedRowSetXWriter.

Specified by:
getColumnCatalogNames in interface CachedRowSetX
Returns:
an array of String objects or null

getColumnCatalogNames

public java.lang.String getColumnCatalogNames(int index)
Returns a String which contains the catalog name set for the column or null.

Note, the column is zero based whereas most jdbc calls are one based.

Specified by:
getColumnCatalogNames in interface CachedRowSetX
Returns:
a String object or null

setColumnCatalogNames

public void setColumnCatalogNames(java.lang.String[] columnCatalogNames)
Set the columnCatalogNames property.

Specified by:
setColumnCatalogNames in interface CachedRowSetX
Parameters:
columnCatalogNames - an array of String, one for each column, which contains the name of catalog of the corresponding column (each element can also be null

Note, the column is zero based whereas most jdbc calls are one based.


setColumnCatalogNames

public void setColumnCatalogNames(int index,
                                  java.lang.String columnCatalogName)
Set the columnCatalogNames property.

Specified by:
setColumnCatalogNames in interface CachedRowSetX
Parameters:
index - the index of the array to set (zero based)
columnCatalogName - the name of catalog for the column (can also be null

getColumnSchemaNames

public java.lang.String[] getColumnSchemaNames()
Returns an array of String. If setColumnSchemaNames was never called, null is returned, else the value set when calling setColumnSchemaNames{/code> is returned. See setColumnSchemaNames for details.

Note, the column is zero based whereas most jdbc calls are one based.

Note: This method is called by CachedRowSetXWriter.

Specified by:
getColumnSchemaNames in interface CachedRowSetX
Returns:
an array of String objects or null

getColumnSchemaNames

public java.lang.String getColumnSchemaNames(int index)
Returns a String which contains the schema name set for the column or null.

Note, the column is zero based whereas most jdbc calls are one based.

Specified by:
getColumnSchemaNames in interface CachedRowSetX
Returns:
a String object or null

setColumnSchemaNames

public void setColumnSchemaNames(java.lang.String[] columnSchemaNames)
Set the columnSchemaNames property.

Specified by:
setColumnSchemaNames in interface CachedRowSetX
Parameters:
columnSchemaNames - an array of String, one for each column, which contains the name of schema of the corresponding column (each element can also be null

Note, the column is zero based whereas most jdbc calls are one based.


setColumnSchemaNames

public void setColumnSchemaNames(int index,
                                 java.lang.String columnSchemaName)
Set the columnSchemaNames property.

Specified by:
setColumnSchemaNames in interface CachedRowSetX
Parameters:
index - the index of the array to set (zero based)
columnSchemaName - the name of schema for the column (can also be null

getColumnTableNames

public java.lang.String[] getColumnTableNames()
Returns an array of String. If setColumnTableNames was never called, null is returned, else the value set when calling setColumnTableNames{/code> is returned. See setColumnTableNames for details.

Note, the column is zero based whereas most jdbc calls are one based.

Note: This method is called by CachedRowSetXWriter.

Specified by:
getColumnTableNames in interface CachedRowSetX
Returns:
an array of String objects or null

getColumnTableNames

public java.lang.String getColumnTableNames(int index)
Returns a String which contains the table name set for the column or null.

Note, the column is zero based whereas most jdbc calls are one based.

Specified by:
getColumnTableNames in interface CachedRowSetX
Returns:
a String object or null

setColumnTableNames

public void setColumnTableNames(java.lang.String[] columnTableNames)
Set the columnTableNames property.

Specified by:
setColumnTableNames in interface CachedRowSetX
Parameters:
columnTableNames - an array of String, one for each column, which contains the name of table of the corresponding column (each element can also be null

Note, the column is zero based whereas most jdbc calls are one based.


setColumnTableNames

public void setColumnTableNames(int index,
                                java.lang.String columnTableName)
Set the columnTableNames property.

Specified by:
setColumnTableNames in interface CachedRowSetX
Parameters:
index - the index of the array to set (zero based)
columnTableName - the name of table for the column (can also be null

getColumnNames

public java.lang.String[] getColumnNames()
Returns an array of String. If setColumnNames was never called, null is returned, else the value set when calling setColumnNames{/code> is returned. See setColumnNames for details.

Note, the column is zero based whereas most jdbc calls are one based.

Note: This method is called by CachedRowSetXWriter.

Specified by:
getColumnNames in interface CachedRowSetX
Returns:
an array of String objects or null

getColumnNames

public java.lang.String getColumnNames(int index)
Returns a String which contains the column name set for the column or null.

Note, the column is zero based whereas most jdbc calls are one based.

Specified by:
getColumnNames in interface CachedRowSetX
Returns:
a String object or null

setColumnNames

public void setColumnNames(java.lang.String[] columnNames)
Set the columnNames property.

Specified by:
setColumnNames in interface CachedRowSetX
Parameters:
columnNames - an array of String, one for each column, which contains the name of column (each element can also be null

Note, the column is zero based whereas most jdbc calls are one based.


setColumnNames

public void setColumnNames(int index,
                           java.lang.String columnName)
Set the columnNames property.

Specified by:
setColumnNames in interface CachedRowSetX
Parameters:
index - the index of the array to set (zero based)
columnName - for the column (can also be null

getInsertableColumns

public boolean[] getInsertableColumns()
Returns an array of boolean{/code>. If setInsertableColumns was never called, null is returned, else the value set when calling setInsertableColumns{/code> is returned. See setInsertableColumns for details.

Note, the column is zero based whereas most jdbc calls are one based.

Note: This method is called by CachedRowSetXWriter.

Specified by:
getInsertableColumns in interface CachedRowSetX
Returns:
an array of boolean{/code> objects or null

getInsertableColumns

public boolean getInsertableColumns(int index)
Returns a boolean{/code> of true if the column should be inserted when when adding rows or null.

Note, the column is zero based whereas most jdbc calls are one based.

Specified by:
getInsertableColumns in interface CachedRowSetX
Returns:
a boolean/code> object or null

setInsertableColumns

public void setInsertableColumns(boolean[] insertableColumns)
Set the insertableColumns property.

Specified by:
setInsertableColumns in interface CachedRowSetX
Parameters:
insertableColumns - an array of boolean one for each column, which contains a boolean indicating whether or not the column should be inserted when adding rows to the CachedRowSetX

Note, the column is zero based whereas most jdbc calls are one based.


setInsertableColumns

public void setInsertableColumns(int index,
                                 boolean insertableColumn)
Set the insertableColumns property.

Specified by:
setInsertableColumns in interface CachedRowSetX
Parameters:
index - the index of the array to set (zero based)
insertableColumn - true if column should be inserted for new rows

getUpdatableColumns

public boolean[] getUpdatableColumns()
Returns an array of boolean{/code>. If setUpdatableColumns was never called, null is returned, else the value set when calling setUpdatebleColumns{/code> is returned. See setUpdatableColumns for details.

Note, the column is zero based whereas most jdbc calls are one based.

Note: This method is called by CachedRowSetXWriter.

Specified by:
getUpdatableColumns in interface CachedRowSetX
Returns:
an array of boolean{/code> objects or null

getUpdatableColumns

public boolean getUpdatableColumns(int index)
Returns a boolean{/code> of true if the column should be updated when when updating rows or null.

Note, the column is zero based whereas most jdbc calls are one based.

Specified by:
getUpdatableColumns in interface CachedRowSetX
Returns:
a boolean{/code> object or null

setUpdatableColumns

public void setUpdatableColumns(boolean[] updatableColumns)
Set the updatableColumns property.

Specified by:
setUpdatableColumns in interface CachedRowSetX
Parameters:
updatableColumns - an array of boolean, one for each column, which contains a boolean indicating whether or not the column should be updated when updating rows to the CachedRowSetX

Note, the column is zero based whereas most jdbc calls are one based.


setUpdatableColumns

public void setUpdatableColumns(int index,
                                boolean updatableColumn)
Set the updatableColumns property.

Specified by:
setUpdatableColumns in interface CachedRowSetX
Parameters:
index - the index of the array to set (zero based)
updatableColumn - true if column should be updated when rows are updated

getPrintStatements

public boolean getPrintStatements()
Returns the printStatements property.

Specified by:
getPrintStatements in interface CachedRowSetX
Returns:
a boolean{/code> object which, if true, causes SQL statements to be written to System.out.

Note: This method is called by CachedRowSetXWriter.


setPrintStatements

public void setPrintStatements(boolean printStatements)
Sets the printStatements property. If this property is true, SQL Insert, UPDATE and DELETE statements will be written to System.out. This property is intended to be set when debugging problems inserting, updating and deleting. With the information gained from examining the output, it is intended that one can set the other advanced properties on the CachedRowSetX to "fix" the SQL statements being generated. In this way, some JDBC driver problems can be overcome.

Specified by:
setPrintStatements in interface CachedRowSetX
Parameters:
printStatements - a boolean{/code> object which determines whether SQL Insert, UPDATE and DELETE statements are written to System.out