📄 jdbccallablestatement.java
字号:
* <code>parameterIndex</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. <p> * <!-- end generic documentation --> * * <!-- start release-specific documentation --> * <div class="ReleaseSpecificDocumentation"> * <h3>HSQLDB-Specific Information:</h3> <p> * * HSQLDB 1.7.2 does not support this feature. <p> * * Calling this method always throws an <code>SQLException</code>. * </div> * <!-- end release-specific documentation --> * * @param parameterIndex the first parameter is 1, the second is 2, and so on * @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 JDK 1.2 (JDK 1.1.x developers: read the new overview for * jdbcPreparedStatement) *///#ifdef JAVA2 public Object getObject(int parameterIndex, Map map) throws SQLException { throw Util.notSupported(); }//#endif JAVA2 /** * <!-- start generic documentation --> * Retrieves the value of the designated JDBC * <code>REF(<structured-type>)</code> parameter as a * {@link java.sql.Ref} object in the Java programming language. <p> * <!-- end generic documentation --> * * <!-- start release-specific documentation --> * <div class="ReleaseSpecificDocumentation"> * <h3>HSQLDB-Specific Information:</h3> <p> * * HSQLDB 1.7.2 does not support this feature. <p> * * Calling this method always throws an <code>SQLException</code>. * </div> * <!-- end release-specific documentation --> * * @param parameterIndex the first parameter is 1, the second is 2, * and so on * @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 JDK 1.2 (JDK 1.1.x developers: read the new overview for * jdbcPreparedStatement) *///#ifdef JAVA2 public Ref getRef(int parameterIndex) throws SQLException { throw Util.notSupported(); }//#endif JAVA2 /** * <!-- start generic documentation --> * Retrieves the value of the designated JDBC <code>BLOB</code> * parameter as a {@link java.sql.Blob} object in the Java * programming language. <p> * <!-- end generic documentation --> * * <!-- start release-specific documentation --> * <div class="ReleaseSpecificDocumentation"> * <h3>HSQLDB-Specific Information:</h3> <p> * * HSQLDB 1.7.2 does not support this feature. <p> * * Calling this method always throws an <code>SQLException</code>. * </div> * <!-- end release-specific documentation --> * * @param parameterIndex the first parameter is 1, the second is 2, * and so on * @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 JDK 1.2 (JDK 1.1.x developers: read the new overview for * jdbcPreparedStatement) *///#ifdef JAVA2 public Blob getBlob(int parameterIndex) throws SQLException { throw Util.notSupported(); }//#endif JAVA2 /** * <!-- start generic documentation --> * Retrieves the value of the designated JDBC <code>CLOB</code> * parameter as a {@link java.sql.Clob} object in the Java programming * language. <p> * <!-- end generic documentation --> * * <!-- start release-specific documentation --> * <div class="ReleaseSpecificDocumentation"> * <h3>HSQLDB-Specific Information:</h3> <p> * * HSQLDB 1.7.2 does not support this feature. <p> * * Calling this method always throws an <code>SQLException</code>. * </div> * <!-- end release-specific documentation --> * * @param parameterIndex the first parameter is 1, the second is 2, and * so on * @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 JDK 1.2 (JDK 1.1.x developers: read the new overview for * jdbcPreparedStatement) *///#ifdef JAVA2 public Clob getClob(int parameterIndex) throws SQLException { throw Util.notSupported(); }//#endif JAVA2 /** * <!-- start generic documentation --> * Retrieves the value of the designated JDBC <code>ARRAY</code> * parameter as an {@link java.sql.Array} object in the Java programming * language. <p> * <!-- end generic documentation --> * * <!-- start release-specific documentation --> * <div class="ReleaseSpecificDocumentation"> * <h3>HSQLDB-Specific Information:</h3> <p> * * HSQLDB 1.7.2 does not support this feature. <p> * * Calling this method always throws an <code>SQLException</code>. * </div> * <!-- end release-specific documentation --> * * @param parameterIndex the first parameter is 1, the second is 2, and * so on * @return the parameter value as an <code>Array</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 JDK 1.2 (JDK 1.1.x developers: read the new overview for * jdbcPreparedStatement) *///#ifdef JAVA2 public Array getArray(int parameterIndex) throws SQLException { throw Util.notSupported(); }//#endif JAVA2 /** * <!-- start generic documentation --> * Retrieves the value of the designated 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. <p> * <!-- end generic documentation --> * * <!-- start release-specific documentation --> * <div class="ReleaseSpecificDocumentation"> * <h3>HSQLDB-Specific Information:</h3> <p> * * HSQLDB 1.7.2 does not support this feature. <p> * * Calling this method always throws an <code>SQLException</code>. * </div> * <!-- end release-specific documentation --> * * @param parameterIndex the first parameter is 1, the second is 2, * and so on * @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 JDK 1.2 (JDK 1.1.x developers: read the new overview for * jdbcPreparedStatement) */ public Date getDate(int parameterIndex, Calendar cal) throws SQLException { throw Util.notSupported();// try {// return HsqlDateTime.getDate(getString(parameterIndex), cal);// } catch (Exception e) {// throw Util.sqlException(Trace.INVALID_ESCAPE,// e.getMessage());// } } /** * <!-- start generic documentation --> * Retrieves the value of the designated 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. <p> * <!-- end generic documentation --> * * <!-- start release-specific documentation --> * <div class="ReleaseSpecificDocumentation"> * <h3>HSQLDB-Specific Information:</h3> <p> * * HSQLDB 1.7.2 does not support this feature. <p> * * Calling this method always throws an <code>SQLException</code>. * </div> * <!-- end release-specific documentation --> * * @param parameterIndex the first parameter is 1, the second is 2, * and so on * @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 JDK 1.2 (JDK 1.1.x developers: read the new overview for * jdbcPreparedStatement) */ public Time getTime(int parameterIndex, Calendar cal) throws SQLException { throw Util.notSupported();// try {// return HsqlDateTime.getTime(getString(parameterIndex), cal);// } catch (Exception e) {// throw Util.sqlException(Trace.INVALID_ESCAPE,// e.getMessage());// } } /** * <!-- start generic documentation --> * Retrieves the value of the designated 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. <p> * <!-- end generic documentation --> * * <!-- start release-specific documentation --> * <div class="ReleaseSpecificDocumentation"> * <h3>HSQLDB-Specific Information:</h3> <p> * * HSQLDB 1.7.2 does not support this feature. <p> * * Calling this method always throws an <code>SQLException</code>. * </div> * <!-- end release-specific documentation --> * * @param parameterIndex the first parameter is 1, the second is 2, * and so on * @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 JDK 1.2 (JDK 1.1.x developers: read the new overview for * jdbcPreparedStatement) */ public Timestamp getTimestamp(int parameterIndex, Calendar cal) throws SQLException { throw Util.notSupported();// try {// return HsqlDateTime.getTimestamp(getString(parameterIndex), cal);// } catch (Exception e) {// throw Util.sqlException(Trace.INVALID_ESCAPE,// e.getMessage());// } } /** * <!-- start generic documentation --> * Registers the designated output parameter. This version of * the method <code>registerOutParameter</code> * should be used for a user-defined or <code>REF</code> output parameter. * Examples of user-defined types include: <code>STRUCT</code>, * <code>DISTINCT</code>, <code>JAVA_OBJECT</code>, and named array types. * <p> * (JDBC4 claraification:) All OUT parameters must be registered * before a stored procedure is executed. * <p> For a user-defined parameter, the fully-qualified SQL * type name of the parameter should also be given, while a * <code>REF</code> parameter requires that the fully-qualified type name * of the referenced type be given. A JDBC driver that does not need the * type code and type name information may ignore it. To be portable, * however, applications should always provide these values for * user-defined and <code>REF</code> parameters. * * Although it is intended for user-defined and <code>REF</code> parameters, * this method may be used to register a parameter of any JDBC type. * If the parameter does not have a user-defined or <code>REF</code> type, * the <i>typeName</i> parameter is ignored. * * <P><B>Note:</B> When reading the value of an out parameter, you * must use the getter method whose Java type corresponds to the * parameter's registered SQL type. <p> * <!-- end generic documentation -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -