10133 lines · 431.3 KB · Java
RawDownload
  * data should be send to the server as a <code>LONGNVARCHAR</code> or a <code>NCLOB</code>  * <P><B>Note:</B> Consult your JDBC driver documentation to determine if  * it might be more efficient to use a version of  * <code>setNClob</code> 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;  * 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>CallableStatement</code>  * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method  *  * @since 1.6  */  public void setNClob(String parameterName, Reader reader)    throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }      /**     * Sets the designated parameter to a <code>Reader</code> object.  The reader must contain  the number     * of characters specified by length otherwise a <code>SQLException</code> will be     * generated when the <code>PreparedStatement</code> is executed.     * This method differs from the <code>setCharacterStream (int, Reader, int)</code> method     * because it informs the driver that the parameter value should be sent to     * the server as a <code>NCLOB</code>.  When the <code>setCharacterStream</code> 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</code> or a <code>NCLOB</code>     * @param parameterIndex index of the first parameter is 1, the second is 2, ...     * @param reader An object that contains the data to set the parameter value to.     * @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;     * 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</code>     * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method     *     * @since 1.6     */     public void setNClob(int parameterIndex, Reader reader, long length)       throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }      /**     * Sets the designated parameter to a <code>java.sql.NClob</code> object. The driver converts this toa     * SQL <code>NCLOB</code> 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     *  error could occur ; or if a database access error occurs     * @since 1.6     */     public void setNClob(int parameterIndex, NClob value) throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }     /**  * Sets the designated paramter to the given <code>String</code> object.  * The driver converts this to a SQL <code>NCHAR</code> or  * <code>NVARCHAR</code> or <code>LONGNVARCHAR</code> value  * (depending on the argument's  * size relative to the driver's limits on <code>NVARCHAR</code> values)  * 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  *  error could occur ; or if a database access error occurs  * @since 1.6  */  public void setNString(int parameterIndex, String value) throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }   /**  * Sets the designated paramter to the given <code>String</code> object.  * The driver converts this to a SQL <code>NCHAR</code> or  * <code>NVARCHAR</code> or <code>LONGNVARCHAR</code>  * @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  */ public void setNString(String parameterName, String value)         throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }   /**  * Sets the designated parameter to a <code>Reader</code> object. The  * <code>Reader</code> 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.  * @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.  * @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(int parameterIndex, Reader value, long length) throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }   /**  * Sets the designated parameter to a <code>Reader</code> object. The  * <code>Reader</code> 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.  * @param parameterName the name of the column to be set  * @param value the parameter value  * @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 SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }   /**  * Sets the designated parameter to a <code>Reader</code> object. The  * <code>Reader</code> 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.   * <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><B>Note:</B> Consult your JDBC driver documentation to determine if  * it might be more efficient to use a version of  * <code>setNCharacterStream</code> which takes a length parameter.  *  * @param parameterName the name of the parameter  * @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 ; if a database access error occurs; or  * this method is called on a closed <code>CallableStatement</code>  * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method  * @since 1.6  */  public void setNCharacterStream(String parameterName, Reader value) throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }   /**    * Sets the designated parameter to the given <code>java.sql.Timestamp</code> value,    * using the given <code>Calendar</code> object.  The driver uses    * the <code>Calendar</code> object to construct an SQL <code>TIMESTAMP</code> value,    * which the driver then sends to the database.  With a    * a <code>Calendar</code> object, the driver can calculate the timestamp    * taking into account a custom timezone.  If no    * <code>Calendar</code> 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    * @param cal the <code>Calendar</code> object the driver will use    *            to construct the timestamp    * @exception SQLException if a database access error occurs or    * this method is called on a closed <code>CallableStatement</code>    * @exception SQLFeatureNotSupportedException if the JDBC driver does not support    * this method    * @see #getTimestamp    * @since 1.4    */    public void setTimestamp(String parameterName, java.sql.Timestamp x, Calendar cal)       throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }     /**    * Sets the designated parameter to a <code>Reader</code> object.  The <code>reader</code> must contain  the number               * of characters specified by length otherwise a <code>SQLException</code> will be               * generated when the <code>CallableStatement</code> is executed.              * This method differs from the <code>setCharacterStream (int, Reader, int)</code> method              * because it informs the driver that the parameter value should be sent to              * the server as a <code>CLOB</code>.  When the <code>setCharacterStream</code> 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 <code>LONGVARCHAR</code> or a <code>CLOB</code>              * @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 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;              * a database access error occurs or              * this method is called on a closed <code>CallableStatement</code>              * @exception SQLFeatureNotSupportedException if the JDBC driver does not support              * this method              *              * @since 1.6              */      public  void setClob(String parameterName, Reader reader, long length)      throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }    /**    * Sets the designated parameter to the given <code>java.sql.Clob</code> object.    * The driver converts this to an SQL <code>CLOB</code> value when it    * sends it to the database.    *    * @param parameterName the name of the parameter    * @param x a <code>Clob</code> object that maps an SQL <code>CLOB</code> value    * @exception SQLException if a database access error occurs or    * this method is called on a closed <code>CallableStatement</code>    * @exception SQLFeatureNotSupportedException if the JDBC driver does not support    * this method    * @since 1.6    */    public void setClob (String parameterName, Clob x) throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }   /**    * Sets the designated parameter to a <code>Reader</code> object.    * This method differs from the <code>setCharacterStream (int, Reader)</code> method    * because it informs the driver that the parameter value should be sent to    * the server as a <code>CLOB</code>.  When the <code>setCharacterStream</code> 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 <code>LONGVARCHAR</code> or a <code>CLOB</code>    *    * <P><B>Note:</B> Consult your JDBC driver documentation to determine if    * it might be more efficient to use a version of    * <code>setClob</code> 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 a database access error occurs or this method is called on    * a closed <code>CallableStatement</code>    *    * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method    * @since 1.6    */    public void setClob(String parameterName, Reader reader)      throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }   /**    * Sets the designated parameter to the given <code>java.sql.Date</code> value    * using the default time zone of the virtual machine that is running    * the application.    * The driver converts this    * to an SQL <code>DATE</code> value when it sends it to the database.    *    * @param parameterName the name of the parameter    * @param x the parameter value    * @exception SQLException if a database access error occurs or    * this method is called on a closed <code>CallableStatement</code>    * @exception SQLFeatureNotSupportedException if the JDBC driver does not support    * this method    * @see #getDate    * @since 1.4    */    public void setDate(String parameterName, java.sql.Date x)       throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }   /**    * Sets the designated parameter to the given <code>java.sql.Date</code> value,    * using the given <code>Calendar</code> object.  The driver uses    * the <code>Calendar</code> object to construct an SQL <code>DATE</code> value,    * which the driver then sends to the database.  With a    * a <code>Calendar</code> object, the driver can calculate the date    * taking into account a custom timezone.  If no    * <code>Calendar</code> 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    * @param cal the <code>Calendar</code> object the driver will use    *            to construct the date    * @exception SQLException if a database access error occurs or    * this method is called on a closed <code>CallableStatement</code>    * @exception SQLFeatureNotSupportedException if the JDBC driver does not support    * this method    * @see #getDate    * @since 1.4    */   public void setDate(String parameterName, java.sql.Date x, Calendar cal)       throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }   /**    * Sets the designated parameter to the given <code>java.sql.Time</code> value.    * The driver converts this    * to an SQL <code>TIME</code> value when it sends it to the database.    *    * @param parameterName the name of the parameter    * @param x the parameter value    * @exception SQLException if a database access error occurs or    * this method is called on a closed <code>CallableStatement</code>    * @exception SQLFeatureNotSupportedException if the JDBC driver does not support    * this method    * @see #getTime    * @since 1.4    */   public void setTime(String parameterName, java.sql.Time x)       throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }   /**    * Sets the designated parameter to the given <code>java.sql.Time</code> value,    * using the given <code>Calendar</code> object.  The driver uses    * the <code>Calendar</code> object to construct an SQL <code>TIME</code> value,    * which the driver then sends to the database.  With a    * a <code>Calendar</code> object, the driver can calculate the time    * taking into account a custom timezone.  If no    * <code>Calendar</code> 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    * @param cal the <code>Calendar</code> object the driver will use    *            to construct the time    * @exception SQLException if a database access error occurs or    * this method is called on a closed <code>CallableStatement</code>    * @exception SQLFeatureNotSupportedException if the JDBC driver does not support    * this method    * @see #getTime    * @since 1.4    */   public void setTime(String parameterName, java.sql.Time x, Calendar cal)       throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }    /**   * Sets the designated parameter to a <code>Reader</code> object.   * This method differs from the <code>setCharacterStream (int, Reader)</code> method   * because it informs the driver that the parameter value should be sent to   * the server as a <code>CLOB</code>.  When the <code>setCharacterStream</code> 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>LONGVARCHAR</code> or a <code>CLOB</code>   *   * <P><B>Note:</B> Consult your JDBC driver documentation to determine if   * it might be more efficient to use a version of   * <code>setClob</code> which takes a length parameter.   *   * @param parameterIndex index of the first parameter is 1, the second is 2, ...   * @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</code>or if parameterIndex does not correspond to a parameter   * marker in the SQL statement   *   * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method   * @since 1.6   */   public void setClob(int parameterIndex, Reader reader)     throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }     /**   * Sets the designated parameter to a <code>Reader</code> object.  The reader must contain  the number   * of characters specified by length otherwise a <code>SQLException</code> will be   * generated when the <code>PreparedStatement</code> is executed.   *This method differs from the <code>setCharacterStream (int, Reader, int)</code> method   * because it informs the driver that the parameter value should be sent to   * the server as a <code>CLOB</code>.  When the <code>setCharacterStream</code> 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>LONGVARCHAR</code> or a <code>CLOB</code>   * @param parameterIndex index of the first parameter is 1, the second is 2, ...   * @param reader An object that contains the data to set the parameter value to.   * @param length the number of characters in the parameter data.   * @throws SQLException if a database access error occurs, this method is called on   * a closed <code>PreparedStatement</code>, if parameterIndex does not correspond to a parameter   * 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   */   public void setClob(int parameterIndex, Reader reader, long length)     throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }   /**    * Sets the designated parameter to a <code>InputStream</code> object.  The inputstream must contain  the number    * of characters specified by length otherwise a <code>SQLException</code> will be    * generated when the <code>PreparedStatement</code> is executed.    * This method differs from the <code>setBinaryStream (int, InputStream, int)</code>    * method because it informs the driver that the parameter value should be    * sent to the server as a <code>BLOB</code>.  When the <code>setBinaryStream</code> 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>LONGVARBINARY</code> or a <code>BLOB</code>    * @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 to.    * @param length the number of bytes in the parameter data.    * @throws SQLException if a database access error occurs,    * this method is called on a closed <code>PreparedStatement</code>,    * 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.    * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method    *    * @since 1.6    */    public void setBlob(int parameterIndex, InputStream inputStream, long length)       throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }   /**    * Sets the designated parameter to a <code>InputStream</code> object.    * This method differs from the <code>setBinaryStream (int, InputStream)</code>    * method because it informs the driver that the parameter value should be    * sent to the server as a <code>BLOB</code>.  When the <code>setBinaryStream</code> 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>LONGVARBINARY</code> or a <code>BLOB</code>    *    * <P><B>Note:</B> Consult your JDBC driver documentation to determine if    * it might be more efficient to use a version of    * <code>setBlob</code> 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 to.    * @throws SQLException if a database access error occurs,    * this method is called on a closed <code>PreparedStatement</code> or    * if parameterIndex does not correspond    * to a parameter marker in the SQL statement,    * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method    *    * @since 1.6    */    public void setBlob(int parameterIndex, InputStream inputStream)       throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }   /**    * Sets the designated parameter to a <code>InputStream</code> object.  The <code>inputstream</code> must contain  the number     * of characters specified by length, otherwise a <code>SQLException</code> will be     * generated when the <code>CallableStatement</code> is executed.     * This method differs from the <code>setBinaryStream (int, InputStream, int)</code>     * method because it informs the driver that the parameter value should be     * sent to the server as a <code>BLOB</code>.  When the <code>setBinaryStream</code> 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>LONGVARBINARY</code> or a <code>BLOB</code>     *     * @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 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 <code>CallableStatement</code>     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support     * this method     *     * @since 1.6     */     public void setBlob(String parameterName, InputStream inputStream, long length)        throws SQLException{        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("cachedrowsetimpl.featnotsupp").toString());   }   /**

Lines 9001–9500 of 10133. Previous lines