| java.lang.Object javax.sql.rowset.BaseRowSet com.sun.sql.rowset.BaseRowSetX
All known Subclasses: com.sun.sql.rowset.CachedRowSetXImpl5,
BaseRowSetX | abstract public class BaseRowSetX extends BaseRowSet (Code) | | An abstract class extending javax.sql.rowset.BaseRowSet which contains
changes necessary to support using RowSets as java beans.
|
Method Summary | |
public int | getFetchDirection() Retrieves this RowSet object's current setting for the
fetch direction. | public int | getFetchSize() Returns the fetch size for this RowSet object. | public int | getMaxRows() Retrieves the maximum number of rows that this RowSet object may contain. | public void | setCommand(String cmd) Sets this RowSet object's command property to
the given String object and clears the parameters, if any,
that were set for the previous command. | public void | setDataSourceName(String name) Sets the DataSource name property for this RowSet
object to the given logical name and sets this RowSet object's
Url property to null . | public void | setFetchDirection(int direction) Gives the driver a performance hint as to the direction in
which the rows in this RowSet object will be
processed. | public void | setFetchSize(int rows) Sets the fetch size for this RowSet object to the given number of
rows. | public void | setMaxRows(int max) Sets the maximum number of rows that this RowSet object may contain to
the given number. | public void | setUrl(String url) Sets the Url property for this RowSet object
to the given String object and sets the dataSource name
property to null . |
getFetchDirection | public int getFetchDirection() throws SQLException(Code) | | Retrieves this RowSet object's current setting for the
fetch direction. The default type is ResultSet.FETCH_FORWARD
one of ResultSet.FETCH_FORWARD ,ResultSet.FETCH_REVERSE , orResultSet.FETCH_UNKNOWN throws: SQLException - if an error occurs in determining the current fetch direction for fetching rows See Also: BaseRowSetX.setFetchDirection |
getFetchSize | public int getFetchSize() throws SQLException(Code) | | Returns the fetch size for this RowSet object. The default
value is zero.
the number of rows suggested as the fetch size when this RowSet object needs more rows from the database throws: SQLException - if an error occurs determining the number of rows in thecurrent fetch size See Also: BaseRowSetX.setFetchSize |
getMaxRows | public int getMaxRows() throws SQLException(Code) | | Retrieves the maximum number of rows that this RowSet object may contain. If
this limit is exceeded, the excess rows are silently dropped.
an int indicating the current maximum number ofrows; zero means that there is no limit throws: SQLException - if an error occurs internally determining themaximum limit of rows that a Rowset object can contain |
setCommand | public void setCommand(String cmd) throws SQLException(Code) | | Sets this RowSet object's command property to
the given String object and clears the parameters, if any,
that were set for the previous command.
The command property may not be needed if the RowSet
object gets its data from a source that does not support commands,
such as a spreadsheet or other tabular file.
Thus, this property is optional and may be null .
Parameters: cmd - a String object containing an SQL querythat will be set as this RowSet object's commandproperty; may be null but may not be an empty string throws: SQLException - if an empty string is provided as the command value See Also: BaseRowSetX.getCommand |
setDataSourceName | public void setDataSourceName(String name) throws SQLException(Code) | | Sets the DataSource name property for this RowSet
object to the given logical name and sets this RowSet object's
Url property to null . The name must have been bound to a
DataSource object in a JNDI naming service so that an
application can do a lookup using that name to retrieve the
DataSource object bound to it. The DataSource
object can then be used to establish a connection to the data source it
represents.
Users should set either the Url property or the dataSourceName property.
If both properties are set, the driver will use the property set most recently.
Parameters: name - a String object with the name that can be suppliedto a naming service based on JNDI technology to retrieve theDataSource object that can be used to get a connection;may be null but must not be an empty string throws: SQLException - if there is a problem setting thedataSourceName property or name is an empty string See Also: BaseRowSetX.getDataSourceName |
setFetchDirection | public void setFetchDirection(int direction) throws SQLException(Code) | | Gives the driver a performance hint as to the direction in
which the rows in this RowSet object will be
processed. The driver may ignore this hint.
A RowSet object inherits the default properties of the
ResultSet object from which it got its data. That
ResultSet object's default fetch direction is set by
the Statement object that created it.
This method applies to a RowSet object only while it is
connected to a database using a JDBC driver.
A RowSet object may use this method at any time to change
its setting for the fetch direction.
Parameters: direction - one of ResultSet.FETCH_FORWARD ,ResultSet.FETCH_REVERSE , orResultSet.FETCH_UNKNOWN throws: SQLException - if (1) the RowSet type isTYPE_FORWARD_ONLY and the given fetch direction is notFETCH_FORWARD or (2) the given fetch direction is notone of the following:ResultSet.FETCH_FORWARD,ResultSet.FETCH_REVERSE, orResultSet.FETCH_UNKNOWN See Also: BaseRowSetX.getFetchDirection |
setFetchSize | public void setFetchSize(int rows) throws SQLException(Code) | | Sets the fetch size for this RowSet object to the given number of
rows. The fetch size gives a JDBC technology-enabled driver ("JDBC driver")
a hint as to the
number of rows that should be fetched from the database when more rows
are needed for this RowSet object. If the fetch size specified
is zero, the driver ignores the value and is free to make its own best guess
as to what the fetch size should be.
A RowSet object inherits the default properties of the
ResultSet object from which it got its data. That
ResultSet object's default fetch size is set by
the Statement object that created it.
This method applies to a RowSet object only while it is
connected to a database using a JDBC driver.
For connected RowSet implementations such as
JdbcRowSet , this method has a direct and immediate effect
on the underlying JDBC driver.
A RowSet object may use this method at any time to change
its setting for the fetch size.
For RowSet implementations such as
CachedRowSet , which operate in a disconnected environment,
the SyncProvider object being used
may leverage the fetch size to poll the data source and
retrieve a number of rows that do not exceed the fetch size and that may
form a subset of the actual rows returned by the original query. This is
an implementation variance determined by the specific SyncProvider
object employed by the disconnected RowSet object.
Parameters: rows - the number of rows to fetch; 0 to let thedriver decide what the best fetch size is; must not be lessthan 0 or more than the maximum number of rowsallowed for this RowSet object (the number returnedby a call to the method BaseRowSetX.getMaxRows) throws: SQLException - if the specified fetch size is less than 0 or more than the limit for the maximum number of rows See Also: BaseRowSetX.getFetchSize |
setMaxRows | public void setMaxRows(int max) throws SQLException(Code) | | Sets the maximum number of rows that this RowSet object may contain to
the given number. If this limit is exceeded, the excess rows are
silently dropped.
Parameters: max - an int indicating the current maximum numberof rows; zero means that there is no limit throws: SQLException - if an error occurs internally setting themaximum limit on the number of rows that a JDBC RowSet objectcan contain; or if max is less than 0 ; orif max is less than the fetchSize of theRowSet |
setUrl | public void setUrl(String url) throws SQLException(Code) | | Sets the Url property for this RowSet object
to the given String object and sets the dataSource name
property to null . The Url property is a
JDBC URL that is used when
the connection is created using a JDBC technology-enabled driver
("JDBC driver") and the DriverManager .
The correct JDBC URL for the specific driver to be used can be found
in the driver documentation. Although there are guidelines for for how
a JDBC URL is formed,
a driver vendor can specify any String object except
one with a length of 0 (an empty string).
Setting the Url property is optional if connections are established using
a DataSource object instead of the DriverManager .
The driver will use either the URL property or the
dataSourceName property to create a connection, whichever was
specified most recently. If an application uses a JDBC URL, it
must load a JDBC driver that accepts the JDBC URL before it uses the
RowSet object to connect to a database. The RowSet
object will use the URL internally to create a database connection in order
to read or write data.
Parameters: url - a String object that contains the JDBC URLthat will be used to establish the connection to a database for thisRowSet object; may be null but must notbe an empty string throws: SQLException - if an error occurs setting the Url property or theparameter supplied is a string with a length of 0 (anempty string) See Also: BaseRowSetX.getUrl |
Methods inherited from javax.sql.rowset.BaseRowSet | public void addRowSetListener(RowSetListener listener)(Code)(Java Doc) public void clearParameters() throws SQLException(Code)(Java Doc) public String getCommand()(Code)(Java Doc) public int getConcurrency() throws SQLException(Code)(Java Doc) public String getDataSourceName()(Code)(Java Doc) public boolean getEscapeProcessing() throws SQLException(Code)(Java Doc) public int getFetchDirection() throws SQLException(Code)(Java Doc) public int getFetchSize() throws SQLException(Code)(Java Doc) public int getMaxFieldSize() throws SQLException(Code)(Java Doc) public int getMaxRows() throws SQLException(Code)(Java Doc) public Object[] getParams() throws SQLException(Code)(Java Doc) public String getPassword()(Code)(Java Doc) public int getQueryTimeout() throws SQLException(Code)(Java Doc) public boolean getShowDeleted() throws SQLException(Code)(Java Doc) public int getTransactionIsolation()(Code)(Java Doc) public int getType() throws SQLException(Code)(Java Doc) public java.util.Map<String, Class<?>> getTypeMap()(Code)(Java Doc) public String getUrl() throws SQLException(Code)(Java Doc) public String getUsername()(Code)(Java Doc) protected void initParams()(Code)(Java Doc) public boolean isReadOnly()(Code)(Java Doc) protected void notifyCursorMoved() throws SQLException(Code)(Java Doc) protected void notifyRowChanged() throws SQLException(Code)(Java Doc) protected void notifyRowSetChanged() throws SQLException(Code)(Java Doc) public void removeRowSetListener(RowSetListener listener)(Code)(Java Doc) public void setArray(int parameterIndex, Array array) throws SQLException(Code)(Java Doc) public void setAsciiStream(int parameterIndex, java.io.InputStream x, int length) throws SQLException(Code)(Java Doc) public void setAsciiStream(int parameterIndex, java.io.InputStream x) throws SQLException(Code)(Java Doc) public void setAsciiStream(String parameterName, java.io.InputStream x, int length) throws SQLException(Code)(Java Doc) public void setAsciiStream(String parameterName, java.io.InputStream x) throws SQLException(Code)(Java Doc) public void setBigDecimal(int parameterIndex, java.math.BigDecimal x) throws SQLException(Code)(Java Doc) public void setBigDecimal(String parameterName, BigDecimal x) throws SQLException(Code)(Java Doc) public void setBinaryStream(int parameterIndex, java.io.InputStream x, int length) throws SQLException(Code)(Java Doc) public void setBinaryStream(int parameterIndex, java.io.InputStream x) throws SQLException(Code)(Java Doc) public void setBinaryStream(String parameterName, java.io.InputStream x, int length) throws SQLException(Code)(Java Doc) public void setBinaryStream(String parameterName, java.io.InputStream x) throws SQLException(Code)(Java Doc) public void setBlob(int parameterIndex, Blob x) throws SQLException(Code)(Java Doc) public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException(Code)(Java Doc) public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException(Code)(Java Doc) public void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException(Code)(Java Doc) public void setBlob(String parameterName, Blob x) throws SQLException(Code)(Java Doc) public void setBlob(String parameterName, InputStream inputStream) throws SQLException(Code)(Java Doc) public void setBoolean(int parameterIndex, boolean x) throws SQLException(Code)(Java Doc) public void setBoolean(String parameterName, boolean x) throws SQLException(Code)(Java Doc) public void setByte(int parameterIndex, byte x) throws SQLException(Code)(Java Doc) public void setByte(String parameterName, byte x) throws SQLException(Code)(Java Doc) public void setBytes(int parameterIndex, byte x) throws SQLException(Code)(Java Doc) public void setBytes(String parameterName, byte x) throws SQLException(Code)(Java Doc) public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException(Code)(Java Doc) public void setCharacterStream(int parameterIndex, java.io.Reader reader) throws SQLException(Code)(Java Doc) public void setCharacterStream(String parameterName, java.io.Reader reader, int length) throws SQLException(Code)(Java Doc) public void setCharacterStream(String parameterName, java.io.Reader reader) throws SQLException(Code)(Java Doc) public void setClob(int parameterIndex, Clob x) throws SQLException(Code)(Java Doc) public void setClob(int parameterIndex, Reader reader, long length) throws SQLException(Code)(Java Doc) public void setClob(int parameterIndex, Reader reader) throws SQLException(Code)(Java Doc) public void setClob(String parameterName, Reader reader, long length) throws SQLException(Code)(Java Doc) public void setClob(String parameterName, Clob x) throws SQLException(Code)(Java Doc) public void setClob(String parameterName, Reader reader) throws SQLException(Code)(Java Doc) public void setCommand(String cmd) throws SQLException(Code)(Java Doc) public void setConcurrency(int concurrency) throws SQLException(Code)(Java Doc) public void setDataSourceName(String name) throws SQLException(Code)(Java Doc) public void setDate(int parameterIndex, java.sql.Date x) throws SQLException(Code)(Java Doc) public void setDate(int parameterIndex, java.sql.Date x, Calendar cal) throws SQLException(Code)(Java Doc) public void setDate(String parameterName, java.sql.Date x) throws SQLException(Code)(Java Doc) public void setDate(String parameterName, java.sql.Date x, Calendar cal) throws SQLException(Code)(Java Doc) public void setDouble(int parameterIndex, double x) throws SQLException(Code)(Java Doc) public void setDouble(String parameterName, double x) throws SQLException(Code)(Java Doc) public void setEscapeProcessing(boolean enable) throws SQLException(Code)(Java Doc) public void setFetchDirection(int direction) throws SQLException(Code)(Java Doc) public void setFetchSize(int rows) throws SQLException(Code)(Java Doc) public void setFloat(int parameterIndex, float x) throws SQLException(Code)(Java Doc) public void setFloat(String parameterName, float x) throws SQLException(Code)(Java Doc) public void setInt(int parameterIndex, int x) throws SQLException(Code)(Java Doc) public void setInt(String parameterName, int x) throws SQLException(Code)(Java Doc) public void setLong(int parameterIndex, long x) throws SQLException(Code)(Java Doc) public void setLong(String parameterName, long x) throws SQLException(Code)(Java Doc) public void setMaxFieldSize(int max) throws SQLException(Code)(Java Doc) public void setMaxRows(int max) throws SQLException(Code)(Java Doc) public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException(Code)(Java Doc) public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException(Code)(Java Doc) public void setNCharacterStream(String parameterName, Reader value, long length) throws SQLException(Code)(Java Doc) public void setNCharacterStream(String parameterName, Reader value) throws SQLException(Code)(Java Doc) public void setNClob(String parameterName, NClob value) throws SQLException(Code)(Java Doc) public void setNClob(String parameterName, Reader reader, long length) throws SQLException(Code)(Java Doc) public void setNClob(String parameterName, Reader reader) throws SQLException(Code)(Java Doc) public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException(Code)(Java Doc) public void setNClob(int parameterIndex, NClob value) throws SQLException(Code)(Java Doc) public void setNClob(int parameterIndex, Reader reader) throws SQLException(Code)(Java Doc) public void setNString(int parameterIndex, String value) throws SQLException(Code)(Java Doc) public void setNString(String parameterName, String value) throws SQLException(Code)(Java Doc) public void setNull(int parameterIndex, int sqlType) throws SQLException(Code)(Java Doc) public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException(Code)(Java Doc) public void setNull(String parameterName, int sqlType) throws SQLException(Code)(Java Doc) public void setNull(String parameterName, int sqlType, String typeName) throws SQLException(Code)(Java Doc) public void setObject(int parameterIndex, Object x, int targetSqlType, int scale) throws SQLException(Code)(Java Doc) public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException(Code)(Java Doc) public void setObject(int parameterIndex, Object x) throws SQLException(Code)(Java Doc) public void setObject(String parameterName, Object x, int targetSqlType, int scale) throws SQLException(Code)(Java Doc) public void setObject(String parameterName, Object x, int targetSqlType) throws SQLException(Code)(Java Doc) public void setObject(String parameterName, Object x) throws SQLException(Code)(Java Doc) public void setPassword(String pass)(Code)(Java Doc) public void setQueryTimeout(int seconds) throws SQLException(Code)(Java Doc) public void setReadOnly(boolean value)(Code)(Java Doc) public void setRef(int parameterIndex, Ref ref) throws SQLException(Code)(Java Doc) public void setRowId(int parameterIndex, RowId x) throws SQLException(Code)(Java Doc) public void setRowId(String parameterName, RowId x) throws SQLException(Code)(Java Doc) public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException(Code)(Java Doc) public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException(Code)(Java Doc) public void setShort(int parameterIndex, short x) throws SQLException(Code)(Java Doc) public void setShort(String parameterName, short x) throws SQLException(Code)(Java Doc) public void setShowDeleted(boolean value) throws SQLException(Code)(Java Doc) public void setString(int parameterIndex, String x) throws SQLException(Code)(Java Doc) public void setString(String parameterName, String x) throws SQLException(Code)(Java Doc) public void setTime(int parameterIndex, java.sql.Time x) throws SQLException(Code)(Java Doc) public void setTime(int parameterIndex, java.sql.Time x, Calendar cal) throws SQLException(Code)(Java Doc) public void setTime(String parameterName, java.sql.Time x) throws SQLException(Code)(Java Doc) public void setTime(String parameterName, java.sql.Time x, Calendar cal) throws SQLException(Code)(Java Doc) public void setTimestamp(int parameterIndex, java.sql.Timestamp x) throws SQLException(Code)(Java Doc) public void setTimestamp(int parameterIndex, java.sql.Timestamp x, Calendar cal) throws SQLException(Code)(Java Doc) public void setTimestamp(String parameterName, java.sql.Timestamp x) throws SQLException(Code)(Java Doc) public void setTimestamp(String parameterName, java.sql.Timestamp x, Calendar cal) throws SQLException(Code)(Java Doc) public void setTransactionIsolation(int level) throws SQLException(Code)(Java Doc) public void setType(int type) throws SQLException(Code)(Java Doc) public void setTypeMap(java.util.Map<String, Class<?>> map)(Code)(Java Doc) public void setURL(int parameterIndex, java.net.URL x) throws SQLException(Code)(Java Doc) public void setUnicodeStream(int parameterIndex, java.io.InputStream x, int length) throws SQLException(Code)(Java Doc) public void setUrl(String url) throws SQLException(Code)(Java Doc) public void setUsername(String name)(Code)(Java Doc)
|
|
|