jdk/src/share/classes/javax/sql/rowset/BaseRowSet.java
changeset 15278 e081d3f73b75
parent 14179 4681260d262a
child 18156 edb590d448c5
equal deleted inserted replaced
15277:245068ba31b3 15278:e081d3f73b75
  4173         throw new SQLFeatureNotSupportedException("Feature not supported");
  4173         throw new SQLFeatureNotSupportedException("Feature not supported");
  4174    }
  4174    }
  4175 
  4175 
  4176 
  4176 
  4177  /**
  4177  /**
  4178    * Sets the designated parameter to the given <code>java.sql.SQLXML</code> object. The driver converts this to an
  4178   * Sets the designated parameter to the given <code>java.sql.SQLXML</code> object. The driver converts this to an
  4179     * SQL <code>XML</code> value when it sends it to the database.
  4179   * SQL <code>XML</code> value when it sends it to the database.
  4180     * @param parameterIndex index of the first parameter is 1, the second is 2, ...
  4180   * @param parameterIndex index of the first parameter is 1, the second is 2, ...
  4181     * @param xmlObject a <code>SQLXML</code> object that maps an SQL <code>XML</code> value
  4181   * @param xmlObject a <code>SQLXML</code> object that maps an SQL <code>XML</code> value
  4182     * @throws SQLException if a database access error occurs, this method
  4182   * @throws SQLException if a database access error occurs, this method
  4183     *  is called on a closed result set,
  4183   *  is called on a closed result set,
  4184     * the <code>java.xml.transform.Result</code>,
  4184   * the <code>java.xml.transform.Result</code>,
  4185     *  <code>Writer</code> or <code>OutputStream</code> has not been closed
  4185   *  <code>Writer</code> or <code>OutputStream</code> has not been closed
  4186     * for the <code>SQLXML</code> object  or
  4186   * for the <code>SQLXML</code> object  or
  4187     *  if there is an error processing the XML value.  The <code>getCause</code> method
  4187   *  if there is an error processing the XML value.  The <code>getCause</code> method
  4188     *  of the exception may provide a more detailed exception, for example, if the
  4188   *  of the exception may provide a more detailed exception, for example, if the
  4189     *  stream does not contain valid XML.
  4189   *  stream does not contain valid XML.
  4190     * @since 1.6
  4190   * @throws SQLFeatureNotSupportedException if the JDBC driver does not
  4191     */
  4191   * support this method
  4192    public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException{
  4192   * @since 1.6
  4193         throw new SQLFeatureNotSupportedException("Feature not supported");
  4193   */
  4194    }
  4194  public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException{
  4195 
  4195      throw new SQLFeatureNotSupportedException("Feature not supported");
  4196 
  4196  }
  4197   /**
  4197 
  4198    * Sets the designated parameter to the given <code>java.sql.SQLXML</code> object. The driver converts this to an
  4198 
  4199     * <code>SQL XML</code> value when it sends it to the database.
  4199  /**
  4200     * @param parameterName the name of the parameter
  4200   * Sets the designated parameter to the given <code>java.sql.SQLXML</code> object. The driver converts this to an
  4201     * @param xmlObject a <code>SQLXML</code> object that maps an <code>SQL XML</code> value
  4201   * <code>SQL XML</code> value when it sends it to the database.
  4202     * @throws SQLException if a database access error occurs, this method
  4202   * @param parameterName the name of the parameter
  4203     *  is called on a closed result set,
  4203   * @param xmlObject a <code>SQLXML</code> object that maps an <code>SQL XML</code> value
  4204     * the <code>java.xml.transform.Result</code>,
  4204   * @throws SQLException if a database access error occurs, this method
  4205     *  <code>Writer</code> or <code>OutputStream</code> has not been closed
  4205   *  is called on a closed result set,
  4206     * for the <code>SQLXML</code> object  or
  4206   * the <code>java.xml.transform.Result</code>,
  4207     *  if there is an error processing the XML value.  The <code>getCause</code> method
  4207   *  <code>Writer</code> or <code>OutputStream</code> has not been closed
  4208     *  of the exception may provide a more detailed exception, for example, if the
  4208   * for the <code>SQLXML</code> object  or
  4209     *  stream does not contain valid XML.
  4209   *  if there is an error processing the XML value.  The <code>getCause</code> method
  4210     * @since 1.6
  4210   *  of the exception may provide a more detailed exception, for example, if the
  4211     */
  4211   *  stream does not contain valid XML.
  4212    public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException{
  4212   * @throws SQLFeatureNotSupportedException if the JDBC driver does not
  4213         throw new SQLFeatureNotSupportedException("Feature not supported");
  4213   * support this method
  4214    }
  4214   * @since 1.6
       
  4215   */
       
  4216  public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException{
       
  4217      throw new SQLFeatureNotSupportedException("Feature not supported");
       
  4218  }
  4215 
  4219 
  4216 
  4220 
  4217  /**
  4221  /**
  4218   * Sets the designated parameter to the given <code>java.sql.RowId</code> object. The
  4222   * Sets the designated parameter to the given <code>java.sql.RowId</code> object. The
  4219   * driver converts this to a SQL <code>ROWID</code> value when it sends it
  4223   * driver converts this to a SQL <code>ROWID</code> value when it sends it
  4220   * to the database
  4224   * to the database
  4221   *
  4225   *
  4222   * @param parameterIndex the first parameter is 1, the second is 2, ...
  4226   * @param parameterIndex the first parameter is 1, the second is 2, ...
  4223   * @param x the parameter value
  4227   * @param x the parameter value
  4224   * @throws SQLException if a database access error occurs
  4228   * @throws SQLException if a database access error occurs
       
  4229   * @throws SQLFeatureNotSupportedException if the JDBC driver does not
       
  4230   * support this method
  4225   *
  4231   *
  4226   * @since 1.6
  4232   * @since 1.6
  4227   */
  4233   */
  4228  public void setRowId(int parameterIndex, RowId x) throws SQLException{
  4234  public void setRowId(int parameterIndex, RowId x) throws SQLException{
  4229         throw new SQLFeatureNotSupportedException("Feature not supported");
  4235      throw new SQLFeatureNotSupportedException("Feature not supported");
  4230    }
  4236  }
  4231 
  4237 
  4232 
  4238 
  4233  /**
  4239  /**
  4234  * Sets the designated parameter to the given <code>java.sql.RowId</code> object. The
  4240   * Sets the designated parameter to the given <code>java.sql.RowId</code> object. The
  4235  * driver converts this to a SQL <code>ROWID</code> when it sends it to the
  4241   * driver converts this to a SQL <code>ROWID</code> when it sends it to the
  4236  * database.
  4242   * database.
  4237  *
  4243   *
  4238  * @param parameterName the name of the parameter
  4244   * @param parameterName the name of the parameter
  4239  * @param x the parameter value
  4245   * @param x the parameter value
  4240  * @throws SQLException if a database access error occurs
  4246   * @throws SQLException if a database access error occurs
  4241  * @since 1.6
  4247   * @throws SQLFeatureNotSupportedException if the JDBC driver does not
  4242  */
  4248   * support this method
       
  4249   * @since 1.6
       
  4250   */
  4243  public void setRowId(String parameterName, RowId x) throws SQLException{
  4251  public void setRowId(String parameterName, RowId x) throws SQLException{
  4244         throw new SQLFeatureNotSupportedException("Feature not supported");
  4252      throw new SQLFeatureNotSupportedException("Feature not supported");
  4245    }
  4253  }
  4246 
  4254 
  4247  /**
  4255  /**
  4248   * Sets the designated paramter to the given <code>String</code> object.
  4256   * Sets the designated paramter to the given <code>String</code> object.
  4249   * The driver converts this to a SQL <code>NCHAR</code> or
  4257   * The driver converts this to a SQL <code>NCHAR</code> or
  4250   * <code>NVARCHAR</code> or <code>LONGNVARCHAR</code> value
  4258   * <code>NVARCHAR</code> or <code>LONGNVARCHAR</code> value
  4255   * @param parameterIndex of the first parameter is 1, the second is 2, ...
  4263   * @param parameterIndex of the first parameter is 1, the second is 2, ...
  4256   * @param value the parameter value
  4264   * @param value the parameter value
  4257   * @throws SQLException if the driver does not support national
  4265   * @throws SQLException if the driver does not support national
  4258   *         character sets;  if the driver can detect that a data conversion
  4266   *         character sets;  if the driver can detect that a data conversion
  4259   *  error could occur ; or if a database access error occurs
  4267   *  error could occur ; or if a database access error occurs
       
  4268   * @throws SQLFeatureNotSupportedException if the JDBC driver does not
       
  4269   * support this method
  4260   * @since 1.6
  4270   * @since 1.6
  4261   */
  4271   */
  4262   public void setNString(int parameterIndex, String value) throws SQLException{
  4272  public void setNString(int parameterIndex, String value) throws SQLException{
  4263         throw new SQLFeatureNotSupportedException("Feature not supported");
  4273      throw new SQLFeatureNotSupportedException("Feature not supported");
  4264    }
  4274  }
  4265 
  4275 
  4266 
  4276 
  4267  /**
  4277  /**
  4268   * Sets the designated paramter to the given <code>String</code> object.
  4278   * Sets the designated paramter to the given <code>String</code> object.
  4269   * The driver converts this to a SQL <code>NCHAR</code> or
  4279   * The driver converts this to a SQL <code>NCHAR</code> or
  4271   * @param parameterName the name of the column to be set
  4281   * @param parameterName the name of the column to be set
  4272   * @param value the parameter value
  4282   * @param value the parameter value
  4273   * @throws SQLException if the driver does not support national
  4283   * @throws SQLException if the driver does not support national
  4274   *         character sets;  if the driver can detect that a data conversion
  4284   *         character sets;  if the driver can detect that a data conversion
  4275   *  error could occur; or if a database access error occurs
  4285   *  error could occur; or if a database access error occurs
       
  4286   * @throws SQLFeatureNotSupportedException if the JDBC driver does not
       
  4287   * support this method
  4276   * @since 1.6
  4288   * @since 1.6
  4277   */
  4289   */
  4278  public void setNString(String parameterName, String value)
  4290  public void setNString(String parameterName, String value)
  4279          throws SQLException{
  4291          throws SQLException{
  4280         throw new SQLFeatureNotSupportedException("Feature not supported");
  4292      throw new SQLFeatureNotSupportedException("Feature not supported");
  4281    }
  4293  }
  4282 
  4294 
  4283 
  4295 
  4284  /**
  4296  /**
  4285   * Sets the designated parameter to a <code>Reader</code> object. The
  4297   * Sets the designated parameter to a <code>Reader</code> object. The
  4286   * <code>Reader</code> reads the data till end-of-file is reached. The
  4298   * <code>Reader</code> reads the data till end-of-file is reached. The
  4290   * @param value the parameter value
  4302   * @param value the parameter value
  4291   * @param length the number of characters in the parameter data.
  4303   * @param length the number of characters in the parameter data.
  4292   * @throws SQLException if the driver does not support national
  4304   * @throws SQLException if the driver does not support national
  4293   *         character sets;  if the driver can detect that a data conversion
  4305   *         character sets;  if the driver can detect that a data conversion
  4294   *  error could occur ; or if a database access error occurs
  4306   *  error could occur ; or if a database access error occurs
       
  4307   * @throws SQLFeatureNotSupportedException if the JDBC driver does not
       
  4308   * support this method
  4295   * @since 1.6
  4309   * @since 1.6
  4296   */
  4310   */
  4297   public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException{
  4311  public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException{
  4298         throw new SQLFeatureNotSupportedException("Feature not supported");
  4312      throw new SQLFeatureNotSupportedException("Feature not supported");
  4299    }
  4313  }
  4300 
  4314 
  4301 
  4315 
  4302  /**
  4316  /**
  4303   * Sets the designated parameter to a <code>Reader</code> object. The
  4317   * Sets the designated parameter to a <code>Reader</code> object. The
  4304   * <code>Reader</code> reads the data till end-of-file is reached. The
  4318   * <code>Reader</code> reads the data till end-of-file is reached. The
  4308   * @param value the parameter value
  4322   * @param value the parameter value
  4309   * @param length the number of characters in the parameter data.
  4323   * @param length the number of characters in the parameter data.
  4310   * @throws SQLException if the driver does not support national
  4324   * @throws SQLException if the driver does not support national
  4311   *         character sets;  if the driver can detect that a data conversion
  4325   *         character sets;  if the driver can detect that a data conversion
  4312   *  error could occur; or if a database access error occurs
  4326   *  error could occur; or if a database access error occurs
       
  4327   * @throws SQLFeatureNotSupportedException  if the JDBC driver does not
       
  4328   * support this method
  4313   * @since 1.6
  4329   * @since 1.6
  4314   */
  4330   */
  4315  public void setNCharacterStream(String parameterName, Reader value, long length)
  4331  public void setNCharacterStream(String parameterName, Reader value, long length)
  4316          throws SQLException{
  4332          throws SQLException{
  4317         throw new SQLFeatureNotSupportedException("Feature not supported");
  4333      throw new SQLFeatureNotSupportedException("Feature not supported");
  4318    }
  4334  }
  4319 
  4335 
  4320 
  4336 
  4321  /**
  4337  /**
  4322   * Sets the designated parameter to a <code>Reader</code> object. The
  4338   * Sets the designated parameter to a <code>Reader</code> object. The
  4323   * <code>Reader</code> reads the data till end-of-file is reached. The
  4339   * <code>Reader</code> reads the data till end-of-file is reached. The
  4343   public void setNCharacterStream(String parameterName, Reader value) throws SQLException{
  4359   public void setNCharacterStream(String parameterName, Reader value) throws SQLException{
  4344         throw new SQLFeatureNotSupportedException("Feature not supported");
  4360         throw new SQLFeatureNotSupportedException("Feature not supported");
  4345    }
  4361    }
  4346 
  4362 
  4347 
  4363 
  4348  /**
  4364   /**
  4349  * Sets the designated parameter to a <code>java.sql.NClob</code> object. The object
  4365    * Sets the designated parameter to a <code>java.sql.NClob</code> object. The object
  4350  * implements the <code>java.sql.NClob</code> interface. This <code>NClob</code>
  4366    * implements the <code>java.sql.NClob</code> interface. This <code>NClob</code>
  4351  * object maps to a SQL <code>NCLOB</code>.
  4367    * object maps to a SQL <code>NCLOB</code>.
  4352  * @param parameterName the name of the column to be set
  4368    * @param parameterName the name of the column to be set
  4353  * @param value the parameter value
  4369    * @param value the parameter value
  4354  * @throws SQLException if the driver does not support national
  4370    * @throws SQLException if the driver does not support national
  4355  *         character sets;  if the driver can detect that a data conversion
  4371    *         character sets;  if the driver can detect that a data conversion
  4356  *  error could occur; or if a database access error occurs
  4372    *  error could occur; or if a database access error occurs
  4357  * @since 1.6
  4373    * @throws SQLFeatureNotSupportedException  if the JDBC driver does not
  4358  */
  4374    * support this method
  4359  public void setNClob(String parameterName, NClob value) throws SQLException{
  4375    * @since 1.6
       
  4376    */
       
  4377   public void setNClob(String parameterName, NClob value) throws SQLException{
  4360         throw new SQLFeatureNotSupportedException("Feature not supported");
  4378         throw new SQLFeatureNotSupportedException("Feature not supported");
  4361    }
  4379   }
  4362 
  4380 
  4363 
  4381 
  4364  /**
  4382   /**
  4365   * Sets the designated parameter to a <code>Reader</code> object.  The <code>reader</code> must contain    * the number
  4383    * Sets the designated parameter to a <code>Reader</code> object.  The <code>reader</code> must contain
  4366              * of characters specified by length otherwise a <code>SQLException</code> will be
  4384    * the number
  4367             * generated when the <code>CallableStatement</code> is executed.
  4385    * of characters specified by length otherwise a <code>SQLException</code> will be
  4368             * This method differs from the <code>setCharacterStream (int, Reader, int)</code> method
  4386    * generated when the <code>CallableStatement</code> is executed.
  4369             * because it informs the driver that the parameter value should be sent to
  4387    * This method differs from the <code>setCharacterStream (int, Reader, int)</code> method
  4370             * the server as a <code>NCLOB</code>.  When the <code>setCharacterStream</code> method is used, the
  4388    * because it informs the driver that the parameter value should be sent to
  4371             * driver may have to do extra work to determine whether the parameter
  4389    * the server as a <code>NCLOB</code>.  When the <code>setCharacterStream</code> method is used, the
  4372             * data should be send to the server as a <code>LONGNVARCHAR</code> or a <code>NCLOB</code>
  4390    * driver may have to do extra work to determine whether the parameter
  4373             *
  4391    * data should be send to the server as a <code>LONGNVARCHAR</code> or a <code>NCLOB</code>
  4374             * @param parameterName the name of the parameter to be set
  4392    *
  4375             * @param reader An object that contains the data to set the parameter value to.
  4393    * @param parameterName the name of the parameter to be set
  4376             * @param length the number of characters in the parameter data.
  4394    * @param reader An object that contains the data to set the parameter value to.
  4377             * @throws SQLException if parameterIndex does not correspond to a parameter
  4395    * @param length the number of characters in the parameter data.
  4378             * marker in the SQL statement; if the length specified is less than zero;
  4396    * @throws SQLException if parameterIndex does not correspond to a parameter
  4379             * if the driver does not support national
  4397    * marker in the SQL statement; if the length specified is less than zero;
  4380             *         character sets;  if the driver can detect that a data conversion
  4398    * if the driver does not support national
  4381             *  error could occur; if a database access error occurs or
  4399    *         character sets;  if the driver can detect that a data conversion
  4382             * this method is called on a closed <code>CallableStatement</code>
  4400    *  error could occur; if a database access error occurs or
  4383             * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
  4401    * this method is called on a closed <code>CallableStatement</code>
  4384             * this method
  4402    * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
  4385             * @since 1.6
  4403    * this method
  4386             */
  4404    * @since 1.6
  4387             public void setNClob(String parameterName, Reader reader, long length)
  4405    */
  4388     throws SQLException{
  4406   public void setNClob(String parameterName, Reader reader, long length)
  4389         throw new SQLFeatureNotSupportedException("Feature not supported");
  4407            throws SQLException{
  4390    }
  4408        throw new SQLFeatureNotSupportedException("Feature not supported");
  4391 
  4409   }
  4392 
  4410 
  4393  /**
  4411 
  4394   * Sets the designated parameter to a <code>Reader</code> object.
  4412   /**
  4395   * This method differs from the <code>setCharacterStream (int, Reader)</code> method
  4413    * Sets the designated parameter to a <code>Reader</code> object.
  4396   * because it informs the driver that the parameter value should be sent to
  4414    * This method differs from the <code>setCharacterStream (int, Reader)</code> method
  4397   * the server as a <code>NCLOB</code>.  When the <code>setCharacterStream</code> method is used, the
  4415    * because it informs the driver that the parameter value should be sent to
  4398   * driver may have to do extra work to determine whether the parameter
  4416    * the server as a <code>NCLOB</code>.  When the <code>setCharacterStream</code> method is used, the
  4399   * data should be send to the server as a <code>LONGNVARCHAR</code> or a <code>NCLOB</code>
  4417    * driver may have to do extra work to determine whether the parameter
  4400   * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
  4418    * data should be send to the server as a <code>LONGNVARCHAR</code> or a <code>NCLOB</code>
  4401   * it might be more efficient to use a version of
  4419    * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
  4402   * <code>setNClob</code> which takes a length parameter.
  4420    * it might be more efficient to use a version of
  4403   *
  4421    * <code>setNClob</code> which takes a length parameter.
  4404   * @param parameterName the name of the parameter
  4422    *
  4405   * @param reader An object that contains the data to set the parameter value to.
  4423    * @param parameterName the name of the parameter
  4406   * @throws SQLException if the driver does not support national character sets;
  4424    * @param reader An object that contains the data to set the parameter value to.
  4407   * if the driver can detect that a data conversion
  4425    * @throws SQLException if the driver does not support national character sets;
  4408   *  error could occur;  if a database access error occurs or
  4426    * if the driver can detect that a data conversion
  4409   * this method is called on a closed <code>CallableStatement</code>
  4427    *  error could occur;  if a database access error occurs or
  4410   * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
  4428    * this method is called on a closed <code>CallableStatement</code>
  4411   *
  4429    * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
  4412   * @since 1.6
  4430    *
  4413   */
  4431    * @since 1.6
       
  4432    */
  4414   public void setNClob(String parameterName, Reader reader)
  4433   public void setNClob(String parameterName, Reader reader)
  4415     throws SQLException{
  4434     throws SQLException{
  4416         throw new SQLFeatureNotSupportedException("Feature not supported");
  4435         throw new SQLFeatureNotSupportedException("Feature not supported");
  4417    }
  4436   }
  4418 
  4437 
  4419 
  4438 
  4420     /**
  4439   /**
  4421      * Sets the designated parameter to a <code>Reader</code> object.  The reader must contain  the number
  4440    * Sets the designated parameter to a <code>Reader</code> object.  The reader must contain  the number
  4422      * of characters specified by length otherwise a <code>SQLException</code> will be
  4441    * of characters specified by length otherwise a <code>SQLException</code> will be
  4423      * generated when the <code>PreparedStatement</code> is executed.
  4442    * generated when the <code>PreparedStatement</code> is executed.
  4424      * This method differs from the <code>setCharacterStream (int, Reader, int)</code> method
  4443    * This method differs from the <code>setCharacterStream (int, Reader, int)</code> method
  4425      * because it informs the driver that the parameter value should be sent to
  4444    * because it informs the driver that the parameter value should be sent to
  4426      * the server as a <code>NCLOB</code>.  When the <code>setCharacterStream</code> method is used, the
  4445    * the server as a <code>NCLOB</code>.  When the <code>setCharacterStream</code> method is used, the
  4427      * driver may have to do extra work to determine whether the parameter
  4446    * driver may have to do extra work to determine whether the parameter
  4428      * data should be sent to the server as a <code>LONGNVARCHAR</code> or a <code>NCLOB</code>
  4447    * data should be sent to the server as a <code>LONGNVARCHAR</code> or a <code>NCLOB</code>
  4429      * @param parameterIndex index of the first parameter is 1, the second is 2, ...
  4448    * @param parameterIndex index of the first parameter is 1, the second is 2, ...
  4430      * @param reader An object that contains the data to set the parameter value to.
  4449    * @param reader An object that contains the data to set the parameter value to.
  4431      * @param length the number of characters in the parameter data.
  4450    * @param length the number of characters in the parameter data.
  4432      * @throws SQLException if parameterIndex does not correspond to a parameter
  4451    * @throws SQLException if parameterIndex does not correspond to a parameter
  4433      * marker in the SQL statement; if the length specified is less than zero;
  4452    * marker in the SQL statement; if the length specified is less than zero;
  4434      * if the driver does not support national character sets;
  4453    * if the driver does not support national character sets;
  4435      * if the driver can detect that a data conversion
  4454    * if the driver can detect that a data conversion
  4436      *  error could occur;  if a database access error occurs or
  4455    *  error could occur;  if a database access error occurs or
  4437      * this method is called on a closed <code>PreparedStatement</code>
  4456    * this method is called on a closed <code>PreparedStatement</code>
  4438      * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
  4457    * @throws SQLFeatureNotSupportedException  if the JDBC driver does not
  4439      *
  4458    * support this method
  4440      * @since 1.6
  4459    *
  4441      */
  4460    * @since 1.6
  4442      public void setNClob(int parameterIndex, Reader reader, long length)
  4461    */
       
  4462   public void setNClob(int parameterIndex, Reader reader, long length)
  4443        throws SQLException{
  4463        throws SQLException{
  4444         throw new SQLFeatureNotSupportedException("Feature not supported");
  4464         throw new SQLFeatureNotSupportedException("Feature not supported");
  4445    }
  4465   }
  4446 
  4466 
  4447 
  4467 
  4448     /**
  4468   /**
  4449      * Sets the designated parameter to a <code>java.sql.NClob</code> object. The driver converts this oa
  4469    * Sets the designated parameter to a <code>java.sql.NClob</code> object. The driver converts this oa
  4450      * SQL <code>NCLOB</code> value when it sends it to the database.
  4470    * SQL <code>NCLOB</code> value when it sends it to the database.
  4451      * @param parameterIndex of the first parameter is 1, the second is 2, ...
  4471    * @param parameterIndex of the first parameter is 1, the second is 2, ...
  4452      * @param value the parameter value
  4472    * @param value the parameter value
  4453      * @throws SQLException if the driver does not support national
  4473    * @throws SQLException if the driver does not support national
  4454      *         character sets;  if the driver can detect that a data conversion
  4474    *         character sets;  if the driver can detect that a data conversion
  4455      *  error could occur ; or if a database access error occurs
  4475    *  error could occur ; or if a database access error occurs
  4456      * @since 1.6
  4476    * @throws SQLFeatureNotSupportedException  if the JDBC driver does not
  4457      */
  4477    * support this method
  4458      public void setNClob(int parameterIndex, NClob value) throws SQLException{
  4478    * @since 1.6
       
  4479    */
       
  4480  public void setNClob(int parameterIndex, NClob value) throws SQLException{
  4459         throw new SQLFeatureNotSupportedException("Feature not supported");
  4481         throw new SQLFeatureNotSupportedException("Feature not supported");
  4460    }
  4482  }
  4461 
  4483 
  4462 
  4484 
  4463  /**
  4485  /**
  4464   * Sets the designated parameter to a <code>Reader</code> object.
  4486   * Sets the designated parameter to a <code>Reader</code> object.
  4465   * This method differs from the <code>setCharacterStream (int, Reader)</code> method
  4487   * This method differs from the <code>setCharacterStream (int, Reader)</code> method
  4484   * @since 1.6
  4506   * @since 1.6
  4485   */
  4507   */
  4486   public void setNClob(int parameterIndex, Reader reader)
  4508   public void setNClob(int parameterIndex, Reader reader)
  4487     throws SQLException{
  4509     throws SQLException{
  4488         throw new SQLFeatureNotSupportedException("Feature not supported");
  4510         throw new SQLFeatureNotSupportedException("Feature not supported");
  4489    }
  4511   }
  4490 
  4512 
  4491 
  4513 
  4492  /**
  4514   /**
  4493   * Sets the designated parameter to the given <code>java.net.URL</code> value.
  4515    * Sets the designated parameter to the given <code>java.net.URL</code> value.
  4494   * The driver converts this to an SQL <code>DATALINK</code> value
  4516    * The driver converts this to an SQL <code>DATALINK</code> value
  4495   * when it sends it to the database.
  4517    * when it sends it to the database.
  4496   *
  4518    *
  4497   * @param parameterIndex the first parameter is 1, the second is 2, ...
  4519    * @param parameterIndex the first parameter is 1, the second is 2, ...
  4498   * @param x the <code>java.net.URL</code> object to be set
  4520    * @param x the <code>java.net.URL</code> object to be set
  4499   * @exception SQLException if a database access error occurs or
  4521    * @exception SQLException if a database access error occurs or
  4500   * this method is called on a closed <code>PreparedStatement</code>
  4522    * this method is called on a closed <code>PreparedStatement</code>
  4501   * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
  4523    * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
  4502   * @since 1.4
  4524    * @since 1.4
  4503   */
  4525    */
  4504   public void setURL(int parameterIndex, java.net.URL x) throws SQLException{
  4526   public void setURL(int parameterIndex, java.net.URL x) throws SQLException{
  4505         throw new SQLFeatureNotSupportedException("Feature not supported");
  4527         throw new SQLFeatureNotSupportedException("Feature not supported");
  4506    }
  4528   }
  4507 
  4529 
  4508 
  4530 
  4509 
  4531 
  4510     static final long serialVersionUID = 4886719666485113312L;
  4532   static final long serialVersionUID = 4886719666485113312L;
  4511 
  4533 
  4512 } //end class
  4534 } //end class