📄 preparedstatement.java
字号:
* @param index The index of the parameter value to set. * @param value The value of the parameter. * @param length The number of bytes in the stream. * @exception SQLException If an error occurs. */ public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException; /** * This method sets the specified parameter from the given Java * Unicode UTF-8 <code>InputStream</code> value. * * @param index The index of the parameter value to set. * @param value The value of the parameter. * @param length The number of bytes in the stream. * @exception SQLException If an error occurs. * @deprecated */ public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException; /** * This method sets the specified parameter from the given Java * binary <code>InputStream</code> value. * * @param index The index of the parameter value to set. * @param value The value of the parameter. * @param length The number of bytes in the stream. * @exception SQLException If an error occurs. */ public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException; /** * This method clears all of the input parameter that have been * set on this statement. * * @exception SQLException If an error occurs. */ public void clearParameters() throws SQLException; /** * This method sets the specified parameter from the given Java * <code>Object</code> value. The specified SQL object type will be used. * * @param index The index of the parameter value to set. * @param value The value of the parameter. * @param type The SQL type to use for the parameter, from <code>Types</code> * @param scale The scale of the value, for numeric values only. * @exception SQLException If an error occurs. * @see Types */ public void setObject(int parameterIndex, Object x, int targetSqlType, int scale) throws SQLException; /** * This method sets the specified parameter from the given Java * <code>Object</code> value. The specified SQL object type will be used. * * @param index The index of the parameter value to set. * @param value The value of the parameter. * @param type The SQL type to use for the parameter, from <code>Types</code> * @exception SQLException If an error occurs. * @see Types */ public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException; /** * This method sets the specified parameter from the given Java * <code>Object</code> value. The default object type to SQL type mapping * will be used. * * @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 setObject(int parameterIndex, Object x) throws SQLException; /** * This method executes a prepared SQL query. * Some prepared statements return multiple results; the execute method * handles these complex statements as well as the simpler form of * statements handled by executeQuery and executeUpdate. * * @return The result of the SQL statement. * @exception SQLException If an error occurs. */ public boolean execute() throws SQLException; /** * This method adds a set of parameters to the batch for JDBC 2.0. * @exception SQLException If an error occurs. */ public void addBatch() throws SQLException; /** * This method sets the specified parameter from the given Java * character <code>Reader</code> value. * * @param index The index of the parameter value to set. * @param value The value of the parameter. * @param length The number of bytes in the stream. * @exception SQLException If an error occurs. */ public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException; /** * This method sets the specified parameter from the given Java * <code>Ref</code> value. The default object type to SQL type mapping * will be used. * * @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 setRef(int i, Ref x) throws SQLException; /** * This method sets the specified parameter from the given Java * <code>Blob</code> value. The default object type to SQL type mapping * will be used. * * @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 setBlob(int i, Blob x) throws SQLException; /** * This method sets the specified parameter from the given Java * <code>Clob</code> value. The default object type to SQL type mapping * will be used. * * @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 setClob(int i, Clob x) throws SQLException; /** * This method sets the specified parameter from the given Java * <code>Array</code> value. The default object type to SQL type mapping * will be used. * * @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 setArray(int i, Array x) throws SQLException; /** * This method returns meta data for the result set from this statement. * * @return Meta data for the result set from this statement. * @exception SQLException If an error occurs. */ public ResultSetMetaData getMetaData() 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. * @param calendar The <code>Calendar</code> to use for timezone and locale. * @exception SQLException If an error occurs. */ public void setDate(int parameterIndex, Date x, Calendar cal) 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. * @param calendar The <code>Calendar</code> to use for timezone and locale. * @exception SQLException If an error occurs. */ public void setTime(int parameterIndex, Time x, Calendar cal) 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. * @param calendar The <code>Calendar</code> to use for timezone and locale. * @exception SQLException If an error occurs. */ public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) 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> * @param name The name of the data type, for user defined types. * @exception SQLException If an error occurs. */ public void setNull(int paramIndex, int sqlType, String typeName) throws SQLException; /** * @since 1.4 */ public void setURL(int parameterIndex, URL x) throws SQLException; /** * @since 1.4 */ public ParameterMetaData getParameterMetaData() throws SQLException;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -