7047 lines · 303.9 KB · Java
RawDownload
     *     * @param type one of the following constants:     *             <code>ResultSet.TYPE_FORWARD_ONLY</code>,     *             <code>ResultSet.TYPE_SCROLL_INSENSITIVE</code>, or     *             <code>ResultSet.TYPE_SCROLL_SENSITIVE</code>     * @throws SQLException if the parameter supplied is not one of the     *         following constants:     *          <code>ResultSet.TYPE_FORWARD_ONLY</code> or     *          <code>ResultSet.TYPE_SCROLL_INSENSITIVE</code>     *          <code>ResultSet.TYPE_SCROLL_SENSITIVE</code>     * @see #getConcurrency     * @see #getType     */     public void setType(int type) throws SQLException {        int oldVal;        try {          oldVal = getType();        }catch(SQLException ex) {           oldVal = 0;        }        if(oldVal != type) {           super.setType(type);           propertyChangeSupport.firePropertyChange("type",oldVal,type);       }     }     /**     * Sets the concurrency for this <code>RowSet</code> object to     * the specified concurrency. The default concurrency for any <code>RowSet</code>     * object (connected or disconnected) is <code>ResultSet.CONCUR_UPDATABLE</code>,     * but this method may be called at any time to change the concurrency.     *     * @param concur one of the following constants:     *                    <code>ResultSet.CONCUR_READ_ONLY</code> or     *                    <code>ResultSet.CONCUR_UPDATABLE</code>     * @throws SQLException if the parameter supplied is not one of the     *         following constants:     *          <code>ResultSet.CONCUR_UPDATABLE</code> or     *          <code>ResultSet.CONCUR_READ_ONLY</code>     * @see #getConcurrency     * @see #isReadOnly     */    public void setConcurrency(int concur) throws SQLException {        int oldVal;        try {          oldVal = getConcurrency();        }catch(NullPointerException ex) {           oldVal = 0;        }        if(oldVal != concur) {           super.setConcurrency(concur);           propertyChangeSupport.firePropertyChange("concurrency",oldVal,concur);       }     }     /**     * Sets the transaction isolation property for this JDBC <code>RowSet</code> object to the given     * constant. The DBMS will use this transaction isolation level for     * transactions if it can.     * <p>     * For <code>RowSet</code> implementations such as     * the <code>CachedRowSet</code> that operate in a disconnected environment,     * the <code>SyncProvider</code> object being used     * offers complementary locking and data integrity options. The     * options described below are pertinent only to connected <code>RowSet</code>     * objects (<code>JdbcRowSet</code> objects).     *     * @param transIso one of the following constants, listed in ascending order:     *              <code>Connection.TRANSACTION_NONE</code>,     *              <code>Connection.TRANSACTION_READ_UNCOMMITTED</code>,     *              <code>Connection.TRANSACTION_READ_COMMITTED</code>,     *              <code>Connection.TRANSACTION_REPEATABLE_READ</code>, or     *              <code>Connection.TRANSACTION_SERIALIZABLE</code>     * @throws SQLException if the given parameter is not one of the Connection     *          constants     * @see javax.sql.rowset.spi.SyncFactory     * @see javax.sql.rowset.spi.SyncProvider     * @see #getTransactionIsolation     */    public void setTransactionIsolation(int transIso) throws SQLException {        int oldVal;        try {          oldVal = getTransactionIsolation();        }catch(NullPointerException ex) {           oldVal = 0;        }        if(oldVal != transIso) {           super.setTransactionIsolation(transIso);           propertyChangeSupport.firePropertyChange("transactionIsolation",oldVal,transIso);       }     }     /**     * Sets the maximum number of rows that this <code>RowSet</code> object may contain to     * the given number. If this limit is exceeded, the excess rows are     * silently dropped.     *     * @param mRows an <code>int</code> indicating the current maximum number     *     of rows; zero means that there is no limit     * @throws SQLException if an error occurs internally setting the     *     maximum limit on the number of rows that a JDBC <code>RowSet</code> object     *     can contain; or if <i>max</i> is less than <code>0</code>; or     *     if <i>max</i> is less than the <code>fetchSize</code> of the     *     <code>RowSet</code>     */    public void setMaxRows(int mRows) throws SQLException {        int oldVal;        try {          oldVal = getMaxRows();        }catch(NullPointerException ex) {           oldVal = 0;        }        if(oldVal != mRows) {           super.setMaxRows(mRows);           propertyChangeSupport.firePropertyChange("maxRows",oldVal,mRows);       }     }     /**     * Retrieves the value of the designated <code>SQL XML</code> parameter as a     * <code>SQLXML</code> object in the Java programming language.     * @param columnIndex the first column is 1, the second is 2, ...     * @return a SQLXML object that maps an SQL XML value     * @throws SQLException if a database access error occurs     * @since 6.0     */    public SQLXML getSQLXML(int columnIndex) throws SQLException {        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());    }     /**     * Retrieves the value of the designated <code>SQL XML</code> parameter as a     * <code>SQLXML</code> object in the Java programming language.     * @param colName the name of the column from which to retrieve the value     * @return a SQLXML object that maps an SQL XML value     * @throws SQLException if a database access error occurs     */    public SQLXML getSQLXML(String colName) throws SQLException {        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());    }     /**     * Retrieves the value of the designated column in the current row of this     * <code>ResultSet</code> object as a java.sql.RowId object in the Java     * programming language.     *     * @param columnIndex the first column is 1, the second 2, ...     * @return the column value if the value is a SQL <code>NULL</code> the     *     value returned is <code>null</code>     * @throws SQLException if a database access error occurs     * @since 6.0     */    public RowId getRowId(int columnIndex) throws SQLException {        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());    }     /**     * Retrieves the value of the designated column in the current row of this     * <code>ResultSet</code> object as a java.sql.RowId object in the Java     * programming language.     *     * @param columnName the name of the column     * @return the column value if the value is a SQL <code>NULL</code> the     *     value returned is <code>null</code>     * @throws SQLException if a database access error occurs     * @since 6.0     */    public RowId getRowId(String columnName) throws SQLException {        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());    }     /**     * Updates the designated column with a <code>RowId</code> value. The updater     * methods are used to update column values in the current row or the insert     * row. The updater methods do not update the underlying database; instead     * the <code>updateRow<code> or <code>insertRow</code> methods are called     * to update the database.     *     * @param columnIndex the first column is 1, the second 2, ...     * @param x the column value     * @throws SQLException if a database access occurs     * @since 6.0     */    public void updateRowId(int columnIndex, RowId x) throws SQLException {        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());    }     /**     * Updates the designated column with a <code>RowId</code> value. The updater     * methods are used to update column values in the current row or the insert     * row. The updater methods do not update the underlying database; instead     * the <code>updateRow<code> or <code>insertRow</code> methods are called     * to update the database.     *     * @param columnName the name of the column     * @param x the column value     * @throws SQLException if a database access occurs     * @since 6.0     */    public void updateRowId(String columnName, RowId x) throws SQLException {        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());    }     /**     * Retrieves the holdability of this ResultSet object     * @return  either ResultSet.HOLD_CURSORS_OVER_COMMIT or ResultSet.CLOSE_CURSORS_AT_COMMIT     * @throws SQLException if a database error occurs     * @since 6.0     */    public int getHoldability() throws SQLException {        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());    }     /**     * Retrieves whether this ResultSet object has been closed. A ResultSet is closed if the     * method close has been called on it, or if it is automatically closed.     * @return true if this ResultSet object is closed; false if it is still open     * @throws SQLException if a database access error occurs     * @since 6.0     */    public boolean isClosed() throws SQLException {        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());    }     /**     * This method is used for updating columns that support National Character sets.     * It can be used for updating NCHAR,NVARCHAR and LONGNVARCHAR columns.     * @param columnIndex the first column is 1, the second 2, ...     * @param nString the value for the column to be updated     * @throws SQLException if a database access error occurs     * @since 6.0     */    public void updateNString(int columnIndex, String nString) throws SQLException {        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());    }     /**     * This method is used for updating columns that support National Character sets.     * It can be used for updating NCHAR,NVARCHAR and LONGNVARCHAR columns.     * @param columnName name of the Column     * @param nString the value for the column to be updated     * @throws SQLException if a database access error occurs     * @since 6.0     */    public void updateNString(String columnName, String nString) throws SQLException {        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());    }      /*o     * This method is used for updating SQL <code>NCLOB</code>  type that maps     * to <code>java.sql.Types.NCLOB</code>     * @param columnIndex the first column is 1, the second 2, ...     * @param nClob the value for the column to be updated     * @throws SQLException if a database access error occurs     * @since 6.0     */    public void updateNClob(int columnIndex, NClob nClob) throws SQLException {        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());    }     /**     * This method is used for updating SQL <code>NCLOB</code>  type that maps     * to <code>java.sql.Types.NCLOB</code>     * @param columnName name of the column     * @param nClob the value for the column to be updated     * @throws SQLException if a database access error occurs     * @since 6.0     */    public void updateNClob(String columnName, NClob nClob) throws SQLException {        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());    }     /**     * Retrieves the value of the designated column in the current row     * of this <code>ResultSet</code> object as a <code>NClob</code> object     * in the Java programming language.     *     * @param i the first column is 1, the second is 2, ...     * @return a <code>NClob</code> object representing the SQL     *         <code>NCLOB</code> value in the specified column     * @exception SQLException if a database access error occurs     * @since 6.0     */    public NClob getNClob(int i) throws SQLException {        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());    }    /**     * Retrieves the value of the designated column in the current row     * of this <code>ResultSet</code> object as a <code>NClob</code> object     * in the Java programming language.     *     * @param colName the name of the column from which to retrieve the value     * @return a <code>NClob</code> object representing the SQL <code>NCLOB</code>     * value in the specified column     * @exception SQLException if a database access error occurs     * @since 6.0     */    public NClob getNClob(String colName) throws SQLException {        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());    }     public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException{        return null;    }     public boolean isWrapperFor(Class<?> interfaces) throws SQLException {        return false;    }     /**      * Sets the designated parameter to the given <code>java.sql.SQLXML</code> object. The driver converts this to an      * SQL <code>XML</code> value when it sends it to the database.      * @param parameterIndex index of the first parameter is 1, the second is 2, ...      * @param xmlObject a <code>SQLXML</code> object that maps an SQL <code>XML</code> value      * @throws SQLException if a database access error occurs      * @since 1.6      */     public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {         throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());     }     /**     * Sets the designated parameter to the given <code>java.sql.SQLXML</code> object. The driver converts this to an     * <code>SQL XML</code> value when it sends it to the database.     * @param parameterName the name of the parameter     * @param xmlObject a <code>SQLXML</code> object that maps an <code>SQL XML</code> value     * @throws SQLException if a database access error occurs     * @since 1.6     */    public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException {         throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());     }     /**     * Sets the designated parameter to the given <code>java.sql.RowId</code> object. The     * driver converts this to a SQL <code>ROWID</code> value when it sends 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     *     * @since 1.6     */    public void setRowId(int parameterIndex, RowId x) throws SQLException {         throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());     }     /**    * Sets the designated parameter to the given <code>java.sql.RowId</code> object. The    * driver converts this to a SQL <code>ROWID</code> 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    * @since 1.6    */   public void setRowId(String parameterName, RowId x) throws SQLException {         throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.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("jdbcrowsetimpl.featnotsupp").toString());     }     /**    * Sets the designated parameter in this <code>RowSet</code> object's command    * 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 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 ; 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 setNCharacterStream(int parameterIndex, Reader value) throws SQLException {        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());    }   /**    * Sets the designated parameter to a <code>java.sql.NClob</code> object. The object    * implements the <code>java.sql.NClob</code> interface. This <code>NClob</code>    * object maps to a SQL <code>NCLOB</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 setNClob(String parameterName, NClob value) throws SQLException {         throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());     }    /**     * Retrieves the value of the designated column in the current row     * of this <code>ResultSet</code> object as a     * <code>java.io.Reader</code> object.     * It is intended for use when     * accessing  <code>NCHAR</code>,<code>NVARCHAR</code>     * and <code>LONGNVARCHAR</code> columns.     *     * @return a <code>java.io.Reader</code> object that contains the column     * value; if the value is SQL <code>NULL</code>, the value returned is     * <code>null</code> in the Java programming language.     * @param columnIndex the first column is 1, the second is 2, ...     * @exception SQLException if a database access error occurs     * @since 1.6     */    public java.io.Reader getNCharacterStream(int columnIndex) throws SQLException {       throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());     }      /**     * Retrieves the value of the designated column in the current row     * of this <code>ResultSet</code> object as a     * <code>java.io.Reader</code> object.     * It is intended for use when     * accessing  <code>NCHAR</code>,<code>NVARCHAR</code>     * and <code>LONGNVARCHAR</code> columns.     *     * @param columnName the name of the column     * @return a <code>java.io.Reader</code> object that contains the column     * value; if the value is SQL <code>NULL</code>, the value returned is     * <code>null</code> in the Java programming language     * @exception SQLException if a database access error occurs     * @since 1.6     */    public java.io.Reader getNCharacterStream(String columnName) throws SQLException {       throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());     }     /**     * Updates the designated column with a <code>java.sql.SQLXML</code> value.     * The updater     * methods are used to update column values in the current row or the insert     * row. The updater methods do not update the underlying database; instead     * the <code>updateRow</code> or <code>insertRow</code> methods are called     * to update the database.     * @param columnIndex the first column is 1, the second 2, ...     * @param xmlObject the value for the column to be updated     * @throws SQLException if a database access error occurs     * @since 1.6     */    public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {        throw new SQLFeatureNotSupportedException(resBundle.handleGetObject("jdbcrowsetimpl.featnotsupp").toString());    }

Lines 4501–5000 of 7047. Previous lines