src/java.sql/share/classes/java/sql/CallableStatement.java
author herrick
Wed, 20 Nov 2019 10:17:37 -0500
branchJDK-8200758-branch
changeset 59160 e90068e7afa1
parent 47216 71c04702a3d5
permissions -rw-r--r--
JDK-8234402: revert change that stopped providing JPackageToolProvider Reviewed-by: asemenyuk, almatvee, kcr
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
41889
54d1ff9312ce 8169020: Add since element to JDBC deprecated methods
lancea
parents: 37880
diff changeset
     2
 * Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package java.sql;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.math.BigDecimal;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.util.Calendar;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.io.Reader;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.io.InputStream;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * The interface used to execute SQL stored procedures.  The JDBC API
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * provides a stored procedure SQL escape syntax that allows stored procedures
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * to be called in a standard way for all RDBMSs. This escape syntax has one
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * form that includes a result parameter and one that does not. If used, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * parameter must be registered as an OUT parameter. The other parameters
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * can be used for input, output or both. Parameters are referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * sequentially, by number, with the first parameter being 1.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * <PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 *   {?= call &lt;procedure-name&gt;[(&lt;arg1&gt;,&lt;arg2&gt;, ...)]}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 *   {call &lt;procedure-name&gt;[(&lt;arg1&gt;,&lt;arg2&gt;, ...)]}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * </PRE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * IN parameter values are set using the <code>set</code> methods inherited from
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * {@link PreparedStatement}.  The type of all OUT parameters must be
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * registered prior to executing the stored procedure; their values
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 * are retrieved after execution via the <code>get</code> methods provided here.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 * A <code>CallableStatement</code> can return one {@link ResultSet} object or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 * multiple <code>ResultSet</code> objects.  Multiple
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 * <code>ResultSet</code> objects are handled using operations
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * inherited from {@link Statement}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 * For maximum portability, a call's <code>ResultSet</code> objects and
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 * update counts should be processed prior to getting the values of output
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 * parameters.
20880
1b610151b316 8026812: doclint clean up for java.sql and javax.sql
lancea
parents: 18564
diff changeset
    59
 *
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 * @see Connection#prepareCall
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
 * @see ResultSet
44256
12050b22e372 8176721: @since value errors java.sql module
mli
parents: 41889
diff changeset
    63
 * @since 1.1
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
public interface CallableStatement extends PreparedStatement {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
     * Registers the OUT parameter in ordinal position
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
     * <code>parameterIndex</code> to the JDBC type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     * <code>sqlType</code>.  All OUT parameters must be registered
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
     * before a stored procedure is executed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
     * The JDBC type specified by <code>sqlType</code> for an OUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
     * parameter determines the Java type that must be used
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
     * in the <code>get</code> method to read the value of that parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
     * If the JDBC type expected to be returned to this output parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
     * is specific to this particular database, <code>sqlType</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
     * should be <code>java.sql.Types.OTHER</code>.  The method
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     * {@link #getObject} retrieves the value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     *        and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     * @param sqlType the JDBC type code defined by <code>java.sql.Types</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     *        If the parameter is of JDBC type <code>NUMERIC</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     *        or <code>DECIMAL</code>, the version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     *        <code>registerOutParameter</code> that accepts a scale value
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     *        should be used.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     * @exception SQLFeatureNotSupportedException if <code>sqlType</code> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
     * a <code>ARRAY</code>, <code>BLOB</code>, <code>CLOB</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
     * <code>DATALINK</code>, <code>JAVA_OBJECT</code>, <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     * <code>NCLOB</code>, <code>NVARCHAR</code>, <code>LONGNVARCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
     *  <code>REF</code>, <code>ROWID</code>, <code>SQLXML</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
     * or  <code>STRUCT</code> data type and the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
     * this data type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     * @see Types
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
    void registerOutParameter(int parameterIndex, int sqlType)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
     * Registers the parameter in ordinal position
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
     * <code>parameterIndex</code> to be of JDBC type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
     * <code>sqlType</code>. All OUT parameters must be registered
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     * before a stored procedure is executed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
     * The JDBC type specified by <code>sqlType</code> for an OUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     * parameter determines the Java type that must be used
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     * in the <code>get</code> method to read the value of that parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
     * This version of <code>registerOutParameter</code> should be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
     * used when the parameter is of JDBC type <code>NUMERIC</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
     * or <code>DECIMAL</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     * and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
     * @param sqlType the SQL type code defined by <code>java.sql.Types</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     * @param scale the desired number of digits to the right of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     * decimal point.  It must be greater than or equal to zero.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     * @exception SQLFeatureNotSupportedException if <code>sqlType</code> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     * a <code>ARRAY</code>, <code>BLOB</code>, <code>CLOB</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     * <code>DATALINK</code>, <code>JAVA_OBJECT</code>, <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     * <code>NCLOB</code>, <code>NVARCHAR</code>, <code>LONGNVARCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     *  <code>REF</code>, <code>ROWID</code>, <code>SQLXML</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     * or  <code>STRUCT</code> data type and the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     * this data type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     * @see Types
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    void registerOutParameter(int parameterIndex, int sqlType, int scale)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     * Retrieves whether the last OUT parameter read had the value of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     * SQL <code>NULL</code>.  Note that this method should be called only after
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     * calling a getter method; otherwise, there is no value to use in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     * determining whether it is <code>null</code> or not.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     * @return <code>true</code> if the last parameter read was SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     * <code>NULL</code>; <code>false</code> otherwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     * @exception SQLException if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
    boolean wasNull() throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     * Retrieves the value of the designated JDBC <code>CHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     * <code>VARCHAR</code>, or <code>LONGVARCHAR</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * <code>String</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     * For the fixed-length type JDBC <code>CHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     * the <code>String</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     * returned has exactly the same value the SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     * <code>CHAR</code> value had in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
     * database, including any padding added by the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
     * and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
     * @return the parameter value. If the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
     *         the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
     *         is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     * @see #setString
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
    String getString(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     * Retrieves the value of the designated JDBC <code>BIT</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     * or <code>BOOLEAN</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     * <code>boolean</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     *        and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     * @return the parameter value.  If the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     *         the result is <code>false</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     * @see #setBoolean
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
    boolean getBoolean(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     * Retrieves the value of the designated JDBC <code>TINYINT</code> parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
     * as a <code>byte</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     * and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     * is <code>0</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     * @see #setByte
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
    byte getByte(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
     * Retrieves the value of the designated JDBC <code>SMALLINT</code> parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
     * as a <code>short</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     * and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     * is <code>0</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     * @see #setShort
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
    short getShort(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
     * Retrieves the value of the designated JDBC <code>INTEGER</code> parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
     * as an <code>int</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
     * and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
     * is <code>0</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
     * @see #setInt
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
    int getInt(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
     * Retrieves the value of the designated JDBC <code>BIGINT</code> parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
     * as a <code>long</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
     * and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
     * is <code>0</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
     * @see #setLong
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
    long getLong(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
     * Retrieves the value of the designated JDBC <code>FLOAT</code> parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
     * as a <code>float</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
     *        and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
     *         is <code>0</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
     * @see #setFloat
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
    float getFloat(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
     * Retrieves the value of the designated JDBC <code>DOUBLE</code> parameter as a <code>double</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
     *        and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
     *         is <code>0</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
     * @see #setDouble
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
    double getDouble(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
     * Retrieves the value of the designated JDBC <code>NUMERIC</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
     * <code>java.math.BigDecimal</code> object with <i>scale</i> digits to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
     * the right of the decimal point.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
     *        and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
     * @param scale the number of digits to the right of the decimal point
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
     *         is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
     * @deprecated use <code>getBigDecimal(int parameterIndex)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
     *             or <code>getBigDecimal(String parameterName)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
     * @see #setBigDecimal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
     */
41889
54d1ff9312ce 8169020: Add since element to JDBC deprecated methods
lancea
parents: 37880
diff changeset
   299
    @Deprecated(since="1.2")
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
    BigDecimal getBigDecimal(int parameterIndex, int scale)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
     * Retrieves the value of the designated JDBC <code>BINARY</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
     * <code>VARBINARY</code> parameter as an array of <code>byte</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
     * values in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
     *        and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
     *         is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
     * @see #setBytes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
    byte[] getBytes(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
     * Retrieves the value of the designated JDBC <code>DATE</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
     * <code>java.sql.Date</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
     *        and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
     *         is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
     * @see #setDate
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
    java.sql.Date getDate(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
     * Retrieves the value of the designated JDBC <code>TIME</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
     * <code>java.sql.Time</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
     *        and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
     *         is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
     * @see #setTime
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
    java.sql.Time getTime(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
     * Retrieves the value of the designated JDBC <code>TIMESTAMP</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
     * <code>java.sql.Timestamp</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
     *        and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
     *         is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
     * @see #setTimestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
    java.sql.Timestamp getTimestamp(int parameterIndex)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
    //----------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
    // Advanced features:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
     * Retrieves the value of the designated parameter as an <code>Object</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
     * in the Java programming language. If the value is an SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
     * the driver returns a Java <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
     * This method returns a Java object whose type corresponds to the JDBC
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
     * type that was registered for this parameter using the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
     * <code>registerOutParameter</code>.  By registering the target JDBC
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
     * type as <code>java.sql.Types.OTHER</code>, this method can be used
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
     * to read database-specific abstract data types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
     *        and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
     * @return A <code>java.lang.Object</code> holding the OUT parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
     * @see Types
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
     * @see #setObject
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
    Object getObject(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
    //--------------------------JDBC 2.0-----------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
     * Retrieves the value of the designated JDBC <code>NUMERIC</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
     * <code>java.math.BigDecimal</code> object with as many digits to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
     * right of the decimal point as the value contains.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
     * and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
     * @return the parameter value in full precision.  If the value is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
     * SQL <code>NULL</code>, the result is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
     * @see #setBigDecimal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
    BigDecimal getBigDecimal(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
     * Returns an object representing the value of OUT parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
     * <code>parameterIndex</code> and uses <code>map</code> for the custom
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
     * mapping of the parameter value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
     * This method returns a Java object whose type corresponds to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
     * JDBC type that was registered for this parameter using the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
     * <code>registerOutParameter</code>.  By registering the target
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
     * JDBC type as <code>java.sql.Types.OTHER</code>, this method can
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
     * be used to read database-specific abstract data types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
     * @param parameterIndex the first parameter is 1, the second is 2, and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
     * @param map the mapping from SQL type names to Java classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
     * @return a <code>java.lang.Object</code> holding the OUT parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
     * @see #setObject
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
    Object getObject(int parameterIndex, java.util.Map<String,Class<?>> map)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
     * Retrieves the value of the designated JDBC <code>REF(&lt;structured-type&gt;)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
     * parameter as a {@link java.sql.Ref} object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
     * and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
     * @return the parameter value as a <code>Ref</code> object in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
     * Java programming language.  If the value was SQL <code>NULL</code>, the value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
     * <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
    Ref getRef (int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
     * Retrieves the value of the designated JDBC <code>BLOB</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
     * {@link java.sql.Blob} object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
     * @param parameterIndex the first parameter is 1, the second is 2, and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
     * @return the parameter value as a <code>Blob</code> object in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
     * Java programming language.  If the value was SQL <code>NULL</code>, the value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
     * <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
    Blob getBlob (int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
     * Retrieves the value of the designated JDBC <code>CLOB</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
     * <code>java.sql.Clob</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
     * @param parameterIndex the first parameter is 1, the second is 2, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
     * so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
     * @return the parameter value as a <code>Clob</code> object in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
     * Java programming language.  If the value was SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
     * value <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
    Clob getClob (int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
     * Retrieves the value of the designated JDBC <code>ARRAY</code> parameter as an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
     * {@link java.sql.Array} object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
     * @param parameterIndex the first parameter is 1, the second is 2, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
     * so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
     * @return the parameter value as an <code>Array</code> object in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
     * the Java programming language.  If the value was SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
     * value <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
    Array getArray (int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
     * Retrieves the value of the designated JDBC <code>DATE</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
     * <code>java.sql.Date</code> object, using
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
     * the given <code>Calendar</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
     * to construct the date.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
     * With a <code>Calendar</code> object, the driver
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
     * can calculate the date taking into account a custom timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
     * If no <code>Calendar</code> object is specified, the driver uses the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
     * default timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
     * and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
     * @param cal the <code>Calendar</code> object the driver will use
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
     *            to construct the date
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
     *         is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
     * @see #setDate
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
    java.sql.Date getDate(int parameterIndex, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
     * Retrieves the value of the designated JDBC <code>TIME</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
     * <code>java.sql.Time</code> object, using
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
     * the given <code>Calendar</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
     * to construct the time.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
     * With a <code>Calendar</code> object, the driver
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
     * can calculate the time taking into account a custom timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
     * If no <code>Calendar</code> object is specified, the driver uses the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
     * default timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
     * and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
     * @param cal the <code>Calendar</code> object the driver will use
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
     *            to construct the time
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
     * @return the parameter value; if the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
     *         is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
     * @see #setTime
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
    java.sql.Time getTime(int parameterIndex, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
     * Retrieves the value of the designated JDBC <code>TIMESTAMP</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
     * <code>java.sql.Timestamp</code> object, using
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
     * the given <code>Calendar</code> object to construct
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
     * the <code>Timestamp</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
     * With a <code>Calendar</code> object, the driver
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
     * can calculate the timestamp taking into account a custom timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
     * If no <code>Calendar</code> object is specified, the driver uses the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
     * default timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
     * and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
     * @param cal the <code>Calendar</code> object the driver will use
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
     *            to construct the timestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   565
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   566
     *         is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   568
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   569
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   570
     * @see #setTimestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   571
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
    java.sql.Timestamp getTimestamp(int parameterIndex, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   575
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
     * Registers the designated output parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
     * This version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
     * the method <code>registerOutParameter</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
     * should be used for a user-defined or <code>REF</code> output parameter.  Examples
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
     * of user-defined types include: <code>STRUCT</code>, <code>DISTINCT</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
     * <code>JAVA_OBJECT</code>, and named array types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
     *<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   585
     * All OUT parameters must be registered
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
     * before a stored procedure is executed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
     * <p>  For a user-defined parameter, the fully-qualified SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
     * type name of the parameter should also be given, while a <code>REF</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
     * parameter requires that the fully-qualified type name of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
     * referenced type be given.  A JDBC driver that does not need the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
     * type code and type name information may ignore it.   To be portable,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
     * however, applications should always provide these values for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
     * user-defined and <code>REF</code> parameters.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
     * Although it is intended for user-defined and <code>REF</code> parameters,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
     * this method may be used to register a parameter of any JDBC type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   597
     * If the parameter does not have a user-defined or <code>REF</code> type, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
     * <i>typeName</i> parameter is ignored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
     * <P><B>Note:</B> When reading the value of an out parameter, you
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
     * must use the getter method whose Java type corresponds to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
     * parameter's registered SQL type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
     * @param parameterIndex the first parameter is 1, the second is 2,...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
     * @param sqlType a value from {@link java.sql.Types}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
     * @param typeName the fully-qualified name of an SQL structured type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
     * @exception SQLFeatureNotSupportedException if <code>sqlType</code> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
     * a <code>ARRAY</code>, <code>BLOB</code>, <code>CLOB</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
     * <code>DATALINK</code>, <code>JAVA_OBJECT</code>, <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
     * <code>NCLOB</code>, <code>NVARCHAR</code>, <code>LONGNVARCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
     *  <code>REF</code>, <code>ROWID</code>, <code>SQLXML</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
     * or  <code>STRUCT</code> data type and the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
     * this data type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
     * @see Types
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
    void registerOutParameter (int parameterIndex, int sqlType, String typeName)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
  //--------------------------JDBC 3.0-----------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
     * Registers the OUT parameter named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
     * <code>parameterName</code> to the JDBC type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
     * <code>sqlType</code>.  All OUT parameters must be registered
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
     * before a stored procedure is executed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
     * The JDBC type specified by <code>sqlType</code> for an OUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   632
     * parameter determines the Java type that must be used
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
     * in the <code>get</code> method to read the value of that parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
     * If the JDBC type expected to be returned to this output parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
     * is specific to this particular database, <code>sqlType</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
     * should be <code>java.sql.Types.OTHER</code>.  The method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
     * {@link #getObject} retrieves the value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
     * @param sqlType the JDBC type code defined by <code>java.sql.Types</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
     * If the parameter is of JDBC type <code>NUMERIC</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
     * or <code>DECIMAL</code>, the version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
     * <code>registerOutParameter</code> that accepts a scale value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
     * should be used.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   647
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
     * @exception SQLFeatureNotSupportedException if <code>sqlType</code> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
     * a <code>ARRAY</code>, <code>BLOB</code>, <code>CLOB</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
     * <code>DATALINK</code>, <code>JAVA_OBJECT</code>, <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
     * <code>NCLOB</code>, <code>NVARCHAR</code>, <code>LONGNVARCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
     *  <code>REF</code>, <code>ROWID</code>, <code>SQLXML</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
     * or  <code>STRUCT</code> data type and the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
     * this data type or if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   655
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
     * @see Types
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659
    void registerOutParameter(String parameterName, int sqlType)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   660
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
90ce3da70b43 Initial load
duke
parents:
diff changeset
   662
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
     * Registers the parameter named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   664
     * <code>parameterName</code> to be of JDBC type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   665
     * <code>sqlType</code>.  All OUT parameters must be registered
90ce3da70b43 Initial load
duke
parents:
diff changeset
   666
     * before a stored procedure is executed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   667
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   668
     * The JDBC type specified by <code>sqlType</code> for an OUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   669
     * parameter determines the Java type that must be used
90ce3da70b43 Initial load
duke
parents:
diff changeset
   670
     * in the <code>get</code> method to read the value of that parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   672
     * This version of <code>registerOutParameter</code> should be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   673
     * used when the parameter is of JDBC type <code>NUMERIC</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   674
     * or <code>DECIMAL</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   675
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   676
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   677
     * @param sqlType SQL type code defined by <code>java.sql.Types</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   678
     * @param scale the desired number of digits to the right of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   679
     * decimal point.  It must be greater than or equal to zero.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   680
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   681
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   682
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   683
     * @exception SQLFeatureNotSupportedException if <code>sqlType</code> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   684
     * a <code>ARRAY</code>, <code>BLOB</code>, <code>CLOB</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   685
     * <code>DATALINK</code>, <code>JAVA_OBJECT</code>, <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   686
     * <code>NCLOB</code>, <code>NVARCHAR</code>, <code>LONGNVARCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   687
     *  <code>REF</code>, <code>ROWID</code>, <code>SQLXML</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   688
     * or  <code>STRUCT</code> data type and the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   689
     * this data type or if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   690
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   691
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   692
     * @see Types
90ce3da70b43 Initial load
duke
parents:
diff changeset
   693
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   694
    void registerOutParameter(String parameterName, int sqlType, int scale)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   695
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   696
90ce3da70b43 Initial load
duke
parents:
diff changeset
   697
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   698
     * Registers the designated output parameter.  This version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   699
     * the method <code>registerOutParameter</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   700
     * should be used for a user-named or REF output parameter.  Examples
90ce3da70b43 Initial load
duke
parents:
diff changeset
   701
     * of user-named types include: STRUCT, DISTINCT, JAVA_OBJECT, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   702
     * named array types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   703
     *<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   704
     * All OUT parameters must be registered
90ce3da70b43 Initial load
duke
parents:
diff changeset
   705
     * before a stored procedure is executed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   706
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   707
     * For a user-named parameter the fully-qualified SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   708
     * type name of the parameter should also be given, while a REF
90ce3da70b43 Initial load
duke
parents:
diff changeset
   709
     * parameter requires that the fully-qualified type name of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   710
     * referenced type be given.  A JDBC driver that does not need the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   711
     * type code and type name information may ignore it.   To be portable,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   712
     * however, applications should always provide these values for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   713
     * user-named and REF parameters.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   714
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   715
     * Although it is intended for user-named and REF parameters,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   716
     * this method may be used to register a parameter of any JDBC type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   717
     * If the parameter does not have a user-named or REF type, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   718
     * typeName parameter is ignored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   719
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   720
     * <P><B>Note:</B> When reading the value of an out parameter, you
90ce3da70b43 Initial load
duke
parents:
diff changeset
   721
     * must use the <code>getXXX</code> method whose Java type XXX corresponds to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   722
     * parameter's registered SQL type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   723
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   724
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   725
     * @param sqlType a value from {@link java.sql.Types}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   726
     * @param typeName the fully-qualified name of an SQL structured type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   727
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   728
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   729
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   730
     * @exception SQLFeatureNotSupportedException if <code>sqlType</code> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   731
     * a <code>ARRAY</code>, <code>BLOB</code>, <code>CLOB</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   732
     * <code>DATALINK</code>, <code>JAVA_OBJECT</code>, <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   733
     * <code>NCLOB</code>, <code>NVARCHAR</code>, <code>LONGNVARCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   734
     *  <code>REF</code>, <code>ROWID</code>, <code>SQLXML</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   735
     * or  <code>STRUCT</code> data type and the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   736
     * this data type or if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   737
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   738
     * @see Types
90ce3da70b43 Initial load
duke
parents:
diff changeset
   739
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   740
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   741
    void registerOutParameter (String parameterName, int sqlType, String typeName)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   742
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   743
90ce3da70b43 Initial load
duke
parents:
diff changeset
   744
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   745
     * Retrieves the value of the designated JDBC <code>DATALINK</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   746
     * <code>java.net.URL</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   747
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   748
     * @param parameterIndex the first parameter is 1, the second is 2,...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   749
     * @return a <code>java.net.URL</code> object that represents the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   750
     *         JDBC <code>DATALINK</code> value used as the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
   751
     *         parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   752
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   753
     * if a database access error occurs,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   754
     * this method is called on a closed <code>CallableStatement</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   755
     *            or if the URL being returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   756
     *            not a valid URL on the Java platform
90ce3da70b43 Initial load
duke
parents:
diff changeset
   757
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   758
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   759
     * @see #setURL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   760
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   761
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   762
    java.net.URL getURL(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   763
90ce3da70b43 Initial load
duke
parents:
diff changeset
   764
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   765
     * Sets the designated parameter to the given <code>java.net.URL</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   766
     * The driver converts this to an SQL <code>DATALINK</code> value when
90ce3da70b43 Initial load
duke
parents:
diff changeset
   767
     * it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   768
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   769
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   770
     * @param val the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   771
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   772
     * parameter; if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   773
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   774
     *            or if a URL is malformed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   775
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   776
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   777
     * @see #getURL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   778
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   779
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   780
    void setURL(String parameterName, java.net.URL val) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   781
90ce3da70b43 Initial load
duke
parents:
diff changeset
   782
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   783
     * Sets the designated parameter to SQL <code>NULL</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   784
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   785
     * <P><B>Note:</B> You must specify the parameter's SQL type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   786
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   787
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   788
     * @param sqlType the SQL type code defined in <code>java.sql.Types</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   789
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   790
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   791
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   792
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   793
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   794
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   795
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   796
    void setNull(String parameterName, int sqlType) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   797
90ce3da70b43 Initial load
duke
parents:
diff changeset
   798
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   799
     * Sets the designated parameter to the given Java <code>boolean</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   800
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   801
     * to an SQL <code>BIT</code> or <code>BOOLEAN</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   802
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   803
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   804
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   805
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   806
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   807
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   808
     * @see #getBoolean
90ce3da70b43 Initial load
duke
parents:
diff changeset
   809
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   810
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   811
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   812
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   813
    void setBoolean(String parameterName, boolean x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   814
90ce3da70b43 Initial load
duke
parents:
diff changeset
   815
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   816
     * Sets the designated parameter to the given Java <code>byte</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   817
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   818
     * to an SQL <code>TINYINT</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   819
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   820
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   821
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   822
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   823
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   824
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   825
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   826
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   827
     * @see #getByte
90ce3da70b43 Initial load
duke
parents:
diff changeset
   828
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   829
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   830
    void setByte(String parameterName, byte x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   831
90ce3da70b43 Initial load
duke
parents:
diff changeset
   832
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   833
     * Sets the designated parameter to the given Java <code>short</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   834
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   835
     * to an SQL <code>SMALLINT</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   836
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   837
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   838
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   839
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   840
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   841
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   842
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   843
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   844
     * @see #getShort
90ce3da70b43 Initial load
duke
parents:
diff changeset
   845
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   846
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   847
    void setShort(String parameterName, short x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   848
90ce3da70b43 Initial load
duke
parents:
diff changeset
   849
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   850
     * Sets the designated parameter to the given Java <code>int</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   851
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   852
     * to an SQL <code>INTEGER</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   853
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   854
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   855
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   856
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   857
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   858
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   859
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   860
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   861
     * @see #getInt
90ce3da70b43 Initial load
duke
parents:
diff changeset
   862
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   863
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   864
    void setInt(String parameterName, int x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   865
90ce3da70b43 Initial load
duke
parents:
diff changeset
   866
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   867
     * Sets the designated parameter to the given Java <code>long</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   868
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   869
     * to an SQL <code>BIGINT</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   870
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   871
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   872
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   873
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   874
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   875
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   876
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   877
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   878
     * @see #getLong
90ce3da70b43 Initial load
duke
parents:
diff changeset
   879
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   880
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   881
    void setLong(String parameterName, long x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   882
90ce3da70b43 Initial load
duke
parents:
diff changeset
   883
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   884
     * Sets the designated parameter to the given Java <code>float</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   885
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   886
     * to an SQL <code>FLOAT</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   887
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   888
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   889
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   890
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   891
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   892
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   893
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   894
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   895
     * @see #getFloat
90ce3da70b43 Initial load
duke
parents:
diff changeset
   896
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   897
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   898
    void setFloat(String parameterName, float x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   899
90ce3da70b43 Initial load
duke
parents:
diff changeset
   900
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   901
     * Sets the designated parameter to the given Java <code>double</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   902
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   903
     * to an SQL <code>DOUBLE</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   904
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   905
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   906
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   907
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   908
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   909
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   910
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   911
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   912
     * @see #getDouble
90ce3da70b43 Initial load
duke
parents:
diff changeset
   913
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   914
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   915
    void setDouble(String parameterName, double x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   916
90ce3da70b43 Initial load
duke
parents:
diff changeset
   917
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   918
     * Sets the designated parameter to the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
   919
     * <code>java.math.BigDecimal</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   920
     * The driver converts this to an SQL <code>NUMERIC</code> value when
90ce3da70b43 Initial load
duke
parents:
diff changeset
   921
     * it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   922
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   923
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   924
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   925
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   926
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   927
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   928
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   929
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   930
     * @see #getBigDecimal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   931
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   932
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   933
    void setBigDecimal(String parameterName, BigDecimal x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   934
90ce3da70b43 Initial load
duke
parents:
diff changeset
   935
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   936
     * Sets the designated parameter to the given Java <code>String</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   937
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   938
     * to an SQL <code>VARCHAR</code> or <code>LONGVARCHAR</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   939
     * (depending on the argument's
90ce3da70b43 Initial load
duke
parents:
diff changeset
   940
     * size relative to the driver's limits on <code>VARCHAR</code> values)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   941
     * when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   942
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   943
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   944
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   945
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   946
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   947
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   948
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   949
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   950
     * @see #getString
90ce3da70b43 Initial load
duke
parents:
diff changeset
   951
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   952
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   953
    void setString(String parameterName, String x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   954
90ce3da70b43 Initial load
duke
parents:
diff changeset
   955
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   956
     * Sets the designated parameter to the given Java array of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   957
     * The driver converts this to an SQL <code>VARBINARY</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   958
     * <code>LONGVARBINARY</code> (depending on the argument's size relative
90ce3da70b43 Initial load
duke
parents:
diff changeset
   959
     * to the driver's limits on <code>VARBINARY</code> values) when it sends
90ce3da70b43 Initial load
duke
parents:
diff changeset
   960
     * it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   961
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   962
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   963
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   964
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   965
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   966
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   967
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   968
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   969
     * @see #getBytes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   970
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   971
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   972
    void setBytes(String parameterName, byte x[]) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   973
90ce3da70b43 Initial load
duke
parents:
diff changeset
   974
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   975
     * Sets the designated parameter to the given <code>java.sql.Date</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   976
     * using the default time zone of the virtual machine that is running
90ce3da70b43 Initial load
duke
parents:
diff changeset
   977
     * the application.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   978
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   979
     * to an SQL <code>DATE</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   980
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   981
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   982
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   983
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   984
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   985
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   986
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   987
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   988
     * @see #getDate
90ce3da70b43 Initial load
duke
parents:
diff changeset
   989
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   990
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   991
    void setDate(String parameterName, java.sql.Date x)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   992
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   993
90ce3da70b43 Initial load
duke
parents:
diff changeset
   994
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   995
     * Sets the designated parameter to the given <code>java.sql.Time</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   996
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   997
     * to an SQL <code>TIME</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   998
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   999
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1000
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1001
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1002
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1003
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1004
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1005
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1006
     * @see #getTime
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1007
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1008
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1009
    void setTime(String parameterName, java.sql.Time x)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1010
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1011
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1012
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1013
     * Sets the designated parameter to the given <code>java.sql.Timestamp</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1014
     * The driver
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1015
     * converts this to an SQL <code>TIMESTAMP</code> value when it sends it to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1016
     * database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1017
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1018
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1019
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1020
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1021
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1022
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1023
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1024
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1025
     * @see #getTimestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1026
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1027
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1028
    void setTimestamp(String parameterName, java.sql.Timestamp x)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1029
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1030
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1031
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1032
     * Sets the designated parameter to the given input stream, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1033
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1034
     * When a very large ASCII value is input to a <code>LONGVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1035
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1036
     * <code>java.io.InputStream</code>. Data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1037
     * as needed until end-of-file is reached.  The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1038
     * do any necessary conversion from ASCII to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1039
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1040
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1041
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1042
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1043
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1044
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1045
     * @param x the Java input stream that contains the ASCII parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1046
     * @param length the number of bytes in the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1047
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1048
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1049
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1050
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1051
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1052
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1053
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1054
    void setAsciiStream(String parameterName, java.io.InputStream x, int length)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1055
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1056
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1057
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1058
     * Sets the designated parameter to the given input stream, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1059
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1060
     * When a very large binary value is input to a <code>LONGVARBINARY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1061
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1062
     * <code>java.io.InputStream</code> object. The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1063
     * as needed until end-of-file is reached.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1064
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1065
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1066
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1067
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1068
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1069
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1070
     * @param x the java input stream which contains the binary parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1071
     * @param length the number of bytes in the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1072
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1073
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1074
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1075
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1076
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1077
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1078
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1079
    void setBinaryStream(String parameterName, java.io.InputStream x,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1080
                         int length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1081
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1082
    /**
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  1083
     * Sets the value of the designated parameter with the given object.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1084
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1085
     * <p>The given Java object will be converted to the given targetSqlType
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1086
     * before being sent to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1087
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1088
     * If the object has a custom mapping (is of a class implementing the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1089
     * interface <code>SQLData</code>),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1090
     * the JDBC driver should call the method <code>SQLData.writeSQL</code> to write it
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1091
     * to the SQL data stream.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1092
     * If, on the other hand, the object is of a class implementing
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1093
     * <code>Ref</code>, <code>Blob</code>, <code>Clob</code>,  <code>NClob</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1094
     *  <code>Struct</code>, <code>java.net.URL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1095
     * or <code>Array</code>, the driver should pass it to the database as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1096
     * value of the corresponding SQL type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1097
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1098
     * Note that this method may be used to pass datatabase-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1099
     * specific abstract data types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1100
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1101
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1102
     * @param x the object containing the input parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1103
     * @param targetSqlType the SQL type (as defined in java.sql.Types) to be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1104
     * sent to the database. The scale argument may further qualify this type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1105
     * @param scale for java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1106
     *          this is the number of digits after the decimal point.  For all other
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1107
     *          types, this value will be ignored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1108
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1109
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1110
     * this method is called on a closed <code>CallableStatement</code>
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  1111
     * @exception SQLFeatureNotSupportedException if
21950
db3c826749f7 8029417: JDBC 4.2 javadoc updates
lancea
parents: 21278
diff changeset
  1112
     * the JDBC driver does not support the specified targetSqlType
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1113
     * @see Types
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1114
     * @see #getObject
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1115
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1116
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1117
    void setObject(String parameterName, Object x, int targetSqlType, int scale)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1118
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1119
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1120
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1121
     * Sets the value of the designated parameter with the given object.
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  1122
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  1123
     * This method is similar to {@link #setObject(String parameterName,
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  1124
     * Object x, int targetSqlType, int scaleOrLength)},
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  1125
     * except that it assumes a scale of zero.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1126
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1127
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1128
     * @param x the object containing the input parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1129
     * @param targetSqlType the SQL type (as defined in java.sql.Types) to be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1130
     *                      sent to the database
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1131
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1132
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1133
     * this method is called on a closed <code>CallableStatement</code>
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  1134
     * @exception SQLFeatureNotSupportedException if
21950
db3c826749f7 8029417: JDBC 4.2 javadoc updates
lancea
parents: 21278
diff changeset
  1135
     * the JDBC driver does not support the specified targetSqlType
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1136
     * @see #getObject
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1137
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1138
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1139
    void setObject(String parameterName, Object x, int targetSqlType)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1140
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1141
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1142
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1143
     * Sets the value of the designated parameter with the given object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1144
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1145
     * <p>The JDBC specification specifies a standard mapping from
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1146
     * Java <code>Object</code> types to SQL types.  The given argument
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1147
     * will be converted to the corresponding SQL type before being
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1148
     * sent to the database.
25976
4de01a56e3ee 8054555: javadoc cleanup for java.sql and javax.sql
lancea
parents: 23590
diff changeset
  1149
     * <p>Note that this method may be used to pass database-
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1150
     * specific abstract data types, by using a driver-specific Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1151
     * type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1152
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1153
     * If the object is of a class implementing the interface <code>SQLData</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1154
     * the JDBC driver should call the method <code>SQLData.writeSQL</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1155
     * to write it to the SQL data stream.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1156
     * If, on the other hand, the object is of a class implementing
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1157
     * <code>Ref</code>, <code>Blob</code>, <code>Clob</code>,  <code>NClob</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1158
     *  <code>Struct</code>, <code>java.net.URL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1159
     * or <code>Array</code>, the driver should pass it to the database as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1160
     * value of the corresponding SQL type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1161
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1162
     * This method throws an exception if there is an ambiguity, for example, if the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1163
     * object is of a class implementing more than one of the interfaces named above.
23590
ffd8b0b70511 8038493: Tidy warnings cleanup for java.sql
yan
parents: 21950
diff changeset
  1164
     * <p>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1165
     *<b>Note:</b> Not all databases allow for a non-typed Null to be sent to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1166
     * the backend. For maximum portability, the <code>setNull</code> or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1167
     * <code>setObject(String parameterName, Object x, int sqlType)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1168
     * method should be used
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1169
     * instead of <code>setObject(String parameterName, Object x)</code>.
23590
ffd8b0b70511 8038493: Tidy warnings cleanup for java.sql
yan
parents: 21950
diff changeset
  1170
     *
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1171
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1172
     * @param x the object containing the input parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1173
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1174
     * parameter; if a database access error occurs,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1175
     * this method is called on a closed <code>CallableStatement</code> or if the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1176
     *            <code>Object</code> parameter is ambiguous
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1177
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1178
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1179
     * @see #getObject
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1180
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1181
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1182
    void setObject(String parameterName, Object x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1183
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1184
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1185
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1186
     * Sets the designated parameter to the given <code>Reader</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1187
     * object, which is the given number of characters long.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1188
     * When a very large UNICODE value is input to a <code>LONGVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1189
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1190
     * <code>java.io.Reader</code> object. The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1191
     * as needed until end-of-file is reached.  The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1192
     * do any necessary conversion from UNICODE to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1193
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1194
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1195
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1196
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1197
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1198
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1199
     * @param reader the <code>java.io.Reader</code> object that
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1200
     *        contains the UNICODE data used as the designated parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1201
     * @param length the number of characters in the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1202
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1203
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1204
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1205
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1206
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1207
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1208
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1209
    void setCharacterStream(String parameterName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1210
                            java.io.Reader reader,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1211
                            int length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1212
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1213
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1214
     * Sets the designated parameter to the given <code>java.sql.Date</code> value,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1215
     * using the given <code>Calendar</code> object.  The driver uses
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1216
     * the <code>Calendar</code> object to construct an SQL <code>DATE</code> value,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1217
     * which the driver then sends to the database.  With a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1218
     * a <code>Calendar</code> object, the driver can calculate the date
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1219
     * taking into account a custom timezone.  If no
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1220
     * <code>Calendar</code> object is specified, the driver uses the default
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1221
     * timezone, which is that of the virtual machine running the application.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1222
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1223
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1224
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1225
     * @param cal the <code>Calendar</code> object the driver will use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1226
     *            to construct the date
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1227
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1228
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1229
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1230
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1231
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1232
     * @see #getDate
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1233
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1234
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1235
    void setDate(String parameterName, java.sql.Date x, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1236
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1237
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1238
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1239
     * Sets the designated parameter to the given <code>java.sql.Time</code> value,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1240
     * using the given <code>Calendar</code> object.  The driver uses
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1241
     * the <code>Calendar</code> object to construct an SQL <code>TIME</code> value,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1242
     * which the driver then sends to the database.  With a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1243
     * a <code>Calendar</code> object, the driver can calculate the time
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1244
     * taking into account a custom timezone.  If no
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1245
     * <code>Calendar</code> object is specified, the driver uses the default
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1246
     * timezone, which is that of the virtual machine running the application.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1247
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1248
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1249
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1250
     * @param cal the <code>Calendar</code> object the driver will use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1251
     *            to construct the time
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1252
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1253
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1254
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1255
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1256
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1257
     * @see #getTime
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1258
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1259
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1260
    void setTime(String parameterName, java.sql.Time x, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1261
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1262
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1263
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1264
     * Sets the designated parameter to the given <code>java.sql.Timestamp</code> value,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1265
     * using the given <code>Calendar</code> object.  The driver uses
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1266
     * the <code>Calendar</code> object to construct an SQL <code>TIMESTAMP</code> value,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1267
     * which the driver then sends to the database.  With a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1268
     * a <code>Calendar</code> object, the driver can calculate the timestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1269
     * taking into account a custom timezone.  If no
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1270
     * <code>Calendar</code> object is specified, the driver uses the default
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1271
     * timezone, which is that of the virtual machine running the application.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1272
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1273
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1274
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1275
     * @param cal the <code>Calendar</code> object the driver will use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1276
     *            to construct the timestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1277
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1278
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1279
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1280
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1281
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1282
     * @see #getTimestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1283
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1284
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1285
    void setTimestamp(String parameterName, java.sql.Timestamp x, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1286
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1287
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1288
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1289
     * Sets the designated parameter to SQL <code>NULL</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1290
     * This version of the method <code>setNull</code> should
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1291
     * be used for user-defined types and REF type parameters.  Examples
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1292
     * of user-defined types include: STRUCT, DISTINCT, JAVA_OBJECT, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1293
     * named array types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1294
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1295
     * <P><B>Note:</B> To be portable, applications must give the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1296
     * SQL type code and the fully-qualified SQL type name when specifying
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1297
     * a NULL user-defined or REF parameter.  In the case of a user-defined type
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1298
     * the name is the type name of the parameter itself.  For a REF
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1299
     * parameter, the name is the type name of the referenced type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1300
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1301
     * Although it is intended for user-defined and Ref parameters,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1302
     * this method may be used to set a null parameter of any JDBC type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1303
     * If the parameter does not have a user-defined or REF type, the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1304
     * typeName is ignored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1305
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1306
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1307
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1308
     * @param sqlType a value from <code>java.sql.Types</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1309
     * @param typeName the fully-qualified name of an SQL user-defined type;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1310
     *        ignored if the parameter is not a user-defined type or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1311
     *        SQL <code>REF</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1312
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1313
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1314
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1315
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1316
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1317
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1318
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1319
    void setNull (String parameterName, int sqlType, String typeName)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1320
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1321
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1322
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1323
     * Retrieves the value of a JDBC <code>CHAR</code>, <code>VARCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1324
     * or <code>LONGVARCHAR</code> parameter as a <code>String</code> in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1325
     * the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1326
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1327
     * For the fixed-length type JDBC <code>CHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1328
     * the <code>String</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1329
     * returned has exactly the same value the SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1330
     * <code>CHAR</code> value had in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1331
     * database, including any padding added by the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1332
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1333
     * @return the parameter value. If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1334
     * is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1335
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1336
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1337
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1338
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1339
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1340
     * @see #setString
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1341
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1342
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1343
    String getString(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1344
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1345
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1346
     * Retrieves the value of a JDBC <code>BIT</code> or <code>BOOLEAN</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1347
     * parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1348
     * <code>boolean</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1349
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1350
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1351
     * is <code>false</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1352
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1353
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1354
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1355
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1356
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1357
     * @see #setBoolean
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1358
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1359
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1360
    boolean getBoolean(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1361
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1362
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1363
     * Retrieves the value of a JDBC <code>TINYINT</code> parameter as a <code>byte</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1364
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1365
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1366
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1367
     * is <code>0</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1368
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1369
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1370
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1371
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1372
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1373
     * @see #setByte
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1374
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1375
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1376
    byte getByte(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1377
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1378
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1379
     * Retrieves the value of a JDBC <code>SMALLINT</code> parameter as a <code>short</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1380
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1381
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1382
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1383
     * is <code>0</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1384
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1385
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1386
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1387
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1388
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1389
     * @see #setShort
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1390
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1391
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1392
    short getShort(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1393
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1394
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1395
     * Retrieves the value of a JDBC <code>INTEGER</code> parameter as an <code>int</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1396
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1397
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1398
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1399
     * @return the parameter value.  If the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1400
     *         the result is <code>0</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1401
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1402
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1403
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1404
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1405
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1406
     * @see #setInt
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1407
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1408
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1409
    int getInt(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1410
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1411
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1412
     * Retrieves the value of a JDBC <code>BIGINT</code> parameter as a <code>long</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1413
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1414
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1415
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1416
     * @return the parameter value.  If the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1417
     *         the result is <code>0</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1418
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1419
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1420
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1421
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1422
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1423
     * @see #setLong
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1424
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1425
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1426
    long getLong(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1427
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1428
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1429
     * Retrieves the value of a JDBC <code>FLOAT</code> parameter as a <code>float</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1430
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1431
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1432
     * @return the parameter value.  If the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1433
     *         the result is <code>0</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1434
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1435
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1436
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1437
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1438
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1439
     * @see #setFloat
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1440
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1441
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1442
    float getFloat(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1443
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1444
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1445
     * Retrieves the value of a JDBC <code>DOUBLE</code> parameter as a <code>double</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1446
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1447
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1448
     * @return the parameter value.  If the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1449
     *         the result is <code>0</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1450
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1451
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1452
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1453
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1454
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1455
     * @see #setDouble
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1456
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1457
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1458
    double getDouble(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1459
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1460
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1461
     * Retrieves the value of a JDBC <code>BINARY</code> or <code>VARBINARY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1462
     * parameter as an array of <code>byte</code> values in the Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1463
     * programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1464
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1465
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1466
     *  <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1467
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1468
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1469
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1470
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1471
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1472
     * @see #setBytes
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1473
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1474
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1475
    byte[] getBytes(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1476
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1477
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1478
     * Retrieves the value of a JDBC <code>DATE</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1479
     * <code>java.sql.Date</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1480
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1481
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1482
     * is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1483
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1484
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1485
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1486
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1487
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1488
     * @see #setDate
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1489
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1490
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1491
    java.sql.Date getDate(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1492
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1493
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1494
     * Retrieves the value of a JDBC <code>TIME</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1495
     * <code>java.sql.Time</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1496
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1497
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1498
     * is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1499
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1500
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1501
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1502
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1503
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1504
     * @see #setTime
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1505
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1506
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1507
    java.sql.Time getTime(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1508
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1509
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1510
     * Retrieves the value of a JDBC <code>TIMESTAMP</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1511
     * <code>java.sql.Timestamp</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1512
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1513
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1514
     * is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1515
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1516
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1517
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1518
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1519
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1520
     * @see #setTimestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1521
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1522
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1523
    java.sql.Timestamp getTimestamp(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1524
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1525
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1526
     * Retrieves the value of a parameter as an <code>Object</code> in the Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1527
     * programming language. If the value is an SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1528
     * driver returns a Java <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1529
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1530
     * This method returns a Java object whose type corresponds to the JDBC
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1531
     * type that was registered for this parameter using the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1532
     * <code>registerOutParameter</code>.  By registering the target JDBC
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1533
     * type as <code>java.sql.Types.OTHER</code>, this method can be used
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1534
     * to read database-specific abstract data types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1535
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1536
     * @return A <code>java.lang.Object</code> holding the OUT parameter value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1537
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1538
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1539
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1540
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1541
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1542
     * @see Types
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1543
     * @see #setObject
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1544
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1545
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1546
    Object getObject(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1547
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1548
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1549
     * Retrieves the value of a JDBC <code>NUMERIC</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1550
     * <code>java.math.BigDecimal</code> object with as many digits to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1551
     * right of the decimal point as the value contains.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1552
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1553
     * @return the parameter value in full precision.  If the value is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1554
     * SQL <code>NULL</code>, the result is <code>null</code>.
14014
da3648e13e67 8000269: Cleanup javadoc warnings
alanb
parents: 6540
diff changeset
  1555
     * @exception SQLException if parameterName does not correspond to a named
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1556
     * parameter;  if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1557
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1558
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1559
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1560
     * @see #setBigDecimal
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1561
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1562
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1563
    BigDecimal getBigDecimal(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1564
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1565
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1566
     * Returns an object representing the value of OUT parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1567
     * <code>parameterName</code> and uses <code>map</code> for the custom
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1568
     * mapping of the parameter value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1569
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1570
     * This method returns a Java object whose type corresponds to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1571
     * JDBC type that was registered for this parameter using the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1572
     * <code>registerOutParameter</code>.  By registering the target
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1573
     * JDBC type as <code>java.sql.Types.OTHER</code>, this method can
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1574
     * be used to read database-specific abstract data types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1575
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1576
     * @param map the mapping from SQL type names to Java classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1577
     * @return a <code>java.lang.Object</code> holding the OUT parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1578
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1579
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1580
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1581
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1582
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1583
     * @see #setObject
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1584
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1585
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1586
    Object getObject(String parameterName, java.util.Map<String,Class<?>> map)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1587
      throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1588
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1589
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1590
     * Retrieves the value of a JDBC <code>REF(&lt;structured-type&gt;)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1591
     * parameter as a {@link java.sql.Ref} object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1592
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1593
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1594
     * @return the parameter value as a <code>Ref</code> object in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1595
     *         Java programming language.  If the value was SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1596
     *         the value <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1597
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1598
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1599
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1600
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1601
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1602
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1603
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1604
    Ref getRef (String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1605
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1606
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1607
     * Retrieves the value of a JDBC <code>BLOB</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1608
     * {@link java.sql.Blob} object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1609
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1610
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1611
     * @return the parameter value as a <code>Blob</code> object in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1612
     *         Java programming language.  If the value was SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1613
     *         the value <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1614
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1615
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1616
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1617
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1618
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1619
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1620
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1621
    Blob getBlob (String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1622
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1623
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1624
     * Retrieves the value of a JDBC <code>CLOB</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1625
     * <code>java.sql.Clob</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1626
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1627
     * @return the parameter value as a <code>Clob</code> object in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1628
     *         Java programming language.  If the value was SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1629
     *         the value <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1630
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1631
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1632
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1633
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1634
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1635
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1636
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1637
    Clob getClob (String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1638
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1639
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1640
     * Retrieves the value of a JDBC <code>ARRAY</code> parameter as an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1641
     * {@link java.sql.Array} object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1642
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1643
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1644
     * @return the parameter value as an <code>Array</code> object in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1645
     *         Java programming language.  If the value was SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1646
     *         the value <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1647
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1648
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1649
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1650
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1651
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1652
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1653
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1654
    Array getArray (String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1655
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1656
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1657
     * Retrieves the value of a JDBC <code>DATE</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1658
     * <code>java.sql.Date</code> object, using
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1659
     * the given <code>Calendar</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1660
     * to construct the date.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1661
     * With a <code>Calendar</code> object, the driver
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1662
     * can calculate the date taking into account a custom timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1663
     * If no <code>Calendar</code> object is specified, the driver uses the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1664
     * default timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1665
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1666
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1667
     * @param cal the <code>Calendar</code> object the driver will use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1668
     *            to construct the date
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1669
     * @return the parameter value.  If the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1670
     * the result is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1671
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1672
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1673
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1674
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1675
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1676
     * @see #setDate
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1677
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1678
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1679
    java.sql.Date getDate(String parameterName, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1680
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1681
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1682
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1683
     * Retrieves the value of a JDBC <code>TIME</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1684
     * <code>java.sql.Time</code> object, using
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1685
     * the given <code>Calendar</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1686
     * to construct the time.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1687
     * With a <code>Calendar</code> object, the driver
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1688
     * can calculate the time taking into account a custom timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1689
     * If no <code>Calendar</code> object is specified, the driver uses the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1690
     * default timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1691
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1692
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1693
     * @param cal the <code>Calendar</code> object the driver will use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1694
     *            to construct the time
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1695
     * @return the parameter value; if the value is SQL <code>NULL</code>, the result is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1696
     * <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1697
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1698
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1699
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1700
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1701
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1702
     * @see #setTime
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1703
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1704
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1705
    java.sql.Time getTime(String parameterName, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1706
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1707
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1708
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1709
     * Retrieves the value of a JDBC <code>TIMESTAMP</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1710
     * <code>java.sql.Timestamp</code> object, using
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1711
     * the given <code>Calendar</code> object to construct
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1712
     * the <code>Timestamp</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1713
     * With a <code>Calendar</code> object, the driver
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1714
     * can calculate the timestamp taking into account a custom timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1715
     * If no <code>Calendar</code> object is specified, the driver uses the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1716
     * default timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1717
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1718
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1719
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1720
     * @param cal the <code>Calendar</code> object the driver will use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1721
     *            to construct the timestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1722
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1723
     * <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1724
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1725
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1726
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1727
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1728
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1729
     * @see #setTimestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1730
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1731
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1732
    java.sql.Timestamp getTimestamp(String parameterName, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1733
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1734
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1735
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1736
     * Retrieves the value of a JDBC <code>DATALINK</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1737
     * <code>java.net.URL</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1738
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1739
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1740
     * @return the parameter value as a <code>java.net.URL</code> object in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1741
     * Java programming language.  If the value was SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1742
     * value <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1743
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1744
     * parameter; if a database access error occurs,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1745
     * this method is called on a closed <code>CallableStatement</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1746
     *            or if there is a problem with the URL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1747
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1748
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1749
     * @see #setURL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1750
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1751
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1752
    java.net.URL getURL(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1753
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1754
    //------------------------- JDBC 4.0 -----------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1755
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1756
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1757
     * Retrieves the value of the designated JDBC <code>ROWID</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1758
     * <code>java.sql.RowId</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1759
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1760
     * @param parameterIndex the first parameter is 1, the second is 2,...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1761
     * @return a <code>RowId</code> object that represents the JDBC <code>ROWID</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1762
     *     value is used as the designated parameter. If the parameter contains
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1763
     * a SQL <code>NULL</code>, then a <code>null</code> value is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1764
     * @throws SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1765
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1766
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1767
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1768
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1769
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1770
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1771
    RowId getRowId(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1772
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1773
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1774
     * Retrieves the value of the designated JDBC <code>ROWID</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1775
     * <code>java.sql.RowId</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1776
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1777
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1778
     * @return a <code>RowId</code> object that represents the JDBC <code>ROWID</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1779
     *     value is used as the designated parameter. If the parameter contains
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1780
     * a SQL <code>NULL</code>, then a <code>null</code> value is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1781
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1782
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1783
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1784
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1785
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1786
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1787
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1788
    RowId getRowId(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1789
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1790
     /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1791
     * Sets the designated parameter to the given <code>java.sql.RowId</code> object. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1792
     * driver converts this to a SQL <code>ROWID</code> when it sends it to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1793
     * database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1794
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1795
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1796
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1797
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1798
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1799
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1800
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1801
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1802
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1803
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1804
    void setRowId(String parameterName, RowId x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1805
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1806
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1807
     * Sets the designated parameter to the given <code>String</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1808
     * The driver converts this to a SQL <code>NCHAR</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1809
     * <code>NVARCHAR</code> or <code>LONGNVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1810
     * @param parameterName the name of the parameter to be set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1811
     * @param value the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1812
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1813
     * parameter; if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1814
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1815
     *  error could occur; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1816
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1817
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1818
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1819
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1820
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1821
    void setNString(String parameterName, String value)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1822
            throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1823
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1824
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1825
     * Sets the designated parameter to a <code>Reader</code> object. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1826
     * <code>Reader</code> reads the data till end-of-file is reached. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1827
     * driver does the necessary conversion from Java character format to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1828
     * the national character set in the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1829
     * @param parameterName the name of the parameter to be set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1830
     * @param value the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1831
     * @param length the number of characters in the parameter data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1832
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1833
     * parameter; if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1834
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1835
     *  error could occur; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1836
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1837
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1838
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1839
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1840
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1841
    void setNCharacterStream(String parameterName, Reader value, long length)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1842
            throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1843
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1844
     /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1845
     * Sets the designated parameter to a <code>java.sql.NClob</code> object. The object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1846
     * implements the <code>java.sql.NClob</code> interface. This <code>NClob</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1847
     * object maps to a SQL <code>NCLOB</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1848
     * @param parameterName the name of the parameter to be set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1849
     * @param value the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1850
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1851
     * parameter; if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1852
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1853
     *  error could occur; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1854
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1855
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1856
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1857
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1858
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1859
     void setNClob(String parameterName, NClob value) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1860
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1861
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1862
     * Sets the designated parameter to a <code>Reader</code> object.  The <code>reader</code> must contain  the number
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1863
     * of characters specified by length otherwise a <code>SQLException</code> will be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1864
     * generated when the <code>CallableStatement</code> is executed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1865
     * This method differs from the <code>setCharacterStream (int, Reader, int)</code> method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1866
     * because it informs the driver that the parameter value should be sent to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1867
     * the server as a <code>CLOB</code>.  When the <code>setCharacterStream</code> method is used, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1868
     * driver may have to do extra work to determine whether the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1869
     * data should be send to the server as a <code>LONGVARCHAR</code> or a <code>CLOB</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1870
     * @param parameterName the name of the parameter to be set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1871
     * @param reader An object that contains the data to set the parameter value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1872
     * @param length the number of characters in the parameter data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1873
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1874
     * parameter; if the length specified is less than zero;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1875
     * a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1876
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1877
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1878
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1879
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1880
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1881
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1882
     void setClob(String parameterName, Reader reader, long length)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1883
       throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1884
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1885
    /**
37880
60ec48925dc6 8156661: Handful of typos in javadoc
igerasim
parents: 25991
diff changeset
  1886
     * Sets the designated parameter to an {@code InputStream} object.
25976
4de01a56e3ee 8054555: javadoc cleanup for java.sql and javax.sql
lancea
parents: 23590
diff changeset
  1887
     * The <code>Inputstream</code> must contain the number
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1888
     * of characters specified by length, otherwise a <code>SQLException</code> will be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1889
     * generated when the <code>CallableStatement</code> is executed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1890
     * This method differs from the <code>setBinaryStream (int, InputStream, int)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1891
     * method because it informs the driver that the parameter value should be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1892
     * sent to the server as a <code>BLOB</code>.  When the <code>setBinaryStream</code> method is used,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1893
     * the driver may have to do extra work to determine whether the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1894
     * data should be sent to the server as a <code>LONGVARBINARY</code> or a <code>BLOB</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1895
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1896
     * @param parameterName the name of the parameter to be set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1897
     * the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1898
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1899
     * @param inputStream An object that contains the data to set the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1900
     * value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1901
     * @param length the number of bytes in the parameter data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1902
     * @throws SQLException  if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1903
     * parameter; if the length specified
25976
4de01a56e3ee 8054555: javadoc cleanup for java.sql and javax.sql
lancea
parents: 23590
diff changeset
  1904
     * is less than zero; if the number of bytes in the {@code InputStream}
4de01a56e3ee 8054555: javadoc cleanup for java.sql and javax.sql
lancea
parents: 23590
diff changeset
  1905
     * does not match the specified length; if a database access error occurs or
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1906
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1907
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1908
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1909
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1910
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1911
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1912
     void setBlob(String parameterName, InputStream inputStream, long length)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1913
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1914
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1915
     * Sets the designated parameter to a <code>Reader</code> object.  The <code>reader</code> must contain  the number
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1916
     * of characters specified by length otherwise a <code>SQLException</code> will be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1917
     * generated when the <code>CallableStatement</code> is executed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1918
     * This method differs from the <code>setCharacterStream (int, Reader, int)</code> method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1919
     * because it informs the driver that the parameter value should be sent to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1920
     * the server as a <code>NCLOB</code>.  When the <code>setCharacterStream</code> method is used, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1921
     * driver may have to do extra work to determine whether the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1922
     * data should be send to the server as a <code>LONGNVARCHAR</code> or a <code>NCLOB</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1923
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1924
     * @param parameterName the name of the parameter to be set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1925
     * @param reader An object that contains the data to set the parameter value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1926
     * @param length the number of characters in the parameter data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1927
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1928
     * parameter; if the length specified is less than zero;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1929
     * if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1930
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1931
     *  error could occur; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1932
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1933
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1934
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1935
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1936
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1937
     void setNClob(String parameterName, Reader reader, long length)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1938
       throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1939
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1940
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1941
     * Retrieves the value of the designated JDBC <code>NCLOB</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1942
     * <code>java.sql.NClob</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1943
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1944
     * @param parameterIndex the first parameter is 1, the second is 2, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1945
     * so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1946
     * @return the parameter value as a <code>NClob</code> object in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1947
     * Java programming language.  If the value was SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1948
     * value <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1949
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1950
     * if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1951
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1952
     *  error could occur; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1953
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1954
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1955
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1956
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1957
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1958
    NClob getNClob (int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1959
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1960
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1961
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1962
     * Retrieves the value of a JDBC <code>NCLOB</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1963
     * <code>java.sql.NClob</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1964
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1965
     * @return the parameter value as a <code>NClob</code> object in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1966
     *         Java programming language.  If the value was SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1967
     *         the value <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1968
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1969
     * parameter; if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1970
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1971
     *  error could occur; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1972
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1973
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1974
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1975
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1976
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1977
    NClob getNClob (String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1978
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1979
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1980
     * Sets the designated parameter to the given <code>java.sql.SQLXML</code> object. The driver converts this to an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1981
     * <code>SQL XML</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1982
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1983
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1984
     * @param xmlObject a <code>SQLXML</code> object that maps an <code>SQL XML</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1985
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1986
     * parameter; if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1987
     * this method is called on a closed <code>CallableStatement</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1988
     * the <code>java.xml.transform.Result</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1989
   *  <code>Writer</code> or <code>OutputStream</code> has not been closed for the <code>SQLXML</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1990
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1991
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1992
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1993
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1994
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1995
    void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1996
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1997
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1998
     * Retrieves the value of the designated <code>SQL XML</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1999
     * <code>java.sql.SQLXML</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2000
     * @param parameterIndex index of the first parameter is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2001
     * @return a <code>SQLXML</code> object that maps an <code>SQL XML</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2002
     * @throws SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2003
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2004
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2005
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2006
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2007
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2008
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2009
    SQLXML getSQLXML(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2010
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2011
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2012
     * Retrieves the value of the designated <code>SQL XML</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2013
     * <code>java.sql.SQLXML</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2014
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2015
     * @return a <code>SQLXML</code> object that maps an <code>SQL XML</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2016
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2017
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2018
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2019
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2020
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2021
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2022
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2023
    SQLXML getSQLXML(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2024
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2025
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2026
     * Retrieves the value of the designated <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2027
     * <code>NVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2028
     * or <code>LONGNVARCHAR</code> parameter as
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2029
     * a <code>String</code> in the Java programming language.
23590
ffd8b0b70511 8038493: Tidy warnings cleanup for java.sql
yan
parents: 21950
diff changeset
  2030
     * <p>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2031
     * For the fixed-length type JDBC <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2032
     * the <code>String</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2033
     * returned has exactly the same value the SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2034
     * <code>NCHAR</code> value had in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2035
     * database, including any padding added by the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2036
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2037
     * @param parameterIndex index of the first parameter is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2038
     * @return a <code>String</code> object that maps an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2039
     * <code>NCHAR</code>, <code>NVARCHAR</code> or <code>LONGNVARCHAR</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2040
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2041
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2042
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2043
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2044
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2045
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2046
     * @see #setNString
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2047
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2048
    String getNString(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2049
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2050
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2051
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2052
     *  Retrieves the value of the designated <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2053
     * <code>NVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2054
     * or <code>LONGNVARCHAR</code> parameter as
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2055
     * a <code>String</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2056
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2057
     * For the fixed-length type JDBC <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2058
     * the <code>String</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2059
     * returned has exactly the same value the SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2060
     * <code>NCHAR</code> value had in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2061
     * database, including any padding added by the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2062
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2063
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2064
     * @return a <code>String</code> object that maps an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2065
     * <code>NCHAR</code>, <code>NVARCHAR</code> or <code>LONGNVARCHAR</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2066
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2067
     * parameter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2068
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2069
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2070
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2071
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2072
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2073
     * @see #setNString
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2074
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2075
    String getNString(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2076
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2077
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2078
     * Retrieves the value of the designated parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2079
     * <code>java.io.Reader</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2080
     * It is intended for use when
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2081
     * accessing  <code>NCHAR</code>,<code>NVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2082
     * and <code>LONGNVARCHAR</code> parameters.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2083
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2084
     * @return a <code>java.io.Reader</code> object that contains the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2085
     * value; if the value is SQL <code>NULL</code>, the value returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2086
     * <code>null</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2087
     * @param parameterIndex the first parameter is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2088
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2089
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2090
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2091
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2092
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2093
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2094
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2095
    java.io.Reader getNCharacterStream(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2096
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2097
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2098
     * Retrieves the value of the designated parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2099
     * <code>java.io.Reader</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2100
     * It is intended for use when
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2101
     * accessing  <code>NCHAR</code>,<code>NVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2102
     * and <code>LONGNVARCHAR</code> parameters.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2103
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2104
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2105
     * @return a <code>java.io.Reader</code> object that contains the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2106
     * value; if the value is SQL <code>NULL</code>, the value returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2107
     * <code>null</code> in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2108
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2109
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2110
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2111
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2112
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2113
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2114
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2115
    java.io.Reader getNCharacterStream(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2116
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2117
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2118
     * Retrieves the value of the designated parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2119
     * <code>java.io.Reader</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2120
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2121
     * @return a <code>java.io.Reader</code> object that contains the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2122
     * value; if the value is SQL <code>NULL</code>, the value returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2123
     * <code>null</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2124
     * @param parameterIndex the first parameter is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2125
     * @exception SQLException if the parameterIndex is not valid; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2126
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2127
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2128
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2129
    java.io.Reader getCharacterStream(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2130
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2131
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2132
     * Retrieves the value of the designated parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2133
     * <code>java.io.Reader</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2134
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2135
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2136
     * @return a <code>java.io.Reader</code> object that contains the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2137
     * value; if the value is SQL <code>NULL</code>, the value returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2138
     * <code>null</code> in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2139
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2140
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2141
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2142
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2143
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2144
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2145
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2146
    java.io.Reader getCharacterStream(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2147
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2148
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2149
     * Sets the designated parameter to the given <code>java.sql.Blob</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2150
     * The driver converts this to an SQL <code>BLOB</code> value when it
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2151
     * sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2152
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2153
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2154
     * @param x a <code>Blob</code> object that maps an SQL <code>BLOB</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2155
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2156
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2157
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2158
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2159
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2160
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2161
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2162
    void setBlob (String parameterName, Blob x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2163
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2164
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2165
     * Sets the designated parameter to the given <code>java.sql.Clob</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2166
     * The driver converts this to an SQL <code>CLOB</code> value when it
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2167
     * sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2168
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2169
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2170
     * @param x a <code>Clob</code> object that maps an SQL <code>CLOB</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2171
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2172
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2173
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2174
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2175
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2176
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2177
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2178
    void setClob (String parameterName, Clob x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2179
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2180
     * Sets the designated parameter to the given input stream, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2181
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2182
     * When a very large ASCII value is input to a <code>LONGVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2183
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2184
     * <code>java.io.InputStream</code>. Data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2185
     * as needed until end-of-file is reached.  The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2186
     * do any necessary conversion from ASCII to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2187
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2188
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2189
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2190
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2191
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2192
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2193
     * @param x the Java input stream that contains the ASCII parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2194
     * @param length the number of bytes in the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2195
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2196
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2197
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2198
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2199
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2200
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2201
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2202
    void setAsciiStream(String parameterName, java.io.InputStream x, long length)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2203
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2204
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2205
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2206
     * Sets the designated parameter to the given input stream, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2207
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2208
     * When a very large binary value is input to a <code>LONGVARBINARY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2209
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2210
     * <code>java.io.InputStream</code> object. The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2211
     * as needed until end-of-file is reached.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2212
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2213
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2214
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2215
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2216
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2217
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2218
     * @param x the java input stream which contains the binary parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2219
     * @param length the number of bytes in the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2220
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2221
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2222
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2223
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2224
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2225
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2226
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2227
    void setBinaryStream(String parameterName, java.io.InputStream x,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2228
                         long length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2229
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2230
     * Sets the designated parameter to the given <code>Reader</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2231
     * object, which is the given number of characters long.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2232
     * When a very large UNICODE value is input to a <code>LONGVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2233
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2234
     * <code>java.io.Reader</code> object. The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2235
     * as needed until end-of-file is reached.  The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2236
     * do any necessary conversion from UNICODE to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2237
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2238
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2239
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2240
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2241
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2242
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2243
     * @param reader the <code>java.io.Reader</code> object that
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2244
     *        contains the UNICODE data used as the designated parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2245
     * @param length the number of characters in the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2246
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2247
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2248
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2249
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2250
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2251
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2252
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2253
    void setCharacterStream(String parameterName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2254
                            java.io.Reader reader,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2255
                            long length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2256
     //--
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2257
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2258
     * Sets the designated parameter to the given input stream.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2259
     * When a very large ASCII value is input to a <code>LONGVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2260
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2261
     * <code>java.io.InputStream</code>. Data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2262
     * as needed until end-of-file is reached.  The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2263
     * do any necessary conversion from ASCII to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2264
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2265
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2266
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2267
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2268
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2269
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2270
     * <code>setAsciiStream</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2271
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2272
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2273
     * @param x the Java input stream that contains the ASCII parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2274
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2275
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2276
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2277
     * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2278
       * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2279
    */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2280
    void setAsciiStream(String parameterName, java.io.InputStream x)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2281
            throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2282
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2283
     * Sets the designated parameter to the given input stream.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2284
     * When a very large binary value is input to a <code>LONGVARBINARY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2285
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2286
     * <code>java.io.InputStream</code> object. The data will be read from the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2287
     * stream as needed until end-of-file is reached.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2288
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2289
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2290
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2291
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2292
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2293
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2294
     * <code>setBinaryStream</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2295
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2296
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2297
     * @param x the java input stream which contains the binary parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2298
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2299
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2300
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2301
     * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2302
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2303
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2304
    void setBinaryStream(String parameterName, java.io.InputStream x)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2305
    throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2306
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2307
     * Sets the designated parameter to the given <code>Reader</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2308
     * object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2309
     * When a very large UNICODE value is input to a <code>LONGVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2310
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2311
     * <code>java.io.Reader</code> object. The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2312
     * as needed until end-of-file is reached.  The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2313
     * do any necessary conversion from UNICODE to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2314
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2315
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2316
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2317
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2318
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2319
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2320
     * <code>setCharacterStream</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2321
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2322
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2323
     * @param reader the <code>java.io.Reader</code> object that contains the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2324
     *        Unicode data
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2325
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2326
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2327
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2328
     * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2329
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2330
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2331
    void setCharacterStream(String parameterName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2332
                          java.io.Reader reader) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2333
  /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2334
     * Sets the designated parameter to a <code>Reader</code> object. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2335
     * <code>Reader</code> reads the data till end-of-file is reached. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2336
     * driver does the necessary conversion from Java character format to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2337
     * the national character set in the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2338
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2339
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2340
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2341
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2342
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2343
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2344
     * <code>setNCharacterStream</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2345
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2346
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2347
     * @param value the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2348
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2349
     * parameter; if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2350
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2351
     *  error could occur; if a database access error occurs; or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2352
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2353
     * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2354
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2355
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2356
     void setNCharacterStream(String parameterName, Reader value) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2357
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2358
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2359
     * Sets the designated parameter to a <code>Reader</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2360
     * This method differs from the <code>setCharacterStream (int, Reader)</code> method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2361
     * because it informs the driver that the parameter value should be sent to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2362
     * the server as a <code>CLOB</code>.  When the <code>setCharacterStream</code> method is used, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2363
     * driver may have to do extra work to determine whether the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2364
     * data should be send to the server as a <code>LONGVARCHAR</code> or a <code>CLOB</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2365
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2366
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2367
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2368
     * <code>setClob</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2369
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2370
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2371
     * @param reader An object that contains the data to set the parameter value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2372
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2373
     * parameter; if a database access error occurs or this method is called on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2374
     * a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2375
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2376
     * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2377
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2378
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2379
     void setClob(String parameterName, Reader reader)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2380
       throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2381
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2382
    /**
37880
60ec48925dc6 8156661: Handful of typos in javadoc
igerasim
parents: 25991
diff changeset
  2383
     * Sets the designated parameter to an {@code InputStream} object.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2384
     * This method differs from the <code>setBinaryStream (int, InputStream)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2385
     * method because it informs the driver that the parameter value should be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2386
     * sent to the server as a <code>BLOB</code>.  When the <code>setBinaryStream</code> method is used,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2387
     * the driver may have to do extra work to determine whether the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2388
     * data should be send to the server as a <code>LONGVARBINARY</code> or a <code>BLOB</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2389
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2390
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2391
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2392
     * <code>setBlob</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2393
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2394
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2395
     * @param inputStream An object that contains the data to set the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2396
     * value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2397
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2398
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2399
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2400
     * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2401
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2402
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2403
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2404
     void setBlob(String parameterName, InputStream inputStream)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2405
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2406
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2407
     * Sets the designated parameter to a <code>Reader</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2408
     * This method differs from the <code>setCharacterStream (int, Reader)</code> method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2409
     * because it informs the driver that the parameter value should be sent to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2410
     * the server as a <code>NCLOB</code>.  When the <code>setCharacterStream</code> method is used, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2411
     * driver may have to do extra work to determine whether the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2412
     * data should be send to the server as a <code>LONGNVARCHAR</code> or a <code>NCLOB</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2413
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2414
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2415
     * <code>setNClob</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2416
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2417
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2418
     * @param reader An object that contains the data to set the parameter value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2419
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2420
     * parameter; if the driver does not support national character sets;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2421
     * if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2422
     *  error could occur;  if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2423
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2424
     * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2425
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2426
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2427
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2428
     void setNClob(String parameterName, Reader reader)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2429
       throws SQLException;
6540
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2430
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2431
    //------------------------- JDBC 4.1 -----------------------------------
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2432
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2433
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2434
    /**
25976
4de01a56e3ee 8054555: javadoc cleanup for java.sql and javax.sql
lancea
parents: 23590
diff changeset
  2435
     * Returns an object representing the value of OUT parameter
6540
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2436
     * {@code parameterIndex} and will convert from the
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2437
     * SQL type of the parameter to the requested Java data type, if the
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2438
     * conversion is supported. If the conversion is not
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2439
     * supported or null is specified for the type, a
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2440
     * <code>SQLException</code> is thrown.
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2441
     *<p>
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2442
     * At a minimum, an implementation must support the conversions defined in
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2443
     * Appendix B, Table B-3 and conversion of appropriate user defined SQL
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2444
     * types to a Java type which implements {@code SQLData}, or {@code Struct}.
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2445
     * Additional conversions may be supported and are vendor defined.
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2446
     *
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2447
     * @param parameterIndex the first parameter is 1, the second is 2, and so on
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2448
     * @param type Class representing the Java data type to convert the
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2449
     * designated parameter to.
18564
f9db68ff2cbb 8017471: Fix JDBC -Xdoclint public errors
lancea
parents: 16024
diff changeset
  2450
     * @param <T> the type of the class modeled by this Class object
6540
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2451
     * @return an instance of {@code type} holding the OUT parameter value
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2452
     * @throws SQLException if conversion is not supported, type is null or
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2453
     *         another error occurs. The getCause() method of the
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2454
     * exception may provide a more detailed exception, for example, if
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2455
     * a conversion error occurs
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2456
     * @throws SQLFeatureNotSupportedException if the JDBC driver does not support
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2457
     * this method
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2458
     * @since 1.7
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2459
     */
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2460
     public <T> T getObject(int parameterIndex, Class<T> type) throws SQLException;
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2461
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2462
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2463
    /**
25976
4de01a56e3ee 8054555: javadoc cleanup for java.sql and javax.sql
lancea
parents: 23590
diff changeset
  2464
     * Returns an object representing the value of OUT parameter
6540
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2465
     * {@code parameterName} and will convert from the
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2466
     * SQL type of the parameter to the requested Java data type, if the
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2467
     * conversion is supported. If the conversion is not
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2468
     * supported  or null is specified for the type, a
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2469
     * <code>SQLException</code> is thrown.
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2470
     *<p>
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2471
     * At a minimum, an implementation must support the conversions defined in
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2472
     * Appendix B, Table B-3 and conversion of appropriate user defined SQL
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2473
     * types to a Java type which implements {@code SQLData}, or {@code Struct}.
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2474
     * Additional conversions may be supported and are vendor defined.
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2475
     *
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2476
     * @param parameterName the name of the parameter
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2477
     * @param type Class representing the Java data type to convert
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2478
     * the designated parameter to.
18564
f9db68ff2cbb 8017471: Fix JDBC -Xdoclint public errors
lancea
parents: 16024
diff changeset
  2479
     * @param <T> the type of the class modeled by this Class object
6540
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2480
     * @return an instance of {@code type} holding the OUT parameter
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2481
     * value
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2482
     * @throws SQLException if conversion is not supported, type is null or
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2483
     *         another error occurs. The getCause() method of the
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2484
     * exception may provide a more detailed exception, for example, if
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2485
     * a conversion error occurs
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2486
     * @throws SQLFeatureNotSupportedException if the JDBC driver does not support
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2487
     * this method
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2488
     * @since 1.7
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2489
     */
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2490
     public <T> T getObject(String parameterName, Class<T> type) throws SQLException;
a4ae668f6125 6589685: JDBC 4.1 updates
lancea
parents: 5506
diff changeset
  2491
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2492
     //------------------------- JDBC 4.2 -----------------------------------
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2493
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2494
     /**
25976
4de01a56e3ee 8054555: javadoc cleanup for java.sql and javax.sql
lancea
parents: 23590
diff changeset
  2495
     * Sets the value of the designated parameter with the given object.
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2496
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2497
     * If the second argument is an {@code InputStream} then the stream
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2498
     * must contain the number of bytes specified by scaleOrLength.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2499
     * If the second argument is a {@code Reader} then the reader must
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2500
     * contain the number of characters specified
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2501
     * by scaleOrLength. If these conditions are not true the driver
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2502
     * will generate a
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2503
     * {@code SQLException} when the prepared statement is executed.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2504
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2505
     * <p>The given Java object will be converted to the given targetSqlType
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2506
     * before being sent to the database.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2507
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2508
     * If the object has a custom mapping (is of a class implementing the
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2509
     * interface {@code SQLData}),
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2510
     * the JDBC driver should call the method {@code SQLData.writeSQL} to
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2511
     * write it to the SQL data stream.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2512
     * If, on the other hand, the object is of a class implementing
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2513
     * {@code Ref}, {@code Blob}, {@code Clob},  {@code NClob},
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2514
     *  {@code Struct}, {@code java.net.URL},
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2515
     * or {@code Array}, the driver should pass it to the database as a
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2516
     * value of the corresponding SQL type.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2517
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2518
     * <p>Note that this method may be used to pass database-specific
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2519
     * abstract data types.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2520
     *<P>
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2521
     * The default implementation will throw {@code SQLFeatureNotSupportedException}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2522
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2523
     * @param parameterName the name of the parameter
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2524
     * @param x the object containing the input parameter value
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2525
     * @param targetSqlType the SQL type to be
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2526
     * sent to the database. The scale argument may further qualify this type.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2527
     * @param scaleOrLength for {@code java.sql.JDBCType.DECIMAL}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2528
     *          or {@code java.sql.JDBCType.NUMERIC types},
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2529
     *          this is the number of digits after the decimal point. For
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2530
     *          Java Object types {@code InputStream} and {@code Reader},
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2531
     *          this is the length
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2532
     *          of the data in the stream or reader.  For all other types,
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2533
     *          this value will be ignored.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2534
     * @exception SQLException if parameterName does not correspond to a named
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2535
     * parameter; if a database access error occurs
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2536
     * or this method is called on a closed {@code CallableStatement}  or
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2537
     *            if the Java Object specified by x is an InputStream
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2538
     *            or Reader object and the value of the scale parameter is less
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2539
     *            than zero
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2540
     * @exception SQLFeatureNotSupportedException if
21950
db3c826749f7 8029417: JDBC 4.2 javadoc updates
lancea
parents: 21278
diff changeset
  2541
     * the JDBC driver does not support the specified targetSqlType
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2542
     * @see JDBCType
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2543
     * @see SQLType
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2544
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2545
     * @since 1.8
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2546
     */
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2547
     default void setObject(String parameterName, Object x, SQLType targetSqlType,
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2548
             int scaleOrLength) throws SQLException {
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2549
        throw new SQLFeatureNotSupportedException("setObject not implemented");
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2550
    }
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2551
    /**
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2552
     * Sets the value of the designated parameter with the given object.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2553
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2554
     * This method is similar to {@link #setObject(String parameterName,
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2555
     * Object x, SQLType targetSqlType, int scaleOrLength)},
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2556
     * except that it assumes a scale of zero.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2557
     *<P>
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2558
     * The default implementation will throw {@code SQLFeatureNotSupportedException}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2559
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2560
     * @param parameterName the name of the parameter
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2561
     * @param x the object containing the input parameter value
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2562
     * @param targetSqlType the SQL type to be sent to the database
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2563
     * @exception SQLException if parameterName does not correspond to a named
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2564
     * parameter; if a database access error occurs
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2565
     * or this method is called on a closed {@code CallableStatement}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2566
     * @exception SQLFeatureNotSupportedException if
21950
db3c826749f7 8029417: JDBC 4.2 javadoc updates
lancea
parents: 21278
diff changeset
  2567
     * the JDBC driver does not support the specified targetSqlType
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2568
     * @see JDBCType
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2569
     * @see SQLType
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2570
     * @since 1.8
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2571
     */
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2572
     default void setObject(String parameterName, Object x, SQLType targetSqlType)
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2573
        throws SQLException {
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2574
        throw new SQLFeatureNotSupportedException("setObject not implemented");
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2575
    }
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2576
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2577
    /**
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2578
     * Registers the OUT parameter in ordinal position
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2579
     * {@code parameterIndex} to the JDBC type
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2580
     * {@code sqlType}.  All OUT parameters must be registered
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2581
     * before a stored procedure is executed.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2582
     * <p>
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2583
     * The JDBC type specified by {@code sqlType} for an OUT
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2584
     * parameter determines the Java type that must be used
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2585
     * in the {@code get} method to read the value of that parameter.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2586
     * <p>
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2587
     * If the JDBC type expected to be returned to this output parameter
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2588
     * is specific to this particular database, {@code sqlType}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2589
     * may be {@code JDBCType.OTHER} or a {@code SQLType} that is supported by
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2590
     * the JDBC driver.  The method
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2591
     * {@link #getObject} retrieves the value.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2592
     *<P>
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2593
     * The default implementation will throw {@code SQLFeatureNotSupportedException}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2594
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2595
     * @param parameterIndex the first parameter is 1, the second is 2,
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2596
     *        and so on
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2597
     * @param sqlType the JDBC type code defined by {@code SQLType} to use to
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2598
     * register the OUT Parameter.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2599
     *        If the parameter is of JDBC type {@code JDBCType.NUMERIC}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2600
     *        or {@code JDBCType.DECIMAL}, the version of
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2601
     *        {@code registerOutParameter} that accepts a scale value
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2602
     *        should be used.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2603
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2604
     * @exception SQLException if the parameterIndex is not valid;
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2605
     * if a database access error occurs or
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2606
     * this method is called on a closed {@code CallableStatement}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2607
     * @exception SQLFeatureNotSupportedException if
21950
db3c826749f7 8029417: JDBC 4.2 javadoc updates
lancea
parents: 21278
diff changeset
  2608
     * the JDBC driver does not support the specified sqlType
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2609
     * @see JDBCType
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2610
     * @see SQLType
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2611
     * @since 1.8
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2612
     */
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2613
    default void registerOutParameter(int parameterIndex, SQLType sqlType)
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2614
        throws SQLException {
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2615
        throw new SQLFeatureNotSupportedException("registerOutParameter not implemented");
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2616
    }
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2617
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2618
    /**
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2619
     * Registers the parameter in ordinal position
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2620
     * {@code parameterIndex} to be of JDBC type
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2621
     * {@code sqlType}. All OUT parameters must be registered
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2622
     * before a stored procedure is executed.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2623
     * <p>
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2624
     * The JDBC type specified by {@code sqlType} for an OUT
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2625
     * parameter determines the Java type that must be used
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2626
     * in the {@code get} method to read the value of that parameter.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2627
     * <p>
16024
3f2bf7857375 8008716: address typo in CallableStatement javadocs
lancea
parents: 15278
diff changeset
  2628
     * This version of {@code  registerOutParameter} should be
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2629
     * used when the parameter is of JDBC type {@code JDBCType.NUMERIC}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2630
     * or {@code JDBCType.DECIMAL}.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2631
     *<P>
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2632
     * The default implementation will throw {@code SQLFeatureNotSupportedException}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2633
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2634
     * @param parameterIndex the first parameter is 1, the second is 2,
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2635
     * and so on
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2636
     * @param sqlType the JDBC type code defined by {@code SQLType} to use to
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2637
     * register the OUT Parameter.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2638
     * @param scale the desired number of digits to the right of the
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2639
     * decimal point.  It must be greater than or equal to zero.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2640
     * @exception SQLException if the parameterIndex is not valid;
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2641
     * if a database access error occurs or
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2642
     * this method is called on a closed {@code CallableStatement}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2643
     * @exception SQLFeatureNotSupportedException if
21950
db3c826749f7 8029417: JDBC 4.2 javadoc updates
lancea
parents: 21278
diff changeset
  2644
     * the JDBC driver does not support the specified sqlType
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2645
     * @see JDBCType
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2646
     * @see SQLType
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2647
     * @since 1.8
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2648
     */
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2649
    default void registerOutParameter(int parameterIndex, SQLType sqlType,
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2650
            int scale) throws SQLException {
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2651
        throw new SQLFeatureNotSupportedException("registerOutParameter not implemented");
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2652
    }
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2653
    /**
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2654
     * Registers the designated output parameter.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2655
     * This version of
16024
3f2bf7857375 8008716: address typo in CallableStatement javadocs
lancea
parents: 15278
diff changeset
  2656
     * the method {@code  registerOutParameter}
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2657
     * should be used for a user-defined or {@code REF} output parameter.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2658
     * Examples
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2659
     * of user-defined types include: {@code STRUCT}, {@code DISTINCT},
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2660
     * {@code JAVA_OBJECT}, and named array types.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2661
     *<p>
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2662
     * All OUT parameters must be registered
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2663
     * before a stored procedure is executed.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2664
     * <p>  For a user-defined parameter, the fully-qualified SQL
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2665
     * type name of the parameter should also be given, while a {@code REF}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2666
     * parameter requires that the fully-qualified type name of the
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2667
     * referenced type be given.  A JDBC driver that does not need the
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2668
     * type code and type name information may ignore it.   To be portable,
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2669
     * however, applications should always provide these values for
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2670
     * user-defined and {@code REF} parameters.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2671
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2672
     * Although it is intended for user-defined and {@code REF} parameters,
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2673
     * this method may be used to register a parameter of any JDBC type.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2674
     * If the parameter does not have a user-defined or {@code REF} type, the
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2675
     * <i>typeName</i> parameter is ignored.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2676
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2677
     * <P><B>Note:</B> When reading the value of an out parameter, you
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2678
     * must use the getter method whose Java type corresponds to the
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2679
     * parameter's registered SQL type.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2680
     *<P>
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2681
     * The default implementation will throw {@code SQLFeatureNotSupportedException}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2682
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2683
     * @param parameterIndex the first parameter is 1, the second is 2,...
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2684
     * @param sqlType the JDBC type code defined by {@code SQLType} to use to
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2685
     * register the OUT Parameter.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2686
     * @param typeName the fully-qualified name of an SQL structured type
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2687
     * @exception SQLException if the parameterIndex is not valid;
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2688
     * if a database access error occurs or
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2689
     * this method is called on a closed {@code CallableStatement}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2690
     * @exception SQLFeatureNotSupportedException if
21950
db3c826749f7 8029417: JDBC 4.2 javadoc updates
lancea
parents: 21278
diff changeset
  2691
     * the JDBC driver does not support the specified sqlType
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2692
     * @see JDBCType
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2693
     * @see SQLType
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2694
     * @since 1.8
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2695
     */
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2696
    default void registerOutParameter (int parameterIndex, SQLType sqlType,
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2697
            String typeName) throws SQLException {
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2698
        throw new SQLFeatureNotSupportedException("registerOutParameter not implemented");
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2699
    }
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2700
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2701
    /**
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2702
     * Registers the OUT parameter named
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2703
     * <code>parameterName</code> to the JDBC type
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2704
     * {@code sqlType}.  All OUT parameters must be registered
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2705
     * before a stored procedure is executed.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2706
     * <p>
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2707
     * The JDBC type specified by {@code sqlType} for an OUT
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2708
     * parameter determines the Java type that must be used
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2709
     * in the {@code get} method to read the value of that parameter.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2710
     * <p>
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2711
     * If the JDBC type expected to be returned to this output parameter
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2712
     * is specific to this particular database, {@code sqlType}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2713
     * should be {@code JDBCType.OTHER} or a {@code SQLType} that is supported
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2714
     * by the JDBC driver..  The method
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2715
     * {@link #getObject} retrieves the value.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2716
     *<P>
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2717
     * The default implementation will throw {@code SQLFeatureNotSupportedException}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2718
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2719
     * @param parameterName the name of the parameter
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2720
     * @param sqlType the JDBC type code defined by {@code SQLType} to use to
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2721
     * register the OUT Parameter.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2722
     * If the parameter is of JDBC type {@code JDBCType.NUMERIC}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2723
     * or {@code JDBCType.DECIMAL}, the version of
16024
3f2bf7857375 8008716: address typo in CallableStatement javadocs
lancea
parents: 15278
diff changeset
  2724
     * {@code  registerOutParameter} that accepts a scale value
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2725
     * should be used.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2726
     * @exception SQLException if parameterName does not correspond to a named
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2727
     * parameter; if a database access error occurs or
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2728
     * this method is called on a closed {@code CallableStatement}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2729
     * @exception SQLFeatureNotSupportedException if
21950
db3c826749f7 8029417: JDBC 4.2 javadoc updates
lancea
parents: 21278
diff changeset
  2730
     * the JDBC driver does not support the specified sqlType
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2731
     * or if the JDBC driver does not support
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2732
     * this method
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2733
     * @since 1.8
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2734
     * @see JDBCType
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2735
     * @see SQLType
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2736
     */
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2737
    default void registerOutParameter(String parameterName, SQLType sqlType)
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2738
        throws SQLException {
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2739
        throw new SQLFeatureNotSupportedException("registerOutParameter not implemented");
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2740
    }
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2741
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2742
    /**
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2743
     * Registers the parameter named
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2744
     * <code>parameterName</code> to be of JDBC type
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2745
     * {@code sqlType}.  All OUT parameters must be registered
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2746
     * before a stored procedure is executed.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2747
     * <p>
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2748
     * The JDBC type specified by {@code sqlType} for an OUT
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2749
     * parameter determines the Java type that must be used
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2750
     * in the {@code get} method to read the value of that parameter.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2751
     * <p>
16024
3f2bf7857375 8008716: address typo in CallableStatement javadocs
lancea
parents: 15278
diff changeset
  2752
     * This version of {@code  registerOutParameter} should be
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2753
     * used when the parameter is of JDBC type {@code JDBCType.NUMERIC}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2754
     * or {@code JDBCType.DECIMAL}.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2755
     *<P>
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2756
     * The default implementation will throw {@code SQLFeatureNotSupportedException}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2757
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2758
     * @param parameterName the name of the parameter
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2759
     * @param sqlType the JDBC type code defined by {@code SQLType} to use to
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2760
     * register the OUT Parameter.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2761
     * @param scale the desired number of digits to the right of the
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2762
     * decimal point.  It must be greater than or equal to zero.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2763
     * @exception SQLException if parameterName does not correspond to a named
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2764
     * parameter; if a database access error occurs or
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2765
     * this method is called on a closed {@code CallableStatement}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2766
     * @exception SQLFeatureNotSupportedException if
21950
db3c826749f7 8029417: JDBC 4.2 javadoc updates
lancea
parents: 21278
diff changeset
  2767
     * the JDBC driver does not support the specified sqlType
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2768
     * or if the JDBC driver does not support
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2769
     * this method
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2770
     * @since 1.8
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2771
     * @see JDBCType
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2772
     * @see SQLType
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2773
     */
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2774
    default void registerOutParameter(String parameterName, SQLType sqlType,
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2775
            int scale) throws SQLException {
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2776
        throw new SQLFeatureNotSupportedException("registerOutParameter not implemented");
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2777
    }
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2778
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2779
    /**
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2780
     * Registers the designated output parameter.  This version of
16024
3f2bf7857375 8008716: address typo in CallableStatement javadocs
lancea
parents: 15278
diff changeset
  2781
     * the method {@code  registerOutParameter}
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2782
     * should be used for a user-named or REF output parameter.  Examples
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2783
     * of user-named types include: STRUCT, DISTINCT, JAVA_OBJECT, and
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2784
     * named array types.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2785
     *<p>
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2786
     * All OUT parameters must be registered
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2787
     * before a stored procedure is executed.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2788
     * </p>
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2789
     * For a user-named parameter the fully-qualified SQL
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2790
     * type name of the parameter should also be given, while a REF
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2791
     * parameter requires that the fully-qualified type name of the
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2792
     * referenced type be given.  A JDBC driver that does not need the
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2793
     * type code and type name information may ignore it.   To be portable,
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2794
     * however, applications should always provide these values for
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2795
     * user-named and REF parameters.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2796
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2797
     * Although it is intended for user-named and REF parameters,
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2798
     * this method may be used to register a parameter of any JDBC type.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2799
     * If the parameter does not have a user-named or REF type, the
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2800
     * typeName parameter is ignored.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2801
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2802
     * <P><B>Note:</B> When reading the value of an out parameter, you
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2803
     * must use the {@code getXXX} method whose Java type XXX corresponds to the
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2804
     * parameter's registered SQL type.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2805
     *<P>
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2806
     * The default implementation will throw {@code SQLFeatureNotSupportedException}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2807
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2808
     * @param parameterName the name of the parameter
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2809
     * @param sqlType the JDBC type code defined by {@code SQLType} to use to
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2810
     * register the OUT Parameter.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2811
     * @param typeName the fully-qualified name of an SQL structured type
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2812
     * @exception SQLException if parameterName does not correspond to a named
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2813
     * parameter; if a database access error occurs or
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2814
     * this method is called on a closed {@code CallableStatement}
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2815
     * @exception SQLFeatureNotSupportedException if
21950
db3c826749f7 8029417: JDBC 4.2 javadoc updates
lancea
parents: 21278
diff changeset
  2816
     * the JDBC driver does not support the specified sqlType
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2817
     * or if the JDBC driver does not support this method
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2818
     * @see JDBCType
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2819
     * @see SQLType
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2820
     * @since 1.8
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2821
     */
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2822
    default void registerOutParameter (String parameterName, SQLType sqlType,
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2823
            String typeName) throws SQLException {
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2824
        throw new SQLFeatureNotSupportedException("registerOutParameter not implemented");
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 14342
diff changeset
  2825
    }
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2826
}