⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jdbcresultset.java

📁 Java写的含有一个jdbc驱动的小型数据库数据库引擎
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
     * @param x
     *
     * @throws SQLException
     */
//#ifdef JAVA2

    public void updateInt(String columnName, int x) throws SQLException {
	updateInt(findColumn(columnName), x);
    }

//#endif JAVA2
    /**
     * Method declaration
     *
     *
     * @param columnName
     * @param x
     *
     * @throws SQLException
     */
//#ifdef JAVA2

    public void updateLong(String columnName, long x) throws SQLException {
	updateLong(findColumn(columnName), x);
    }

//#endif JAVA2
    /**
     * Method declaration
     *
     *
     * @param columnName
     * @param x
     *
     * @throws SQLException
     */
//#ifdef JAVA2

    public void updateFloat(String columnName, float x) throws SQLException {
	updateFloat(findColumn(columnName), x);
    }

//#endif JAVA2
    /**
     * Method declaration
     *
     *
     * @param columnName
     * @param x
     *
     * @throws SQLException
     */
//#ifdef JAVA2

    public void updateDouble(String columnName,
			     double x) throws SQLException {
	updateDouble(findColumn(columnName), x);
    }

//#endif JAVA2
    /**
     * Method declaration
     *
     *
     * @param columnName
     * @param x
     *
     * @throws SQLException
     */
//#ifdef JAVA2

    public void updateBigDecimal(String columnName,
				 BigDecimal x) throws SQLException {
	updateBigDecimal(findColumn(columnName), x);
    }

//#endif JAVA2
    /**
     * Method declaration
     *
     *
     * @param columnName
     * @param x
     *
     * @throws SQLException
     */
//#ifdef JAVA2

    public void updateString(String columnName,
			     String x) throws SQLException {
	updateString(findColumn(columnName), x);
    }

//#endif JAVA2
    /**
     * Method declaration
     *
     *
     * @param columnName
     * @param x
     *
     * @throws SQLException
     */
//#ifdef JAVA2

    public void updateBytes(String columnName, byte[] x) throws SQLException {
	updateBytes(findColumn(columnName), x);
    }

//#endif JAVA2
    /**
     * Method declaration
     *
     *
     * @param columnName
     * @param x
     *
     * @throws SQLException
     */
//#ifdef JAVA2

    public void updateDate(String columnName,
			   java.sql.Date x) throws SQLException {
	updateDate(findColumn(columnName), x);
    }

//#endif JAVA2
    /**
     * Method declaration
     *
     *
     * @param columnName
     * @param x
     *
     * @throws SQLException
     */
//#ifdef JAVA2

    public void updateTime(String columnName, Time x) throws SQLException {
	updateTime(findColumn(columnName), x);
    }

//#endif JAVA2
    /**
     * Method declaration
     *
     *
     * @param columnName
     * @param x
     *
     * @throws SQLException
     */
//#ifdef JAVA2

    public void updateTimestamp(String columnName,
				Timestamp x) throws SQLException {
	updateTimestamp(findColumn(columnName), x);
    }

//#endif JAVA2
    /**
     * Method declaration
     *
     *
     * @param columnName
     * @param x
     * @param length
     *
     * @throws SQLException
     */
//#ifdef JAVA2

    public void updateAsciiStream(String columnName, InputStream x,
				  int length) throws SQLException {
	updateAsciiStream(findColumn(columnName), x, length);
    }

//#endif JAVA2
    /**
     * Method declaration
     *
     *
     * @param columnName
     * @param x
     * @param length
     *
     * @throws SQLException
     */
//#ifdef JAVA2

    public void updateBinaryStream(String columnName, InputStream x,
				   int length) throws SQLException {
	updateBinaryStream(findColumn(columnName), x, length);
    }

//#endif JAVA2
    /**
     * Method declaration
     *
     *
     * @param columnName
     * @param x
     * @param length
     *
     * @throws SQLException
     */
//#ifdef JAVA2

    public void updateCharacterStream(String columnName, Reader x,
				      int length) throws SQLException {
	updateCharacterStream(findColumn(columnName), x, length);
    }

//#endif JAVA2
    /**
     * Method declaration
     *
     *
     * @param columnName
     * @param x
     * @param scale
     *
     * @throws SQLException
     */
//#ifdef JAVA2

    public void updateObject(String columnName, Object x,
			     int scale) throws SQLException {
	updateObject(findColumn(columnName), x, scale);
    }

//#endif JAVA2
    /**
     * Method declaration
     *
     *
     * @param columnName
     * @param x
     *
     * @throws SQLException
     */
//#ifdef JAVA2

    public void updateObject(String columnName,
			     Object x) throws SQLException {
	updateObject(findColumn(columnName), x);
    }

//#endif JAVA2

    /**
     * JDBC 2.0
     *
     * Inserts the contents of the insert row into the result set and
     * the database.  Must be on the insert row when this method is called.
     *
     * @exception SQLException if a database access error occurs,
     * if called when not on the insert row, or if not all of non-nullable
     * columns in
     * the insert row have been given a value
     */

//#ifdef JAVA2
    public void insertRow() throws SQLException {
	if (Trace.TRACE) {
	    Trace.trace();
	}

	throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
    }

//#endif JAVA2

    /**
     * JDBC 2.0
     *
     * Updates the underlying database with the new contents of the
     * current row.  Cannot be called when on the insert row.
     *
     * @exception SQLException if a database access error occurs or
     * if called when on the insert row
     */

//#ifdef JAVA2
    public void updateRow() throws SQLException {
	if (Trace.TRACE) {
	    Trace.trace();
	}

	throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
    }

//#endif JAVA2

    /**
     * JDBC 2.0
     *
     * Deletes the current row from the result set and the underlying
     * database.  Cannot be called when on the insert row.
     *
     * @exception SQLException if a database access error occurs or if
     * called when on the insert row.
     */

//#ifdef JAVA2
    public void deleteRow() throws SQLException {
	if (Trace.TRACE) {
	    Trace.trace();
	}

	throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
    }

//#endif JAVA2

    /**
     * JDBC 2.0
     *
     * Refreshes the current row with its most recent value in
     * the database.  Cannot be called when on the insert row.
     *
     * The <code>refreshRow</code> method provides a way for an application to
     * explicitly tell the JDBC driver to refetch a row(s) from the
     * database.  An application may want to call <code>refreshRow</code> when
     * caching or prefetching is being done by the JDBC driver to
     * fetch the latest value of a row from the database.  The JDBC driver
     * may actually refresh multiple rows at once if the fetch size is
     * greater than one.
     *
     * All values are refetched subject to the transaction isolation
     * level and cursor sensitivity.  If <code>refreshRow</code> is called after
     * calling <code>updateXXX</code>, but before calling <code>updateRow</code>,
     * then the
     * updates made to the row are lost.  Calling the method
     * <code>refreshRow</code> frequently
     * will likely slow performance.
     *
     * @exception SQLException if a database access error occurs or if
     * called when on the insert row
     */

//#ifdef JAVA2
    public void refreshRow() throws SQLException {
	if (Trace.TRACE) {
	    Trace.trace();
	}
    }

//#endif JAVA2

    /**
     * JDBC 2.0
     *
     * Cancels the updates made to a row.
     * This method may be called after calling an
     * <code>updateXXX</code> method(s) and before calling <code>updateRow</code>
     * to rollback
     * the updates made to a row.  If no updates have been made or
     * <code>updateRow</code> has already been called, then this method has no
     * effect.
     *
     * @exception SQLException if a database access error occurs or if
     * called when on the insert row
     *
     */

//#ifdef JAVA2
    public void cancelRowUpdates() throws SQLException {
	if (Trace.TRACE) {
	    Trace.trace();
	}
    }

//#endif JAVA2

    /**
     * JDBC 2.0
     *
     * Moves the cursor to the insert row.  The current cursor position is
     * remembered while the cursor is positioned on the insert row.
     *
     * The insert row is a special row associated with an updatable
     * result set.  It is essentially a buffer where a new row may
     * be constructed by calling the <code>updateXXX</code> methods prior to
     * inserting the row into the result set.
     *
     * Only the <code>updateXXX</code>, <code>getXXX</code>,
     * and <code>insertRow</code> methods may be
     * called when the cursor is on the insert row.  All of the columns in
     * a result set must be given a value each time this method is
     * called before calling <code>insertRow</code>.
     * The method <code>updateXXX</code> must be called before a
     * <code>getXXX</code> method can be called on a column value.
     *
     * @exception SQLException if a database access error occurs
     * or the result set is not updatable
     */

//#ifdef JAVA2
    public void moveToInsertRow() throws SQLException {
	if (Trace.TRACE) {
	    Trace.trace();
	}

	throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
    }

//#endif JAVA2

    /**
     * JDBC 2.0
     *
     * Moves the cursor to the remembered cursor position, usually the
     * current row.  This method has no effect if the cursor is not on the insert
     * row.
     *
     * @exception SQLException if a database access error occurs
     * or the result set is not updatable
     */

//#ifdef JAVA2
    public void moveToCurrentRow() throws SQLException {
	if (Trace.TRACE) {
	    Trace.trace();
	}
    }

//#endif JAVA2

    /**
     * JDBC 2.0
     *
     * Returns the Statement that produced this <code>ResultSet</code> object.
     * If the result set was generated some other way, such as by a
     * <code>DatabaseMetaData</code> method, this method returns <code>null</code>.
     *
     * @return the Statment that produced the result set or
     * null if the result set was produced some other way
     * @exception SQLException if a database access error occurs
     */

//#ifdef JAVA2
    public Statement getStatement() throws SQLException {
	if (Trace.TRACE) {
	    Trace.trace();

	    // todo
	}

	return null;
    }

//#endif

    /**
     * JDBC 2.0
     *
     * Returns the 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -