java.io.Serializable, java.lang.AutoCloseable, java.sql.ResultSet, java.sql.Wrapper, javax.sql.RowSetOPLCachedRowSet, OPLJdbcRowSetpublic abstract class BaseRowSet
extends java.lang.Object
implements javax.sql.RowSet, java.io.Serializable
| Modifier and Type | Class | Description |
|---|---|---|
protected class |
BaseRowSet.Parameter |
| Modifier and Type | Field | Description |
|---|---|---|
protected static int |
ev_CursorMoved |
|
protected static int |
ev_RowChanged |
|
protected static int |
ev_RowSetChanged |
|
protected java.util.Map<java.lang.String,java.lang.Class<?>> |
map |
| Constructor | Description |
|---|---|
BaseRowSet() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addRowSetListener(javax.sql.RowSetListener rowsetlistener) |
RowSet listener registration.
|
void |
clearParameters() |
In general, parameter values remain in force for repeated use of a
RowSet.
|
void |
close() |
|
java.lang.String |
getCommand() |
Get the rowset's command property.
|
int |
getConcurrency() |
Get the rowset concurrency.
|
java.lang.String |
getDataSourceName() |
The JNDI name that identifies a JDBC data source.
|
boolean |
getEscapeProcessing() |
If escape scanning is on (the default), the driver will do
escape substitution before sending the SQL to the database.
|
int |
getFetchDirection() |
Determine the fetch direction.
|
int |
getFetchSize() |
Determine the default fetch size.
|
int |
getMaxFieldSize() |
The maxFieldSize limit (in bytes) is the maximum amount of data
returned for any column value; it only applies to BINARY,
VARBINARY, LONGVARBINARY, CHAR, VARCHAR, and LONGVARCHAR
columns.
|
int |
getMaxRows() |
The maxRows limit is the maximum number of rows that a
RowSet can contain.
|
protected BaseRowSet.Parameter |
getParam(int paramIndex) |
|
java.lang.Object[] |
getParams() |
Get the parameters that were set on the rowset.
|
java.lang.String |
getPassword() |
The password used to create a database connection.
|
int |
getQueryTimeout() |
The queryTimeout limit is the number of seconds the driver will
wait for a Statement to execute.
|
int |
getTransactionIsolation() |
The transaction isolation property contains the JDBC transaction
isolation level used.
|
int |
getType() |
Return the type of this result set.
|
java.util.Map<java.lang.String,java.lang.Class<?>> |
getTypeMap() |
Get the type-map object associated with this rowset.
|
java.lang.String |
getUrl() |
Get the url used to create a JDBC connection.
|
java.lang.String |
getUsername() |
The username used to create a database connection.
|
boolean |
isReadOnly() |
A rowset may be read-only.
|
protected void |
notifyListener(int event) |
|
void |
removeRowSetListener(javax.sql.RowSetListener rowsetlistener) |
RowSet listener deregistration.
|
void |
setArray(int parameterIndex,
java.sql.Array x) |
Set an Array parameter.
|
void |
setAsciiStream(int parameterIndex,
java.io.InputStream x) |
Sets the designated parameter in this
RowSet object's command
to the given input stream. |
void |
setAsciiStream(int parameterIndex,
java.io.InputStream x,
int length) |
When a very large ASCII value is input to a LONGVARCHAR
parameter, it may be more practical to send it via a
java.io.InputStream.
|
void |
setAsciiStream(java.lang.String parameterName,
java.io.InputStream x) |
Sets the designated parameter to the given input stream.
|
void |
setAsciiStream(java.lang.String parameterName,
java.io.InputStream x,
int length) |
Sets the designated parameter to the given input stream, which will have
the specified number of bytes.
|
void |
setBigDecimal(int parameterIndex,
java.math.BigDecimal x) |
Set a parameter to a java.lang.BigDecimal value.
|
void |
setBigDecimal(java.lang.String parameterName,
java.math.BigDecimal x) |
Sets the designated parameter to the given
java.math.BigDecimal value. |
void |
setBinaryStream(int parameterIndex,
java.io.InputStream x) |
Sets the designated parameter in this
RowSet object's command
to the given input stream. |
void |
setBinaryStream(int parameterIndex,
java.io.InputStream x,
int length) |
When a very large binary value is input to a LONGVARBINARY
parameter, it may be more practical to send it via a
java.io.InputStream.
|
void |
setBinaryStream(java.lang.String parameterName,
java.io.InputStream x) |
Sets the designated parameter to the given input stream.
|
void |
setBinaryStream(java.lang.String parameterName,
java.io.InputStream x,
int length) |
Sets the designated parameter to the given input stream, which will have
the specified number of bytes.
|
void |
setBlob(int parameterIndex,
java.io.InputStream inputStream) |
Sets the designated parameter to a
InputStream object. |
void |
setBlob(int parameterIndex,
java.io.InputStream inputStream,
long length) |
Sets the designated parameter to a
InputStream object. |
void |
setBlob(int parameterIndex,
java.sql.Blob x) |
Set a BLOB parameter.
|
void |
setBlob(java.lang.String parameterName,
java.io.InputStream inputStream) |
Sets the designated parameter to a
InputStream object. |
void |
setBlob(java.lang.String parameterName,
java.io.InputStream inputStream,
long length) |
Sets the designated parameter to a
InputStream object. |
void |
setBlob(java.lang.String parameterName,
java.sql.Blob x) |
Sets the designated parameter to the given
java.sql.Blob object. |
void |
setBoolean(int parameterIndex,
boolean x) |
Set a parameter to a Java boolean value.
|
void |
setBoolean(java.lang.String parameterName,
boolean x) |
Sets the designated parameter to the given Java
boolean value. |
void |
setByte(int parameterIndex,
byte x) |
Set a parameter to a Java byte value.
|
void |
setByte(java.lang.String parameterName,
byte x) |
Sets the designated parameter to the given Java
byte value. |
void |
setBytes(int parameterIndex,
byte[] x) |
Set a parameter to a Java array of bytes.
|
void |
setBytes(java.lang.String parameterName,
byte[] x) |
Sets the designated parameter to the given Java array of bytes.
|
void |
setCharacterStream(int parameterIndex,
java.io.Reader reader) |
Sets the designated parameter in this
RowSet object's command
to the given Reader
object. |
void |
setCharacterStream(int parameterIndex,
java.io.Reader x,
int length) |
When a very large UNICODE value is input to a LONGVARCHAR
parameter, it may be more practical to send it via a
java.io.Reader.
|
void |
setCharacterStream(java.lang.String parameterName,
java.io.Reader reader) |
Sets the designated parameter to the given
Reader
object. |
void |
setCharacterStream(java.lang.String parameterName,
java.io.Reader reader,
int length) |
Sets the designated parameter to the given
Reader
object, which is the given number of characters long. |
void |
setClob(int parameterIndex,
java.io.Reader reader) |
Sets the designated parameter to a
Reader object. |
void |
setClob(int parameterIndex,
java.io.Reader reader,
long length) |
Sets the designated parameter to a
Reader object. |
void |
setClob(int parameterIndex,
java.sql.Clob x) |
Set a CLOB parameter.
|
void |
setClob(java.lang.String parameterName,
java.io.Reader reader) |
Sets the designated parameter to a
Reader object. |
void |
setClob(java.lang.String parameterName,
java.io.Reader reader,
long length) |
Sets the designated parameter to a
Reader object. |
void |
setClob(java.lang.String parameterName,
java.sql.Clob x) |
Sets the designated parameter to the given
java.sql.Clob object. |
void |
setCommand(java.lang.String s) |
Set the rowset's command property.
|
void |
setConcurrency(int i) |
Set the rowset concurrency.
|
void |
setDataSourceName(java.lang.String s) |
Set the data source name.
|
void |
setDate(int parameterIndex,
java.sql.Date x) |
Set a parameter to a java.sql.Date value.
|
void |
setDate(int parameterIndex,
java.sql.Date x,
java.util.Calendar cal) |
Set a parameter to a java.sql.Date value.
|
void |
setDate(java.lang.String parameterName,
java.sql.Date x) |
Sets the designated parameter to the given
java.sql.Date value
using the default time zone of the virtual machine that is running
the application. |
void |
setDate(java.lang.String parameterName,
java.sql.Date x,
java.util.Calendar cal) |
Sets the designated parameter to the given
java.sql.Date value,
using the given Calendar object. |
void |
setDouble(int parameterIndex,
double x) |
Set a parameter to a Java double value.
|
void |
setDouble(java.lang.String parameterName,
double x) |
Sets the designated parameter to the given Java
double value. |
void |
setEscapeProcessing(boolean flag) |
If escape scanning is on (the default), the driver will do
escape substitution before sending the SQL to the database.
|
void |
setFetchDirection(int direction) |
Give a hint as to the direction in which the rows in this result set
will be processed.
|
void |
setFetchSize(int rows) |
Give the JDBC driver a hint as to the number of rows that should
be fetched from the database when more rows are needed for this result
set.
|
void |
setFloat(int parameterIndex,
float x) |
Set a parameter to a Java float value.
|
void |
setFloat(java.lang.String parameterName,
float x) |
Sets the designated parameter to the given Java
float value. |
void |
setInt(int parameterIndex,
int x) |
Set a parameter to a Java int value.
|
void |
setInt(java.lang.String parameterName,
int x) |
Sets the designated parameter to the given Java
int value. |
void |
setLong(int parameterIndex,
long x) |
Set a parameter to a Java long value.
|
void |
setLong(java.lang.String parameterName,
long x) |
Sets the designated parameter to the given Java
long value. |
void |
setMaxFieldSize(int max) |
The maxFieldSize limit (in bytes) is set to limit the size of
data that can be returned for any column value; it only applies
to BINARY, VARBINARY, LONGVARBINARY, CHAR, VARCHAR, and
LONGVARCHAR fields.
|
void |
setMaxRows(int max) |
The maxRows limit is set to limit the number of rows that any
RowSet can contain.
|
void |
setNCharacterStream(int parameterIndex,
java.io.Reader value) |
Sets the designated parameter in this
RowSet object's command
to a Reader object. |
void |
setNCharacterStream(int parameterIndex,
java.io.Reader value,
long length) |
Sets the designated parameter to a
Reader object. |
void |
setNCharacterStream(java.lang.String parameterName,
java.io.Reader value) |
Sets the designated parameter to a
Reader object. |
void |
setNCharacterStream(java.lang.String parameterName,
java.io.Reader value,
long length) |
Sets the designated parameter to a
Reader object. |
void |
setNClob(int parameterIndex,
java.io.Reader reader) |
Sets the designated parameter to a
Reader object. |
void |
setNClob(int parameterIndex,
java.io.Reader reader,
long length) |
Sets the designated parameter to a
Reader object. |
void |
setNClob(int parameterIndex,
java.sql.NClob value) |
Sets the designated parameter to a
java.sql.NClob object. |
void |
setNClob(java.lang.String parameterName,
java.io.Reader reader) |
Sets the designated parameter to a
Reader object. |
void |
setNClob(java.lang.String parameterName,
java.io.Reader reader,
long length) |
Sets the designated parameter to a
Reader object. |
void |
setNClob(java.lang.String parameterName,
java.sql.NClob value) |
Sets the designated parameter to a
java.sql.NClob object. |
void |
setNString(int parameterIndex,
java.lang.String value) |
Sets the designated paramter to the given
String object. |
void |
setNString(java.lang.String parameterName,
java.lang.String value) |
Sets the designated paramter to the given
String object. |
void |
setNull(int parameterIndex,
int sqlType) |
Set a parameter to SQL NULL.
|
void |
setNull(int parameterIndex,
int sqlType,
java.lang.String typeName) |
Sets the designated parameter to SQL NULL.
|
void |
setNull(java.lang.String parameterName,
int sqlType) |
Sets the designated parameter to SQL
NULL. |
void |
setNull(java.lang.String parameterName,
int sqlType,
java.lang.String typeName) |
Sets the designated parameter to SQL
NULL. |
void |
setObject(int parameterIndex,
java.lang.Object x) |
Set the value of a parameter using an object; use the
java.lang equivalent objects for integral values.
|
void |
setObject(int parameterIndex,
java.lang.Object x,
int targetSqlType) |
This method is like setObject above, but the scale used is the scale
of the second parameter.
|
void |
setObject(int parameterIndex,
java.lang.Object x,
int targetSqlType,
int scale) |
Set the value of a parameter using an object; use the
java.lang equivalent objects for integral values.
|
void |
setObject(java.lang.String parameterName,
java.lang.Object x) |
Sets the value of the designated parameter with the given object.
|
void |
setObject(java.lang.String parameterName,
java.lang.Object x,
int targetSqlType) |
Sets the value of the designated parameter with the given object.
|
void |
setObject(java.lang.String parameterName,
java.lang.Object x,
int targetSqlType,
int scale) |
Sets the value of the designated parameter with the given object.
|
void |
setPassword(java.lang.String s) |
Set the password.
|
void |
setQueryTimeout(int seconds) |
The queryTimeout limit is the number of seconds the driver will
wait for a Statement to execute.
|
void |
setReadOnly(boolean value) |
Set the read-onlyness of the rowset
|
void |
setRef(int parameterIndex,
java.sql.Ref x) |
Set a REF(<structured-type>) parameter.
|
void |
setRowId(int parameterIndex,
java.sql.RowId x) |
Sets the designated parameter to the given
java.sql.RowId object. |
void |
setRowId(java.lang.String parameterName,
java.sql.RowId x) |
Sets the designated parameter to the given
java.sql.RowId object. |
void |
setShort(int parameterIndex,
short x) |
Set a parameter to a Java short value.
|
void |
setShort(java.lang.String parameterName,
short x) |
Sets the designated parameter to the given Java
short value. |
void |
setSQLXML(int parameterIndex,
java.sql.SQLXML xmlObject) |
Sets the designated parameter to the given
java.sql.SQLXML object. |
void |
setSQLXML(java.lang.String parameterName,
java.sql.SQLXML xmlObject) |
Sets the designated parameter to the given
java.sql.SQLXML object. |
void |
setString(int parameterIndex,
java.lang.String x) |
Set a parameter to a Java String value.
|
void |
setString(java.lang.String parameterName,
java.lang.String x) |
Sets the designated parameter to the given Java
String value. |
void |
setTime(int parameterIndex,
java.sql.Time x) |
Set a parameter to a java.sql.Time value.
|
void |
setTime(int parameterIndex,
java.sql.Time x,
java.util.Calendar cal) |
Set a parameter to a java.sql.Time value.
|
void |
setTime(java.lang.String parameterName,
java.sql.Time x) |
Sets the designated parameter to the given
java.sql.Time value. |
void |
setTime(java.lang.String parameterName,
java.sql.Time x,
java.util.Calendar cal) |
Sets the designated parameter to the given
java.sql.Time value,
using the given Calendar object. |
void |
setTimestamp(int parameterIndex,
java.sql.Timestamp x) |
Set a parameter to a java.sql.Timestamp value.
|
void |
setTimestamp(int parameterIndex,
java.sql.Timestamp x,
java.util.Calendar cal) |
Set a parameter to a java.sql.Timestamp value.
|
void |
setTimestamp(java.lang.String parameterName,
java.sql.Timestamp x) |
Sets the designated parameter to the given
java.sql.Timestamp value. |
void |
setTimestamp(java.lang.String parameterName,
java.sql.Timestamp x,
java.util.Calendar cal) |
Sets the designated parameter to the given
java.sql.Timestamp value,
using the given Calendar object. |
void |
setTransactionIsolation(int value) |
Set the transaction isolation.
|
void |
setType(int value) |
Set the type of this result set.
|
void |
setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> value) |
Install a type-map object as the default type-map for
this rowset.
|
void |
setUnicodeStream(int parameterIndex,
java.io.InputStream x,
int length) |
Deprecated.
|
void |
setUrl(java.lang.String s) |
Set the url used to create a connection.
|
void |
setURL(int parameterIndex,
java.net.URL x) |
Sets the designated parameter to the given
java.net.URL value. |
void |
setUsername(java.lang.String s) |
Set the user name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabsolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getHoldability, getInt, getInt, getLong, getLong, getMetaData, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNullprotected static final int ev_CursorMoved
protected static final int ev_RowChanged
protected static final int ev_RowSetChanged
protected java.util.Map<java.lang.String,java.lang.Class<?>> map
public void close()
throws java.sql.SQLException
close in interface java.lang.AutoCloseableclose in interface java.sql.ResultSetjava.sql.SQLExceptionpublic void addRowSetListener(javax.sql.RowSetListener rowsetlistener)
addRowSetListener in interface javax.sql.RowSetrowsetlistener - an event listenerpublic void removeRowSetListener(javax.sql.RowSetListener rowsetlistener)
removeRowSetListener in interface javax.sql.RowSetrowsetlistener - an event listenerpublic void clearParameters()
throws java.sql.SQLException
In general, parameter values remain in force for repeated use of a RowSet. Setting a parameter value automatically clears its previous value. However, in some cases it is useful to immediately release the resources used by the current parameter values; this can be done by calling clearParameters.
clearParameters in interface javax.sql.RowSetjava.sql.SQLException - if a database-access error occurs.public java.lang.String getCommand()
getCommand in interface javax.sql.RowSetpublic int getConcurrency()
throws java.sql.SQLException
getConcurrency in interface java.sql.ResultSetjava.sql.SQLException - if a database-access error occurs.public java.lang.String getDataSourceName()
getDataSourceName in interface javax.sql.RowSetpublic boolean getEscapeProcessing()
throws java.sql.SQLException
getEscapeProcessing in interface javax.sql.RowSetjava.sql.SQLException - if a database-access error occurs.public int getFetchDirection()
throws java.sql.SQLException
getFetchDirection in interface java.sql.ResultSetjava.sql.SQLException - if a database-access error occurspublic int getFetchSize()
throws java.sql.SQLException
getFetchSize in interface java.sql.ResultSetjava.sql.SQLExceptionpublic int getMaxFieldSize()
throws java.sql.SQLException
getMaxFieldSize in interface javax.sql.RowSetjava.sql.SQLException - if a database-access error occurs.public int getMaxRows()
throws java.sql.SQLException
getMaxRows in interface javax.sql.RowSetjava.sql.SQLException - if a database-access error occurs.public java.lang.Object[] getParams()
throws java.sql.SQLException
java.sql.SQLException - if a database-access error occurs.public java.lang.String getPassword()
getPassword in interface javax.sql.RowSetpublic int getQueryTimeout()
throws java.sql.SQLException
getQueryTimeout in interface javax.sql.RowSetjava.sql.SQLException - if a database-access error occurs.public int getTransactionIsolation()
getTransactionIsolation in interface javax.sql.RowSetpublic int getType()
throws java.sql.SQLException
getType in interface java.sql.ResultSetjava.sql.SQLException - if a database-access error occurspublic java.util.Map<java.lang.String,java.lang.Class<?>> getTypeMap()
throws java.sql.SQLException
getTypeMap in interface javax.sql.RowSetjava.sql.SQLException - if a database-access error occurs.public java.lang.String getUrl()
throws java.sql.SQLException
getUrl in interface javax.sql.RowSetjava.sql.SQLException - if a database-access error occurs.public java.lang.String getUsername()
getUsername in interface javax.sql.RowSetpublic boolean isReadOnly()
isReadOnly in interface javax.sql.RowSetpublic void setArray(int parameterIndex,
java.sql.Array x)
throws java.sql.SQLException
setArray in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - an object representing an SQL arrayjava.sql.SQLExceptionpublic void setAsciiStream(int parameterIndex,
java.io.InputStream x,
int length)
throws java.sql.SQLException
Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
setAsciiStream in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the java input stream which contains the ASCII parameter valuelength - the number of bytes in the streamjava.sql.SQLException - if a database-access error occurs.public void setBigDecimal(int parameterIndex,
java.math.BigDecimal x)
throws java.sql.SQLException
setBigDecimal in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the parameter valuejava.sql.SQLException - if a database-access error occurs.public void setBinaryStream(int parameterIndex,
java.io.InputStream x,
int length)
throws java.sql.SQLException
Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
setBinaryStream in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the java input stream which contains the binary parameter valuelength - the number of bytes in the streamjava.sql.SQLException - if a database-access error occurs.public void setBlob(int parameterIndex,
java.sql.Blob x)
throws java.sql.SQLException
setBlob in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - an object representing a BLOBjava.sql.SQLExceptionpublic void setBlob(int parameterIndex,
java.io.InputStream inputStream,
long length)
throws java.sql.SQLException
InputStream object. The inputstream must contain the number
of characters specified by length otherwise a SQLException will be
generated when the PreparedStatement is executed.
This method differs from the setBinaryStream (int, InputStream, int)
method because it informs the driver that the parameter value should be
sent to the server as a BLOB. When the setBinaryStream method is used,
the driver may have to do extra work to determine whether the parameter
data should be sent to the server as a LONGVARBINARY or a BLOBsetBlob in interface javax.sql.RowSetparameterIndex - index of the first parameter is 1,
the second is 2, ...inputStream - An object that contains the data to set the parameter
value to.length - the number of bytes in the parameter data.java.sql.SQLException - if a database access error occurs,
this method is called on a closed PreparedStatement,
if parameterIndex does not correspond
to a parameter marker in the SQL statement, if the length specified
is less than zero or if the number of bytes in the inputstream does not match
the specfied length.java.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setBlob(int parameterIndex,
java.io.InputStream inputStream)
throws java.sql.SQLException
InputStream object.
This method differs from the setBinaryStream (int, InputStream)
method because it informs the driver that the parameter value should be
sent to the server as a BLOB. When the setBinaryStream method is used,
the driver may have to do extra work to determine whether the parameter
data should be sent to the server as a LONGVARBINARY or a BLOB
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
setBlob which takes a length parameter.
setBlob in interface javax.sql.RowSetparameterIndex - index of the first parameter is 1,
the second is 2, ...inputStream - An object that contains the data to set the parameter
value to.java.sql.SQLException - if a database access error occurs,
this method is called on a closed PreparedStatement or
if parameterIndex does not correspond
to a parameter marker in the SQL statement,java.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setBlob(java.lang.String parameterName,
java.io.InputStream inputStream,
long length)
throws java.sql.SQLException
InputStream object. The inputstream must contain the number
of characters specified by length, otherwise a SQLException will be
generated when the CallableStatement is executed.
This method differs from the setBinaryStream (int, InputStream, int)
method because it informs the driver that the parameter value should be
sent to the server as a BLOB. When the setBinaryStream method is used,
the driver may have to do extra work to determine whether the parameter
data should be sent to the server as a LONGVARBINARY or a BLOBsetBlob in interface javax.sql.RowSetparameterName - the name of the parameter to be set
the second is 2, ...inputStream - An object that contains the data to set the parameter
value to.length - the number of bytes in the parameter data.java.sql.SQLException - if parameterIndex does not correspond
to a parameter marker in the SQL statement, or if the length specified
is less than zero; if the number of bytes in the inputstream does not match
the specfied length; if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodpublic void setBlob(java.lang.String parameterName,
java.sql.Blob x)
throws java.sql.SQLException
java.sql.Blob object.
The driver converts this to an SQL BLOB value when it
sends it to the database.setBlob in interface javax.sql.RowSetparameterName - the name of the parameterx - a Blob object that maps an SQL BLOB valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodpublic void setBlob(java.lang.String parameterName,
java.io.InputStream inputStream)
throws java.sql.SQLException
InputStream object.
This method differs from the setBinaryStream (int, InputStream)
method because it informs the driver that the parameter value should be
sent to the server as a BLOB. When the setBinaryStream method is used,
the driver may have to do extra work to determine whether the parameter
data should be send to the server as a LONGVARBINARY or a BLOB
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
setBlob which takes a length parameter.
setBlob in interface javax.sql.RowSetparameterName - the name of the parameterinputStream - An object that contains the data to set the parameter
value to.java.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setClob(int parameterIndex,
java.io.Reader reader,
long length)
throws java.sql.SQLException
Reader object. The reader must contain the number
of characters specified by length otherwise a SQLException will be
generated when the PreparedStatement is executed.
This method differs from the setCharacterStream (int, Reader, int) method
because it informs the driver that the parameter value should be sent to
the server as a CLOB. When the setCharacterStream method is used, the
driver may have to do extra work to determine whether the parameter
data should be sent to the server as a LONGVARCHAR or a CLOBsetClob in interface javax.sql.RowSetparameterIndex - index of the first parameter is 1, the second is 2, ...reader - An object that contains the data to set the parameter value to.length - the number of characters in the parameter data.java.sql.SQLException - if a database access error occurs, this method is called on
a closed PreparedStatement, if parameterIndex does not correspond to a parameter
marker in the SQL statement, or if the length specified is less than zero.java.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setClob(int parameterIndex,
java.io.Reader reader)
throws java.sql.SQLException
Reader object.
This method differs from the setCharacterStream (int, Reader) method
because it informs the driver that the parameter value should be sent to
the server as a CLOB. When the setCharacterStream method is used, the
driver may have to do extra work to determine whether the parameter
data should be sent to the server as a LONGVARCHAR or a CLOB
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
setClob which takes a length parameter.
setClob in interface javax.sql.RowSetparameterIndex - index of the first parameter is 1, the second is 2, ...reader - An object that contains the data to set the parameter value to.java.sql.SQLException - if a database access error occurs, this method is called on
a closed PreparedStatementor if parameterIndex does not correspond to a parameter
marker in the SQL statementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setClob(java.lang.String parameterName,
java.io.Reader reader,
long length)
throws java.sql.SQLException
Reader object. The reader must contain the number
of characters specified by length otherwise a SQLException will be
generated when the CallableStatement is executed.
This method differs from the setCharacterStream (int, Reader, int) method
because it informs the driver that the parameter value should be sent to
the server as a CLOB. When the setCharacterStream method is used, the
driver may have to do extra work to determine whether the parameter
data should be send to the server as a LONGVARCHAR or a CLOBsetClob in interface javax.sql.RowSetparameterName - the name of the parameter to be setreader - An object that contains the data to set the parameter value to.length - the number of characters in the parameter data.java.sql.SQLException - if parameterIndex does not correspond to a parameter
marker in the SQL statement; if the length specified is less than zero;
a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodpublic void setClob(java.lang.String parameterName,
java.sql.Clob x)
throws java.sql.SQLException
java.sql.Clob object.
The driver converts this to an SQL CLOB value when it
sends it to the database.setClob in interface javax.sql.RowSetparameterName - the name of the parameterx - a Clob object that maps an SQL CLOB valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodpublic void setClob(java.lang.String parameterName,
java.io.Reader reader)
throws java.sql.SQLException
Reader object.
This method differs from the setCharacterStream (int, Reader) method
because it informs the driver that the parameter value should be sent to
the server as a CLOB. When the setCharacterStream method is used, the
driver may have to do extra work to determine whether the parameter
data should be send to the server as a LONGVARCHAR or a CLOB
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
setClob which takes a length parameter.
setClob in interface javax.sql.RowSetparameterName - the name of the parameterreader - An object that contains the data to set the parameter value to.java.sql.SQLException - if a database access error occurs or this method is called on
a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setSQLXML(int parameterIndex,
java.sql.SQLXML xmlObject)
throws java.sql.SQLException
java.sql.SQLXML object. The driver converts this to an
SQL XML value when it sends it to the database.setSQLXML in interface javax.sql.RowSetparameterIndex - index of the first parameter is 1, the second is 2, ...xmlObject - a SQLXML object that maps an SQL XML valuejava.sql.SQLException - if a database access error occurs, this method
is called on a closed result set,
the java.xml.transform.Result,
Writer or OutputStream has not been closed
for the SQLXML object or
if there is an error processing the XML value. The getCause method
of the exception may provide a more detailed exception, for example, if the
stream does not contain valid XML.public void setSQLXML(java.lang.String parameterName,
java.sql.SQLXML xmlObject)
throws java.sql.SQLException
java.sql.SQLXML object. The driver converts this to an
SQL XML value when it sends it to the database.setSQLXML in interface javax.sql.RowSetparameterName - the name of the parameterxmlObject - a SQLXML object that maps an SQL XML valuejava.sql.SQLException - if a database access error occurs, this method
is called on a closed result set,
the java.xml.transform.Result,
Writer or OutputStream has not been closed
for the SQLXML object or
if there is an error processing the XML value. The getCause method
of the exception may provide a more detailed exception, for example, if the
stream does not contain valid XML.public void setRowId(int parameterIndex,
java.sql.RowId x)
throws java.sql.SQLException
java.sql.RowId object. The
driver converts this to a SQL ROWID value when it sends it
to the databasesetRowId in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the parameter valuejava.sql.SQLException - if a database access error occurspublic void setRowId(java.lang.String parameterName,
java.sql.RowId x)
throws java.sql.SQLException
java.sql.RowId object. The
driver converts this to a SQL ROWID when it sends it to the
database.setRowId in interface javax.sql.RowSetparameterName - the name of the parameterx - the parameter valuejava.sql.SQLException - if a database access error occurspublic void setNString(int parameterIndex,
java.lang.String value)
throws java.sql.SQLException
String object.
The driver converts this to a SQL NCHAR or
NVARCHAR or LONGNVARCHAR value
(depending on the argument's
size relative to the driver's limits on NVARCHAR values)
when it sends it to the database.setNString in interface javax.sql.RowSetparameterIndex - of the first parameter is 1, the second is 2, ...value - the parameter valuejava.sql.SQLException - if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur ; or if a database access error occurspublic void setNString(java.lang.String parameterName,
java.lang.String value)
throws java.sql.SQLException
String object.
The driver converts this to a SQL NCHAR or
NVARCHAR or LONGNVARCHARsetNString in interface javax.sql.RowSetparameterName - the name of the column to be setvalue - the parameter valuejava.sql.SQLException - if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur; or if a database access error occurspublic void setNCharacterStream(int parameterIndex,
java.io.Reader value,
long length)
throws java.sql.SQLException
Reader object. The
Reader reads the data till end-of-file is reached. The
driver does the necessary conversion from Java character format to
the national character set in the database.setNCharacterStream in interface javax.sql.RowSetparameterIndex - of the first parameter is 1, the second is 2, ...value - the parameter valuelength - the number of characters in the parameter data.java.sql.SQLException - if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur ; or if a database access error occurspublic void setNCharacterStream(java.lang.String parameterName,
java.io.Reader value,
long length)
throws java.sql.SQLException
Reader object. The
Reader reads the data till end-of-file is reached. The
driver does the necessary conversion from Java character format to
the national character set in the database.setNCharacterStream in interface javax.sql.RowSetparameterName - the name of the column to be setvalue - the parameter valuelength - the number of characters in the parameter data.java.sql.SQLException - if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur; or if a database access error occurspublic void setNCharacterStream(java.lang.String parameterName,
java.io.Reader value)
throws java.sql.SQLException
Reader object. The
Reader reads the data till end-of-file is reached. The
driver does the necessary conversion from Java character format to
the national character set in the database.
Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
setNCharacterStream which takes a length parameter.
setNCharacterStream in interface javax.sql.RowSetparameterName - the name of the parametervalue - the parameter valuejava.sql.SQLException - if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur ; if a database access error occurs; or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setNClob(java.lang.String parameterName,
java.sql.NClob value)
throws java.sql.SQLException
java.sql.NClob object. The object
implements the java.sql.NClob interface. This NClob
object maps to a SQL NCLOB.setNClob in interface javax.sql.RowSetparameterName - the name of the column to be setvalue - the parameter valuejava.sql.SQLException - if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur; or if a database access error occurspublic void setNClob(java.lang.String parameterName,
java.io.Reader reader,
long length)
throws java.sql.SQLException
Reader object. The reader must contain the number
of characters specified by length otherwise a SQLException will be
generated when the CallableStatement is executed.
This method differs from the setCharacterStream (int, Reader, int) method
because it informs the driver that the parameter value should be sent to
the server as a NCLOB. When the setCharacterStream method is used, the
driver may have to do extra work to determine whether the parameter
data should be send to the server as a LONGNVARCHAR or a NCLOBsetNClob in interface javax.sql.RowSetparameterName - the name of the parameter to be setreader - An object that contains the data to set the parameter value to.length - the number of characters in the parameter data.java.sql.SQLException - if parameterIndex does not correspond to a parameter
marker in the SQL statement; if the length specified is less than zero;
if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur; if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodpublic void setNClob(java.lang.String parameterName,
java.io.Reader reader)
throws java.sql.SQLException
Reader object.
This method differs from the setCharacterStream (int, Reader) method
because it informs the driver that the parameter value should be sent to
the server as a NCLOB. When the setCharacterStream method is used, the
driver may have to do extra work to determine whether the parameter
data should be send to the server as a LONGNVARCHAR or a NCLOB
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
setNClob which takes a length parameter.
setNClob in interface javax.sql.RowSetparameterName - the name of the parameterreader - An object that contains the data to set the parameter value to.java.sql.SQLException - if the driver does not support national character sets;
if the driver can detect that a data conversion
error could occur; if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setNClob(int parameterIndex,
java.io.Reader reader,
long length)
throws java.sql.SQLException
Reader object. The reader must contain the number
of characters specified by length otherwise a SQLException will be
generated when the PreparedStatement is executed.
This method differs from the setCharacterStream (int, Reader, int) method
because it informs the driver that the parameter value should be sent to
the server as a NCLOB. When the setCharacterStream method is used, the
driver may have to do extra work to determine whether the parameter
data should be sent to the server as a LONGNVARCHAR or a NCLOBsetNClob in interface javax.sql.RowSetparameterIndex - index of the first parameter is 1, the second is 2, ...reader - An object that contains the data to set the parameter value to.length - the number of characters in the parameter data.java.sql.SQLException - if parameterIndex does not correspond to a parameter
marker in the SQL statement; if the length specified is less than zero;
if the driver does not support national character sets;
if the driver can detect that a data conversion
error could occur; if a database access error occurs or
this method is called on a closed PreparedStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setNClob(int parameterIndex,
java.sql.NClob value)
throws java.sql.SQLException
java.sql.NClob object. The driver converts this to a
SQL NCLOB value when it sends it to the database.setNClob in interface javax.sql.RowSetparameterIndex - of the first parameter is 1, the second is 2, ...value - the parameter valuejava.sql.SQLException - if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur ; or if a database access error occurspublic void setNClob(int parameterIndex,
java.io.Reader reader)
throws java.sql.SQLException
Reader object.
This method differs from the setCharacterStream (int, Reader) method
because it informs the driver that the parameter value should be sent to
the server as a NCLOB. When the setCharacterStream method is used, the
driver may have to do extra work to determine whether the parameter
data should be sent to the server as a LONGNVARCHAR or a NCLOB
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
setNClob which takes a length parameter.
setNClob in interface javax.sql.RowSetparameterIndex - index of the first parameter is 1, the second is 2, ...reader - An object that contains the data to set the parameter value to.java.sql.SQLException - if parameterIndex does not correspond to a parameter
marker in the SQL statement;
if the driver does not support national character sets;
if the driver can detect that a data conversion
error could occur; if a database access error occurs or
this method is called on a closed PreparedStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setBoolean(int parameterIndex,
boolean x)
throws java.sql.SQLException
setBoolean in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the parameter valuejava.sql.SQLException - if a database-access error occurs.public void setByte(int parameterIndex,
byte x)
throws java.sql.SQLException
setByte in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the parameter valuejava.sql.SQLException - if a database-access error occurs.public void setBytes(int parameterIndex,
byte[] x)
throws java.sql.SQLException
setBytes in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the parameter valuejava.sql.SQLException - if a database-access error occurs.public void setCharacterStream(int parameterIndex,
java.io.Reader x,
int length)
throws java.sql.SQLException
Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
setCharacterStream in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the java reader which contains the UNICODE datalength - the number of characters in the streamjava.sql.SQLException - if a database-access error occurs.public void setAsciiStream(int parameterIndex,
java.io.InputStream x)
throws java.sql.SQLException
RowSet object's command
to the given input stream.
When a very large ASCII value is input to a LONGVARCHAR
parameter, it may be more practical to send it via a
java.io.InputStream. Data will be read from the stream
as needed until end-of-file is reached. The JDBC driver will
do any necessary conversion from ASCII to the database char format.
Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
setAsciiStream which takes a length parameter.
setAsciiStream in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the Java input stream that contains the ASCII parameter valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed PreparedStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setAsciiStream(java.lang.String parameterName,
java.io.InputStream x)
throws java.sql.SQLException
LONGVARCHAR
parameter, it may be more practical to send it via a
java.io.InputStream. Data will be read from the stream
as needed until end-of-file is reached. The JDBC driver will
do any necessary conversion from ASCII to the database char format.
Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
setAsciiStream which takes a length parameter.
setAsciiStream in interface javax.sql.RowSetparameterName - the name of the parameterx - the Java input stream that contains the ASCII parameter valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setBinaryStream(int parameterIndex,
java.io.InputStream x)
throws java.sql.SQLException
RowSet object's command
to the given input stream.
When a very large binary value is input to a LONGVARBINARY
parameter, it may be more practical to send it via a
java.io.InputStream object. The data will be read from the
stream as needed until end-of-file is reached.
Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
setBinaryStream which takes a length parameter.
setBinaryStream in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the java input stream which contains the binary parameter valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed PreparedStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setBinaryStream(java.lang.String parameterName,
java.io.InputStream x)
throws java.sql.SQLException
LONGVARBINARY
parameter, it may be more practical to send it via a
java.io.InputStream object. The data will be read from the
stream as needed until end-of-file is reached.
Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
setBinaryStream which takes a length parameter.
setBinaryStream in interface javax.sql.RowSetparameterName - the name of the parameterx - the java input stream which contains the binary parameter valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setCharacterStream(int parameterIndex,
java.io.Reader reader)
throws java.sql.SQLException
RowSet object's command
to the given Reader
object.
When a very large UNICODE value is input to a LONGVARCHAR
parameter, it may be more practical to send it via a
java.io.Reader object. The data will be read from the stream
as needed until end-of-file is reached. The JDBC driver will
do any necessary conversion from UNICODE to the database char format.
Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
setCharacterStream which takes a length parameter.
setCharacterStream in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...reader - the java.io.Reader object that contains the
Unicode datajava.sql.SQLException - if a database access error occurs or
this method is called on a closed PreparedStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setCharacterStream(java.lang.String parameterName,
java.io.Reader reader)
throws java.sql.SQLException
Reader
object.
When a very large UNICODE value is input to a LONGVARCHAR
parameter, it may be more practical to send it via a
java.io.Reader object. The data will be read from the stream
as needed until end-of-file is reached. The JDBC driver will
do any necessary conversion from UNICODE to the database char format.
Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
setCharacterStream which takes a length parameter.
setCharacterStream in interface javax.sql.RowSetparameterName - the name of the parameterreader - the java.io.Reader object that contains the
Unicode datajava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setNCharacterStream(int parameterIndex,
java.io.Reader value)
throws java.sql.SQLException
RowSet object's command
to a Reader object. The
Reader reads the data till end-of-file is reached. The
driver does the necessary conversion from Java character format to
the national character set in the database.
Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
Note: Consult your JDBC driver documentation to determine if
it might be more efficient to use a version of
setNCharacterStream which takes a length parameter.
setNCharacterStream in interface javax.sql.RowSetparameterIndex - of the first parameter is 1, the second is 2, ...value - the parameter valuejava.sql.SQLException - if the driver does not support national
character sets; if the driver can detect that a data conversion
error could occur ; if a database access error occurs; or
this method is called on a closed PreparedStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setClob(int parameterIndex,
java.sql.Clob x)
throws java.sql.SQLException
setClob in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - an object representing a CLOBjava.sql.SQLExceptionpublic void setDate(int parameterIndex,
java.sql.Date x)
throws java.sql.SQLException
setDate in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the parameter valuejava.sql.SQLException - if a database-access error occurs.public void setDate(int parameterIndex,
java.sql.Date x,
java.util.Calendar cal)
throws java.sql.SQLException
setDate in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the parameter valuejava.sql.SQLException - if a database-access error occurs.public void setDouble(int parameterIndex,
double x)
throws java.sql.SQLException
setDouble in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the parameter valuejava.sql.SQLException - if a database-access error occurs.public void setFloat(int parameterIndex,
float x)
throws java.sql.SQLException
setFloat in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the parameter valuejava.sql.SQLException - if a database-access error occurs.public void setInt(int parameterIndex,
int x)
throws java.sql.SQLException
setInt in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the parameter valuejava.sql.SQLException - if a database-access error occurs.public void setLong(int parameterIndex,
long x)
throws java.sql.SQLException
setLong in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the parameter valuejava.sql.SQLException - if a database-access error occurs.public void setRef(int parameterIndex,
java.sql.Ref x)
throws java.sql.SQLException
setRef in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - an object representing data of an SQL REF Typejava.sql.SQLExceptionpublic void setShort(int parameterIndex,
short x)
throws java.sql.SQLException
setShort in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the parameter valuejava.sql.SQLException - if a database-access error occurs.public void setString(int parameterIndex,
java.lang.String x)
throws java.sql.SQLException
setString in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the parameter valuejava.sql.SQLException - if a database-access error occurs.public void setURL(int parameterIndex,
java.net.URL x)
throws java.sql.SQLException
java.net.URL value.
The driver converts this to an SQL DATALINK value
when it sends it to the database.setURL in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the java.net.URL object to be setjava.sql.SQLException - if a database access error occurs or
this method is called on a closed PreparedStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setTime(int parameterIndex,
java.sql.Time x)
throws java.sql.SQLException
setTime in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the parameter valuejava.sql.SQLException - if a database-access error occurs.public void setTime(int parameterIndex,
java.sql.Time x,
java.util.Calendar cal)
throws java.sql.SQLException
setTime in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the parameter valuejava.sql.SQLException - if a database-access error occurs.public void setTimestamp(int parameterIndex,
java.sql.Timestamp x)
throws java.sql.SQLException
setTimestamp in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the parameter valuejava.sql.SQLException - if a database-access error occurs.public void setTimestamp(int parameterIndex,
java.sql.Timestamp x,
java.util.Calendar cal)
throws java.sql.SQLException
setTimestamp in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...x - the parameter valuejava.sql.SQLException - if a database-access error occurs.public void setUnicodeStream(int parameterIndex,
java.io.InputStream x,
int length)
throws java.sql.SQLException
Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
parameterIndex - the first parameter is 1, the second is 2, ...x - the java input stream which contains the
UNICODE parameter valuelength - the number of bytes in the streamjava.sql.SQLException - if a database-access error occurs.public void setNull(int parameterIndex,
int sqlType)
throws java.sql.SQLException
Note: You must specify the parameter's SQL type.
setNull in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...sqlType - SQL type code defined by java.sql.Typesjava.sql.SQLException - if a database-access error occurs.public void setNull(int parameterIndex,
int sqlType,
java.lang.String typeName)
throws java.sql.SQLException
Note: To be portable, applications must give the SQL type code and the fully-qualified SQL type name when specifying a NULL user-defined or REF parameter. In the case of a user-named type the name is the type name of the parameter itself. For a REF parameter the name is the type name of the referenced type. If a JDBC driver does not need the type code or type name information, it may ignore it. Although it is intended for user-named and Ref parameters, this method may be used to set a null parameter of any JDBC type. If the parameter does not have a user-named or REF type, the given typeName is ignored.
setNull in interface javax.sql.RowSetparameterIndex - the first parameter is 1, the second is 2, ...sqlType - a value from java.sql.TypestypeName - the fully-qualified name of an SQL user-named type,
ignored if the parameter is not a user-named type or REFjava.sql.SQLException - if a database access error occurspublic void setObject(int parameterIndex,
java.lang.Object x)
throws java.sql.SQLException
Set the value of a parameter using an object; use the java.lang equivalent objects for integral values.
The JDBC specification specifies a standard mapping from Java Object types to SQL types. The given argument java object will be converted to the corresponding SQL type before being sent to the database.
Note that this method may be used to pass datatabase specific abstract data types, by using a Driver specific Java type. If the object is of a class implementing SQLData, the rowset should call its method writeSQL() to write it to the SQL data stream. else If the object is of a class implementing Ref, Blob, Clob, Struct, or Array then pass it to the database as a value of the corresponding SQL type. Raise an exception if there is an ambiguity, for example, if the object is of a class implementing more than one of those interfaces.
setObject in interface javax.sql.RowSetparameterIndex - The first parameter is 1, the second is 2, ...x - The object containing the input parameter valuejava.sql.SQLException - if a database-access error occurs.public void setObject(int parameterIndex,
java.lang.Object x,
int targetSqlType)
throws java.sql.SQLException
setObject in interface javax.sql.RowSetjava.sql.SQLException - if a database-access error occurs.public void setObject(int parameterIndex,
java.lang.Object x,
int targetSqlType,
int scale)
throws java.sql.SQLException
Set the value of a parameter using an object; use the java.lang equivalent objects for integral values.
The given Java object will be converted to the targetSqlType before being sent to the database. If the object is of a class implementing SQLData, the rowset should call its method writeSQL() to write it to the SQL data stream. else If the object is of a class implementing Ref, Blob, Clob, Struct, or Array then pass it to the database as a value of the corresponding SQL type.
Note that this method may be used to pass datatabase- specific abstract data types.
setObject in interface javax.sql.RowSetparameterIndex - The first parameter is 1, the second is 2, ...x - The object containing the input parameter valuetargetSqlType - 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 java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types
this is the number of digits after the decimal. For all other
types this value will be ignored,java.sql.SQLException - if a database-access error occurs.Typespublic void setNull(java.lang.String parameterName,
int sqlType)
throws java.sql.SQLException
NULL.
Note: You must specify the parameter's SQL type.
setNull in interface javax.sql.RowSetparameterName - the name of the parametersqlType - the SQL type code defined in java.sql.Typesjava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodpublic void setNull(java.lang.String parameterName,
int sqlType,
java.lang.String typeName)
throws java.sql.SQLException
NULL.
This version of the method setNull should
be used for user-defined types and REF type parameters. Examples
of user-defined types include: STRUCT, DISTINCT, JAVA_OBJECT, and
named array types.
Note: To be portable, applications must give the SQL type code and the fully-qualified SQL type name when specifying a NULL user-defined or REF parameter. In the case of a user-defined type the name is the type name of the parameter itself. For a REF parameter, the name is the type name of the referenced type. If a JDBC driver does not need the type code or type name information, it may ignore it. Although it is intended for user-defined and Ref parameters, this method may be used to set a null parameter of any JDBC type. If the parameter does not have a user-defined or REF type, the given typeName is ignored.
setNull in interface javax.sql.RowSetparameterName - the name of the parametersqlType - a value from java.sql.TypestypeName - the fully-qualified name of an SQL user-defined type;
ignored if the parameter is not a user-defined type or
SQL REF valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodpublic void setBoolean(java.lang.String parameterName,
boolean x)
throws java.sql.SQLException
boolean value.
The driver converts this
to an SQL BIT or BOOLEAN value when it sends it to the database.setBoolean in interface javax.sql.RowSetparameterName - the name of the parameterx - the parameter valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodResultSet.getBoolean(int)public void setByte(java.lang.String parameterName,
byte x)
throws java.sql.SQLException
byte value.
The driver converts this
to an SQL TINYINT value when it sends it to the database.setByte in interface javax.sql.RowSetparameterName - the name of the parameterx - the parameter valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodResultSet.getByte(int)public void setShort(java.lang.String parameterName,
short x)
throws java.sql.SQLException
short value.
The driver converts this
to an SQL SMALLINT value when it sends it to the database.setShort in interface javax.sql.RowSetparameterName - the name of the parameterx - the parameter valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodResultSet.getShort(int)public void setInt(java.lang.String parameterName,
int x)
throws java.sql.SQLException
int value.
The driver converts this
to an SQL INTEGER value when it sends it to the database.setInt in interface javax.sql.RowSetparameterName - the name of the parameterx - the parameter valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodResultSet.getInt(int)public void setLong(java.lang.String parameterName,
long x)
throws java.sql.SQLException
long value.
The driver converts this
to an SQL BIGINT value when it sends it to the database.setLong in interface javax.sql.RowSetparameterName - the name of the parameterx - the parameter valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodResultSet.getLong(int)public void setFloat(java.lang.String parameterName,
float x)
throws java.sql.SQLException
float value.
The driver converts this
to an SQL FLOAT value when it sends it to the database.setFloat in interface javax.sql.RowSetparameterName - the name of the parameterx - the parameter valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodResultSet.getFloat(int)public void setDouble(java.lang.String parameterName,
double x)
throws java.sql.SQLException
double value.
The driver converts this
to an SQL DOUBLE value when it sends it to the database.setDouble in interface javax.sql.RowSetparameterName - the name of the parameterx - the parameter valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodResultSet.getDouble(int)public void setBigDecimal(java.lang.String parameterName,
java.math.BigDecimal x)
throws java.sql.SQLException
java.math.BigDecimal value.
The driver converts this to an SQL NUMERIC value when
it sends it to the database.setBigDecimal in interface javax.sql.RowSetparameterName - the name of the parameterx - the parameter valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodResultSet.getBigDecimal(int, int)public void setString(java.lang.String parameterName,
java.lang.String x)
throws java.sql.SQLException
String value.
The driver converts this
to an SQL VARCHAR or LONGVARCHAR value
(depending on the argument's
size relative to the driver's limits on VARCHAR values)
when it sends it to the database.setString in interface javax.sql.RowSetparameterName - the name of the parameterx - the parameter valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodResultSet.getString(int)public void setBytes(java.lang.String parameterName,
byte[] x)
throws java.sql.SQLException
VARBINARY or
LONGVARBINARY (depending on the argument's size relative
to the driver's limits on VARBINARY values) when it sends
it to the database.setBytes in interface javax.sql.RowSetparameterName - the name of the parameterx - the parameter valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodResultSet.getBytes(int)public void setTimestamp(java.lang.String parameterName,
java.sql.Timestamp x)
throws java.sql.SQLException
java.sql.Timestamp value.
The driver
converts this to an SQL TIMESTAMP value when it sends it to the
database.setTimestamp in interface javax.sql.RowSetparameterName - the name of the parameterx - the parameter valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodResultSet.getTimestamp(int)public void setAsciiStream(java.lang.String parameterName,
java.io.InputStream x,
int length)
throws java.sql.SQLException
LONGVARCHAR
parameter, it may be more practical to send it via a
java.io.InputStream. Data will be read from the stream
as needed until end-of-file is reached. The JDBC driver will
do any necessary conversion from ASCII to the database char format.
Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
setAsciiStream in interface javax.sql.RowSetparameterName - the name of the parameterx - the Java input stream that contains the ASCII parameter valuelength - the number of bytes in the streamjava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodpublic void setBinaryStream(java.lang.String parameterName,
java.io.InputStream x,
int length)
throws java.sql.SQLException
LONGVARBINARY
parameter, it may be more practical to send it via a
java.io.InputStream object. The data will be read from the stream
as needed until end-of-file is reached.
Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
setBinaryStream in interface javax.sql.RowSetparameterName - the name of the parameterx - the java input stream which contains the binary parameter valuelength - the number of bytes in the streamjava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodpublic void setCharacterStream(java.lang.String parameterName,
java.io.Reader reader,
int length)
throws java.sql.SQLException
Reader
object, which is the given number of characters long.
When a very large UNICODE value is input to a LONGVARCHAR
parameter, it may be more practical to send it via a
java.io.Reader object. The data will be read from the stream
as needed until end-of-file is reached. The JDBC driver will
do any necessary conversion from UNICODE to the database char format.
Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
setCharacterStream in interface javax.sql.RowSetparameterName - the name of the parameterreader - the java.io.Reader object that
contains the UNICODE data used as the designated parameterlength - the number of characters in the streamjava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodpublic void setObject(java.lang.String parameterName,
java.lang.Object x,
int targetSqlType,
int scale)
throws java.sql.SQLException
java.lang equivalent objects should be used.
The given Java object will be converted to the given targetSqlType
before being sent to the database.
If the object has a custom mapping (is of a class implementing the
interface SQLData),
the JDBC driver should call the method SQLData.writeSQL to write it
to the SQL data stream.
If, on the other hand, the object is of a class implementing
Ref, Blob, Clob, NClob,
Struct, java.net.URL,
or Array, the driver should pass it to the database as a
value of the corresponding SQL type.
Note that this method may be used to pass datatabase- specific abstract data types.
setObject in interface javax.sql.RowSetparameterName - the name of the parameterx - the object containing the input parameter valuetargetSqlType - 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 java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types,
this is the number of digits after the decimal point. For all other
types, this value will be ignored.java.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if targetSqlType is
a ARRAY, BLOB, CLOB,
DATALINK, JAVA_OBJECT, NCHAR,
NCLOB, NVARCHAR, LONGNVARCHAR,
REF, ROWID, SQLXML
or STRUCT data type and the JDBC driver does not support
this data typeTypes,
ResultSet.getObject(int)public void setObject(java.lang.String parameterName,
java.lang.Object x,
int targetSqlType)
throws java.sql.SQLException
setObject
above, except that it assumes a scale of zero.setObject in interface javax.sql.RowSetparameterName - the name of the parameterx - the object containing the input parameter valuetargetSqlType - the SQL type (as defined in java.sql.Types) to be
sent to the databasejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if targetSqlType is
a ARRAY, BLOB, CLOB,
DATALINK, JAVA_OBJECT, NCHAR,
NCLOB, NVARCHAR, LONGNVARCHAR,
REF, ROWID, SQLXML
or STRUCT data type and the JDBC driver does not support
this data typeResultSet.getObject(int)public void setObject(java.lang.String parameterName,
java.lang.Object x)
throws java.sql.SQLException
Object; therefore, the
java.lang equivalent objects should be used for built-in types.
The JDBC specification specifies a standard mapping from
Java Object types to SQL types. The given argument
will be converted to the corresponding SQL type before being
sent to the database.
Note that this method may be used to pass datatabase-
specific abstract data types, by using a driver-specific Java
type.
If the object is of a class implementing the interface SQLData,
the JDBC driver should call the method SQLData.writeSQL
to write it to the SQL data stream.
If, on the other hand, the object is of a class implementing
Ref, Blob, Clob, NClob,
Struct, java.net.URL,
or Array, the driver should pass it to the database as a
value of the corresponding SQL type.
This method throws an exception if there is an ambiguity, for example, if the object is of a class implementing more than one of the interfaces named above.
setObject in interface javax.sql.RowSetparameterName - the name of the parameterx - the object containing the input parameter valuejava.sql.SQLException - if a database access error occurs,
this method is called on a closed CallableStatement or if the given
Object parameter is ambiguousjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodResultSet.getObject(int)public void setDate(java.lang.String parameterName,
java.sql.Date x)
throws java.sql.SQLException
java.sql.Date value
using the default time zone of the virtual machine that is running
the application.
The driver converts this
to an SQL DATE value when it sends it to the database.setDate in interface javax.sql.RowSetparameterName - the name of the parameterx - the parameter valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodResultSet.getDate(int)public void setDate(java.lang.String parameterName,
java.sql.Date x,
java.util.Calendar cal)
throws java.sql.SQLException
java.sql.Date value,
using the given Calendar object. The driver uses
the Calendar object to construct an SQL DATE value,
which the driver then sends to the database. With a
a Calendar object, the driver can calculate the date
taking into account a custom timezone. If no
Calendar object is specified, the driver uses the default
timezone, which is that of the virtual machine running the application.setDate in interface javax.sql.RowSetparameterName - the name of the parameterx - the parameter valuecal - the Calendar object the driver will use
to construct the datejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodResultSet.getDate(int)public void setTime(java.lang.String parameterName,
java.sql.Time x)
throws java.sql.SQLException
java.sql.Time value.
The driver converts this
to an SQL TIME value when it sends it to the database.setTime in interface javax.sql.RowSetparameterName - the name of the parameterx - the parameter valuejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodResultSet.getTime(int)public void setTime(java.lang.String parameterName,
java.sql.Time x,
java.util.Calendar cal)
throws java.sql.SQLException
java.sql.Time value,
using the given Calendar object. The driver uses
the Calendar object to construct an SQL TIME value,
which the driver then sends to the database. With a
a Calendar object, the driver can calculate the time
taking into account a custom timezone. If no
Calendar object is specified, the driver uses the default
timezone, which is that of the virtual machine running the application.setTime in interface javax.sql.RowSetparameterName - the name of the parameterx - the parameter valuecal - the Calendar object the driver will use
to construct the timejava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodResultSet.getTime(int)public void setTimestamp(java.lang.String parameterName,
java.sql.Timestamp x,
java.util.Calendar cal)
throws java.sql.SQLException
java.sql.Timestamp value,
using the given Calendar object. The driver uses
the Calendar object to construct an SQL TIMESTAMP value,
which the driver then sends to the database. With a
a Calendar object, the driver can calculate the timestamp
taking into account a custom timezone. If no
Calendar object is specified, the driver uses the default
timezone, which is that of the virtual machine running the application.setTimestamp in interface javax.sql.RowSetparameterName - the name of the parameterx - the parameter valuecal - the Calendar object the driver will use
to construct the timestampjava.sql.SQLException - if a database access error occurs or
this method is called on a closed CallableStatementjava.sql.SQLFeatureNotSupportedException - if the JDBC driver does not support
this methodResultSet.getTimestamp(int)public void setCommand(java.lang.String s)
throws java.sql.SQLException
setCommand in interface javax.sql.RowSets - a command string, may be nulljava.sql.SQLException - if a database-access error occurs.public void setConcurrency(int i)
throws java.sql.SQLException
setConcurrency in interface javax.sql.RowSeti - a value from ResultSet.CONCUR_XXXjava.sql.SQLException - if a database-access error occurs.public void setDataSourceName(java.lang.String s)
throws java.sql.SQLException
setDataSourceName in interface javax.sql.RowSets - a data source namejava.sql.SQLException - if a database-access error occurs.public void setEscapeProcessing(boolean flag)
throws java.sql.SQLException
setEscapeProcessing in interface javax.sql.RowSetflag - true to enable; false to disablejava.sql.SQLException - if a database-access error occurs.public void setFetchDirection(int direction)
throws java.sql.SQLException
setFetchDirection in interface java.sql.ResultSetjava.sql.SQLException - if a database-access error occurs, or
the result set type is TYPE_FORWARD_ONLY and direction is not
FETCH_FORWARD.public void setFetchSize(int rows)
throws java.sql.SQLException
setFetchSize in interface java.sql.ResultSetrows - the number of rows to fetchjava.sql.SQLException - if a database-access error occurs, or the
condition 0 <= rows <= this.getMaxRows() is not satisfied.public void setMaxFieldSize(int max)
throws java.sql.SQLException
setMaxFieldSize in interface javax.sql.RowSetmax - the new max column size limit; zero means unlimitedjava.sql.SQLException - if a database-access error occurs.public void setMaxRows(int max)
throws java.sql.SQLException
setMaxRows in interface javax.sql.RowSetmax - the new max rows limit; zero means unlimitedjava.sql.SQLException - if a database-access 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
unlimitedjava.sql.SQLException - if a database-access error occurs.public void setReadOnly(boolean value)
throws java.sql.SQLException
setReadOnly in interface javax.sql.RowSetvalue - true if read-only, false otherwisejava.sql.SQLException - if a database-access error occurs.public void setPassword(java.lang.String s)
throws java.sql.SQLException
setPassword in interface javax.sql.RowSets - the password stringjava.sql.SQLException - if a database-access error occurs.public void setTransactionIsolation(int value)
throws java.sql.SQLException
setTransactionIsolation in interface javax.sql.RowSetvalue - the transaction isolation leveljava.sql.SQLException - if a database-access error occurs.public void setType(int value)
throws java.sql.SQLException
setType in interface javax.sql.RowSetvalue - may be TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, or
TYPE_SCROLL_SENSITIVEjava.sql.SQLException - if a database-access error occurspublic void setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> value)
throws java.sql.SQLException
setTypeMap in interface javax.sql.RowSetvalue - a map objectjava.sql.SQLException - if a database-access error occurs.public void setUrl(java.lang.String s)
throws java.sql.SQLException
setUrl in interface javax.sql.RowSets - a string value, may be nulljava.sql.SQLException - if a database-access error occurs.public void setUsername(java.lang.String s)
throws java.sql.SQLException
setUsername in interface javax.sql.RowSets - a user namejava.sql.SQLException - if a database-access error occurs.protected void notifyListener(int event)
protected BaseRowSet.Parameter getParam(int paramIndex) throws java.sql.SQLException
java.sql.SQLException