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