Serialized Form


Package com.sun.sql.rowset

Class com.sun.sql.rowset.BaseRowSetX extends javax.sql.rowset.BaseRowSet implements Serializable

Serialized Fields

maxRows

int maxRows
The maximum number of rows the reader should read.

 

fetchDir

int fetchDir
Supplants the fetchDir in the superclass A constant used as a hint to the driver that indicates the direction in which data from this JDBC RowSet object is going to be fetched. The following ResultSet constants are possible values: FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN.

Unused at this time.

 

fetchSize

int fetchSize
A hint to the driver that indicates the expected number of rows in this JDBC RowSet object .

Unused at this time.

 

Class com.sun.sql.rowset.CachedRowSetXImpl extends CachedRowSetXImpl5 implements Serializable

Class com.sun.sql.rowset.CachedRowSetXImpl5 extends BaseRowSetX implements Serializable

Serialized Fields

propertyChangeSupport

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


executed

boolean executed
The executed flag tells us whether to throw exceptions when methods are called that require the rowset to have been executed


internalUseInstance

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

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


rowSetReader

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

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

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

 

keyCols

int[] keyCols
An array containing the columns in this CachedRowSetXImpl object that form a unique identifier for a row. This array is used by the writer.

 

tableName

java.lang.String tableName
The name of the table in the underlying database to which updates should be written. This name is needed because most drivers do not return this information in a ResultSetMetaData object.

 

rvh

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

 

cursorPos

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

 

absolutePos

int absolutePos
The current postion of the cursor in this CachedRowSetXImpl object not counting rows that have been deleted, if any.

For example, suppose that the cursor is on the last row of a rowset that started with five rows and subsequently had the second and third rows deleted. The absolutePos would be 3, whereas the cursorPos would be 5.

 

numDeleted

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

 

numRows

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

 

insertRow

com.sun.rowset.internal.InsertRow insertRow
A special row used for constructing a new row. A new row is constructed by using ResultSet.updateXXX methods to insert column values into the insert row.

 

onInsertRow

boolean onInsertRow
A boolean indicating whether the cursor is currently on the insert row.

 

currentRow

int currentRow
The field that temporarily holds the last position of the cursor before it moved to the insert row, thus preserving the number of the current row to which the cursor may return.

 

lastValueNull

boolean lastValueNull
A boolean indicating whether the last value returned was an SQL NULL.

 

sqlwarn

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


strMatchColumn

java.lang.String strMatchColumn
Used to track match column for JoinRowSet consumption


iMatchColumn

int iMatchColumn
Used to track match column for JoinRowSet consumption


rowsetWarning

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


DEFAULT_SYNC_PROVIDER

java.lang.String DEFAULT_SYNC_PROVIDER
The default SyncProvider for the RI CachedRowSetXImpl


dbmslocatorsUpdateCopy

boolean dbmslocatorsUpdateCopy
The boolean variable indicating locatorsUpdateValue


resultSet

java.sql.ResultSet resultSet
The ResultSet object that is used to maintain the data when a ResultSet and start position are passed as parameters to the populate function


endPos

int endPos
The integer value indicating the end position in the ResultSetwhere the picking up of rows for populating a CachedRowSet object was left off.


prevEndPos

int prevEndPos
The integer value indicating the end position in the ResultSetwhere the picking up of rows for populating a CachedRowSet object was left off.


startPos

int startPos
The integer value indicating the position in the ResultSet, to populate the CachedRowSet object.


startPrev

int startPrev
The integer value indicating the positon from where the page prior to this was populated.


pageSize

int pageSize
The integer value indicating size of the page.


maxRowsreached

int maxRowsreached
The integer value indicating number of rows that have been processed so far. Used for checking whether maxRows has been reached or not.


pagenotend

boolean pagenotend
The boolean value when true signifies that pages are still to follow and a false value indicates that this is the last page.


onFirstPage

boolean onFirstPage
The boolean value indicating whether this is the first page or not.


onLastPage

boolean onLastPage
The boolean value indicating whether this is the last page or not.


populatecallcount

int populatecallcount
The integer value indicating how many times the populate function has been called.


totalRows

int totalRows
The integer value indicating the total number of rows to be processed in the ResultSet object passed to the populate function.


callWithCon

boolean callWithCon
The boolean value indicating how the CahedRowSet object has been populated for paging purpose. True indicates that connection parameter is passed.


crsReader

CachedRowSetXReader crsReader
CachedRowSet reader object to read the data from the ResultSet when a connection parameter is passed to populate the CachedRowSet object for paging.


iMatchColumns

java.util.Vector iMatchColumns
The Vector holding the Match Columns


strMatchColumns

java.util.Vector strMatchColumns
The Vector that will hold the Match Column names.


tXWriter

boolean tXWriter
Trigger that indicates whether the active SyncProvider is exposes the additional TransactionalWriter method


tWriter

javax.sql.rowset.spi.TransactionalWriter tWriter
The field object for a transactional RowSet writer


catalogName

java.lang.String catalogName

schemaName

java.lang.String schemaName

columnCatalogNames

java.lang.String[] columnCatalogNames

columnSchemaNames

java.lang.String[] columnSchemaNames

columnTableNames

java.lang.String[] columnTableNames

columnNames

java.lang.String[] columnNames

insertableColumns

boolean[] insertableColumns

updatableColumns

boolean[] updatableColumns

printStatements

boolean printStatements

Class com.sun.sql.rowset.RowSetMetaDataXImpl extends javax.sql.rowset.RowSetMetaDataImpl implements Serializable

Serialized Fields

columnClassName

java.lang.String[] columnClassName

definitelyWritable

boolean[] definitelyWritable

readOnly

boolean[] readOnly

writable

boolean[] writable

Package com.sun.sql.rowset.internal

Class com.sun.sql.rowset.internal.CachedRowSetXReader extends java.lang.Object implements Serializable

Serialized Fields

writerCalls

int writerCalls
The field that keeps track of whether the writer associated with this CachedRowSetXReader object's rowset has been called since the rowset was populated.

When this CachedRowSetXReader object reads data into its rowset, it sets the field writerCalls to 0. When the writer associated with the rowset is called to write data back to the underlying data source, its writeData method calls the method CachedRowSetXReader.reset, which increments writerCalls and returns true if writerCalls is 1. Thus, writerCalls equals 1 after the first call to writeData that occurs after the rowset has had data read into it.

 

userCon

boolean userCon

startPosition

int startPosition

Class com.sun.sql.rowset.internal.CachedRowSetXWriter extends java.lang.Object implements Serializable

Serialized Fields

con

java.sql.Connection con
The Connection object that this writer will use to make a connection to the data source to which it will write data.

 

selectCmd

java.lang.String selectCmd
The SQL SELECT command that this writer will call internally. The method initSQLStatements builds this command by supplying the words "SELECT" and "FROM," and using metadata to get the table name and column names .

 

updateCmd

java.lang.String updateCmd
The SQL UPDATE command that this writer will call internally to write data to the rowset's underlying data source. The method initSQLStatements builds this String object.

 

updateWhere

java.lang.String updateWhere
The SQL WHERE clause the writer will use for update statements in the PreparedStatement object it sends to the underlying data source.

 

deleteCmd

java.lang.String deleteCmd
The SQL DELETE command that this writer will call internally to delete a row in the rowset's underlying data source.

 

deleteWhere

java.lang.String deleteWhere
The SQL WHERE clause the writer will use for delete statements in the PreparedStatement object it sends to the underlying data source.

 

insertCmd

java.lang.String insertCmd
The SQL INSERT INTO command that this writer will internally use to insert data into the rowset's underlying data source. The method initSQLStatements builds this command with a question mark parameter placeholder for each column in the rowset.

 

insertableColumnsInThisTable

java.util.List insertableColumnsInThisTable
The columns to include in an insert. Only the columns from one table can be inserted. This list is computed when the insertCmd is built.

 

updatableColumnsInThisTable

java.util.List updatableColumnsInThisTable
The columns to include in an update. Only the columns from one table can be updated. This list is computed when the updateCmd is built. *NOTE*: The values are 1 based Integers!

 

whereColumnsInThisTable

java.util.List whereColumnsInThisTable
The columns to include in a where clause. This list is computed when the sql commands are bullt. *NOTE*: The values are 1 based Integers! *ALSO NOTE*: We could have separate lists for selectColumns and whereColumns At present, it is not known that this is necessary and, for now, we won't add this in the interests of not adding more complexity and not adding something that might not work. If we did add this, we would compute the selectColumnsInThisTable list and then pare that list down (by calling isSearchable on the column #), to get the whereColumnsInThisTable list. If isSearchable is not reliable, we might need to also add a searchableColumns boolean[] property on the rowset.

 

realColumnNames

java.lang.String[] realColumnNames
Real column names.

 

keyCols

int[] keyCols
An array containing the column numbers of the columns that are needed to uniquely identify a row in the CachedRowSet object for which this CachedRowSetXWriter object is the writer. NOTE: keyColumns in CachedRowSetXImpl are ignored and they are computed from whereColumnsInThisTable

 

params

java.lang.Object[] params
An array of the parameters that should be used to set the parameter placeholders in a PreparedStatement object that this writer will execute.

 

reader

CachedRowSetXReader reader
The CachedRowSetXReader object that has been set as the reader for the CachedRowSet object for which this CachedRowSetXWriter object is the writer.

 

callerMd

java.sql.ResultSetMetaData callerMd
The ResultSetMetaData object that contains information about the columns in the CachedRowSet object for which this CachedRowSetXWriter object is the writer.

 

callerColumnCount

int callerColumnCount
The number of columns in the CachedRowSet object for which this CachedRowSetXWriter object is the writer.

 

crsResolve

CachedRowSetXImpl crsResolve
This CachedRowSet will hold the conflicting values retrieved from the db and hold it.


status

java.util.ArrayList status
This ArrayList will hold the values of SyncResolver.*


exceptions

java.util.ArrayList exceptions
This ArrayList will hold the SQLExceptions of SyncResolver.*


iChangedValsInDbAndCRS

int iChangedValsInDbAndCRS
This will check whether the same field value has changed both in database and CachedRowSet.


iChangedValsinDbOnly

int iChangedValsinDbOnly
This will hold the number of cols for which the values have changed only in database.

Class com.sun.sql.rowset.internal.SyncResolverXImpl extends CachedRowSetXImpl implements Serializable

Serialized Fields

crsRes

CachedRowSetXImpl crsRes
This CachedRowSet object will encapsulate a rowset which will be sync'ed with the datasource but will contain values in rows where there is conflict. For rows other than conflict, it will *not* contain any data. For rows containing conflict it will return either of the three values set by SyncResolver.*_CONFLICT from getStatus()


crsSync

CachedRowSetXImpl crsSync
This is the actual CachedRowSet object which is being synchronized back to datasource.


stats

java.util.ArrayList stats
This ArrayList will contain the status of a row from the SyncResolver.* values else it will be null.


exceptions

java.util.ArrayList exceptions
This ArrayList will contain the SQLException of a row it will be null if no exception occurred.


crw

CachedRowSetXWriter crw
The RowSetWriter associated with the original CachedRowSet object which is being synchronized.


rowStatus

int rowStatus
Row number identifier


sz

int sz
This will contain the size of the CachedRowSet object


con

java.sql.Connection con
The Connection handle used to synchronize the changes back to datasource. This is the same connection handle as was passed to the CachedRowSet while fetching the data.


row

javax.sql.rowset.CachedRowSet row
The CachedRowSet object which will encapsulate a row at any time. This will be built from CachedRowSet and SyncResolver values. Synchronization takes place on a row by row basis encapsulated as a CahedRowSet.


Package com.sun.sql.rowset.providers

Class com.sun.sql.rowset.providers.RIOptimisticProvider extends javax.sql.rowset.spi.SyncProvider implements Serializable

Serialized Fields

reader

CachedRowSetXReader reader

writer

CachedRowSetXWriter writer

providerID

java.lang.String providerID
The unique provider indentifier.


vendorName

java.lang.String vendorName
The vendor name of this SyncProvider implementation


versionNumber

java.lang.String versionNumber
The version number of this SyncProvider implementation