|
i-net JDBC drivers for Oracle Server | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.inet.ora.CachedRowSet
| Field Summary |
| Fields inherited from interface java.sql.ResultSet |
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE |
| Constructor Summary | |
CachedRowSet()
Constructs a new default OraOptCachedRowSet object. |
|
| Method Summary | |
boolean |
absolute(int row)
Moves this CachedRowSet object's cursor to the row number specified. |
void |
acceptChanges()
Propagates all row update, insert, and delete changes to the underlying data source backing this CachedRowSet object. |
void |
acceptChanges(java.sql.Connection con)
Propagates all row update, insert, and delete changes to the data source backing this CachedRowSet object using the given Connection object. |
void |
addRowSetListener(javax.sql.RowSetListener listener)
Registers the designated object as a listener for this rowset. |
void |
afterLast()
Moves this CachedRowSet object's cursor to the end of the rowset, just after the last row. |
void |
beforeFirst()
Moves this CachedRowSet object's cursor to the front of the rowset, just before the first row. |
void |
cancelRowDelete()
Cancels deletion of the current row and notifies listeners that a row has changed. |
void |
cancelRowInsert()
Immediately removes the current row from this CachedRowSet object if the row has been inserted, and also notifies listeners that a row has changed. |
void |
cancelRowUpdates()
Rolls back any updates made to the current row of this CachedRowSet object and notifies listeners that a row has changed. |
void |
clearParameters()
Clears all of the current parameter values in this rowset's internal representation of the parameters to be set in this rowset's command when it is executed. |
void |
clearWarnings()
After a call to this method, the getWarnings method returns null until a new warning is reported for this CachedRowSet object. |
java.lang.Object |
clone()
Returns a new RowSet object backed by the same data that backs this CachedRowSet object. |
void |
close()
Releases the current contents of this rowset, discarding outstanding updates. |
javax.sql.RowSet |
createCopy()
Creates a RowSet object that is a deep copy of this CachedRowSet object's data. |
javax.sql.RowSet |
createShared()
Returns a new RowSet object backed by the same data as that of this CachedRowSet object. |
void |
deleteRow()
Deletes the current row from this CachedRowSet object and notifies listeners registered with this rowset that a row has changed. |
void |
execute()
Populates this CachedRowSet object with data. |
void |
execute(java.sql.Connection con)
Populates this CachedRowSet object with data, using the given connection to produce the result set from which data will be read. |
int |
findColumn(java.lang.String colName)
Maps the given column name for one of this CachedRowSet object's columns to its column number. |
boolean |
first()
Moves this CachedRowSet object's cursor to the first row and returns true if the operation was successful. |
java.sql.Array |
getArray(int columnIndex)
Retrieves the value of the designated column in this CachedRowSet object as an Array object in the Java programming lanugage. |
java.sql.Array |
getArray(java.lang.String columnName)
Retrieves the value of the designated column in this CachedRowSet object as an Array object in the Java programming lanugage. |
java.io.InputStream |
getAsciiStream(int columnIndex)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a java.sql.Timestamp object. |
java.io.InputStream |
getAsciiStream(java.lang.String columnName)
A column value can be retrieved as a stream of ASCII characters and then read in chunks from the stream. |
java.math.BigDecimal |
getBigDecimal(int columnIndex)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a java.math.BigDecimal object. |
java.math.BigDecimal |
getBigDecimal(int columnIndex,
int scale)
Deprecated. Retrieves the value of the designated column in the current row of this CachedRowSet object as a java.math.BigDecimal object. This method is deprecated; use the version of getBigDecimal that does not take a scale parameter and returns a value with full precision. |
java.math.BigDecimal |
getBigDecimal(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a java.math.BigDecimal object. |
java.math.BigDecimal |
getBigDecimal(java.lang.String columnName,
int scale)
Deprecated. use the method getBigDecimal(String columnName) instead Retrieves the value stored in the designated column of the current row as a java.math.BigDecimal object. |
java.io.InputStream |
getBinaryStream(int columnIndex)
A column value can be retrieved as a stream of uninterpreted bytes and then read in chunks from the stream. |
java.io.InputStream |
getBinaryStream(java.lang.String columnName)
Retrieves the value stored in the designated column of the current row as a java.io.InputStream object. |
java.sql.Blob |
getBlob(int columnIndex)
Retrieves the value of the designated column in this CachedRowSet object as a Blob object in the Java programming lanugage. |
java.sql.Blob |
getBlob(java.lang.String columnName)
Retrieves the value of the designated column in this CachedRowSet object as a Blob object in the Java programming lanugage. |
boolean |
getBoolean(int columnIndex)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a boolean value. |
boolean |
getBoolean(java.lang.String columnName)
Retrieves the value stored in the designated column of the current row as a boolean value. |
byte |
getByte(int columnIndex)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a byte value. |
byte |
getByte(java.lang.String columnName)
Retrieves the value stored in the designated column of the current row as a byte value. |
byte[] |
getBytes(int columnIndex)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a byte array value. |
byte[] |
getBytes(java.lang.String columnName)
Retrieves the value stored in the designated column of the current row as a byte array. |
java.io.Reader |
getCharacterStream(int columnIndex)
Retrieves the value stored in the designated column of the current row as a java.io.Reader object. |
java.io.Reader |
getCharacterStream(java.lang.String columnName)
Retrieves the value stored in the designated column of the current row as a java.io.Reader object. |
java.sql.Clob |
getClob(int columnIndex)
Retrieves the value of the designated column in this CachedRowSet object as a Clob object in the Java programming lanugage. |
java.sql.Clob |
getClob(java.lang.String columnName)
Retrieves the value of the designated column in this CachedRowSet object as a Clob object in the Java programming lanugage. |
int |
getColumnCount()
Return the numbers of columns in this CachedRowSet. |
java.lang.String |
getCommand()
Retrieves the SQL query that is the command for this rowset. |
int |
getConcurrency()
Returns the concurrency for this rowset. |
java.sql.Connection |
getConnection()
Retrieves the Connection object passed to this CachedRowSet object. |
java.lang.String |
getCursorName()
Retrieves the name of the SQL cursor used by this CachedRowSet object. |
java.lang.String |
getDataSourceName()
Returns the logical name that when supplied to a naming service that uses the Java Naming and Directory Interface (JNDI) API, will retrieve a javax.sql.DataSource object. |
java.sql.Date |
getDate(int columnIndex)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a java.sql.Date object. |
java.sql.Date |
getDate(int columnIndex,
java.util.Calendar cal)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a java.sql.Date object, using the given Calendar object to construct an appropriate millisecond value for the date. |
java.sql.Date |
getDate(java.lang.String columnName)
Retrieves the value stored in the designated column of the current row as a java.sql.Date object. |
java.sql.Date |
getDate(java.lang.String columnName,
java.util.Calendar cal)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a java.sql.Date object, using the given Calendar object to construct an appropriate millisecond value for the date. |
double |
getDouble(int columnIndex)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a double value. |
double |
getDouble(java.lang.String columnName)
Retrieves the value stored in the designated column of the current row as a double value. |
boolean |
getEscapeProcessing()
Ascertains whether escape processing is enabled for this rowset. |
int |
getFetchDirection()
Retrieves this rowset's current setting for the fetch direction. |
int |
getFetchSize()
Returns the fetch size for this rowset. |
float |
getFloat(int columnIndex)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a float value. |
float |
getFloat(java.lang.String columnName)
Retrieves the value stored in the designated column of the current row as a float value. |
int |
getInt(int columnIndex)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a short value. |
int |
getInt(java.lang.String columnName)
Retrieves the value stored in the designated column of the current row as an int value. |
long |
getLong(int columnIndex)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a long value. |
long |
getLong(java.lang.String columnName)
Retrieves the value stored in the designated column of the current row as a long value. |
int |
getMaxFieldSize()
Retrieves the maximum number of bytes that can be used for a column value in this rowset. |
int |
getMaxRows()
Retrieves the maximum number of rows that this rowset may contain. |
java.sql.ResultSetMetaData |
getMetaData()
Retrieves the ResultSetMetaData object that contains information about this CachedRowsSet object. |
java.lang.Object |
getObject(int columnIndex)
Retrieves the value of the designated column in the current row of this CachedRowSet object as an Object value. |
java.lang.Object |
getObject(int columnIndex,
java.util.Map map)
Retrieves the value of the designated column in this CachedRowSet object as an Object in the Java programming lanugage, using the given java.util.Map object to custom map the value if appropriate. |
java.lang.Object |
getObject(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this CachedRowSet object as an Object value. |
java.lang.Object |
getObject(java.lang.String columnName,
java.util.Map map)
Retrieves the value of the designated column in this CachedRowSet object as an Object in the Java programming lanugage, using the given java.util.Map object to custom map the value if appropriate. |
java.lang.Object[] |
getParams()
Retrieves an array containing the parameters that may be set in the PreparedStatement object that is the command for this rowset. |
java.lang.String |
getPassword()
Returns the password used to create a database connection for this rowset. |
int |
getQueryTimeout()
Retrieves the maximum number of seconds the driver will wait for a query to execute. |
java.sql.Ref |
getRef(int columnIndex)
Retrieves the value of the designated column in this CachedRowSet object as a Ref object in the Java programming lanugage. |
java.sql.Ref |
getRef(java.lang.String columnName)
Retrieves the value of the designated column in this CachedRowSet object as a Ref object in the Java programming lanugage. |
int |
getRow()
Returns the number of the current row in this CachedRowSet object. |
short |
getShort(int columnIndex)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a short value. |
short |
getShort(java.lang.String columnName)
Retrieves the value stored in the designated column of the current row as a short value. |
boolean |
getShowDeleted()
Retrieves a boolean indicating whether rows marked for deletion appear in the set of current rows. |
java.sql.Statement |
getStatement()
Retrieves the statement of this CachedRowSet object. |
java.lang.String |
getString(int columnIndex)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a String object. |
java.lang.String |
getString(java.lang.String columnName)
Retrieves the value stored in the designated column of the current row as a String object. |
java.lang.String |
getTableName()
Get the name of the table where the changes will be made. |
java.sql.Time |
getTime(int columnIndex)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a java.sql.Time object. |
java.sql.Time |
getTime(int columnIndex,
java.util.Calendar cal)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a java.sql.Time object, using the given Calendar object to construct an appropriate millisecond value for the date. |
java.sql.Time |
getTime(java.lang.String columnName)
Retrieves the value stored in the designated column of the current row as a java.sql.Time object. |
java.sql.Time |
getTime(java.lang.String columnName,
java.util.Calendar cal)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a java.sql.Time object, using the given Calendar object to construct an appropriate millisecond value for the date. |
java.sql.Timestamp |
getTimestamp(int columnIndex)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a java.sql.Timestamp object. |
java.sql.Timestamp |
getTimestamp(int columnIndex,
java.util.Calendar cal)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a java.sql.Timestamp object, using the given Calendar object to construct an appropriate millisecond value for the date. |
java.sql.Timestamp |
getTimestamp(java.lang.String columnName)
Retrieves the value stored in the designated column of the current row as a java.sql.Timestamp object. |
java.sql.Timestamp |
getTimestamp(java.lang.String columnName,
java.util.Calendar cal)
Retrieves the value of the designated column in the current row of this CachedRowSet object as a java.sql.Timestamp object, using the given Calendar object to construct an appropriate millisecond value for the date. |
int |
getTransactionIsolation()
Returns the transaction isolation property for this rowset' connection. |
int |
getType()
Returns the type of this rowset. |
java.util.Map |
getTypeMap()
Retrieves the type map associated with the Connection object for this rowset. |
java.io.InputStream |
getUnicodeStream(int columnIndex)
Deprecated. A column value can be retrieved as a stream of Unicode characters and then read in chunks from the stream. This method is particularly suitable for retrieving large LONGVARCHAR values. The JDBC driver will do any necessary conversion from the database format into Unicode. Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a get method implicitly closes the stream. . Also, a stream may return 0 for available() whether there is data available or not. |
java.io.InputStream |
getUnicodeStream(java.lang.String columnName)
Deprecated. use the method getCharacterStream instead Retrieves the value stored in the designated column of the current row as a java.io.InputStream object. A column value can be retrieved as a stream of Unicode characters and then read in chunks from the stream. This method is particularly suitable for retrieving large LONGVARCHAR values. The JDBC driver will do any necessary conversion from the database format into Unicode. Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a getXXX method implicitly closes the stream. |
java.lang.String |
getUrl()
Retrieves the URL that was used to create the connection between this rowset and the source of its data, which is a relational database using a JDBC technology-enabled driver. |
java.net.URL |
getURL(int columnIndex)
|
java.net.URL |
getURL(java.lang.String columnName)
|
java.lang.String |
getUsername()
Returns the user name used to create a database connection. |
java.sql.SQLWarning |
getWarnings()
The first warning reported by calls on this CachedRowSet object is returned. |
void |
insertRow()
Inserts the contents of this CachedRowSet object's insert row into this rowset immediately following the current row. |
boolean |
isAfterLast()
Indicates whether the cursor is after the last row in this CachedRowSet object. |
boolean |
isBeforeFirst()
Indicates whether the cursor is before the first row in this CachedRowSet object. |
boolean |
isFirst()
Indicates whether the cursor is on the first row in this CachedRowSet object. |
boolean |
isLast()
Indicates whether the cursor is on the last row in this CachedRowSet object. |
boolean |
isReadOnly()
Returns a boolean indicating whether this rowset is read-only. |
boolean |
last()
Moves this CachedRowSet object's cursor to the last row and returns true if the operation was successful. |
void |
moveToCurrentRow()
Moves the cursor for this CachedRowSet object to the current row. |
void |
moveToInsertRow()
Moves the cursor for this CachedRowSet object to the insert row. |
boolean |
next()
Moves the cursor down one row from its current position and returns true if the new cursor position is a valid row. |
void |
populate(java.sql.ResultSet data)
Populates this CachedRowSet object with data from the given ResultSet object. |
boolean |
previous()
Moves this CachedRowSet object's cursor to the previous row and returns true if the cursor is on a valid row or false if it is not. |
void |
refreshRow()
Sets the current row with its original value and marks the row as not updated, thus undoing any changes made to the row. |
boolean |
relative(int rows)
Moves the cursor the specified number of rows from the current position, with a positive number moving it forward and a negative number moving it backward. |
void |
release()
Releases the current contents of this CachedRowSet object and sends a RowSetChangedEvent object to all registered listeners. |
void |
removeRowSetListener(javax.sql.RowSetListener listener)
Removes the designated object from this rowset's list of listeners. |
void |
restoreOriginal()
Restores this CachedRowSet object to its original state, that is, its state before the last set of changes. |
boolean |
rowDeleted()
Indicates whether the current row has been deleted. |
boolean |
rowInserted()
Indicates whether the current row has been inserted. |
boolean |
rowUpdated()
Indicates whether the current row of this CachedRowSet object has been updated. |
void |
setArray(int i,
java.sql.Array x)
Sets the designated parameter to an Array object in the Java programming language. |
void |
setAsciiStream(int i,
java.io.InputStream x,
int length)
Sets the designated parameter to the given java.io.InputStream in the Java programming language, which will have the specified number of bytes. |
void |
setBigDecimal(int i,
java.math.BigDecimal x)
Sets the designated parameter to the given java.lang.BigDecimal value. |
void |
setBinaryStream(int i,
java.io.InputStream x,
int length)
Sets the designated parameter to the given java.io.InputStream in the Java programming language, which will have the specified number of bytes. |
void |
setBlob(int i,
java.sql.Blob x)
Sets the designated parameter to the given Blob object in the Java programming language. |
void |
setBoolean(int i,
boolean x)
Sets the designated parameter to the given boolean in the Java programming language. |
void |
setByte(int i,
byte x)
Sets the designated parameter to the given byte in the Java programming language. |
void |
setBytes(int i,
byte[] x)
Sets the designated parameter to the given array of bytes. |
void |
setCharacterStream(int i,
java.io.Reader x,
int length)
Sets the designated parameter to the given java.io.Reader object, which will have the specified number of characters. |
void |
setClob(int i,
java.sql.Clob x)
Sets the designated parameter to the given Clob object in the Java programming language. |
void |
setCommand(java.lang.String cmd)
Sets this CachedRowSet 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)
Sets the concurrency for this rowset to the specified concurrency. |
void |
setDataSourceName(java.lang.String name)
Sets the data source property name for this rowset object to the given logical name for a data source and sets this rowset's URL property to null. |
void |
setDate(int i,
java.sql.Date x)
Sets the designated parameter to the given java.sql.Date value. |
void |
setDate(int i,
java.sql.Date x,
java.util.Calendar cal)
Sets the designated parameter to the given java.sql.Date object. |
void |
setDouble(int i,
double x)
Sets the designated parameter to the given double in the Java programming language. |
void |
setEscapeProcessing(boolean enable)
Sets to the given boolean whether or not the driver will scan for escape syntax and do escape substitution before sending SQL statements to the database. |
void |
setFetchDirection(int direction)
Gives the driver a performance hint as to the direction in which the rows in this rowset will be processed. |
void |
setFetchSize(int rows)
Sets the fetch size for this rowset to the given number of rows. |
void |
setFloat(int i,
float x)
Sets the designated parameter to the given float in the Java programming language. |
void |
setInt(int i,
int x)
Sets the designated parameter to an int in the Java programming language. |
void |
setLong(int i,
long x)
Sets the designated parameter to the given long in the Java programming language. |
void |
setMaxFieldSize(int max)
Sets the maximum number of bytes that can be used for a column value in this rowset to the given number. |
void |
setMaxRows(int max)
Sets the maximum number of rows that this rowset object may contain to the given number. |
void |
setNull(int i,
int sqlType)
Sets the designated parameter to SQL NULL. |
void |
setNull(int i,
int sqlType,
java.lang.String typeName)
Sets the designated parameter to SQL NULL. |
void |
setObject(int i,
java.lang.Object x)
Sets the designated parameter to an Object in the Java programming language. |
void |
setObject(int i,
java.lang.Object x,
int sqlType)
Sets the value of the designated parameter with the given Object value. |
void |
setObject(int i,
java.lang.Object x,
int sqlType,
int scale)
Sets the designated parameter to an Object in the Java programming language. |
void |
setPassword(java.lang.String pword)
Sets the password used to create a database connection for this rowset to the given String object. |
void |
setQueryTimeout(int seconds)
Sets to the given number the maximum number of seconds the driver will wait for a query to execute. |
void |
setReadOnly(boolean value)
Sets this rowset's readOnly property to the given boolean. |
void |
setRef(int i,
java.sql.Ref x)
Sets the designated parameter to the given Ref object in the Java programming language. |
void |
setShort(int i,
short x)
Sets the designated parameter to the given short in the Java programming language. |
void |
setShowDeleted(boolean value)
Sets the property showDeleted to the given boolean value, which determines whether rows marked for deletion appear in the set of current rows. |
void |
setString(int i,
java.lang.String x)
Sets the designated parameter to the given String value. |
void |
setTableName(java.lang.String tabName)
Sets the identifier for the table from which this rowset was derived to the given table name. |
void |
setTime(int i,
java.sql.Time x)
Sets the designated parameter to the given java.sql.Time value. |
void |
setTime(int i,
java.sql.Time x,
java.util.Calendar cal)
Sets the designated parameter to the given java.sql.Time object. |
void |
setTimestamp(int i,
java.sql.Timestamp x)
Sets the designated parameter to the given java.sql.Timestamp value in the Java programming programming language. |
void |
setTimestamp(int i,
java.sql.Timestamp x,
java.util.Calendar cal)
Sets the designated parameter to the given java.sql.Timestamp object. |
void |
setTransactionIsolation(int level)
Sets the transaction isolation property for this rowset to the given constant. |
void |
setType(int type)
Sets the type for this rowset to the specified type. |
void |
setTypeMap(java.util.Map map)
Installs the given java.util.Map object as the type map associated with the Connection object for this rowset. |
void |
setUrl(java.lang.String url)
Sets the URL property for this rowset to the given String object. |
void |
setUsername(java.lang.String name)
Sets the username property for this rowset to the given user name. |
int |
size()
Return the numbers of rows in this CachedRowSet object |
java.util.Collection |
toCollection()
Converts this CachedRowSet object to a collection. |
java.util.Collection |
toCollection(int column)
Returns the specified column of this CachedRowSet object as a Collection object. |
void |
updateArray(int columnIndex,
java.sql.Array x)
|
void |
updateArray(java.lang.String columnName,
java.sql.Array x)
|
void |
updateAsciiStream(int columnIndex,
java.io.InputStream x,
int length)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given ASCII stream value. |
void |
updateAsciiStream(java.lang.String columnName,
java.io.InputStream x,
int length)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given ASCII stream value. |
void |
updateBigDecimal(int columnIndex,
java.math.BigDecimal x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given java.math.BigDecimal object. |
void |
updateBigDecimal(java.lang.String columnName,
java.math.BigDecimal x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given java.math.BigDecimal object. |
void |
updateBinaryStream(int columnIndex,
java.io.InputStream x,
int length)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given java.io.InputStream object. |
void |
updateBinaryStream(java.lang.String columnName,
java.io.InputStream x,
int length)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given java.io.InputStream object. |
void |
updateBlob(int columnIndex,
java.sql.Blob x)
|
void |
updateBlob(java.lang.String columnName,
java.sql.Blob x)
|
void |
updateBoolean(int columnIndex,
boolean x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given boolean value. |
void |
updateBoolean(java.lang.String columnName,
boolean x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given boolean value. |
void |
updateByte(int columnIndex,
byte x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given byte value. |
void |
updateByte(java.lang.String columnName,
byte x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given byte value. |
void |
updateBytes(int columnIndex,
byte[] x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given byte value. |
void |
updateBytes(java.lang.String columnName,
byte[] x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given byte array. |
void |
updateCharacterStream(int columnIndex,
java.io.Reader x,
int length)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given java.io.Reader object. |
void |
updateCharacterStream(java.lang.String columnName,
java.io.Reader reader,
int length)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given java.io.Reader object. |
void |
updateClob(int columnIndex,
java.sql.Clob x)
|
void |
updateClob(java.lang.String columnName,
java.sql.Clob x)
|
void |
updateDate(int columnIndex,
java.sql.Date x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given Date object. |
void |
updateDate(java.lang.String columnName,
java.sql.Date x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given Date object. |
void |
updateDouble(int columnIndex,
double x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given double value. |
void |
updateDouble(java.lang.String columnName,
double x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given double value. |
void |
updateFloat(int columnIndex,
float x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given float value. |
void |
updateFloat(java.lang.String columnName,
float x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given float value. |
void |
updateInt(int columnIndex,
int x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given int value. |
void |
updateInt(java.lang.String columnName,
int x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given int value. |
void |
updateLong(int columnIndex,
long x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given long value. |
void |
updateLong(java.lang.String columnName,
long x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given long value. |
void |
updateNull(int columnIndex)
Sets the designated nullable column in the current row or the insert row of this CachedRowSet object with null value. |
void |
updateNull(java.lang.String columnName)
Sets the designated nullable column in the current row or the insert row of this CachedRowSet object with null value. |
void |
updateObject(int columnIndex,
java.lang.Object x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given Object value. |
void |
updateObject(int columnIndex,
java.lang.Object x,
int scale)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given Object value. |
void |
updateObject(java.lang.String columnName,
java.lang.Object x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given Object value. |
void |
updateObject(java.lang.String columnName,
java.lang.Object x,
int scale)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given Object value. |
void |
updateRef(int columnIndex,
java.sql.Ref x)
|
void |
updateRef(java.lang.String columnName,
java.sql.Ref x)
|
void |
updateRow()
Marks the current row of this CachedRowSet object as updated and notifies listeners registered with this rowset that the row has changed. |
void |
updateShort(int columnIndex,
short x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given short value. |
void |
updateShort(java.lang.String columnName,
short x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given short value. |
void |
updateString(int columnIndex,
java.lang.String x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given String object. |
void |
updateString(java.lang.String columnName,
java.lang.String x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given String object. |
void |
updateTime(int columnIndex,
java.sql.Time x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given Time object. |
void |
updateTime(java.lang.String columnName,
java.sql.Time x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given Time object. |
void |
updateTimestamp(int columnIndex,
java.sql.Timestamp x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given Timestamp object. |
void |
updateTimestamp(java.lang.String columnName,
java.sql.Timestamp x)
Sets the designated column in either the current row or the insert row of this CachedRowSet object with the given Timestamp object. |
boolean |
wasNull()
Reports whether the last column read was SQL NULL. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CachedRowSet()
| Method Detail |
public boolean wasNull()
throws java.sql.SQLException
wasNull in interface java.sql.ResultSetjava.sql.SQLException - - if an error occurs
public void updateTimestamp(java.lang.String columnName,
java.sql.Timestamp x)
throws java.sql.SQLException
updateTimestamp in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casex - the new column value
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row, (3) the type of the designated column is not an SQL DATE, TIME, or TIMESTAMP
public void updateTimestamp(int columnIndex,
java.sql.Timestamp x)
throws java.sql.SQLException
updateTimestamp in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetx - the new column value
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row, (3) the type of the designated column is not an SQL DATE, TIME, or TIMESTAMP
public void updateTime(java.lang.String columnName,
java.sql.Time x)
throws java.sql.SQLException
updateTime in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casex - the new column value
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row, (3) the type of the designated column is not an SQL TIME or TIMESTAMP
public void updateTime(int columnIndex,
java.sql.Time x)
throws java.sql.SQLException
updateTime in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetx - the new column value
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row, (3) the type of the designated column is not an SQL TIME or TIMESTAMP
public void updateString(int columnIndex,
java.lang.String x)
throws java.sql.SQLException
updateString in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetx - the new column value
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateString(java.lang.String columnName,
java.lang.String x)
throws java.sql.SQLException
updateString in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casex - the new column value
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateShort(int columnIndex,
short x)
throws java.sql.SQLException
updateShort in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetx - the new column value
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateShort(java.lang.String columnName,
short x)
throws java.sql.SQLException
updateShort in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casex - the new column value
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateRow()
throws java.sql.SQLException
updateRow in interface java.sql.ResultSetjava.sql.SQLException - if an error occurs
public void updateObject(int columnIndex,
java.lang.Object x)
throws java.sql.SQLException
updateObject in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetx - the new column value
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateObject(java.lang.String columnName,
java.lang.Object x,
int scale)
throws java.sql.SQLException
updateObject in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casex - the new column valuescale - the number of digits to the right of the decimal point (for DECIMAL and NUMERIC types only)
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateObject(java.lang.String columnName,
java.lang.Object x)
throws java.sql.SQLException
updateObject in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casex - the new column value
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateObject(int columnIndex,
java.lang.Object x,
int scale)
throws java.sql.SQLException
updateObject in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetx - the new column valuescale - the number of digits to the right of the decimal point (for DECIMAL and NUMERIC types only)
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateNull(int columnIndex)
throws java.sql.SQLException
updateNull in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateNull(java.lang.String columnName)
throws java.sql.SQLException
updateNull in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring case
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateLong(int columnIndex,
long x)
throws java.sql.SQLException
updateLong in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetx - the new column value
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateLong(java.lang.String columnName,
long x)
throws java.sql.SQLException
updateLong in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casex - the new column value
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateInt(int columnIndex,
int x)
throws java.sql.SQLException
updateInt in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetx - the new column value
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateInt(java.lang.String columnName,
int x)
throws java.sql.SQLException
updateInt in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casex - the new column value
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateFloat(java.lang.String columnName,
float x)
throws java.sql.SQLException
updateFloat in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casex - the new column value
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateFloat(int columnIndex,
float x)
throws java.sql.SQLException
updateFloat in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetx - the new column value
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateDouble(java.lang.String columnName,
double x)
throws java.sql.SQLException
updateDouble in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casex - the new column value
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateDouble(int columnIndex,
double x)
throws java.sql.SQLException
updateDouble in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetx - the new column value
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateDate(java.lang.String columnName,
java.sql.Date x)
throws java.sql.SQLException
updateDate in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casex - the new column value
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row, (3) the type of the designated column is not an SQL DATE or TIMESTAMP
public void updateDate(int columnIndex,
java.sql.Date x)
throws java.sql.SQLException
updateDate in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetx - the new column value
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row, (3) the type of the designated column is not an SQL DATE or TIMESTAMP
public void updateCharacterStream(java.lang.String columnName,
java.io.Reader reader,
int length)
throws java.sql.SQLException
updateCharacterStream in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casereader - the new column value; must be a java.io.Reader containing BINARY, VARBINARY, LONGVARBINARY, CHAR, VARCHAR, or LONGVARCHAR datalength - the length of the stream in characters
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row, (3) the data in the stream is not a binary or character type
public void updateCharacterStream(int columnIndex,
java.io.Reader x,
int length)
throws java.sql.SQLException
updateCharacterStream in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetx - the new column value; must be a java.io.Reader containing BINARY, VARBINARY, LONGVARBINARY, CHAR, VARCHAR, or LONGVARCHAR datalength - the length of the stream in characters
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row, (3) the data in the stream is not a binary or character type
public void updateBytes(java.lang.String columnName,
byte[] x)
throws java.sql.SQLException
updateBytes in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casex - the new column value
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateBytes(int columnIndex,
byte[] x)
throws java.sql.SQLException
updateBytes in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetx - the new column value
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateByte(java.lang.String columnName,
byte x)
throws java.sql.SQLException
updateByte in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casex - the new column value
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateByte(int columnIndex,
byte x)
throws java.sql.SQLException
updateByte in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetx - the new column value
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateBoolean(int columnIndex,
boolean x)
throws java.sql.SQLException
updateBoolean in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetx - the new column value
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateBoolean(java.lang.String columnName,
boolean x)
throws java.sql.SQLException
updateBoolean in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casex - the new column value
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateBinaryStream(int columnIndex,
java.io.InputStream x,
int length)
throws java.sql.SQLException
updateBinaryStream in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetx - the new column value; must be a java.io.InputStream containing BINARY, VARBINARY, or LONGVARBINARY datalength - the length of the stream in bytes
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row, (3) the data in the stream is not binary
public void updateBinaryStream(java.lang.String columnName,
java.io.InputStream x,
int length)
throws java.sql.SQLException
updateBinaryStream in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casex - the new column value; must be a java.io.InputStream containing BINARY, VARBINARY, or LONGVARBINARY datalength - the length of the stream in bytes
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row, (3) the data in the stream is not binary
public void updateBigDecimal(java.lang.String columnName,
java.math.BigDecimal x)
throws java.sql.SQLException
updateBigDecimal in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casex - the new column value
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateBigDecimal(int columnIndex,
java.math.BigDecimal x)
throws java.sql.SQLException
updateBigDecimal in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetx - the new column value
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateAsciiStream(int columnIndex,
java.io.InputStream x,
int length)
throws java.sql.SQLException
updateAsciiStream in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetx - the new column valuelength - the number of one-byte ASCII characters in the stream
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row
public void updateAsciiStream(java.lang.String columnName,
java.io.InputStream x,
int length)
throws java.sql.SQLException
updateAsciiStream in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casex - the new column valuelength - the number of one-byte ASCII characters in the stream
java.sql.SQLException - if (1) the given column name does not match the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert rowpublic void setUsername(java.lang.String name)
setUsername in interface javax.sql.RowSetname - the String object containing the user name that will be supplied to the data source to create a connection
public void setUrl(java.lang.String url)
throws java.sql.SQLException
setUrl in interface javax.sql.RowSeturl - a String object that contains the JDBC URL that will be used to establish the connection for this rowset; may be null
java.sql.SQLException - if an error occurs
public void setTypeMap(java.util.Map map)
throws java.sql.SQLException
setTypeMap in interface javax.sql.RowSetmap - a java.util.Map object that contains the mapping from SQL type names for user-defined types to classes in the Java programming language
java.sql.SQLException - if an error occurspublic void setType(int type)
setType in interface javax.sql.RowSettype - one of the following constants: ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, or ResultSet.TYPE_SCROLL_SENSITIVE
public void setTransactionIsolation(int level)
throws java.sql.SQLException
setTransactionIsolation in interface javax.sql.RowSetlevel - one of the following constants, listed in ascending order: Connection.TRANSACTION_NONE, Connection.TRANSACTION_READ_UNCOMMITTED, Connection.TRANSACTION_READ_COMMITTED, Connection.TRANSACTION_REPEATABLE_READ, or Connection.TRANSACTION_SERIALIZABLE
java.sql.SQLException - if an error occurs
public void setTimestamp(int i,
java.sql.Timestamp x)
throws java.sql.SQLException
setTimestamp in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the parameter value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setTimestamp(int i,
java.sql.Timestamp x,
java.util.Calendar cal)
throws java.sql.SQLException
setTimestamp in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - a java.sql.Timestamp object representing an SQL TIMESTAMP value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setTime(int i,
java.sql.Time x,
java.util.Calendar cal)
throws java.sql.SQLException
setTime in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - a java.sql.Time object representing an SQL DATE value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setTime(int i,
java.sql.Time x)
throws java.sql.SQLException
setTime in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the parameter value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setString(int i,
java.lang.String x)
throws java.sql.SQLException
setString in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the parameter value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setShort(int i,
short x)
throws java.sql.SQLException
setShort in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the parameter value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setRef(int i,
java.sql.Ref x)
throws java.sql.SQLException
setRef in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - a Ref object representing an SQL REF value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setReadOnly(boolean value)
throws java.sql.SQLException
setReadOnly in interface javax.sql.RowSetvalue - true to indicate that this rowset is read-only; false to indicate that it is updatable
java.sql.SQLException - if an error occurs
public void setQueryTimeout(int seconds)
throws java.sql.SQLException
setQueryTimeout in interface javax.sql.RowSetseconds - the new query timeout limit in seconds; zero means that there is no limit
java.sql.SQLException - if an error occurspublic void setPassword(java.lang.String pword)
setPassword in interface javax.sql.RowSetpword - the String object that represents the password that must be supplied to the database to create a connection
public void setObject(int i,
java.lang.Object x)
throws java.sql.SQLException
setObject in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the object containing the input parameter value
java.sql.SQLException - if an error occurs the parameter index is out of bounds, or there is ambiguity in the implementation of the object being set
public void setObject(int i,
java.lang.Object x,
int sqlType,
int scale)
throws java.sql.SQLException
setObject in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the Object containing the input parameter value; must be an Object typesqlType - the SQL type (as defined in java.sql.Types) to be sent to the database. The scale argument may further qualify this type.scale - for the types java.sql.Types.DECIMAL and java.sql.Types.NUMERIC, this is the number of digits after the decimal point. For all other types, this value will be ignored.
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setObject(int i,
java.lang.Object x,
int sqlType)
throws java.sql.SQLException
setObject in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the Object containing the input parameter value; must be an Object typesqlType - the SQL type (as defined in java.sql.Types) to be sent to the database.
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setNull(int i,
int sqlType)
throws java.sql.SQLException
setNull in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greatersqlType - an int that is one of the SQL type codes defined in the class java.sql.Types
java.sql.SQLException - is a database access error occurs or the given parameter index is out of bounds
public void setNull(int i,
int sqlType,
java.lang.String typeName)
throws java.sql.SQLException
setNull in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greatersqlType - a value from java.sql.TypestypeName - the fully-qualified name of an SQL user-defined type, which is ignored if the parameter is not a user-defined type or REF value
java.sql.SQLException - if an error occurs or the given parameter index is out of bounds
public void setMaxRows(int max)
throws java.sql.SQLException
setMaxRows in interface javax.sql.RowSetmax - an int indicating the current maximum number of rows; zero means that there is no limit
java.sql.SQLException - if an error occurs
public void setMaxFieldSize(int max)
throws java.sql.SQLException
setMaxFieldSize in interface javax.sql.RowSetmax - an int indicating the new maximum column size limit; zero means that there is no limit
java.sql.SQLException - if an error occurs
public void setLong(int i,
long x)
throws java.sql.SQLException
setLong in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the parameter value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setInt(int i,
int x)
throws java.sql.SQLException
setInt in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the parameter value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setFloat(int i,
float x)
throws java.sql.SQLException
setFloat in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the parameter value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setFetchSize(int rows)
throws java.sql.SQLException
setFetchSize in interface java.sql.ResultSetrows - the number of rows to fetch; 0 to let the driver decide what the best fetch size is; must not be less than 0 or more than the maximum number of rows allowed for this rowset (the number returned by a call to the method getMaxRows())
java.sql.SQLException - if the specified fetch size is out of bounds
public void setFetchDirection(int direction)
throws java.sql.SQLException
setFetchDirection in interface java.sql.ResultSetdirection - one of ResultSet.FETCH_FORWARD, ResultSet.FETCH_REVERSE, or ResultSet.FETCH_UNKNOWN
java.sql.SQLException - if the rowset type is TYPE_FORWARD_ONLY and the given fetch direction is not FETCH_FORWARD
public void setEscapeProcessing(boolean enable)
throws java.sql.SQLException
setEscapeProcessing in interface javax.sql.RowSetenable - true to enable escape processing; false to disable it
java.sql.SQLException - if an error occurs
public void setDouble(int i,
double x)
throws java.sql.SQLException
setDouble in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the parameter value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setDate(int i,
java.sql.Date x,
java.util.Calendar cal)
throws java.sql.SQLException
setDate in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - a java.sql.Date object representing an SQL DATE value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setDate(int i,
java.sql.Date x)
throws java.sql.SQLException
setDate in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the parameter value
java.sql.SQLException - if an error occurs or the parameter index is out of boundspublic void setDataSourceName(java.lang.String name)
setDataSourceName in interface javax.sql.RowSetpublic void setConcurrency(int concurrency)
setConcurrency in interface javax.sql.RowSetconcurrency - one of the following constants: ResultSet.CONCUR_READ_ONLY or ResultSet.CONCUR_UPDATABLE
public void setCommand(java.lang.String cmd)
throws java.sql.SQLException
setCommand in interface javax.sql.RowSetcmd - a String object containing an SQL query that will be set as the command; may be null
java.sql.SQLException - if an error occurs
public void setClob(int i,
java.sql.Clob x)
throws java.sql.SQLException
setClob in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - a Clob object representing an SQL CLOB value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setCharacterStream(int i,
java.io.Reader x,
int length)
throws java.sql.SQLException
setCharacterStream in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the Reader object that contains the Unicode datalength - the number of characters in the stream
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setBytes(int i,
byte[] x)
throws java.sql.SQLException
setBytes in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the parameter value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setByte(int i,
byte x)
throws java.sql.SQLException
setByte in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the parameter value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setBoolean(int i,
boolean x)
throws java.sql.SQLException
setBoolean in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the parameter value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setBlob(int i,
java.sql.Blob x)
throws java.sql.SQLException
setBlob in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - a Blob object representing an SQL BLOB value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setBinaryStream(int i,
java.io.InputStream x,
int length)
throws java.sql.SQLException
setBinaryStream in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the java input stream that contains the binary parameter valuelength - the number of bytes in the stream
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setBigDecimal(int i,
java.math.BigDecimal x)
throws java.sql.SQLException
setBigDecimal in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the parameter value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setAsciiStream(int i,
java.io.InputStream x,
int length)
throws java.sql.SQLException
setAsciiStream in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - the Java input stream that contains the ASCII parameter valuelength - the number of bytes in the stream
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public void setArray(int i,
java.sql.Array x)
throws java.sql.SQLException
setArray in interface javax.sql.RowSeti - the index into this rowset object's internal representation of parameter values; the first parameter is 1, the second is 2, and so on; must be 1 or greaterx - an Array object representing an SQL ARRAY value
java.sql.SQLException - if an error occurs or the parameter index is out of bounds
public boolean rowUpdated()
throws java.sql.SQLException
rowUpdated in interface java.sql.ResultSetjava.sql.SQLException
public boolean rowInserted()
throws java.sql.SQLException
rowInserted in interface java.sql.ResultSetjava.sql.SQLException
public boolean rowDeleted()
throws java.sql.SQLException
rowDeleted in interface java.sql.ResultSetjava.sql.SQLExceptionpublic void removeRowSetListener(javax.sql.RowSetListener listener)
removeRowSetListener in interface javax.sql.RowSetlistener - an object that is on the list of listeners for this RowSet object
public boolean relative(int rows)
throws java.sql.SQLException
relative in interface java.sql.ResultSetrows - an int indicating the number of rows to move the cursor, starting at the current row; a positive number moves the cursor forward; a negative number moves the cursor backward; must not move the cursor past the valid rows
java.sql.SQLException - if there are no rows in this rowset, the cursor is positioned either before the first row or after the last row
public void refreshRow()
throws java.sql.SQLException
refreshRow in interface java.sql.ResultSetjava.sql.SQLException - if an error occurs
public boolean previous()
throws java.sql.SQLException
previous in interface java.sql.ResultSetjava.sql.SQLException - if the cursor is not on a valid position
public boolean next()
throws java.sql.SQLException
next in interface java.sql.ResultSetjava.sql.SQLException - if an error occurs or the cursor is not positioned in the rowset, before the first row, or after the last rowpublic void moveToInsertRow()
moveToInsertRow in interface java.sql.ResultSetpublic void moveToCurrentRow()
moveToCurrentRow in interface java.sql.ResultSet
public boolean last()
throws java.sql.SQLException
last in interface java.sql.ResultSetjava.sql.SQLException - if the type of this rowset is ResultSet.TYPE_FORWARD_ONLYpublic boolean isReadOnly()
isReadOnly in interface javax.sql.RowSet
public boolean isLast()
throws java.sql.SQLException
isLast in interface java.sql.ResultSetjava.sql.SQLException - if an error occurs
public boolean isFirst()
throws java.sql.SQLException
isFirst in interface java.sql.ResultSetjava.sql.SQLException - if an error occurs
public boolean isBeforeFirst()
throws java.sql.SQLException
isBeforeFirst in interface java.sql.ResultSetjava.sql.SQLException - if an error occurs
public boolean isAfterLast()
throws java.sql.SQLException
isAfterLast in interface java.sql.ResultSetjava.sql.SQLException - if an error occurs
public void insertRow()
throws java.sql.SQLException
insertRow in interface java.sql.ResultSetjava.sql.SQLException - if (1) the cursor is not on the insert row, (2) one or more of the non-nullable columns in the insert row has not been given a value
public java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
getWarnings in interface java.sql.ResultSetjava.sql.SQLException - if an error occurspublic java.lang.String getUsername()
getUsername in interface javax.sql.RowSet
public java.lang.String getUrl()
throws java.sql.SQLException
getUrl in interface javax.sql.RowSetjava.sql.SQLException - if an error occurs
public java.io.InputStream getUnicodeStream(int columnIndex)
throws java.sql.SQLException
getUnicodeStream in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
java.sql.SQLException - if an error occurs
public java.io.InputStream getUnicodeStream(java.lang.String columnName)
throws java.sql.SQLException
getUnicodeStream in interface java.sql.ResultSetcolumnName - a String object giving the SQL name of a column in this CachedRowSet object
java.sql.SQLException - if the given column name does not match one of this rowset's column names or the cursor is not on one of this rowset's rows or its insert row
public java.util.Map getTypeMap()
throws java.sql.SQLException
getTypeMap in interface javax.sql.RowSetjava.sql.SQLException - if an error occurs
public int getType()
throws java.sql.SQLException
getType in interface java.sql.ResultSetjava.sql.SQLException - if an error occurspublic int getTransactionIsolation()
getTransactionIsolation in interface javax.sql.RowSet
public java.sql.Timestamp getTimestamp(int columnIndex,
java.util.Calendar cal)
throws java.sql.SQLException
getTimestamp in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowsetcal - the java.util.Calendar object to use in constructing the date
java.sql.SQLException - if (1) the given column name is not the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row, or (3) the designated column does not store an SQL TIME or TIMESTAMP value
public java.sql.Timestamp getTimestamp(java.lang.String columnName)
throws java.sql.SQLException
getTimestamp in interface java.sql.ResultSetcolumnName - a String object giving the SQL name of a column in this CachedRowSet object
java.sql.SQLException - if the given column name does not match one of this rowset's column names or the cursor is not on one of this rowset's rows or its insert row
public java.sql.Timestamp getTimestamp(java.lang.String columnName,
java.util.Calendar cal)
throws java.sql.SQLException
getTimestamp in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casecal - the java.util.Calendar object to use in constructing the date
java.sql.SQLException - if (1) the given column name is not the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row, or (3) the designated column does not store an SQL DATE, TIME, or TIMESTAMP value
public java.sql.Timestamp getTimestamp(int columnIndex)
throws java.sql.SQLException
getTimestamp in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowset
java.sql.SQLException - if the given column index is out of bounds, the cursor is not on a valid row, or this method fails
public java.sql.Time getTime(java.lang.String columnName,
java.util.Calendar cal)
throws java.sql.SQLException
getTime in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casecal - the java.util.Calendar object to use in constructing the date
java.sql.SQLException - if (1) the given column name is not the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row, or (3) the designated column does not store an SQL TIME or TIMESTAMP value
public java.sql.Time getTime(java.lang.String columnName)
throws java.sql.SQLException
getTime in interface java.sql.ResultSetcolumnName - a String object giving the SQL name of a column in this CachedRowSet object
java.sql.SQLException - if the given column name does not match one of this rowset's column names or the cursor is not on one of this rowset's rows or its insert row
public java.sql.Time getTime(int columnIndex)
throws java.sql.SQLException
getTime in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowset
java.sql.SQLException - if the given column index is out of bounds, the cursor is not on a valid row, or this method fails
public java.sql.Time getTime(int columnIndex,
java.util.Calendar cal)
throws java.sql.SQLException
getTime in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowsetcal - the java.util.Calendar object to use in constructing the date
java.sql.SQLException - if (1) the given column name is not the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row, or (3) the designated column does not store an SQL TIME or TIMESTAMP value
public java.lang.String getString(int columnIndex)
throws java.sql.SQLException
getString in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowset
java.sql.SQLException - if the given column index is out of bounds or the cursor is not on a valid row
public java.lang.String getString(java.lang.String columnName)
throws java.sql.SQLException
getString in interface java.sql.ResultSetcolumnName - a String object giving the SQL name of a column in this CachedRowSet object
java.sql.SQLException - if the given column name does not match one of this rowset's column names or the cursor is not on one of this rowset's rows or its insert row
public java.sql.Statement getStatement()
throws java.sql.SQLException
getStatement in interface java.sql.ResultSetjava.sql.SQLException - if an error occurs
public short getShort(int columnIndex)
throws java.sql.SQLException
getShort in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowset
java.sql.SQLException - if the given column index is out of bounds, the cursor is not on a valid row, or this method fails
public short getShort(java.lang.String columnName)
throws java.sql.SQLException
getShort in interface java.sql.ResultSetcolumnName - a String object giving the SQL name of a column in this CachedRowSet object
java.sql.SQLException - if the given column name does not match one of this rowset's column names or the cursor is not on one of this rowset's rows or its insert row
public int getRow()
throws java.sql.SQLException
getRow in interface java.sql.ResultSetjava.sql.SQLException - if an error occurs or there is no current row
public java.sql.Ref getRef(int columnIndex)
throws java.sql.SQLException
getRef in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row, or (3) the designated column does not store an SQL REF value
public java.sql.Ref getRef(java.lang.String columnName)
throws java.sql.SQLException
getRef in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring case
java.sql.SQLException - if (1) the given column name is not the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row, or (3) the column value is not an SQL REF value
public int getQueryTimeout()
throws java.sql.SQLException
getQueryTimeout in interface javax.sql.RowSetjava.sql.SQLException - if an error occurspublic java.lang.String getPassword()
getPassword in interface javax.sql.RowSet
public java.lang.Object getObject(java.lang.String columnName)
throws java.sql.SQLException
getObject in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring case
java.sql.SQLException - if (1) the given column name does not match one of this rowset's column names, (2) the cursor is not on a valid row, or (3) there is a problem getting the Class object for a custom mapping
public java.lang.Object getObject(int columnIndex)
throws java.sql.SQLException
getObject in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowset
java.sql.SQLException - if the given column index is out of bounds, the cursor is not on a valid row, or there is a problem getting the Class object for a custom mapping
public java.lang.Object getObject(int columnIndex,
java.util.Map map)
throws java.sql.SQLException
getObject in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowsetmap - a java.util.Map object showing the mapping from SQL type names to classes in the Java programming language
java.sql.SQLException - if the given column index is out of bounds or the cursor is not on one of this rowset's rows or its insert row
public java.lang.Object getObject(java.lang.String columnName,
java.util.Map map)
throws java.sql.SQLException
getObject in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casemap - a java.util.Map object showing the mapping from SQL type names to classes in the Java programming language
java.sql.SQLException - if the given column name is not the name of a column in this rowset or the cursor is not on one of this rowset's rows or its insert row
public java.sql.ResultSetMetaData getMetaData()
throws java.sql.SQLException
getMetaData in interface java.sql.ResultSetjava.sql.SQLException - if an error occurs
public int getMaxRows()
throws java.sql.SQLException
getMaxRows in interface javax.sql.RowSetjava.sql.SQLException - if an error occurs
public int getMaxFieldSize()
throws java.sql.SQLException
getMaxFieldSize in interface javax.sql.RowSetjava.sql.SQLException - if an error occurs
public long getLong(java.lang.String columnName)
throws java.sql.SQLException
getLong in interface java.sql.ResultSetcolumnName - a String object giving the SQL name of a column in this CachedRowSet object
java.sql.SQLException - if the given column name does not match one of this rowset's column names or the cursor is not on one of this rowset's rows or its insert row
public long getLong(int columnIndex)
throws java.sql.SQLException
getLong in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowset
java.sql.SQLException - if the given column index is out of bounds, the cursor is not on a valid row, or this method fails
public int getInt(java.lang.String columnName)
throws java.sql.SQLException
getInt in interface java.sql.ResultSetcolumnName - a String object giving the SQL name of a column in this CachedRowSet object
java.sql.SQLException - if the given column name does not match one of this rowset's column names or the cursor is not on one of this rowset's rows or its insert row
public int getInt(int columnIndex)
throws java.sql.SQLException
getInt in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowset
java.sql.SQLException - if the given column index is out of bounds, the cursor is not on a valid row, or this method fails
public float getFloat(int columnIndex)
throws java.sql.SQLException
getFloat in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowset
java.sql.SQLException - if the given column index is out of bounds, the cursor is not on a valid row, or this method fails
public float getFloat(java.lang.String columnName)
throws java.sql.SQLException
getFloat in interface java.sql.ResultSetcolumnName - a String object giving the SQL name of a column in this CachedRowSet object
java.sql.SQLException - if the given column name does not match one of this rowset's column names or the cursor is not on one of this rowset's rows or its insert row
public int getFetchSize()
throws java.sql.SQLException
getFetchSize in interface java.sql.ResultSetjava.sql.SQLException - if an error occurs
public int getFetchDirection()
throws java.sql.SQLException
getFetchDirection in interface java.sql.ResultSetjava.sql.SQLException - if an error occurs
public boolean getEscapeProcessing()
throws java.sql.SQLException
getEscapeProcessing in interface javax.sql.RowSetjava.sql.SQLException - if an error occurs
public double getDouble(int columnIndex)
throws java.sql.SQLException
getDouble in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowset
java.sql.SQLException - if the given column index is out of bounds, the cursor is not on a valid row, or this method fails
public double getDouble(java.lang.String columnName)
throws java.sql.SQLException
getDouble in interface java.sql.ResultSetcolumnName - a String object giving the SQL name of a column in this CachedRowSet object
java.sql.SQLException - if the given column name does not match one of this rowset's column names or the cursor is not on one of this rowset's rows or its insert row
public java.sql.Date getDate(java.lang.String columnName)
throws java.sql.SQLException
getDate in interface java.sql.ResultSetcolumnName - a String object giving the SQL name of a column in this CachedRowSet object
java.sql.SQLException - if the given column name does not match one of this rowset's column names or the cursor is not on one of this rowset's rows or its insert row
public java.sql.Date getDate(int columnIndex,
java.util.Calendar cal)
throws java.sql.SQLException
getDate in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowsetcal - the java.util.Calendar object to use in constructing the date
java.sql.SQLException - if (1) the given column name is not the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row, or (3) the designated column does not store an SQL DATE or TIMESTAMP value
public java.sql.Date getDate(int columnIndex)
throws java.sql.SQLException
getDate in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowset
java.sql.SQLException - if the given column index is out of bounds, the cursor is not on a valid row, or this method fails
public java.sql.Date getDate(java.lang.String columnName,
java.util.Calendar cal)
throws java.sql.SQLException
getDate in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring casecal - the java.util.Calendar object to use in constructing the date
java.sql.SQLException - if (1) the given column name is not the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row, or (3) the designated column does not store an SQL DATE or TIMESTAMP valuepublic java.lang.String getDataSourceName()
getDataSourceName in interface javax.sql.RowSet
public java.lang.String getCursorName()
throws java.sql.SQLException
getCursorName in interface java.sql.ResultSetjava.sql.SQLException - if an error occurs
public int getConcurrency()
throws java.sql.SQLException
getConcurrency in interface java.sql.ResultSetjava.sql.SQLException - if an error occurspublic java.lang.String getCommand()
getCommand in interface javax.sql.RowSet
public java.sql.Clob getClob(int columnIndex)
throws java.sql.SQLException
getClob in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row, or (3) the designated column does not store an SQL CLOB value
public java.sql.Clob getClob(java.lang.String columnName)
throws java.sql.SQLException
getClob in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring case
java.sql.SQLException - if (1) the given column name is not the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row, or (3) the designated column does not store an SQL CLOB value
public java.io.Reader getCharacterStream(int columnIndex)
throws java.sql.SQLException
getCharacterStream in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowset
java.sql.SQLException - if the given column index is out of bounds, the cursor is not on a valid row, or there is a type mismatch
public java.io.Reader getCharacterStream(java.lang.String columnName)
throws java.sql.SQLException
getCharacterStream in interface java.sql.ResultSetcolumnName - a String object giving the SQL name of a column in this CachedRowSet object
java.sql.SQLException - if the given column index is out of bounds, the cursor is not on a valid row, or there is a type mismatch
public byte[] getBytes(int columnIndex)
throws java.sql.SQLException
getBytes in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowset
java.sql.SQLException - if the given column index is out of bounds, the cursor is not on a valid row, or the the value to be retrieved is not binary
public byte[] getBytes(java.lang.String columnName)
throws java.sql.SQLException
getBytes in interface java.sql.ResultSetcolumnName - a String object giving the SQL name of a column in this CachedRowSet object
java.sql.SQLException - if the given column name does not match one of this rowset's column names or the cursor is not on one of this rowset's rows or its insert row
public byte getByte(java.lang.String columnName)
throws java.sql.SQLException
getByte in interface java.sql.ResultSetcolumnName - a String object giving the SQL name of a column in this CachedRowSet object
java.sql.SQLException - if the given column name does not match one of this rowset's column names or the cursor is not on one of this rowset's rows or its insert row
public byte getByte(int columnIndex)
throws java.sql.SQLException
getByte in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowset
java.sql.SQLException - if the given column index is out of bounds, the cursor is not on a valid row, or this method fails
public boolean getBoolean(int columnIndex)
throws java.sql.SQLException
getBoolean in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowset
java.sql.SQLException - if the given column index is out of bounds, the cursor is not on a valid row, or this method fails
public boolean getBoolean(java.lang.String columnName)
throws java.sql.SQLException
getBoolean in interface java.sql.ResultSetcolumnName - a String object giving the SQL name of a column in this CachedRowSet object
java.sql.SQLException - if the given column name does not match one of this rowset's column names or the cursor is not on one of this rowset's rows or its insert row
public java.sql.Blob getBlob(int columnIndex)
throws java.sql.SQLException
getBlob in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row, or (3) the designated column does not store an SQL BLOB value
public java.sql.Blob getBlob(java.lang.String columnName)
throws java.sql.SQLException
getBlob in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring case
java.sql.SQLException - if (1) the given column name is not the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row, or (3) the designated column does not store an SQL BLOB value
public java.io.InputStream getBinaryStream(java.lang.String columnName)
throws java.sql.SQLException
getBinaryStream in interface java.sql.ResultSetcolumnName - a String object giving the SQL name of a column in this CachedRowSet object
java.sql.SQLException - if the given column name does not match one of this rowset's column names or the cursor is not on one of this rowset's rows or its insert row
public java.io.InputStream getBinaryStream(int columnIndex)
throws java.sql.SQLException
getBinaryStream in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowset
java.sql.SQLException - if an error occurs
public java.math.BigDecimal getBigDecimal(int columnIndex,
int scale)
throws java.sql.SQLException
getBigDecimal in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowsetscale - the number of digits to the right of the decimal point in the value returned
java.sql.SQLException - if the given column index is out of bounds, the cursor is not on a valid row, or this method fails
public java.math.BigDecimal getBigDecimal(java.lang.String columnName,
int scale)
throws java.sql.SQLException
getBigDecimal in interface java.sql.ResultSetcolumnName - a String object giving the SQL name of a column in this CachedRowSet objectscale - the number of digits to the right of the decimal point
java.sql.SQLException - if the given column name does not match one of this rowset's column names or the cursor is not on one of this rowset's rows or its insert row
public java.math.BigDecimal getBigDecimal(java.lang.String columnName)
throws java.sql.SQLException
getBigDecimal in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring case
java.sql.SQLException - if the given column index is out of bounds, the cursor is not on a valid row, or this method fails
public java.math.BigDecimal getBigDecimal(int columnIndex)
throws java.sql.SQLException
getBigDecimal in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowset
java.sql.SQLException - if the given column index is out of bounds, the cursor is not on a valid row, or this method fails
public java.io.InputStream getAsciiStream(int columnIndex)
throws java.sql.SQLException
getAsciiStream in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in the rowset
java.sql.SQLException - if the given column index is out of bounds, the cursor is not on a valid row, or this method fails
public java.io.InputStream getAsciiStream(java.lang.String columnName)
throws java.sql.SQLException
getAsciiStream in interface java.sql.ResultSetcolumnName - a String object giving the SQL name of a column in this CachedRowSet object
java.sql.SQLException - if an error occurs
public java.sql.Array getArray(int columnIndex)
throws java.sql.SQLException
getArray in interface java.sql.ResultSetcolumnIndex - the first column is 1, the second is 2, and so on; must be 1 or larger and equal to or less than the number of columns in this rowset
java.sql.SQLException - if (1) the given column index is out of bounds, (2) the cursor is not on one of this rowset's rows or its insert row, or (3) the designated column does not store an SQL ARRAY value
public java.sql.Array getArray(java.lang.String columnName)
throws java.sql.SQLException
getArray in interface java.sql.ResultSetcolumnName - a String object that must match the SQL name of a column in this rowset, ignoring case
java.sql.SQLException - if (1) the given column name is not the name of a column in this rowset, (2) the cursor is not on one of this rowset's rows or its insert row, or (3) the designated column does not store an SQL ARRAY value
public boolean first()
throws java.sql.SQLException
first in interface java.sql.ResultSetjava.sql.SQLException - if the type of this rowset is ResultSet.TYPE_FORWARD_ONLY
public int findColumn(java.lang.String colName)
throws java.sql.SQLException
findColumn in interface java.sql.ResultSetcolName - a String object that must match the SQL name of a column in this rowset, ignoring case
java.sql.SQLException - if the given column name does not match one of this rowset's column names
public void execute()
throws java.sql.SQLException
execute in interface javax.sql.RowSetjava.sql.SQLException - if an error occurs or the necessary properties have not been set
public void deleteRow()
throws java.sql.SQLException
deleteRow in interface java.sql.ResultSetjava.sql.SQLException - if an error occurs
public void close()
throws java.sql.SQLException
close in interface java.sql.ResultSetjava.sql.SQLException - if an error occurs
public void clearWarnings()
throws java.sql.SQLException
clearWarnings in interface java.sql.ResultSetjava.sql.SQLException - if an error occurs
public void clearParameters()
throws java.sql.SQLException
clearParameters in interface javax.sql.RowSetjava.sql.SQLException - if an error occurs
public void cancelRowUpdates()
throws java.sql.SQLException
cancelRowUpdates in interface java.sql.ResultSetjava.sql.SQLExceptionpublic void beforeFirst()
beforeFirst in interface java.sql.ResultSet
public void afterLast()
throws java.sql.SQLException
afterLast in interface java.sql.ResultSetjava.sql.SQLException - if an error occurspublic void addRowSetListener(javax.sql.RowSetListener listener)
addRowSetListener in interface javax.sql.RowSetlistener - an object that has implemented the RowSetListener interface and wants to be notified of changes in this rowset
public boolean absolute(int row)
throws java.sql.SQLException
absolute in interface java.sql.ResultSetrow - a positive number to indicate the row, starting row numbering from the first row, which is 1; a negative number to indicate the row, starting row numbering from the last row, which is -1; must not be 0
java.sql.SQLException - - if the given cursor position is 0
public boolean getShowDeleted()
throws java.sql.SQLException
java.sql.SQLException - if an error occurs
public void setShowDeleted(boolean value)
throws java.sql.SQLException
value - true if deleted rows should be shown; false otherwise
java.sql.SQLException - if an error occurs
public void populate(java.sql.ResultSet data)
throws java.sql.SQLException
data - the ResultSet object containing the data to be read into this CachedRowSet object.
java.sql.SQLException - if an error occurs
public void execute(java.sql.Connection con)
throws java.sql.SQLException
java.sql.SQLException
public void acceptChanges()
throws java.sql.SQLException
java.sql.SQLException - if the cursor is on the insert row or this method failed
public void acceptChanges(java.sql.Connection con)
throws java.sql.SQLException
con - a database connection
java.sql.SQLException - if an error occurs
public void restoreOriginal()
throws java.sql.SQLException
java.sql.SQLException - if an error occurs
public void release()
throws java.sql.SQLException
java.sql.SQLException - if an error occurs
public void cancelRowDelete()
throws java.sql.SQLException
java.sql.SQLException - if the cursor is not on a valid row
public void cancelRowInsert()
throws java.sql.SQLException
java.sql.SQLException - if an error occurs, the cursor is not on a valid row, or the row has not been inserted
public javax.sql.RowSet createShared()
throws java.sql.SQLException
java.sql.SQLException - if an error occurs or cloning is not supported
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - if an error occurs
public javax.sql.RowSet createCopy()
throws java.sql.SQLException
java.sql.SQLException - if an error occurs, the input stream is corrupted, there are other input/output problems, or a necessary class cannot be found
public java.util.Collection toCollection()
throws java.sql.SQLException
java.sql.SQLException - if an error occurs
public java.util.Collection toCollection(int column)
throws java.sql.SQLException
java.sql.SQLException - if an error occurs
public void setTableName(java.lang.String tabName)
throws java.sql.SQLException
tabName - a String object that identifies the table from which this CachedRowSet object was derived
java.sql.SQLException - if an error occurspublic java.lang.String getTableName()
public java.lang.Object[] getParams()
throws java.sql.SQLException
java.sql.SQLException - if an error occurs
public java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLException - if an error occurs
public int size()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getColumnCount()
public java.net.URL getURL(int columnIndex)
throws java.sql.SQLException
getURL in interface java.sql.ResultSetjava.sql.SQLException
public java.net.URL getURL(java.lang.String columnName)
throws java.sql.SQLException
getURL in interface java.sql.ResultSetjava.sql.SQLException
public void updateArray(int columnIndex,
java.sql.Array x)
throws java.sql.SQLException
updateArray in interface java.sql.ResultSetjava.sql.SQLException
public void updateArray(java.lang.String columnName,
java.sql.Array x)
throws java.sql.SQLException
updateArray in interface java.sql.ResultSetjava.sql.SQLException
public void updateBlob(int columnIndex,
java.sql.Blob x)
throws java.sql.SQLException
updateBlob in interface java.sql.ResultSetjava.sql.SQLException
public void updateBlob(java.lang.String columnName,
java.sql.Blob x)
throws java.sql.SQLException
updateBlob in interface java.sql.ResultSetjava.sql.SQLException
public void updateClob(int columnIndex,
java.sql.Clob x)
throws java.sql.SQLException
updateClob in interface java.sql.ResultSetjava.sql.SQLException
public void updateClob(java.lang.String columnName,
java.sql.Clob x)
throws java.sql.SQLException
updateClob in interface java.sql.ResultSetjava.sql.SQLException
public void updateRef(int columnIndex,
java.sql.Ref x)
throws java.sql.SQLException
updateRef in interface java.sql.ResultSetjava.sql.SQLException
public void updateRef(java.lang.String columnName,
java.sql.Ref x)
throws java.sql.SQLException
updateRef in interface java.sql.ResultSetjava.sql.SQLException
|
i-net JDBC drivers for Oracle Server | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||