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

📄 preparedstatement.java

📁 this gcc-g++-3.3.1.tar.gz is a source file of gcc, you can learn more about gcc through this codes f
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/* PreparedStatement.java -- Interface for pre-compiled statements.   Copyright (C) 1999, 2000 Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version. GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA02111-1307 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package java.sql;import java.io.InputStream;import java.io.Reader;import java.math.BigDecimal;import java.net.URL;import java.util.Calendar;/** * This interface provides a mechanism for executing pre-compiled * statements.  This provides greater efficiency when calling the same * statement multiple times.  Parameters are allowed in a statement, * providings for maximum reusability. * * @author Aaron M. Renn (arenn@urbanophile.com) */public interface PreparedStatement extends Statement {  /**   * This method executes a prepared SQL query and returns its ResultSet.   *   * @return The ResultSet of the SQL statement.   * @exception SQLException If an error occurs.   */  public ResultSet executeQuery() throws SQLException;  /**   * This method executes an SQL INSERT, UPDATE or DELETE statement.  SQL   * statements that return nothing such as SQL DDL statements can be executed.   *   * @return The result is either the row count for INSERT, UPDATE or DELETE   *         statements; or 0 for SQL statements that return nothing.   * @exception SQLException If an error occurs.   */  public int executeUpdate() throws SQLException;  /**   * This method populates the specified parameter with a SQL NULL value   * for the specified type.   *   * @param index The index of the parameter to set.   * @param type The SQL type identifier of the parameter from <code>Types</code>   *   * @exception SQLException If an error occurs.   */  public void setNull(int parameterIndex, int sqlType) throws SQLException;  /**   * This method sets the specified parameter from the given Java   * <code>boolean</code> value.   *   * @param index The index of the parameter value to set.   * @param value The value of the parameter.   * @exception SQLException If an error occurs.   */  public void setBoolean(int parameterIndex, boolean x) throws SQLException;  /**   * This method sets the specified parameter from the given Java   * <code>byte</code> value.   *   * @param index The index of the parameter value to set.   * @param value The value of the parameter.   * @exception SQLException If an error occurs.   */  public void setByte(int parameterIndex, byte x) throws SQLException;  /**   * This method sets the specified parameter from the given Java   * <code>short</code> value.   *   * @param index The index of the parameter value to set.   * @param value The value of the parameter.   * @exception SQLException If an error occurs.   */  public void setShort(int parameterIndex, short x) throws SQLException;  /**   * This method sets the specified parameter from the given Java   * <code>int</code> value.   *   * @param index The index of the parameter value to set.   * @param value The value of the parameter.   * @exception SQLException If an error occurs.   */  public void setInt(int parameterIndex, int x) throws SQLException;  /**   * This method sets the specified parameter from the given Java   * <code>long</code> value.   *   * @param index The index of the parameter value to set.   * @param value The value of the parameter.   * @exception SQLException If an error occurs.   */  public void setLong(int parameterIndex, long x) throws SQLException;  /**   * This method sets the specified parameter from the given Java   * <code>float</code> value.   *   * @param index The index of the parameter value to set.   * @param value The value of the parameter.   * @exception SQLException If an error occurs.   */  public void setFloat(int parameterIndex, float x) throws SQLException;  /**   * This method sets the specified parameter from the given Java   * <code>double</code> value.   *   * @param index The index of the parameter value to set.   * @param value The value of the parameter.   * @exception SQLException If an error occurs.   */  public void setDouble(int parameterIndex, double x) throws SQLException;  /**   * This method sets the specified parameter from the given Java   * <code>java.math.BigDecimal</code> value.   *   * @param index The index of the parameter value to set.   * @param value The value of the parameter.   * @exception SQLException If an error occurs.   */  public void setBigDecimal(int parameterIndex, BigDecimal x) throws      SQLException;  /**   * This method sets the specified parameter from the given Java   * <code>String</code> value.   *   * @param index The index of the parameter value to set.   * @param value The value of the parameter.   * @exception SQLException If an error occurs.   */  public void setString(int parameterIndex, String x) throws SQLException;  /**   * This method sets the specified parameter from the given Java   * <code>byte</code> array value.   *   * @param index The index of the parameter value to set.   * @param value The value of the parameter.   * @exception SQLException If an error occurs.   */  public void setBytes(int parameterIndex, byte[] x) throws SQLException;  /**   * This method sets the specified parameter from the given Java   * <code>java.sql.Date</code> value.   *   * @param index The index of the parameter value to set.   * @param value The value of the parameter.   * @exception SQLException If an error occurs.   */  public void setDate(int parameterIndex, Date x) throws SQLException;  /**   * This method sets the specified parameter from the given Java   * <code>java.sql.Time</code> value.   *   * @param index The index of the parameter value to set.   * @param value The value of the parameter.   * @exception SQLException If an error occurs.   */  public void setTime(int parameterIndex, Time x) throws SQLException;  /**   * This method sets the specified parameter from the given Java   * <code>java.sql.Timestamp</code> value.   *   * @param index The index of the parameter value to set.   * @param value The value of the parameter.   * @exception SQLException If an error occurs.   */  public void setTimestamp(int parameterIndex, Timestamp x)    throws SQLException;  /**   * This method sets the specified parameter from the given Java   * ASCII <code>InputStream</code> value.   *

⌨️ 快捷键说明

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