src/share/classes/java/sql/ResultSet.java

Print this page

        

*** 88,98 **** * is best to use column numbers. If column names are used, the * programmer should take care to guarantee that they uniquely refer to * the intended columns, which can be assured with the SQL <i>AS</i> clause. * <P> * A set of updater methods were added to this interface ! * in the JDBC 2.0 API (Java<sup><font size=-2>TM</font></sup> 2 SDK, * Standard Edition, version 1.2). The comments regarding parameters * to the getter methods also apply to parameters to the * updater methods. *<P> * The updater methods may be used in two ways: --- 88,98 ---- * is best to use column numbers. If column names are used, the * programmer should take care to guarantee that they uniquely refer to * the intended columns, which can be assured with the SQL <i>AS</i> clause. * <P> * A set of updater methods were added to this interface ! * in the JDBC 2.0 API (Java&trade; 2 SDK, * Standard Edition, version 1.2). The comments regarding parameters * to the getter methods also apply to parameters to the * updater methods. *<P> * The updater methods may be used in two ways:
*** 4099,4109 **** *<p> * At a minimum, an implementation must support the conversions defined in * Appendix B, Table B-3 and conversion of appropriate user defined SQL * types to a Java type which implements {@code SQLData}, or {@code Struct}. * Additional conversions may be supported and are vendor defined. ! * * @param columnIndex the first column is 1, the second is 2, ... * @param type Class representing the Java data type to convert the designated * column to. * @return an instance of {@code type} holding the column value * @throws SQLException if conversion is not supported, type is null or --- 4099,4109 ---- *<p> * At a minimum, an implementation must support the conversions defined in * Appendix B, Table B-3 and conversion of appropriate user defined SQL * types to a Java type which implements {@code SQLData}, or {@code Struct}. * Additional conversions may be supported and are vendor defined. ! * @param <T> the type of the class modeled by this Class object * @param columnIndex the first column is 1, the second is 2, ... * @param type Class representing the Java data type to convert the designated * column to. * @return an instance of {@code type} holding the column value * @throws SQLException if conversion is not supported, type is null or
*** 4133,4142 **** --- 4133,4143 ---- * @param columnLabel the label for the column specified with the SQL AS clause. * If the SQL AS clause was not specified, then the label is the name * of the column * @param type Class representing the Java data type to convert the designated * column to. + * @param <T> the type of the class modeled by this Class object * @return an instance of {@code type} holding the column value * @throws SQLException if conversion is not supported, type is null or * another error occurs. The getCause() method of the * exception may provide a more detailed exception, for example, if * a conversion error occurs
*** 4206,4215 **** --- 4207,4217 ---- * The default implementation will throw {@code SQLFeatureNotSupportedException} * * @param columnLabel the label for the column specified with the SQL AS * clause. If the SQL AS clause was not specified, then the label is * the name of the column + * @param x the new column value * @param targetSqlType the SQL type to be sent to the database * @param scaleOrLength for an object of {@code java.math.BigDecimal} , * this is the number of digits after the decimal point. For * Java Object types {@code InputStream} and {@code Reader}, * this is the length