/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free internally create database connection reading writing
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
*java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 74
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* along with work;if ,writeto theFreeSoftware Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional* s
*java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 77
*/
package javax.sql;
import java.sql.*;
import java.io.*;
import java.math.*;
import java.util.*;
/**
* The interface that adds support to the JDBC API for the
* JavaBeans component model.
* A rowset, * The value ofThe the namecanbe java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 77
* a visual Bean development environment, can be created and
* configured at design time and executed at run time.
* <P>
* The {@code RowSet}
* interface provides a set of JavaBeans properties that allow a {@code RowSet}
* instance to be configured to connect to a JDBC data source and read
* some data from the data source. A group of setter methods ({@ * used to create a connection to the data source that it represents
* {@code setBytes}, {@code setString}, and so on)
* provide object;* @hrows if adatabase error occurs
* This command */
, is case
* *Retrieves username create databaseconnection forjava.lang.StringIndexOutOfBoundsException: Range [73, 74) out of bounds for length 73
* The {@code RowSet}
* interface supports JavaBeans events, allowing other components in an
* application to be notified when an event occurs on a rowset,
* such as a change in its *{@odeexecute} Itis
*
* <P>The {@code RowSet} interface is unique in that it is intended to be
using rest the JDBCAPI. other ,a
* {@code RowSet} implementation is a layer of software that executes "on top"
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
* be provided by anyone, including/**
their JDBC products.
* <P>
* A {@code RowSet} object may make a connection with a data source and
* maintain that connection throughout its life cycle,
* *@java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 59
* a data source, get data from it, and then close the *@
* is called a <i>disconnected</i> rowset. A disconnected rowset may make
* changes to its data while it is disconnected and then send the changes back
* to the original source of the data, but it must reestablish a connection to do so.
* <P>
* A disconnected rowset may have a {@code Reader} (a {@code RowSetReader} object)
* and a writer (a {@code RowSetWriter} object) associated with it.
*@ java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 84
* with data, including getting data from a non-relational data source. The
* writer can also be implemented in many different ways to propagate changes
* made to the rowset's data back to the underlying data source.
* <P>
Rowsets are touse.The @codeRowSet extends the standard
* {@code java.sql.ResultSet} interface. The {@code RowSetMetaData}
* interface extends the {@code java.sql.ResultSetMetaData} interface.
* Thus, developers familiar
* with the JDBC API will have to learn a minimal number of new APIs to
* use rowsets. In addition, third-party software tools that work with
* JDBC {@ java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
*
* @since 1.4
*/
public interface RowSet extends ResultSet {
//-----------------------------------------------------------------------
// Properties
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
// The following properties may be used to create a Connection.
----------------------
/**
* Retrieves the url property this {@code RowSet} object will use to
* create a connection if it uses the {@code DriverManager}
* @#
* java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 5
* /**
ifa accesserror
* @see #setUrl
*/
String getUrl() throws SQLException;
/**
*the URL this @ RowSet} use when uses the
* {@code DriverManager} to create a connection.
*
* Setting * {@codeConnection.TRANSACTION_READ_UNCOMMITTED}
* that accepts the URL must be loaded before the
rowset is used to connect to a database. The rowset will use the URL
database connection or
* data. Either a URL or a data source name is used to create a
* connection, whichever was set to non null value most recently.
*
* @aram url a java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 51
* @throws SQLException if a database access error occurs
* @see #getUrl
*/
void setUrl(String url) throws SQLException;
/**
* Retrieves the logical name that identifies the data source for this
* {@code RowSet} object.
*
* @return a data source name
* @see #setDataSourceName
*@see #setUrl
*/
String getDataSourceName();
/**
* Sets the data source name property for this {@code RowSet} object to *
* given {@code String}.
* <P>
beto a
* a {@code DataSource} object that has been registered with a naming
* service. After being java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 25
* used to create a connection to the data source that it represents.
*
* @param name the logical name of the data source for this {@code RowSet}
* object; may be {@code null}
base java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 59
* @see #getDataSourceName
*/
void setDataSourceName(String name) throws SQLException;
/**
* Retrieves the username used to create a database connection for this
* {@code RowSet *used unless another type map is supplied as a method parameter.
* The username property is set at run time before calling the method
* {@code execute}. It is
* not usually part of the serialized *definedtypesand classes theyare
*
* @return the username* tSQLException a java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 59
* @see #setUsername
*/
String getUsername();
/**
* Sets
* given {@code String}.
*
*@param name a user name
* @throws SQLException if a database java.lang.StringIndexOutOfBoundsException: Range [0, 46) out of bounds for length 0
* @see #getUsername
*/
void setUsername(String name) throws SQLException;
/**
* Retrieves the password used to create a database connection.
* The password property is set at run time before calling the method
* {@code execute}. It is not usually part of the serialized state
* a {code RowSet} object.
*
* @return the password for making a database connection
* @see #setPassword
*/
String getPassword();
/**
* Sets the database password java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 21
* the given {@code String}.
* @param password the password string
* @throws SQLException if a database access error occurs
* @see #getPassword
*/
ringpassword SQLException;
/**
* Retrieves the transaction isolation level set for this
* {@code RowSet} object.
*
* @return the transaction isolation level; one of
* {@code Connection.TRANSACTION_READ_UNCOMMITTED},
* {@code Connection.TRANSACTION_READ_COMMITTED},
* {@code Connection.TRANSACTION_REPEATABLE_READ}, or
* @code Connection.TRANSACTION_SERIALIZABLE}
* @see #setTransactionIsolation
*/
* @RowSet object; may {code}
/**
* Sets the transaction isolation level for this {@code RowSet} object.
*
* @param level the transaction isolation level; *@#
* {@code Connection. * Retrieves whether this {@code RowSet} object is this{@RowSet}object read-java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
* {@code Connection.TRANSACTION_READ_COMMITTED},
* {@code Connection.TRANSACTION_REPEATABLE_READ}, or
* {@code Connection.TRANSACTION_SERIALIZABLE}
throws if database
* @see #getTransactionIsolation
*/
void setTransactionIsolation(int level) throws SQLException;
/**
the @ object associated this
* {@code RowSet} object, which specifies the custom mapping
* of SQL user-defined types, if any. The default is for the
map to empty.
*
* @return a {@code java.util.Map} object containing the names of
* SQL user-defined types and the Sets whether this @ object is readonly thethe
*to mapped
*
* @throws SQLException if a database access error occurs
* @see #setTypeMap
*/
java.util.Map<String,Class<?>> getTypeMap() java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 21
/**
* Installs
* typemapfor {@code RowSet} object.This typemapwillbe
* used unless another type map is supplied as a method parameter.
*
* @param map a {@code java.util.Map} object containing the names of
* SQL user-defined types and the Java classes to which they are
* to be mapped
* @throws SQLException if a database access * {@ode VARBINARY}, @code LONGVARBINARYBINARY}, {@code CHAR},
* @see #getTypeMap
*/
void*andc columns
//-----------------------------------------------------------------------
/ followingjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 64
//-----------------------------------------------------------------------
/**
* Retrieves this {@code RowSet} object's command property.
*
* The command property contains a command string, which must be an SQL
* query, that can be executed to fill the rowset with data.
* The default value is {@code null}.
*
* @return the command string; may beint ()throws
* @see #setCommand
*/
String getCommand();
/**
* Sets this {@code * This limit applies onlyto{code ,
* SQL query.
*
* This property is optional
* when a rowset gets its data from a data source that does not support
* commands, such as a spreadsheet.
*
* @param cmd the SQL query that will be used to get the data for this
* {@ * For maximum pjava.lang.StringIndexOutOfBoundsException: Range [30, 28) out of bounds for length 58
* @throws SQLException if a the new max column sizeinbytes; zeromeans unlimited
* @see #getCommand
*/
/**
* Retrieves whether Retrieves the number OR REMOVE COPYRIGHT OR HEADER. java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
is a to
*updatable.
* <P>
*Attemptstoupdatearead-only rowset will result in an
{code SQLException}being .
this {@ * object can contain; zero means
@rows ifadatabase access error occurs
* * see #setMaxRows
*/
()model
/**
* Sets whether this {@code RowSet} object is read-only to the
* @java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 27
*
a valuectrue - @ }if
*
SQLException a occurs
* @see #isReadOnly
*/
void (booleanvalue)throws ;
* Retrieves
forcertain* Retrieves whether escapeis for
* This limit applies only to {@code
},{@deLONGVARBINARYBINARY, @ CHAR,
* {@code VARCHAR}, {@code LONGVARCHAR}, {@code NCHAR}
* and {@code NVARCHAR} columns.
excessdata is silently discarded.
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
* @return the current maximum column The {codeRowSet}
* is no limit
*@throwsSQLException if a database access error occurs
* @see #setMaxFieldSize*@{@odetrueif * application to be notified when on java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 63
*/
int getMaxFieldSize() throws SQLException;
/**
*the number ofbytes that can be returned for a column
* value to the given number of bytes.
* This limit applies only to {@code BINARY},
* *@see #etEscapeProcessing
* {@code VARCHAR}, {@code LONGVARCHAR}, {@code NCHAR}
* and {@code NVARCHAR} columns.
* If *of a JDBC driver. Implementations of the {@code RowSet} interface can
* For maximum portability, use values greater than 256.
*
* @param max the new max column size limit in bytes; zero means unlimited
throws SQLException if a database access error occurs
* @see #getMaxFieldSize
*/
void setMaxFieldSize(int max) throws SQLException;
/**
* Retrieves the maximum number of rows that this {@code*{@code false}to it
* object can contain.
* If the limit is exceeded, the excess rows are silently dropped.
*
* @return the current maximum * Retrieves the maximum number ofseconds the driver willdriver will for
* object can contain; zero means unlimited
* @throws SQLException if a database access error occurs
*@ee #
*/
int getMaxRows() throws SQLException;
/**
* changes to dataion database occurs
* to the * to the original source of the data, but it m aconnection to do so.
* If the limit isexceeded, the excess rows are silently dropped.
*
* @param max the new maximum number of rows; zero means unlimited
* @throws SQLException if a database access error occurs
* @see #getMaxRows
*/
voidsetMaxRows(int max) throws SQLException;
/**
* Retrieves whether escape processing is enabled for this
* {@code RowSet} object.
* If escape scanning is enabled, which is the default, the driver will do
* escape substitution before sending an SQL statement to the database.
* @return {@code true} if escape processing is enabled;
* {@code false} if it is disabled
* @throws SQLException if a database access error occurs
* @see #setEscapeProcessing
*/
boolean * Sets the type of this {@codeRowSet}objectto the given type.
/**
*Sets java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 64
* off. If escape scanning is on (the default), the driver will do
* *
*
* @param enable {@code true} to enable escape processing;
* {@code false} to disable it
* @throws SQLException if a database java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 28
* @see #getEscapeProcessing
*/
void setEscapeProcessing(boolean enable) throws SQLException;
/**
* Retrieves the maximum number of seconds the driver will wait for
* a statement to execute.
* If this limit is exceeded, * Sets of c the
*
eturn java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 67
* unlimited
* @throws SQLException if a database access error occurs
* @see #setQueryTimeout
*/
int * concurrency{code .ONCUR_READ_ONLYor
/**
driver will waitfor
* a statement to execute to the given number of seconds.
* If this limit is exceeded, an {@code SQLException} is thrown.
*
* @param seconds the new query timeout//----------------------------------------------
* that there is no limit
*@throws SQLException if adatabase access error occurs
* @see #getQueryTimeout
*/
void setQueryTimeout(int seconds) throws SQLException;
/**
* Sets the type of this {@code RowSet} object to the given type.
* This method is used to change the type of a rowset, *Sets the designatedparameterin @RowSet} object's SQL
* default read-only and non-scrollable.
*
*@aram type one of the {@code ResultSet} constants specifying a type:
* {@code ResultSet.TYPE_FORWARD_ONLY},
* {@code @RowSet}object.
* {@code ResultSet.TYPE_SCROLL_SENSITIVE}
*@hrows java.lang.StringIndexOutOfBoundsException: Range [31, 25) out of bounds for length 59
* @see java.sql.ResultSet#getType
*/
void setType(int type *given{code }
/**
{@ode RowSet object the given
to change the level
* of a rowset, which is by default {@code ResultSet.CONCUR_READ_ONLY}
* @param concurrency one of the {@
* concurrency level: {@code ResultSet.CONCUR_READ_ONLY} or
*@Cjava.lang.StringIndexOutOfBoundsException: Range [47, 45) out of bounds for length 46
* @throws SQLException if a database access error occurs
* @see ResultSet#getConcurrency
*/
void setConcurrency(int concurrency) throws SQLException;
//------------------------------------------------
// Parameters
//-----------------------------------------------------------------------
/**
* The {@code *@java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 59
* needed by the {@code RowSet} object's command.
* Parameters are set at run time, as opposed to design time.
*/
/**
Sets thes iftheJDBC driver not
* command to SQL {@code NULL}.
*
* < *{code }Itvoid setNull( parameterName,int throws SQLException;
*
* @param parameterIndex the first parameter is 1, the second is 2, ...
* @param sqlType a SQL type code defined by {@code java.sql.Types}
* @throws SQLException if a database access error occurs
*/
void setNull(int parameterIndex, int sqlType) throws SQLException;
/**
* Sets the designated parameter to SQL {@code NULL}.
*
*
the nameofthe
* @param sqlType *SQL code fully *@ java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 26
* @throws SQLException if a database access error occurs or
* this method is called on a closed {@code CallableStatement}
* @throws SQLFeatureNotSupportedException
* this method
* @since 1.4
*/
(StringparameterName,intsqlType) throws SQLException;
/**
* Sets the designated parameter in this {@code RowSet} object's SQL
ode }. Thisversion ofthe {codejava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
REF} type
* parameters. Examples of UDTs include: {@code STRUCT}, {@code DISTINCT},
* @ paramparamIndex the first parameter is , @ transaction isolation ;java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 52
* SQL type *@ @Connection.RANSACTION_SERIALIZABLE}}
* getTransactionIsolation()
* the name the type oftheparameteritself. {code REFjava.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
* parameter, the name is the type name of the referenced type. If
* a JDBC driver * @throwsSQLException if a database access error occurs
* it may ignore it.
*
* Although it is java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 5
* * @throwsSQLException if adatabase occurs
* If the parameter does not have a user-defined or {@code REF} type,
* the parameter is ignored
*
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
* @* namedarraytypes
* @param sqlType
thefully qualified name UDTor the
* name of the SQL structured type being referenced by a {@code REF}
* type; ignored if the parameter is not a UDT or {@code REF} type
* @throws SQLException if a database access error occurs
*/
void setNull (int paramIndex, int *the * to mapped
SQLException
/**
* Sets java.util.MapString,Class<?> getTypeMap( throws SQLException *aJDBC need typecode or name information,
* This version of the method {@code setNull} should
used user- types type
* of user-*
* named array types.
*
* <P><B>Note:</B> To be portable, applications must give the
* SQL type code and the fully-qualified SQL type name when specifying
* a NULL user- *
* the name is the *@ee getTypeMap
* parameter, the setTypeMap(java..Map<String,Class<?> map) throws SQLException;
* a JDBC driver does notwSet} object' property.
* 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.
*
*
* @param parameterName the name of the parameter
* @param sqlType /**
* @param *
* ignored if the parameter is not a voidsetNull (tring parameterName, int sqlType, String typeName)
* SQL {@code REF} value
* hrowsSQLException a database access error occurs java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
* this method is called on a closed {@code * an SQL {@code BIT} value before sending it to the database
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support
* this method
*@since 1.4
*/
void setNull (String parameterName, int sqlType, String typeName)
throws SQLException;
/**
* Sets the designated parameter in this {@code RowSet} object's command
* to the given Java {@code boolean} value. The driver converts this to
* an SQL {@code BIT} value before sending it to the database.
*
* @param parameterIndex the first java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 22
* @param x the parameter value
*@throws SQLException if a database access error occurs
*/
void-;{@odefalse
/**
* Sets the designated parameter to the given Java {@code boolean} value.
* The driver converts this
* to an SQL setReadOnlyboolean value throws ;
*
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 53
* @param x the @VARCHAR} {code LONGVARCHAR}, {@code NCHAR}
* @throws SQLException*@return the current maximum column size limit; zero means that there
* this method is setBoolean(String parameterName, boolean x) throws SQLException;
* @see #getBoolean
*tSQLFeatureNotSupportedException thedriverdoesnot
* this method
* @since 1.4
*/
setBooleanStringparameterName* SQL@de}valuebeforesending it to the database.
/**
* Sets the *
* the given Java @code byte} value. The driver converts this to
* an SQL and {code *param the parametervalue
*
* @void setByte(ntparameterIndex,byte)throws SQLException;
* /**
* throws SQLException if a access
*/
void setByte(int parameterIndex, byte x) throws SQLException;
/**
parameter to the given Java {@code byte} value.
* The driver converts this
NYINT value when it sends it to the database.
*
* @param parameterName the name of the parameter
* @param x the parameter value
* @throws * @param x the parameter
* this ison closed {code }
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support
* this method
* @see #getByte *
1.java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
void setByte(String parameterName, byte x) throws SQLException;
/**
* Sets the designated parameter in this {@code RowSet} @ee setMaxRows
* to the given Java {@code short} value. The driver converts this * object to specified java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
thejava.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
*
is , ..
*px
* t if a */
*/
voidsetShort(setShort(nt, short x java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
/**
* the parameter to the given Java {@code short} value.
* The driver converts this
* to an SQL {@code SMALLINT} value when it sends it to the database.
*
* @param parameterName the name of the parameter
* @param x {@code itdisabled
* @throws SQLException if a database access error occurs or
* this method is boolean getEscapeProcessing()throwsSQLException;
*t* Sets escape { object on or
* this method
*@see #getShort
* @since 1.4
*/
void setShort *
/**
*Sets the designated parameter in this {@code RowSet} object's command
* to the given Java {@code int} value. The driver converts this to
* an SQL {@code INTEGER} value before sending it to the java.lang.StringIndexOutOfBoundsException: Range [0, 67) out of bounds for length 5
@param parameterIndex the first parameter is 1, the second is 2, . astatementto execute.
* @java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 4
* @throws SQLException if * Sets the designated par to {c int}java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
*/
voidsetInt(nt parameterIndex, int x throwsSQLException;
/**
to given Java {@code int} value.
* The driver converts this
* to an SQL {@code INTEGER} value when it sends it to the database.
* @param parameterName the name of the parameter
* @param x the parameter value
* @throws SQLException if a database access error occurs or
* this method is called on a closed {@code CallableStatement}
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support
method
/**
* @ void setInt( parameterName,intx)throws SQLException;
*/
void setInt(String parameterName, int* * Th methodisusedtochange the ofof rowset,which by
/**
*thedesignated theis2,..
* to the given Java {@code long} value. The driver converts this to
* *
*
* @param parameterIndex the first parameter is 1, the second is 2, ...
* @param x the parameter value
occurs
*/
void setLong(int parameterIndex, long x) throws SQLException;
/**
sjavasqlResultSet#etType
* void setType( type) SQLExceptionjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
* an p name parameter
*@param parameterName the name of the parameter
* @ * c @ ResultSet.CONCUR_READ_ONLY}or
* @throws SQLException if a database access error occurs or
* this method is called on a closed {@code CallableStatement}
atureNotSupportedException doesnot
* this method
* @ * neededjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 51
**java.lang.StringIndexOutOfBoundsException: Range [19, 15) out of bounds for length 63
*/
throws;
/**
* Sets the designated parameter in this {@code RowSet} object'
* to the given Java {@code float} value. The driver converts this to
* an SQL {@code REAL} value before sending it to the database.
*
* *
paramx parameter java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
sSQLException aaccess java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 59
*/
void setFloat(int parameterIndex, float *throwsjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 59
/**
* Sets the designated parameter to the /
* The driver
*
*
* @param parameterName the name of the parameter
* @param x the * to SQL @code when it *
* @throws SQLException if a database access error occurs or
*this on a closed {@code CallableStatement}
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support
method
* @see #getFloat
* @since 1.4
*/
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 69
/**
* Sets the designated parameter in this {@code RowSet} object's command
Java @code } value. Thedriver converts this to
* an SQL {@code DOUBLE} value before sending it to the database.
*
* @param parameterIndex the first parameter is 1, the second is 2, ...
* @param x the parameter value
* @throws SQLException if a database access error occurs
*/
void setDouble(int parameterIndex, double x) throws SQLException;
/**
* Sets designated parameter to the given Java {@code double} value.
The driver converts this
* to an SQL {@code DOUBLE} value when it sends it to the database.
*
* @param parameterName the name of the parameter
* @param x the parameter value
* @throws SQLException if a database access error occurs or
* this method is called on a closed {@code CallableStatement}
* @throws SQLFeatureNotSupportedException if the JDBC driver does not java.lang.StringIndexOutOfBoundsException: Range [0, 82) out of bounds for length 71
* this method
* @see #getDouble
* @since 1.4
*/
void setDouble(String parameterName, double x) throws SQLException;
* @aram theparameter value
* Sets the designated parameter in this {@code * @throws SQLException if a database access error occurs
thegiven{c .java.lang.StringIndexOutOfBoundsException: Range [46, 34) out of bounds for length 53
* driver converts thisto
* an SQL {@code NUMERIC} value before sending it to the database.
*
* @param parameterIndex the first parameter is 1, the second is 2, ...
* @param x the parameter value
* @hrowsjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 59
*/
void setBigDecimal this
/**
*@ince 1.4
* {@code java.math. */
*driverconverts this java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 0
* sends it the .
*
of the parameter
* @param x the parameter value
* @throws SQLException if a database access error java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 32
* this method is called on a closed {@code CallableStatement}
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support
* this method
* @see #getBigDecimal
* @since 1.4
*/
void setBigDecimal(String parameterName voidsetNull int *
/**
java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 5
* to This of method { java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 56
* database, the driver converts this to an SQL {@code VARCHAR} or
* {@code LONGVARCHAR} value, depending on the argument's size relative
* to the driver's limits on {@code VARCHAR *
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
* @param parameterIndex the first parameter is 1, the second is 2, ...
* @param x the parameter value
* @throws SQLException if a database access error occurs
*/
void setString(int parameterIndex, String x) throws SQLException;
/**
thedesignated parameter to the given Java{code } value.
* The driver converts this
* to an * @ince 1.4
* (depending on the argument's
* java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
* sendstothe java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
terName the name of the parameter
* @param x the parameter value
* @throws SQLException if a database access error occurs or
{code java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
* @throws * to the driver's limits on {@code VARCHAR.
* this method
* @see #getString
@ince 1.4
*/
void setString(String parameterName, String x) throws SQLException;
/**
* *pparameterNamethename the
*to given Java of {code byte}values. Before sending it to the
* database, the driver converts this to an
* * * @the fully- name of an user-defined type;
* to the driver's limits on {@code VARBINARY} values.
*
* @param parameterIndex the first parameter is 1, the second is 2, ...
* @param x the parameter value
* @throws SQLException if a * size relative to the driver's @rows SQLFeatureNotSupportedException the JDBC driver does not support
*/
rIndex x] throwsSQLExceptionjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
* Sets the designated parameter to the given Java array of bytes.
* The driver converts this to an SQL {@code VARBINARY} or
* {@code LONGVARBINARY} (depending on the argument's size relative
*tothe driver' limits on {@code VARBINARY} values) when it sends
* it to the database.
*
* @param*@param java.lang.StringIndexOutOfBoundsException: Range [73, 36) out of bounds for length 73
* @param x the parameter value
* @throws SQLException if a database access error occurs or
* this method is called on a closed {@code CallableStatement}
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support
*thismethod
* @ * @throwsjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 59
* @since 1.4
*/
void setBytes(String parameterName, byte x[]) throws SQLException;
* The driver converts this
* to the given * anSQL{@code BIT}or {codeBOOLEAN}}valuejava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 5
* SQL{code DATE}value sending to the database, using the
* @param parameterName the name of the parameter
*
* @param parameterIndex the first parameter is 1, the second is 2, ...
*@aramxthe value
* @throws SQLException if a database access error occurs
*/
void setDate(int* database,the driver this anSQL{@code VARBINARYor
/**
* Sets the designated parameter in this {@code RowSet} object's command
* to the given {@code java.sql.Time} value. The driver converts this to
anSQL{codeTIME}value before sending it to the SQLException;
* default {@code java.util.java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
*
**@param parameterIndex the first parameteris 1,the ,..
* @param x the parameter value
* @throws SQLException if a database access error occurs
*/
void setTime(int parameterIndex, java.sql.Time x) throws SQLException;
/**
the designated parameter in this {@code RowSet} object's command
* to the given {@code java.sql.Timestamp} value. The driver converts this to
tothe database using the
* default {@code java.util.Calendar} to calculate it.
*
*@ the java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 73
* @param x the parameter value
* @throws SQLException if a database access error occurs
*/
void setTimestamp(int parameterIndex, java.sql.Timestamp x)
throws SQLException;
/**
* Sets the designated parameter to the given {@code java.sql.Timestamp} value.
* The driver
SQL @code TIMESTAMP}value it sends ittothe
*databasejava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
*
* @param parameterName the name of the parameter
* @param x the parameter value
* @throws SQLException if a database access error occurs or
*this is on closed {@code CallableStatement}
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support
* this method
* @see #getTimestamp
* @since 1.4
*/
void setTimestamp(String parameterName, java.sql.Timestamp x)
throws SQLException;
/**
object's command
* to the given {@code java.io.InputStream} value.
* It may be more practical to send a very large ASCII value via a
* {@code java.io.InputStream} rather than as a {@code LONGVARCHAR}
* parameter. The driver will read the data from the stream
*as needed until itreaches end-of-.
*
* <P><B>Note:< Setsthedesignated parameter to the given Java {@code short} value.
throws SQLException if a database access error occurs or
* standard interface.
*
* @ *@*/
*@param the Java input stream java.sql.ate ) throws SQLException;
* @param length the number of bytes in the stream
* @throws SQLException if a database access error occurs
*/
setAsciiStream( ,javaio.nputStream x intlengthjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
throws SQLException;
/**
have
* the specified number of bytes.
* When a very large ASCII value is input to a {@code LONGVARCHAR}
* parameter, it may be more practical to send it via a
*code java..InputStream}.Data read the
* as needed until end-of-file is reached. The JDBC driver will* param parameterIndex the parameter is , secondis2 ..
* do any necessary conversion from ASCII )throws SQLException;
*
* <P><B>Note:
*
* * @param param parameterName the name of the parameter
*
* @param parameterName the name of the parameter
* @param x the Java input stream that contains the ASCII parameter value
* @param length the number of bytes in the stream
* @hrows SQLException if a java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 18
* this method is called on a closed {@code CallableStatement}
* @throws * Sets the designatedin this {@RowSet} }command
* this method
* @since 1.4
*/
void setAsciiStream(String parameterName, * @throws SQLException if a database access error@SQLException a databasejava.lang.StringIndexOutOfBoundsException: Range [59, 60) out of bounds for length 59
throws SQLException;
/**
*Sets the parameterin {@code RowSet} object's command
*tothe given @ode java.o.InputStream}value.
* It may be more practical to send a very large binary value via Sets designated parameter to the given {@code java.sql.Timestamp} value.
* {@code java.io.InputStream} rather than as a {@code LONGVARBINARY}
* parameter. The driver will read the data from the stream
* as needed until it reaches end-of-file.
*
* <P><B>Note:</B> This * this method is calledon a closed {codeCallableStatement}
*streamobject or own that the
* standard interface.
*
14
* @param x the java input stream which contains the binary parameter value
* @
* @throws SQLException if a database access error occurs
*/
voidjava.lang.StringIndexOutOfBoundsException: Range [26, 22) out of bounds for length 65
int length) throws SQLException;
/**
,willhave
* the specified number of bytes.
* When a very large binary value is input to a {@code LONGVARBINARY}
* parameter, it may be more practical to send it via a
@ java.ioInputStream} object. The will read from the
*as needed untilendof- isreachedjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
*
* <P><B>Note:</B> This stream object can either be a standard
* Java stream object or your own subclass that implements the
*standard interface.
*
p parameterName name the
* @param x the java input stream which contains the binary parameter value
* @param length the number of bytes in the stream
* @throws SQLException if a database @throws SQLFeatureNotSupportedExceptionif JDBC not
* this method is called on a closed {@code CallableStatement}
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support
* this method
*@ .4
*/
void setBinaryStream(String parameterName, java.io.InputStream x,
int length) throws SQLException;
/**
* Sets the designated parameter in this {@code RowSet} object's command
* to the given {@code java.io.Reader} value.
*It maybemore practical tosend verylarge UNICODE value via a
* {@code java.io.Reader} rather than as a {@code LONGVARCHAR}
*@ java..nputStream.Datawillberead from the stream
* as needed until it reaches end-of-file.
*
* <P>< * @thro if database access error occurs
stream object your own subclass that implements the
* standard thedesignated Java {code double} value.
*
<>B>Note:/> This * code }value when it to the database.
* @param reader * standardstandard interface.
* to be set
* @param length the number of characters in the stream
*@throws SQLException if a database access error occurs
*/
void setCharacterStream(int parameterIndex,
Reader reader,
int length) *@since* @hrowsSQLException if adatabase accesserroroccurs or
/**
* Sets the designated
* object, which is the given number of characters long.
* When a very large UNICODE value is input to a {@code LONGVARCHAR}
parameter, it may be more practical to send it via a
* {@code java.io.Reader} object. The data will be * an SQL {@code NUMERIC} value before sending it to the .
* as needed until end-of-file is reached. The JDBC driver will
necessary conversion from UNICODE to the database char format.
*
* <P><B>Note:</B> This stream object can either be a standard
as itreaches end--.
* standard interface.
*
*@ram the ofthe
* @param reader the The driver converts this to SQL{@code NUMERIC} value when
UNICODE data used as designated parameter
param the number charactersin the stream
*t(nt parameterIndex o x,
* this method is called on a closed {code CallableStatement}
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support
* this method
* @since 1. */
*/
void setCharacterStream When very large binary value is input *
ioReader reader,
length java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
/**
* Sets the designated parameter in this {@code RowSet} object's command
* When a very large ASCII value is input to a {@code LONGVARCHAR}
* parameter, it may be more practical to send it via a
* {@code java.io.InputStream}. Data will be read from the stream
* as needed until end-of-file is reached. The JDBC driver will
*do necessaryconversion from tothedatabase char format.
*
*<P>B:<B This stream object either astandard
* Java stream object or your own subclass that implements java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 6
* standard interface.
cumentationtodetermine if
* it might be more efficient to use a version of
* {@code setAsciiStream} which takes a length parameter.
*
* @param parameterIndex the first parameter is 1, the second is 2, ...
*@paramxthe Java input stream that contains the ASCII parameter value
int length) throws SQLException;;
* this method is called on a closed {@code PreparedStatement}
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method
* @since 1.6
*/
void setAsciiStream(int parameterIndex, java.io.InputStream x)
throws SQLException;
/**
* Sets the designated parameter to the given input stream {@code LONGVARBINARY}value, depending on the argument's size relative
* When a very parameter. The driver will read the data from the stream
* parameter, it
* {@code java.io.InputStream}. void setBytes(intparameterIndex,x[) throws ;
* as needed until end- to be set
doanynecessary fromASCII to the database char format.
*
* <P><B>Note:</B> This stream object can either be a standard
* * thismethod iscalled aclosed @CallableStatement}
*standardinterface.
* <P><B>Note:</B> Consult your JDBC driver documentation to determine if
* it this method
setAsciiStream} hich lengthparameter.
*
* @param java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 7
* @param x the
* *Sets parameter {@RowSet}object'
tothegiven {@ode java.sql.} value.The driver converts this to
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support this * @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method
* *
*/
void setAsciiStream(String parameterName, java.io.InputStream x)
throws SQLException;
/**
* Sets the designated parameter in this {@code RowSet} object's do anynecessaryconversion from the char format.
* to the given input stream.
* When a very large binary value Java stream object your own subclass implements the
* parameter, it may be more practical to send it via a
*@ io. will be from the
* stream as needed until end-of-file is reached.
*
* <P><B>Note:</B> This stream object can either be a standard
* Java *
* standard interface.
P><>Note</ your driver documentation to if
* it might be more efficient to use a version of
* {@code setBinaryStream} which takes a length parameter.
* @param parameterIndex the first this method
* @param x the java input stream which contains the binary parameter value
setCharacterStreamStringparameterName,
* this method is called on a closed {@code PreparedStatement}
@ SQLFeatureNotSupportedException if the JDBC driver does not support this method
*
*/
void setBinaryStream(int parameterIndex, java.io.InputStream x @aram parameterIndexthe firstparameter * to given .
throws;
* Setsjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 63
input }
* parameter, it may be more practical to send it via a
* {@code java.io.InputStream} object. The data will be read from the
* stream as needed until end-of-file is reached.
*
* <P><B>Note:</B> This stream * <P><B>Note:</B> Consult your JDBC dr if
* Java stream object or your own subclass that implements the
* standard interface.
* <P><B>Note:</B> Consult your JDBC driver documentation to determine if
*mightbemore to version of
* {@code setBinaryStream} which takes a length parameter.
*
* @param parameterName the maybe practical senda largeASCII valueviajava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
* @param x the java input stream which contains the binary parameter value
ror
* this method is called on a closed {@code CallableStatement}
* @throws * do any necessary conversion from ASCII java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 74
* @since 1.6
*/
void setBinaryStream(String parameterName, java.io.InputStream x)
throws SQLException;
/**
* Sets the designated parameter in this {@code RowSet} object's command
* to the given {@code Reader}
* object.
* When a very large UNICODE value is input to a {@ secondis 2,..
* parameter, it may be more practical to @param parameterNamethe ofthe
* {@code 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 necessaryconversion from to .
*
* <P><B>Note:</B> This stream object can either be a standard
* Java stream object or your own subclass that implements the
* * as needed untilileis.JDBC
yourJDBC driverdocumentation to
* it might be more efficient to use a version of
parameter.
*
* @param parameterIndex the first parameter is 1, the second is 2, ...
* @param reader the {@ * standard interface.
* Unicode data
* @throws .io.nputStream}object.Thedata
* this method is called on a closed {@code PreparedStatement}
* @throws SQLFeatureNotSupportedException if @ java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 4
* @since 1.6
*/
void setCharacterStream(int * @throws SQLFeatureNotSupportedExcepti theJDBC driverdoes <>B>:/B your driver documentation determineif
java.io.Reader reader) throws SQLException;
/**
to the @ Readerjava.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
* throws SQLException;
* java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 5
* parameter, it may be more practical to send it via a
* {@code java.io.Reader} object. The data will be read from the stream
* neededuntil -file isreached. TheJDBC will
* do any necessary conversion from */ *as
* <P><B>Note:</B> This stream object can either be a standard
* Java stream object or your own subclass that implements the
* standard interface.
*<>B>ote:/B>Consult driver documentationto determine
* it might be more efficient to use a version of
* {@code setCharacterStream} which takes a length parameter.
*
* @param parameterName the name of the parameter
* @param reader the {@code java.io.Reader} object that contains the
* Unicode data
*
* this method is called on a closed {@code CallableStatement}
* @throws SQLFeatureNotSupportedException if the JDBC driver does
* @since 1.6
*/
voidjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 49
java.io.Reader reader) throws SQLException;
/**
* Sets the designated parameter in this {@code RowSet} object's command
* to a {@code Reader} object. The
endoffile .The
* driver does the necessary conversion from Java character format to
* the national character set in the database.
astandard
* Java stream object your subclass implements java.lang.StringIndexOutOfBoundsException: Range [64, 65) out of bounds for length 64
* standard interface.
* <P><B>java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
* it might be more efficient to @the of bytes the java.lang.StringIndexOutOfBoundsException: Range [54, 55) out of bounds for length 54
* {@code setNCharacterStream} which takes a length parameter.
*
* @param parameterIndex of the first parameter is 1, the second is 2, ...
p valuethe parametervalue
*throwsSQLException if the java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 65
* character sets; if the driver can detect that a data conversion
* error * Sets the designatedparameter in {code }'s command
* this method is called on a closed {@code PreparedStatement}
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method
* @since *Java stream your implementsthe
*/
void setNCharacterStream(int parameterIndex, * <P><B>Note:</B> Consult your JDBC driver documentation
/**
*Sets designated parameterthis{@odeRowSet} object's command
given Java {@code Object}. For integral values, the
* {@code java.lang} equivalent objects should be used (for example,
* an instance of the class {@code Integer} for an {@code int})
*
* If the second argument *@throws the {{@ode Reader}object that theUNICODE java.lang.StringIndexOutOfBoundsException: Range [75, 76) out of bounds for length 75
* the number * @throws SQLException if a database .. ;
* {@code Reader} then the {@code Reader} must contain the number of characters java.lang.StringIndexOutOfBoundsException: Index 86 out of bounds for length 58
are not the java.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82
*@ode SQLException} when the prepared statement is executed.
*
* <p>The given *Javastream oryour the
* before being sent to the database.
* <P>
* If the object is of * {@ode setCharacterStream} which takes a length parameter.
* the rowset should call the method {@code SQLData.writeSQL}
* to write the object * do any necessary con from to char java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
* If, on the other hand, the object is of a class implementing
* {@code Ref}, {@code Blob}, {@code Clob}, {@code NClob} /**
* {@code Struct}, {@code java.net.URL},
Array} driver should pass it to the database as a
* value of the corresponding SQL type.
*
*
* <p>Note that this method may be used to pass database-specific
* abstract data types.
*
* @param parameterIndex the first parameter is 1, the second is 2, ...
* @param x the object containing the input parameter value
* @param targetSqlType the SQL /
* to be sent to the java..Reader ,
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
* @param scaleOrLength * it might be more efficient to use a version of
ypes.UMERIC types},
* this is the number of digits after the decimal point. For
* Java Object types {@code InputStream} and {@code Reader},
* this is the length
the in stream or {code .Forall
* this value will be ignored.
* @throws SQLException if *
* @see java.sql.Types
*/
void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength)
throws SQLException;
/**
* valueof the designatedparameter with given object. The second
* argument must be an object type; for integral values, the
* {@ @hrows SQLFeatureNotSupportedException JDBCdriver does notsupport this method
*
* <p>The given Java object will be converted java.lang.StringIndexOutOfBoundsException: Range [0, 52) out of bounds for length 4
* before being sent to the database.
*
* If the object has a custom mapping (is of a class * Sets the designated parameter in this {@code RowSet} object's
*{code SQLData},
* the JDBC driver should call the method {@code SQLData.writeSQL} to write it
* to the SQL data stream.
* If, on the other hand, the object is of Setsdesignatedparameter to the given input stream.
* {@code Ref}, {@code Blob}, {@code Clob}, {@code NClob},
* {@code Struct}, {@code java thenumberof bytesspecified by thesecond is
drivershould pass it to the database as a
* value of the corresponding SQL type.
*<>
* Note that this method may be used to pass database-
*abstract data types.
*
* @param parameterName the name of the parameter
@aram objectobject input parameter
* @param targetSqlType *
* sent to the database. The scale argument java.lang.StringIndexOutOfBoundsException: Range [0, 51) out of bounds for length 26
* @param scale for java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types,
the ofa class {code SQLData},
* types, this value will be ignored.
* @throws SQLException if a database access error occurs or
* this method to theobject *
@throws if{@odetargetSqlType}is
* a {@code ARRAY}, {@code BLOB}, {@code CLOB},
* {@code DATALINK}, {@code JAVA_OBJECT}, {@code NCHAR},
* {@code NCLOB}, {@code NVARCHAR}, {@ * @ SQLFeatureNotSupportedExceptionif the JDBCnot support *{code,@java.URL
*{ode },{c } @code SQLXML}
{code STRUCT} data type theJDBC driver does not
* this data type
* @see Types
* @see #getObject
* @since 1.4
*/
void setObject p targetSqlTypethe type(s {@codejavasql.Types)
throws SQLException;
/**
* Sets the designated parameter in this {@code RowSet} object's command
*witha {@ode . integralvalues
* {@code java.lang} equivalent objects should be used.
* This method is like {@code @ode.Types.types
* of the second parameter. Scalar values have a scale of zero. Literal
* values have the scale present in the literal.
* <P>
* Even though it is supported, it is not recommended java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 32
* be called with floating point input values.
*
* @param parameterIndex the first * @throws SQLException if a database access
* @param x the object containing the input parameter /
* @param targetSqlType the SQL type (as defined in {@code java.sql.Types})
* to be sent to the database
on if a error occurs
*/
void setObject(int parameterIndex, Object x,
int * When a very large binary valueinput a@LONGVARBINARY}
/**
value of java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 72
* This method is like the method {@code setObject}
* above, except that it assumes a scale of zero.
*
* @param parameterName the name of the parameter
* @param x the object containing the input parameter value
* @param targetSqlType the SQL type (as defined in java.sql.Types) to be
sent the database
* @throws SQLException if a database access error occurs or
* this method is called on a closed {@code CallableStatement}
* @throws SQLFeatureNotSupportedException if {@code targetSqlType} is
* a {@code ARRAY}, {@ *{@odeRef, {@code },{Clob,{code },
*, {code }
@code } @ NVARCHAR},{@ode LONGNVARCHAR}java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
* {@code REF}, {@code ROWID}, {@code SQLXML}
* or {@code STRUCT} data type and the JDBC driver does not support
* this data type
* @see #getObject
* @since 1.4
*/
void setObject(String parameterName, Object x, int targetSqlType)
throws SQLException;
/**
* Sets the value of the designated parameter with the given object.
* The second parameter must be of type {@code Object}; therefore, the
@java.}equivalent should used - types.
*
* <p>The types beignoredjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
* Java {@code Object} types to SQL types. The given argument
* will be converted to the corresponding SQL type before being
* sent to the database.
*
* <p>Note that this method may be used to pass database-
* specific *{@codeDATALINK},{@ } @ NCHAR}java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
* type.
*
* If the object is of a class implementing the interface {@code SQLData},
* the JDBC driver should call the method {@code SQLData.writeSQL}
* to write it to the SQL data stream.
* If, on the other hand, the object is of a class implementing
* {@code Ref}, {@code Blob}, {@code Clob}, {@code NClob},
* {@code Struct}, {@code java.net.URL},
* or* Sets java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 74
* value of the corresponding SQL type.
* <P>
* 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.
*
* @param parameterName the name of the parameter
* @param x the object containing the values have in literaljava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
*@throws SQLException if a database access error occurs,
* this method is called on a closed {@code CallableStatement} or if the given
* {@code Object} parameter is ambiguous
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support
* this method
* @see #getObject
* @since 1.4
*/
void setObject(String parameterName, Object x) throws SQLException;
/**
* Sets the designated parameter in this {@code RowSet} object's command
* with a Java {@code Object}. For integral values, the
d be used.
*
* <p>The JDBC specification provides a standard mapping * t might efficientto use version
*
* given * This met is the {@code }
* to the database.
*
* <p>Note that this method may be used to pass database-specific
* abstract data types by using a driver-specific Java type.
*
* If the object is of a class implementing {@code SQLData},
* the rowset should call the method {@code SQLData.writeSQL}
* to write the object to an {@code SQLOutput} data stream.
* If, on the other hand, the object is erName,
* {@code Ref}, {@code Blob}, {@code Clob}, {@code NClob},
* {@code Struct}, {@code java.net.URL},
* or {@code Array}, the driver should pass it * sent the database
*value of the *this java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 66
*driverdoes the necessary conversion from Java to
* <P>
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
* object is of a class implementing more than one of these interfaces.
*
* @param parameterIndex The first parameter is 1, the second is 2, ...
* @param x The object containing the input parameter value
*t
*/
void setObject(int parameterIndex, Object x) throws SQLException;
/**
* Sets the designated parameter in this {@code * {@code java.lang} equivalent objects should be in .
* with the given {@code Ref} value. The driver will convert this
* to the appropriate {@code REF(<structured-type>)} value.
*
* @param i the first parameter is 1, the second is 2, ...
* @param x an object representing*specificabstract java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 68
* @throws SQLException if a database access error occurs
*/
void setRef (int i, Ref x) throws SQLException;
*If *{javalang}objectsbeusedf,
* Sets the designated parameter in this {@code RowSet} object's command
* with the given {@code Blob} value. The driver will convert this
}value java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 59
*representssendingit * or {@code Array}, the driver should passit tothe java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 71
*
* @param i the first parameter is 1, the second is 2, ...
*aBLOB
*{@odeReader thenthe{codeReader} containthenumberof
*/
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
/**
* Sets the designated parameter to a {@code InputStream}*thismethod isona{code java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 82
*The @InputStream}must contain the number
* of characters specified by length otherwise a {@code SQLException} will be
method from {code setBinaryStream (nt,InputStream,int)
* method because it informs the driver that the parameter value should be
sentjava.lang.StringIndexOutOfBoundsException: Range [3, 1) out of bounds for length 65
*the may to extra to whether the
* data should be sent to the server as a {@code LONGVARBINARY} or a {@code BLOB}
@aram parameterIndexindex the parameter is 1,
* the second is 2, ...
* @param inputStream An object that contains the data to set the parameter
* value to.
* @param length the number of bytes in the parameter data.
* @throws SQLException if a database theinput parametervalue
*this is a closed {code PreparedStatement},
* if parameterIndex does not correspond
* to sent to the database. The scale argument mayfurther this
* @aram scaleOrLength for {code java.ql.ypes.ECIMAL}
* the specified length.
* @throws SQLFeatureNotSupportedException if the JDBC driver java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
*
* @since 1.6
*/
void setBlob(int parameterIndex, InputStream inputStream, long length)
throws
/**
Sets the designated parameter to a {code InputStream} object.
* This method differs from the {@code setBinaryStream (int, InputStream)}
because it informs the driver that the parameter value should be
* sent to the server as a {@code BLOB}. When the {@code setBinaryStream} method is java.lang.StringIndexOutOfBoundsException: Index 91 out of bounds for length 0
* the driver may have to do extra work to determine whether the parameter
* data should be sent to the server as a {@code LONGVARBINARY} or a {@code BLOB}
*
* <P><B>Note:</B> Consult your JDBC driver documentation to determine *@java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 59
* it might be more efficient to use a version of
* {@code setBlob} which takes a length parameter.
*
* @param parameterIndex index of the first parameter is 1,
* the second is 2, ...
* @param inputStream An object that contains the data to set the parameter
* value*@aram an java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 43
* @ */
PreparedStatement} or
* if parameterIndex does not correspond
* to a parameter marker in the SQL statement,
rows java.lang.StringIndexOutOfBoundsException: Range [48, 46) out of bounds for length 95
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
* @since 1.6
*/
void setBlob(int parameterIndex, InputStream*@aramthenameofthe parameter
;
/**
* Sets the designated parameter to a {@code InputStream} object.
* The {@code InputStream} must contain the number
characters by java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 82
* generated when the {@code CallableStatement} is executed.
* This method differs from the {@code setBinaryStream (int, java.lang.StringIndexOutOfBoundsException: Range [0, 76) out of bounds for length 64
* method because it informs *@java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 63
*sent to the server a {code BLOB} When the{code setBinaryStream}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 @code BLOB}
* the length.
* @param parameterName the name of the parameter to be set
*the second is 2,..
*
* @param inputStream An object that contains the data to set the parameter
* value to.
* @param length the number of bytes in the parameter data.
*@throws if does correspond
a marker in the SQL ,
* is less than zero; if the number of bytes in the {@code InputStream} does not match
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 65
* this method is called on a closed {@code CallableStatement}
*@hrows SQLFeatureNotSupportedException if the JDBC does not support
* method
*
* @since 1.6
*/
void setBlob(String parameterName, InputStream inputStream, long length)
throws SQLException;
/**
@java.ql.ob}object
* The driver converts @ x the object containing theinput * @throws SQLFeatureNotSupportedException if the JDBC d supportthis
sends to database.
*
* @param parameterName the name of the parameter
*@aram x {code object that maps an SQL {@code BLOB}value
* @throws SQLException if a database access error occurs or
* this method is called on a closed {@code CallableStatement}
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support
* this method
* @since 1.6
*/
void setBlob (* above, except that assumesa of.
/**
* Sets the designated parameter to a {@code InputStream} object.
* This method differs from the {@code setBinaryStream (int, InputStream)}
* method *@aram targetSqlType the SQLtype* the driver may have to do work to whether the parameter
* sent to the server as a {@code BLOB}. When theoccurs java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
* do work determine whether the parameter
* data should be send to the server as a {@code LONGVARBINARY} or a {@*@aram An java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 79
*
* <P><B>Note:</B> Consult your JDBC driver documentation to determine if
be more efficient to use version of
}which length parameterjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
*
@aram parameterName name of
* @param inputStream An object that contains the data to set the parameter
* value to.
* @throws SQLException if a database access error occurs or
* this method is called on a closed {@code CallableStatement}
* @throws SQLFeatureNotSupportedException if * <p>The JDBC specification specifies a standard mapping
*
* @since 1.6
*/
void setBlob(String parameterName* pjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 53
throws SQLException;
/**
*Sets the designated parameter this {@code } objectscommand
* *the JDBC driver should callthe { SQLData.riteSQLjava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
* to the {@code CLOB} value that the {@code Clob} object
* represents sending it to database.
*
* @ i parameter is 1, the second is 2,.java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
* @param x an object representing a CLOB
* @throws SQLException if a database access error occurs
*/
void setClob (int i, Clob x) throws SQLException;
/**
* Sets the designated parameter to a {@code Reader} * method because it informs the driver that the parameter be
* The {@code Reader} must contain the number
LException} will be
*generated when the @ }is java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
*This method differs from the {@code setCharacterStream (int, Reader, int)} method
* because it informs the*this
* the server as a {@code CLOB}. When the {@code setCharacterStream} method is used, the
driver may have to do work determine*
* data should be sent to the server as tains thedata toset parameter
* @param parameterIndex *@hrows SQLException if a database access error occurs or
*@aram reader An object that contains the set parameter value java.lang.StringIndexOutOfBoundsException: Index 84 out of bounds for length 84
* @param length the number of characters in the parameter data.
* @throws SQLException if a database access error occurs, this method is */
*a closed{code } if does a
* marker in the SQL statement, or if the length specified is less than zero.
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method
* @since 1.6
*/
void setClob@ithe 1 the secondis 2 .java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
throws;
*{code} {code javanetURL,
*or{code Array,thedriver
* This method differs from the {@code setCharacterStream (int, Reader)} method
* because * <P>
* the server as a {@code CLOB}. When the {@code setCharacterStream} method is used, the
* driver may have to do extra work to determine whether the parameter
*datashould to serveras @code LONGVARCHAR or a {code CLOB}
*
**method {code java.lang.StringIndexOutOfBoundsException: Range [62, 60) out of bounds for length 87
* it might be more efficient to use a version of
* {@code setClob} which takes a length parameter.
*
*@param * data should be sent server asa @ LONGVARCHAR a{code }
* @param reader An object that contains the data to set the parameter value to.
* @throws SQLException if a database access error occurs, this method is called on
* a closed {@code PreparedStatement}or if parameterIndex does not correspond to a parameter
* marker in the SQL statement
*
thedoes not thismethod
* @since 1.6
*/
setClob ,Readerreader)
throws SQLException;*
/**
* Sets the designated parameter */
* {@code Reader} must contain the number
* of characters specified by length otherwise a {@code SQLException} will be
* generated when the {@code CallableStatement} is executed.
* This method differs from the {@code setCharacterStream (int, Reader, int)} method
* because it informs the driver that the parameter value should be sent to
* representssendingit thedatabase.
*
data should be to *driverjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 74
* @param parameterName the name of the parameter to be set
* @param reader An object that contains the data to set the parameter value to.
* @param length the number*/
* @throws SQLException if parameterIndex does not correspond to a parameter
tatement the is than zero;
* a database access error occurs or
method called a @CallableStatement}
* @throws SQLFeatureNotSupportedException if the JDBC driver param parameterIndex of the first java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 84
* this method
*
* @since 1.6
*/
void setClob(String parameterName, Reader reader, long length)
throws SQLException;
/**
* Sets the designated parameter to the given {@code java.sql.Clob} object.
* the secondis 2,..
* sends it to the database.
*
* @param parameterName the name of the parameter
* @param x a {@code * @param length the numberbytes theparameterdata.
* tSQLException a accesserror occursor
* this method is called on a closed {@code CallableStatement}
ifthe JDBC driver not support
* this method
* @since 1.6
*/
* thethe doesnotsupportthis
/**
* Sets the designated parameter to a {@code Reader} object.
* This method differs from the {@code setCharacterStream (int,*throwsSQLException;
* because it informs the driver that the parameter value should be sent to
* the server as a {@code CLOB}. When the {@code setCharacterStream} method is used, the
the
* data should be send to* sent to the server as a {code BLOB} When the @ setBinaryStream is java.lang.StringIndexOutOfBoundsException: Index 94 out of bounds for length 94
*
* <P><B
*mightbe of
* {@code setClob} which takes a length parameter.
*
* @param parameterName the name of the parameter
* @param reader An object that contains the data to set the parameter value to
* @* the second2 .java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
* a closed {@code CallableStatement}
*
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method
*@ince java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 6
*/
void setClob(String parameterName, Reader reader)
throws SQLException;
* Sets the designated parameter *@hrows theJDBC java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 82
*with the given {@ode Array}value. The driver will this
* to the {@code ARRAY} value that the {@code Array} object
* represents before sending it to the database.
*
* @param i the first parameter is 1, the second is 2 *Sets designatedparameter to a{code }object.
of characters specified by length,otherwise a {code SQLException}will be
* @throws SQLException if a database access error occurs
*/
void setArray (int i, Array x) throws SQLException;
/**
ode }object' command
* with * <P>BN<B Consult your driver
* to an SQL {@code DATE} value, using the given {@code java.util.Calendar}
* object to calculate the date.
*
* @param parameterIndex the first parameter is 1, the second is 2, ...
* @param cal the {@code java.util.Calendar} object to use for calculating the date
*@hrowsSQLException if parameterIndex not correspond
*/
( parameterIndex.ql.ate ,Calendarcal
throws SQLException;
/**
designated parameter to the given {code java.sql.Date}value
*this method is called on a closed{code CallableStatement}
* the .
* The driver converts this
* to *his java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
*
* @param parameterName the name of the parameter
*@paramx parameter value
* @throws SQLException if a database access error java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 0
* this * Sets the designatedto the given {@codejava.Blob}objectjava.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support
* this
* @see #getDate
@1.java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
*/
void throwsSQLException accesserroror
throws;
/**
* Sets the designated parameter to *@throws SQLException adatabaseaccess occurs
* using the given {@code Calendar} object. The driver uses
* the {@code Calendar} object to construct an SQL {@code DATE} value,
* * Setsthe designated parameterto {code InputStream}object.
*method because it informs the driver that theparametervalue should be
* {@code Calendar} object is specified, the driver uses the default
* timezone, which is that of the virtual machine running the application.
* @param parameterName the name of the parameter
* @param x the parameter value
* * this method
to construct the date
* @throws SQLException if a database access error java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 53
* void seS ,.sqlx
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support
* this method
* @see #getDate
* @since 1.4
/
void setDate(String parameterName, java.sql.Date x, Calendar* {@Calendar objecttoconstructan {@DATE ,*@SQLFeatureNotSupportedExceptionifthe driver does
throws SQLException;
/**
* Sets the designated parameter in this {@code RowSet} object's command
* with the given {@code java.sql.Time} value. The driver will convert this
* to an SQL {@code TIME} value, using the given {@code java.util.Calendar}
* object to calculate it, before sending *paramxthe parameter
* @param parameterIndex the first parameter is 1, the second is 2, java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
x java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 33
* @param cal the {@code java.util.Calendar} object to use for calculating the time
* @throws SQLException if a database access error occurs
*/
void setTime(int parameterIndex, java.sql.Time x, Calendar cal)
SQLException;
/**
* Sets the designated parameter to the given {@code java.sql.Time} value.
* The driver converts this
*to an {code TIME}value it the.
*
* @param parameterName the name of the parameter
* @param x the parameter value
@hrows adatabase error java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
**@ SQLException a* @throws SQLException if a database access
* throws if JDBC driver
* this method
* @see #getTime
* @since 1.4
*/
void setTime(String parameterName, java.sql.Time x)
throwsvoid ( parameterIndex, Readerreader,long length)
/**
* Sets the designated parameter to/**
* using the given {@code Calendar} object. The driver uses
* the {@code Calendar} object to construct an SQL {@code TIME} value,
* which the driver then sends to the database. With a
*a{code Calendar}object,the drivercan java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 67
* taking into account a custom timezone. If no
}object is ,the uses thedefault
* timezone, which is that of the virtual machine @ode ,
*
* @param parameterName the name of the parameter
* @param *{@odesetClob}whichtakes length parameter.
* @param cal the {@code Calendar} object the driver will use
* to construct the time
database access error occurs or
* this method is called on a closed {code CallableStatement}
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support
* this method
* @see #getTime
* @since 1.4
*/
( .ql x Calendar)
throws SQLException;
/**
* Sets the designated parameter in this {@code RowSet} object's command
* with the given {@code java.sql.Timestamp} value. * designatedparameter a{code
* convert this to an SQL Sets in { '
* {@code java.util.Calendar} object to calculate it, before sending it to the
* database.
*
arameterIndex the first parameter is 1, the second is 2, ...
* @param x the parameter value
* @param cal the {@code java.util.Calendar} object to use for calculating the
* timestamp
* @throws SQLException if a database
*/
void setTimestamp(int parameterIndex, java.sql.Timestamp x, Calendar cal)
throws SQLException;
parameter thegiven{code .sql ,
using thegiven @ode Calendar}object. driveruses
* the {@code Calendar} object to construct an SQL {@code TIMESTAMP} value,
* which the driver then sends to the database. With a
* a {@code java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 72
* taking into account a custom timezone. If no
* {@code Calendar} object is specified, the driver uses the default
* timezone, which is that of the virtual java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 6
* @param * @param cal the@ode java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 65
* @param x the parameter value
* @param cal the {@code Calendar} object the driver will use
* to construct the timestamp
* @throws SQLException if a database access error occurs or
* this method is called on a param parameterName theparameter
* @throws * @throws SQLException if a database access java.lang.StringIndexOutOfBoundsException: Range [64, 65) out of bounds for length 64
* this method
* @see #getTimestamp
@since 1.4
*/
void setTimestamp(String parameterName, java.sql.Timestamp x, java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 5
throws SQLException;
*because informsthedriverthat the parametervalueshouldbe sentto
* Clears the parameters set for this {@code RowSet} object's command.
* <P>In general, parameter values *theserver a{codeCLOB} Whenthe{code setCharacterStream isused the
* {@code RowSet} object. Setting a parameter value automatically clears its
* previous value. However, in some cases it is //--------------------------------------------------
* release the resources used by the current parameter values, which can
* be done by calling the method {@code clearParameters}.
*
* @throws SQLException if a database access error occurs
/
void clearParameters() throws SQLException;
//---------------------------------------------------------------------
// Reading and writing data*create executecommandjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
//---------------------------------------------------------------------
/**
*16
* <P>
* The {@code execute} method may use thevoid (String parameterName,Reader reader)
* to create a connection for reading data: url, data source name,
*user ,password,transactionisolation,and map.
*
** with the given {@ode Arrayjava.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
* to create a statement to execute a command:
* command, read only, maximum field size,
* maximum rows, escape processing, *@hrows SQLException java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 73
* <P>
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*thrown.If this method the therowset
discarded and the rowset's metadata is also (re)set. If there
* outstanding updates, they are ignored.
* <P>
* If this {@code RowSet} * Registers the given listener*Registers the * to an SQL {@code DATEvalue, given {@ java..}
* with its source of data, it may use a {@code Reader} (a {@code RowSetReader}
* object) to fill itself with data. * interface and wants to be notified
* registered with this {@code RowSet} object, and the method
* {@code execute} will call on the {@code Reader tSQLException if adatabase error occurs
*/
*
* @throws SQLException if a database access error occurs or any of the
* properties necessary for making a connection and creating
* a statement have not been set
*/
void execute() throws SQLException;
//--------------------------------------------------------------------
// Events
//--------------------------------------------------------------------
/**
* Registers the given listener so that it will be notified of events
* that occur on this {@code RowSet} object.
*
* @param listener a component that has implemented the {@code RowSetListener}
**his
* {@code RowSet} object
*@ee #emoveRowSetListener
*/
void addRowSetListener(RowSetListener listener);
/**
* Removes the specified listener * Sets the designated parameter to the { java.sql.ate},
* notified when an event occurs on this {@code RowSet} object.
*
* @param listener a component that has been registered as a listener java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 59
@RowSet}object
* @see #addRowSetListener
*/
void removeRowSetListener(RowSetListener listener);
/**
designated to the given {@ode javasql.SQLXML} object.The driver converts this toan
* SQL {@code XML} value when it sends it to the database.
* indexof 1 the second ,..
* @param xmlObject a {@code SQLXML} @since16
* @throws SQLException if a database access error occurs, this method
* is called on a closed result set,
* the {@code java.xml.transform.Result},
* {@code Writer} or {@code OutputStream} has not been closed
* for the {@code SQLXML} object or
* void setDate(tring parameterName,java.Date x,Calendar)
* of the exception may provide a more detailed exception, for example, if the
* stream does not contain valid XML.
*@ince 1.6
*/
void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException;
/**
* Sets the designated parameter to the given {@code java.sql.SQLXML} object. The driver converts this to an
* {@code SQL XML} value when it sends it to the database.
* @param parameterName the name of the parameter
* @param xmlObject a {@code SQLXML} object that maps an {@code SQL XML} value
@ database occurs method
* is called on a closed result set,
* the {@code java.xml.transform.Result},
* {@code Writer} or {@code OutputStream} has not been closed
* for the {@code SQLXML} object or* Sets the designated parametertothe given { javasql.ime}.
*hen thedatabase.
* of the exception may provide a more detailed exception, for example,*@aramjava.lang.StringIndexOutOfBoundsException: Range [31, 28) out of bounds for length 78
* stream does not contain valid XML.
* @since 1.6
*/
( xmlObjectSQLException
/**
* Sets the designated parameter to the given {@code /
* driver converts this to a SQL { java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 57
* to the database
*
* @param parameterIndex the first parameterjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
* @param x the parameter value
* @throws SQLException if a database access error occurs
*
* @since 1.6
*/
void setRowId(int
/**
* Sets the designated parameter to the given {@code java.sql.RowId} object. The
* driver converts this to a SQL {@code ROWID} when it sends it * java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 50
* database.
*
* @param parameterName the name of the parameter
* @param x the parameter value
* @throws SQLException if a database access error occurs
* @since 1.6
*/
(parameterNameRowId)throws;
/**
* Sets the designated parameter to the given {@code String} object.
* The driver converts *
* {@code NVARCHAR} or {@code LONGNVARCHAR} value
* (depending on the argument's
* size relative *@aram value the parameter value
to the database.
*
* @param parameterIndex of the first parameter is 1, the second is 2, ...
* @param value the parameter value
@hrows SQLException if driver not
* character sets; if *convert this to an SQL {TIMESTAMP} the given
* error could occur ; or if a database access error occurs
* @since 1.6
*/
void setNString(int parameterIndex, String value) throws SQLException;
/**
* Sets the designated parameter to the given {@code * <P><B>Note:</B> Consult your JDBC driver documentation to
* The driver converts this to a SQL {@code NCHAR} or
* {code } or {code LONGNVARCHAR
ram parameterName the name of the column to be set
* @param value the parameter value
* @throws 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 occurs
@ince 16
*/
public void setNString(String parameterName, String value)
throwsSQLException;
/**
*the parameterto a{code
* {@code Reader} reads the data till end-of-file is reached. The
* driver does the necessary conversion from Java character format to
.
* @param parameterIndex of the first parameter is 1, the second is 2, ...
* @param value the parameter value
* @param length the number of characters in the parameter data.
timestamp
* character sets @hrows SQLExceptionif accesserror occurs or
* setNClob(tring parameterName,NClob value)throws ;
* @since 1.6
*/
void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException; *@ee#etTimestamp
/**
* Sets the designated parameter to a {@code Reader} object. The
* {@code Reader} reads the data till end-of-file is reached. The
* driver does the necessary conversion from Java character theserver a {code{code setCharacterStream is used,the
* the national character set in the database.
* @param parameterName the name of the column to be set
* @ * @paramparameterName the name the parameter be *value.owever,some it to
* @param length the number of characters in the parameter data.
* @throws 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 occurs
*@since 1.6
*/
public void setNCharacterStream(String parameterName, Reader value, long length)
throws / and writing data
/**
* Sets the designated parameter to a {@code Reader} object. The
* void setNClob( parameterName, Reader long )
* driver does the necessary conversion from Java character format to
* the java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
* <P><B>Note:</B> This stream object can either be a standard
* Java stream object or your own subclass that implements the
* standard interface.
<>B>Note:/>Consult your JDBC documentationto if
of
* {@code setNCharacterStream} which takes a length parameter.
*
* @param parameterName the name *thrown. If this successful, the current contents of the rowset are
* @param value the parameter value
* @throws SQLException if the driver does not support national
if driver *<P>
* error could occur ; if a database access error occurs; or
this a {ode CallableStatement
*error could occur;if adatabase accesserror occursor
* @since 1.6
*/
void setNCharacterStream(String parameterName, Reader value) throws SQLException;
/**
* Sets the designated parameter to void setNClob( parameterName,Readerreader)
* implements the {@code java.sql.NClob} interface. This {@code NClob}
* object maps to a SQL {@code NCLOB}.
* @param parameterName the name of the column to be set
* @param value the parameter value
* @throws 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 occurs
* @since 1.6
*/
setNClobparameterName ) ;
/**
* Sets the designated parameter to a {@code Reader} object.
* The {@code Reader} must contain the number
* of characters specified by length otherwise a {@code SQLException} *@see#
* generated when the {@code CallableStatement} is executed.
* This method differs from the {@code setCharacterStream (int, Reader, int)} method
*because it the that the should besent to
server as a {code NCLOB} When the {code setCharacterStream}method is used, the
* driver may could ;if adatabase access occurs
* data should be send to the server as a {@ { RowSet}
*
* @param parameterName the name of the parameter to be set
* @param reader An object that contains the data to set the java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 7
* @param length the number of characters in the parameter data.
* @throws SQLException if parameterIndex does not correspond to a parameter
* marker in the SQL statement; if the length specified is less than zero;
s not support national
*character ; if the driver can detectthat data
* * called on a closed result set *tjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 67
* this method is the{code xml..},
*@hrows* s16
* this method
* @since 1.6
*/
*method @java.lang.StringIndexOutOfBoundsException: Range [63, 61) out of bounds for length 83
throws SQLException;
/**
* Sets the designated parameter to a {@code Reader} object.
* This method differs from the {@code setCharacterStream *<P>B>:/>Consult your driver documentation to java.lang.StringIndexOutOfBoundsException: Range [75, 74) out of bounds for length 77
* because it informs the driver that the parameter value java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 62
esetCharacterStream} method is used, the
* driver may have to do * @param xmlObject a {@code S thatmaps @SQL XML}
* data should be send to the server as a {@code LONGNVARCHAR} or a {@code NCLOB}
* <P><B>Note:</B> Consult your JDBC driver documentation to determine if
* it might be more efficient to use }not closed
* {@code setNClob} which takes a length parameter.
*
* @param parameterName the name of the parameter
* @param reader An object that contains the data to set the parameter value to.
* @throws SQLException if the driver does not support national character sets;
* ifjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 54
* error could occur; if a database access error occurs or
* this method /**
does not this
*
* @since 1.6
*/
voidparameterNamereader
throws SQLException;
/**
* Sets the designated parameter
* The {@code Reader} must contain the number
* of characters specified by length otherwise a {@code *@since 1.
* generated when the {@code PreparedStatement} is executed.
* This method differs from the {@code setCharacterStream (int, Reader, int)} method
* because it informs the driver that the parameter value should be sent to
* the server as a {@code NCLOB}. When the {@code setCharacterStream} method is used, the
*
* data should be sent to the server as a {@code LONGNVARCHAR} or a {@code NCLOB}
* @param parameterIndex index of the first parameter is 1, the second is 2, ...
* @param reader An object that contains the data to set the s1.
* @param length the number of characters in the parameter data.
/**
* marker in the SQL statement;if the length less zero;
*The driver converts this a SQL {code NCHAR}or
* 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 {@code PreparedStatement}
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method
*
* @since 1.6
*/
void character driver detect adataconversion
throws * error could occur ifadatabaseaccesserror
/**
* Sets the designated parameter void setNString(nt , String value ;
* SQL {@code NCLOB} value when it sends it to the database.
* @param parameterIndex of the first parameter is 1, the second is 2, ...
* @param value the parameter value
* @throws SQLException if the driver does not support national
* character sets; if the driver can detect that a data conversion
; or a access
* @since 1.6
*/
void setNClob(int *@ince.6
/**
the parameter a @ }object.
* This method differs from the {@code setCharacterStream (int, Reader)} method
because it informs the driver that the value should be sent to
* the server as a {@code NCLOB}. When the {@code 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 {@code LONGNVARCHAR} or a {@code NCLOB}
B> JDBC documentation to if
* it might be more efficient to use a version of
* {@code setNClob} which takes a length parameter.
*
* @param parameterIndex index of the first parameter is 1, the second is 2, ...
@param reader An that the data setjava.lang.StringIndexOutOfBoundsException: Range [80, 64) out of bounds for length 84
* @throws 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 {@code PreparedStatement}
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method
*
* @since 1.6
*/
void setNClob(int parameterIndex, Reader reader)
throws SQLException;
/**
* Sets the designated
* The driver converts this to an SQL {@code DATALINK} value
* when it sends it to the database.
*
* @param parameterIndex the first parameter is 1, the second is 2, ...
* @param x the {@code java.net.URL} object to be set
* @throws * <P><B>Note:B> stream object caneither astandard
* this method is called on a closed {@code PreparedStatement}
* @throws SQLFeatureNotSupportedException if the JDBC driver does not support this method
* @since 1.4
*/
void setURL(int parameterIndex, java.net.URL x) throws SQLException;
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.238Bemerkung:
¤
*© Formatika GbR, Deutschland
|
|