📄 callablestatement.java
字号:
* @exception SQLException if a database access error occurs * @since 1.4 */ void setNull (String parameterName, int sqlType, String typeName) throws SQLException; /** * Retrieves the value of a JDBC <code>CHAR</code>, <code>VARCHAR</code>, * or <code>LONGVARCHAR</code> parameter as a <code>String</code> in * the Java programming language. * <p> * For the fixed-length type JDBC <code>CHAR</code>, * the <code>String</code> object * returned has exactly the same value the JDBC * <code>CHAR</code> value had in the * database, including any padding added by the database. * @param parameterName the name of the parameter * @return the parameter value. If the value is SQL <code>NULL</code>, the result * is <code>null</code>. * @exception SQLException if a database access error occurs * @see #setString * @since 1.4 */ String getString(String parameterName) throws SQLException; /** * Retrieves the value of a JDBC <code>BIT</code> parameter as a * <code>boolean</code> in the Java programming language. * @param parameterName the name of the parameter * @return the parameter value. If the value is SQL <code>NULL</code>, the result * is <code>false</code>. * @exception SQLException if a database access error occurs * @see #setBoolean * @since 1.4 */ boolean getBoolean(String parameterName) throws SQLException; /** * Retrieves the value of a JDBC <code>TINYINT</code> parameter as a <code>byte</code> * in the Java programming language. * @param parameterName the name of the parameter * @return the parameter value. If the value is SQL <code>NULL</code>, the result * is <code>0</code>. * @exception SQLException if a database access error occurs * @see #setByte * @since 1.4 */ byte getByte(String parameterName) throws SQLException; /** * Retrieves the value of a JDBC <code>SMALLINT</code> parameter as a <code>short</code> * in the Java programming language. * @param parameterName the name of the parameter * @return the parameter value. If the value is SQL <code>NULL</code>, the result * is <code>0</code>. * @exception SQLException if a database access error occurs * @see #setShort * @since 1.4 */ short getShort(String parameterName) throws SQLException; /** * Retrieves the value of a JDBC <code>INTEGER</code> parameter as an <code>int</code> * in the Java programming language. * * @param parameterName the name of the parameter * @return the parameter value. If the value is SQL <code>NULL</code>, * the result is <code>0</code>. * @exception SQLException if a database access error occurs * @see #setInt * @since 1.4 */ int getInt(String parameterName) throws SQLException; /** * Retrieves the value of a JDBC <code>BIGINT</code> parameter as a <code>long</code> * in the Java programming language. * * @param parameterName the name of the parameter * @return the parameter value. If the value is SQL <code>NULL</code>, * the result is <code>0</code>. * @exception SQLException if a database access error occurs * @see #setLong * @since 1.4 */ long getLong(String parameterName) throws SQLException; /** * Retrieves the value of a JDBC <code>FLOAT</code> parameter as a <code>float</code> * in the Java programming language. * @param parameterName the name of the parameter * @return the parameter value. If the value is SQL <code>NULL</code>, * the result is <code>0</code>. * @exception SQLException if a database access error occurs * @see #setFloat * @since 1.4 */ float getFloat(String parameterName) throws SQLException; /** * Retrieves the value of a JDBC <code>DOUBLE</code> parameter as a <code>double</code> * in the Java programming language. * @param parameterName the name of the parameter * @return the parameter value. If the value is SQL <code>NULL</code>, * the result is <code>0</code>. * @exception SQLException if a database access error occurs * @see #setDouble * @since 1.4 */ double getDouble(String parameterName) throws SQLException; /** * Retrieves the value of a JDBC <code>BINARY</code> or <code>VARBINARY</code> * parameter as an array of <code>byte</code> values in the Java * programming language. * @param parameterName the name of the parameter * @return the parameter value. If the value is SQL <code>NULL</code>, the result is * <code>null</code>. * @exception SQLException if a database access error occurs * @see #setBytes * @since 1.4 */ byte[] getBytes(String parameterName) throws SQLException; /** * Retrieves the value of a JDBC <code>DATE</code> parameter as a * <code>java.sql.Date</code> object. * @param parameterName the name of the parameter * @return the parameter value. If the value is SQL <code>NULL</code>, the result * is <code>null</code>. * @exception SQLException if a database access error occurs * @see #setDate * @since 1.4 */ java.sql.Date getDate(String parameterName) throws SQLException; /** * Retrieves the value of a JDBC <code>TIME</code> parameter as a * <code>java.sql.Time</code> object. * @param parameterName the name of the parameter * @return the parameter value. If the value is SQL <code>NULL</code>, the result * is <code>null</code>. * @exception SQLException if a database access error occurs * @see #setTime * @since 1.4 */ java.sql.Time getTime(String parameterName) throws SQLException; /** * Retrieves the value of a JDBC <code>TIMESTAMP</code> parameter as a * <code>java.sql.Timestamp</code> object. * @param parameterName the name of the parameter * @return the parameter value. If the value is SQL <code>NULL</code>, the result * is <code>null</code>. * @exception SQLException if a database access error occurs * @see #setTimestamp * @since 1.4 */ java.sql.Timestamp getTimestamp(String parameterName) throws SQLException; /** * Retrieves the value of a parameter as an <code>Object</code> in the Java * programming language. If the value is an SQL <code>NULL</code>, the * driver returns a Java <code>null</code>. * <p> * This method returns a Java object whose type corresponds to the JDBC * type that was registered for this parameter using the method * <code>registerOutParameter</code>. By registering the target JDBC * type as <code>java.sql.Types.OTHER</code>, this method can be used * to read database-specific abstract data types. * @param parameterName the name of the parameter * @return A <code>java.lang.Object</code> holding the OUT parameter value. * @exception SQLException if a database access error occurs * @see Types * @see #setObject * @since 1.4 */ Object getObject(String parameterName) throws SQLException; /** * Retrieves the value of a JDBC <code>NUMERIC</code> parameter as a * <code>java.math.BigDecimal</code> object with as many digits to the * right of the decimal point as the value contains. * @param parameterName the name of the parameter * @return the parameter value in full precision. If the value is * SQL <code>NULL</code>, the result is <code>null</code>. * @exception SQLException if a database access error occurs * @see #setBigDecimal * @since 1.4 */ BigDecimal getBigDecimal(String parameterName) throws SQLException; /** * Returns an object representing the value of OUT parameter * <code>i</code> and uses <code>map</code> for the custom * mapping of the parameter value. * <p> * This method returns a Java object whose type corresponds to the * JDBC type that was registered for this parameter using the method * <code>registerOutParameter</code>. By registering the target * JDBC type as <code>java.sql.Types.OTHER</code>, this method can * be used to read database-specific abstract data types. * @param parameterName the name of the parameter * @param map the mapping from SQL type names to Java classes * @return a <code>java.lang.Object</code> holding the OUT parameter value * @exception SQLException if a database access error occurs * @see #setObject * @since 1.4 */ Object getObject (String parameterName, java.util.Map map) throws SQLException; /** * Retrieves the value of a JDBC <code>REF(<structured-type>)</code> * parameter as a {@link Ref} object in the Java programming language. * * @param parameterName the name of the parameter * @return the parameter value as a <code>Ref</code> object in the * Java programming language. If the value was SQL <code>NULL</code>, * the value <code>null</code> is returned. * @exception SQLException if a database access error occurs * @since 1.4 */ Ref getRef (String parameterName) throws SQLException; /** * Retrieves the value of a JDBC <code>BLOB</code> parameter as a * {@link Blob} object in the Java programming language. * * @param parameterName the name of the parameter * @return the parameter value as a <code>Blob</code> object in the * Java programming language. If the value was SQL <code>NULL</code>, * the value <code>null</code> is returned. * @exception SQLException if a database access error occurs * @since 1.4 */ Blob getBlob (String parameterName) throws SQLException; /** * Retrieves the value of a JDBC <code>CLOB</code> parameter as a * <code>Clob</code> object in the Java programming language. * @param parameterName the name of the parameter * @return the parameter value as a <code>Clob</code> object in the * Java programming language. If the value was SQL <code>NULL</code>, * the value <code>null</code> is returned. * @exception SQLException if a database access error occurs * @since 1.4 */ Clob getClob (String parameterName) throws SQLException; /** * Retrieves the value of a JDBC <code>ARRAY</code> parameter as an * {@link Array} object in the Java programming language. * * @param parameterName the name of the parameter * @return the parameter value as an <code>Array</code> object in * Java programming language. If the value was SQL <code>NULL</code>, * the value <code>null</code> is returned. * @exception SQLException if a database access error occurs * @since 1.4 */ Array getArray (String parameterName) throws SQLException; /** * Retrieves the value of a JDBC <code>DATE</code> parameter as a * <code>java.sql.Date</code> object, using * the given <code>Calendar</code> object * to construct the date. * With a <code>Calendar</code> object, the driver * can calculate the date taking into account a custom timezone and locale. * If no <code>Calendar</code> object is specified, the driver uses the * default timezone and locale. * * @param parameterName the name of the parameter * @param cal the <code>Calendar</code> object the driver will use * to construct the date * @return the parameter value. If the value is SQL <code>NULL</code>, * the result is <code>null</code>. * @exception SQLException if a database access error occurs * @see #setDate * @since 1.4 */ java.sql.Date getDate(String parameterName, Calendar cal) throws SQLException; /** * Retrieves the value of a JDBC <code>TIME</code> parameter as a * <code>java.sql.Time</code> object, using * the given <code>Calendar</code> object * to construct the time. * With a <code>Calendar</code> object, the driver * can calculate the time taking into account a custom timezone and locale. * If no <code>Calendar</code> object is specified, the driver uses the * default timezone and locale. * * @param parameterName the name of the parameter * @param cal the <code>Calendar</code> object the driver will use * to construct the time * @return the parameter value; if the value is SQL <code>NULL</code>, the result is * <code>null</code>. * @exception SQLException if a database access error occurs * @see #setTime * @since 1.4 */ java.sql.Time getTime(String parameterName, Calendar cal) throws SQLException; /** * Retrieves the value of a JDBC <code>TIMESTAMP</code> parameter as a * <code>java.sql.Timestamp</code> object, using * the given <code>Calendar</code> object to construct * the <code>Timestamp</code> object. * With a <code>Calendar</code> object, the driver * can calculate the timestamp taking into account a custom timezone and locale. * If no <code>Calendar</code> object is specified, the driver uses the * default timezone and locale. * * * @param parameterName the name of the parameter * @param cal the <code>Calendar</code> object the driver will use * to construct the timestamp * @return the parameter value. If the value is SQL <code>NULL</code>, the result is * <code>null</code>. * @exception SQLException if a database access error occurs * @see #setTimestamp * @since 1.4 */ java.sql.Timestamp getTimestamp(String parameterName, Calendar cal) throws SQLException; /** * Retrieves the value of a JDBC <code>DATALINK</code> parameter as a * <code>java.net.URL</code> object. * * @param parameterName the name of the parameter * @return the parameter value as a <code>java.net.URL</code> object in the * Java programming language. If the value was SQL <code>NULL</code>, the * value <code>null</code> is returned. * @exception SQLException if a database access error occurs, * or if there is a problem with the URL * @see #setURL * @since 1.4 */ java.net.URL getURL(String parameterName) throws SQLException;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -