jdk/src/share/classes/java/sql/CallableStatement.java
author chegar
Tue, 12 May 2009 16:32:34 +0100
changeset 3450 2f08a8bb9b83
parent 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
6801071: Remote sites can compromise user privacy and possibly hijack web sessions Reviewed-by: jccollet, hawtin
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * Copyright 1996-2006 Sun Microsystems, Inc.  All Rights Reserved.
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
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
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
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 * have any questions.
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.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 * <P>
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
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
    BigDecimal getBigDecimal(int parameterIndex, int scale)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
     * Retrieves the value of the designated JDBC <code>BINARY</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
     * <code>VARBINARY</code> parameter as an array of <code>byte</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
     * values in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
     *        and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
     *         is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
     * @see #setBytes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
    byte[] getBytes(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
     * Retrieves the value of the designated JDBC <code>DATE</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
     * <code>java.sql.Date</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
     *        and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
     *         is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
     * @see #setDate
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
    java.sql.Date getDate(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
     * Retrieves the value of the designated JDBC <code>TIME</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
     * <code>java.sql.Time</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
     *        and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
     *         is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
     * @see #setTime
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
    java.sql.Time getTime(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
     * Retrieves the value of the designated JDBC <code>TIMESTAMP</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
     * <code>java.sql.Timestamp</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
     *        and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
     *         is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
     * @see #setTimestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
    java.sql.Timestamp getTimestamp(int parameterIndex)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
    //----------------------------------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
    // Advanced features:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
     * Retrieves the value of the designated parameter as an <code>Object</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
     * in the Java programming language. If the value is an SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
     * the driver returns a Java <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
     * This method returns a Java object whose type corresponds to the JDBC
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
     * type that was registered for this parameter using the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
     * <code>registerOutParameter</code>.  By registering the target JDBC
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
     * type as <code>java.sql.Types.OTHER</code>, this method can be used
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
     * to read database-specific abstract data types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
     *        and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
     * @return A <code>java.lang.Object</code> holding the OUT parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
     * @see Types
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
     * @see #setObject
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
    Object getObject(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
    //--------------------------JDBC 2.0-----------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
     * Retrieves the value of the designated JDBC <code>NUMERIC</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
     * <code>java.math.BigDecimal</code> object with as many digits to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
     * right of the decimal point as the value contains.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
     * and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
     * @return the parameter value in full precision.  If the value is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
     * SQL <code>NULL</code>, the result is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
     * @see #setBigDecimal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
    BigDecimal getBigDecimal(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
     * Returns an object representing the value of OUT parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
     * <code>parameterIndex</code> and uses <code>map</code> for the custom
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
     * mapping of the parameter value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
     * This method returns a Java object whose type corresponds to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
     * JDBC type that was registered for this parameter using the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
     * <code>registerOutParameter</code>.  By registering the target
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
     * JDBC type as <code>java.sql.Types.OTHER</code>, this method can
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
     * be used to read database-specific abstract data types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
     * @param parameterIndex the first parameter is 1, the second is 2, and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
     * @param map the mapping from SQL type names to Java classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
     * @return a <code>java.lang.Object</code> holding the OUT parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
     * @see #setObject
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
    Object getObject(int parameterIndex, java.util.Map<String,Class<?>> map)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
     * Retrieves the value of the designated JDBC <code>REF(&lt;structured-type&gt;)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
     * parameter as a {@link java.sql.Ref} object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
     * and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
     * @return the parameter value as a <code>Ref</code> object in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
     * Java programming language.  If the value was SQL <code>NULL</code>, the value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
     * <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
    Ref getRef (int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
     * Retrieves the value of the designated JDBC <code>BLOB</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
     * {@link java.sql.Blob} object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
     * @param parameterIndex the first parameter is 1, the second is 2, and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
     * @return the parameter value as a <code>Blob</code> object in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
     * Java programming language.  If the value was SQL <code>NULL</code>, the value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
     * <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
    Blob getBlob (int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
     * Retrieves the value of the designated JDBC <code>CLOB</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
     * <code>java.sql.Clob</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
     * @param parameterIndex the first parameter is 1, the second is 2, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
     * so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
     * @return the parameter value as a <code>Clob</code> object in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
     * Java programming language.  If the value was SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
     * value <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
    Clob getClob (int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
     * Retrieves the value of the designated JDBC <code>ARRAY</code> parameter as an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
     * {@link java.sql.Array} object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
     * @param parameterIndex the first parameter is 1, the second is 2, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
     * so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
     * @return the parameter value as an <code>Array</code> object in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
     * the Java programming language.  If the value was SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
     * value <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
    Array getArray (int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
     * Retrieves the value of the designated JDBC <code>DATE</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
     * <code>java.sql.Date</code> object, using
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
     * the given <code>Calendar</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
     * to construct the date.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
     * With a <code>Calendar</code> object, the driver
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
     * can calculate the date taking into account a custom timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
     * If no <code>Calendar</code> object is specified, the driver uses the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
     * default timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
     * and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
     * @param cal the <code>Calendar</code> object the driver will use
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
     *            to construct the date
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
     *         is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
     * @see #setDate
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
    java.sql.Date getDate(int parameterIndex, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
     * Retrieves the value of the designated JDBC <code>TIME</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
     * <code>java.sql.Time</code> object, using
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
     * the given <code>Calendar</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
     * to construct the time.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
     * With a <code>Calendar</code> object, the driver
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
     * can calculate the time taking into account a custom timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
     * If no <code>Calendar</code> object is specified, the driver uses the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
     * default timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
     * and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
     * @param cal the <code>Calendar</code> object the driver will use
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
     *            to construct the time
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
     * @return the parameter value; if the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
     *         is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
     * @see #setTime
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
    java.sql.Time getTime(int parameterIndex, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
     * Retrieves the value of the designated JDBC <code>TIMESTAMP</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
     * <code>java.sql.Timestamp</code> object, using
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
     * the given <code>Calendar</code> object to construct
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
     * the <code>Timestamp</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
     * With a <code>Calendar</code> object, the driver
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
     * can calculate the timestamp taking into account a custom timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
     * If no <code>Calendar</code> object is specified, the driver uses the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
     * default timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
     * @param parameterIndex the first parameter is 1, the second is 2,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
     * and so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
     * @param cal the <code>Calendar</code> object the driver will use
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
     *            to construct the timestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
     *         is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   565
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   566
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   568
     * @see #setTimestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   569
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   570
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   571
    java.sql.Timestamp getTimestamp(int parameterIndex, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
90ce3da70b43 Initial load
duke
parents:
diff changeset
   575
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
     * Registers the designated output parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
     * This version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
     * the method <code>registerOutParameter</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
     * should be used for a user-defined or <code>REF</code> output parameter.  Examples
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
     * of user-defined types include: <code>STRUCT</code>, <code>DISTINCT</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
     * <code>JAVA_OBJECT</code>, and named array types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
     *<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
     * All OUT parameters must be registered
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
     * before a stored procedure is executed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   585
     * <p>  For a user-defined parameter, the fully-qualified SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
     * type name of the parameter should also be given, while a <code>REF</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
     * parameter requires that the fully-qualified type name of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
     * referenced type be given.  A JDBC driver that does not need the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
     * type code and type name information may ignore it.   To be portable,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
     * however, applications should always provide these values for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
     * user-defined and <code>REF</code> parameters.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   592
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
     * Although it is intended for user-defined and <code>REF</code> parameters,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
     * this method may be used to register a parameter of any JDBC type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
     * If the parameter does not have a user-defined or <code>REF</code> type, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
     * <i>typeName</i> parameter is ignored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   597
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
     * <P><B>Note:</B> When reading the value of an out parameter, you
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
     * must use the getter method whose Java type corresponds to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
     * parameter's registered SQL type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
     * @param parameterIndex the first parameter is 1, the second is 2,...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
     * @param sqlType a value from {@link java.sql.Types}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
     * @param typeName the fully-qualified name of an SQL structured type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
     * @exception SQLFeatureNotSupportedException if <code>sqlType</code> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
     * a <code>ARRAY</code>, <code>BLOB</code>, <code>CLOB</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
     * <code>DATALINK</code>, <code>JAVA_OBJECT</code>, <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
     * <code>NCLOB</code>, <code>NVARCHAR</code>, <code>LONGNVARCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
     *  <code>REF</code>, <code>ROWID</code>, <code>SQLXML</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
     * or  <code>STRUCT</code> data type and the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
     * this data type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
     * @see Types
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
    void registerOutParameter (int parameterIndex, int sqlType, String typeName)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
  //--------------------------JDBC 3.0-----------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
     * Registers the OUT parameter named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
     * <code>parameterName</code> to the JDBC type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
     * <code>sqlType</code>.  All OUT parameters must be registered
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
     * before a stored procedure is executed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
     * The JDBC type specified by <code>sqlType</code> for an OUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
     * parameter determines the Java type that must be used
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
     * in the <code>get</code> method to read the value of that parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   632
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
     * If the JDBC type expected to be returned to this output parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
     * is specific to this particular database, <code>sqlType</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
     * should be <code>java.sql.Types.OTHER</code>.  The method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
     * {@link #getObject} retrieves the value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
     * @param sqlType the JDBC type code defined by <code>java.sql.Types</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
     * If the parameter is of JDBC type <code>NUMERIC</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
     * or <code>DECIMAL</code>, the version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
     * <code>registerOutParameter</code> that accepts a scale value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
     * should be used.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
     * @exception SQLFeatureNotSupportedException if <code>sqlType</code> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   647
     * a <code>ARRAY</code>, <code>BLOB</code>, <code>CLOB</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
     * <code>DATALINK</code>, <code>JAVA_OBJECT</code>, <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
     * <code>NCLOB</code>, <code>NVARCHAR</code>, <code>LONGNVARCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
     *  <code>REF</code>, <code>ROWID</code>, <code>SQLXML</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
     * or  <code>STRUCT</code> data type and the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
     * this data type or if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   655
     * @see Types
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
    void registerOutParameter(String parameterName, int sqlType)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659
90ce3da70b43 Initial load
duke
parents:
diff changeset
   660
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
     * Registers the parameter named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   662
     * <code>parameterName</code> to be of JDBC type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
     * <code>sqlType</code>.  All OUT parameters must be registered
90ce3da70b43 Initial load
duke
parents:
diff changeset
   664
     * before a stored procedure is executed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   665
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   666
     * The JDBC type specified by <code>sqlType</code> for an OUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   667
     * parameter determines the Java type that must be used
90ce3da70b43 Initial load
duke
parents:
diff changeset
   668
     * in the <code>get</code> method to read the value of that parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   669
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   670
     * This version of <code>registerOutParameter</code> should be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
     * used when the parameter is of JDBC type <code>NUMERIC</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   672
     * or <code>DECIMAL</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   673
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   674
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   675
     * @param sqlType SQL type code defined by <code>java.sql.Types</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   676
     * @param scale the desired number of digits to the right of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   677
     * decimal point.  It must be greater than or equal to zero.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   678
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   679
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   680
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   681
     * @exception SQLFeatureNotSupportedException if <code>sqlType</code> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   682
     * a <code>ARRAY</code>, <code>BLOB</code>, <code>CLOB</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   683
     * <code>DATALINK</code>, <code>JAVA_OBJECT</code>, <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   684
     * <code>NCLOB</code>, <code>NVARCHAR</code>, <code>LONGNVARCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   685
     *  <code>REF</code>, <code>ROWID</code>, <code>SQLXML</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   686
     * or  <code>STRUCT</code> data type and the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   687
     * this data type or if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   688
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   689
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   690
     * @see Types
90ce3da70b43 Initial load
duke
parents:
diff changeset
   691
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   692
    void registerOutParameter(String parameterName, int sqlType, int scale)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   693
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   694
90ce3da70b43 Initial load
duke
parents:
diff changeset
   695
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   696
     * Registers the designated output parameter.  This version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   697
     * the method <code>registerOutParameter</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   698
     * should be used for a user-named or REF output parameter.  Examples
90ce3da70b43 Initial load
duke
parents:
diff changeset
   699
     * of user-named types include: STRUCT, DISTINCT, JAVA_OBJECT, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   700
     * named array types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   701
     *<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   702
     * All OUT parameters must be registered
90ce3da70b43 Initial load
duke
parents:
diff changeset
   703
     * before a stored procedure is executed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   704
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   705
     * For a user-named parameter the fully-qualified SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   706
     * type name of the parameter should also be given, while a REF
90ce3da70b43 Initial load
duke
parents:
diff changeset
   707
     * parameter requires that the fully-qualified type name of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   708
     * referenced type be given.  A JDBC driver that does not need the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   709
     * type code and type name information may ignore it.   To be portable,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   710
     * however, applications should always provide these values for
90ce3da70b43 Initial load
duke
parents:
diff changeset
   711
     * user-named and REF parameters.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   712
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   713
     * Although it is intended for user-named and REF parameters,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   714
     * this method may be used to register a parameter of any JDBC type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   715
     * If the parameter does not have a user-named or REF type, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   716
     * typeName parameter is ignored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   717
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   718
     * <P><B>Note:</B> When reading the value of an out parameter, you
90ce3da70b43 Initial load
duke
parents:
diff changeset
   719
     * must use the <code>getXXX</code> method whose Java type XXX corresponds to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   720
     * parameter's registered SQL type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   721
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   722
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   723
     * @param sqlType a value from {@link java.sql.Types}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   724
     * @param typeName the fully-qualified name of an SQL structured type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   725
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   726
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   727
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   728
     * @exception SQLFeatureNotSupportedException if <code>sqlType</code> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   729
     * a <code>ARRAY</code>, <code>BLOB</code>, <code>CLOB</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   730
     * <code>DATALINK</code>, <code>JAVA_OBJECT</code>, <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   731
     * <code>NCLOB</code>, <code>NVARCHAR</code>, <code>LONGNVARCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   732
     *  <code>REF</code>, <code>ROWID</code>, <code>SQLXML</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   733
     * or  <code>STRUCT</code> data type and the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   734
     * this data type or if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   735
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   736
     * @see Types
90ce3da70b43 Initial load
duke
parents:
diff changeset
   737
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   738
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   739
    void registerOutParameter (String parameterName, int sqlType, String typeName)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   740
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   741
90ce3da70b43 Initial load
duke
parents:
diff changeset
   742
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   743
     * Retrieves the value of the designated JDBC <code>DATALINK</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   744
     * <code>java.net.URL</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   745
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   746
     * @param parameterIndex the first parameter is 1, the second is 2,...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   747
     * @return a <code>java.net.URL</code> object that represents the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   748
     *         JDBC <code>DATALINK</code> value used as the designated
90ce3da70b43 Initial load
duke
parents:
diff changeset
   749
     *         parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   750
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   751
     * if a database access error occurs,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   752
     * this method is called on a closed <code>CallableStatement</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   753
     *            or if the URL being returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
   754
     *            not a valid URL on the Java platform
90ce3da70b43 Initial load
duke
parents:
diff changeset
   755
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   756
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   757
     * @see #setURL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   758
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   759
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   760
    java.net.URL getURL(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   761
90ce3da70b43 Initial load
duke
parents:
diff changeset
   762
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   763
     * Sets the designated parameter to the given <code>java.net.URL</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   764
     * The driver converts this to an SQL <code>DATALINK</code> value when
90ce3da70b43 Initial load
duke
parents:
diff changeset
   765
     * it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   766
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   767
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   768
     * @param val the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   769
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   770
     * parameter; if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   771
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   772
     *            or if a URL is malformed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   773
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   774
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   775
     * @see #getURL
90ce3da70b43 Initial load
duke
parents:
diff changeset
   776
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   777
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   778
    void setURL(String parameterName, java.net.URL val) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   779
90ce3da70b43 Initial load
duke
parents:
diff changeset
   780
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   781
     * Sets the designated parameter to SQL <code>NULL</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   782
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   783
     * <P><B>Note:</B> You must specify the parameter's SQL type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   784
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   785
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   786
     * @param sqlType the SQL type code defined in <code>java.sql.Types</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   787
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   788
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   789
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   790
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   791
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   792
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   793
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   794
    void setNull(String parameterName, int sqlType) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   795
90ce3da70b43 Initial load
duke
parents:
diff changeset
   796
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   797
     * Sets the designated parameter to the given Java <code>boolean</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   798
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   799
     * 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
   800
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   801
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   802
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   803
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   804
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   805
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   806
     * @see #getBoolean
90ce3da70b43 Initial load
duke
parents:
diff changeset
   807
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   808
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   809
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   810
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   811
    void setBoolean(String parameterName, boolean x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   812
90ce3da70b43 Initial load
duke
parents:
diff changeset
   813
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   814
     * Sets the designated parameter to the given Java <code>byte</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   815
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   816
     * to an SQL <code>TINYINT</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   817
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   818
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   819
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   820
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   821
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   822
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   823
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   824
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   825
     * @see #getByte
90ce3da70b43 Initial load
duke
parents:
diff changeset
   826
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   827
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   828
    void setByte(String parameterName, byte x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   829
90ce3da70b43 Initial load
duke
parents:
diff changeset
   830
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   831
     * Sets the designated parameter to the given Java <code>short</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   832
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   833
     * to an SQL <code>SMALLINT</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   834
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   835
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   836
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   837
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   838
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   839
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   840
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   841
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   842
     * @see #getShort
90ce3da70b43 Initial load
duke
parents:
diff changeset
   843
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   844
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   845
    void setShort(String parameterName, short x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   846
90ce3da70b43 Initial load
duke
parents:
diff changeset
   847
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   848
     * Sets the designated parameter to the given Java <code>int</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   849
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   850
     * to an SQL <code>INTEGER</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   851
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   852
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   853
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   854
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   855
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   856
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   857
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   858
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   859
     * @see #getInt
90ce3da70b43 Initial load
duke
parents:
diff changeset
   860
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   861
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   862
    void setInt(String parameterName, int x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   863
90ce3da70b43 Initial load
duke
parents:
diff changeset
   864
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   865
     * Sets the designated parameter to the given Java <code>long</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   866
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   867
     * to an SQL <code>BIGINT</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   868
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   869
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   870
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   871
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   872
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   873
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   874
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   875
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   876
     * @see #getLong
90ce3da70b43 Initial load
duke
parents:
diff changeset
   877
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   878
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   879
    void setLong(String parameterName, long x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   880
90ce3da70b43 Initial load
duke
parents:
diff changeset
   881
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   882
     * Sets the designated parameter to the given Java <code>float</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   883
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   884
     * to an SQL <code>FLOAT</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   885
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   886
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   887
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   888
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   889
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   890
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   891
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   892
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   893
     * @see #getFloat
90ce3da70b43 Initial load
duke
parents:
diff changeset
   894
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   895
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   896
    void setFloat(String parameterName, float x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   897
90ce3da70b43 Initial load
duke
parents:
diff changeset
   898
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   899
     * Sets the designated parameter to the given Java <code>double</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   900
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   901
     * to an SQL <code>DOUBLE</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   902
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   903
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   904
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   905
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   906
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   907
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   908
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   909
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   910
     * @see #getDouble
90ce3da70b43 Initial load
duke
parents:
diff changeset
   911
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   912
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   913
    void setDouble(String parameterName, double x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   914
90ce3da70b43 Initial load
duke
parents:
diff changeset
   915
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   916
     * Sets the designated parameter to the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
   917
     * <code>java.math.BigDecimal</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   918
     * The driver converts this to an SQL <code>NUMERIC</code> value when
90ce3da70b43 Initial load
duke
parents:
diff changeset
   919
     * it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   920
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   921
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   922
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   923
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   924
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   925
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   926
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   927
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   928
     * @see #getBigDecimal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   929
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   930
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   931
    void setBigDecimal(String parameterName, BigDecimal x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   932
90ce3da70b43 Initial load
duke
parents:
diff changeset
   933
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   934
     * Sets the designated parameter to the given Java <code>String</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   935
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   936
     * to an SQL <code>VARCHAR</code> or <code>LONGVARCHAR</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   937
     * (depending on the argument's
90ce3da70b43 Initial load
duke
parents:
diff changeset
   938
     * size relative to the driver's limits on <code>VARCHAR</code> values)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   939
     * when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   940
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   941
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   942
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   943
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   944
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   945
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   946
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   947
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   948
     * @see #getString
90ce3da70b43 Initial load
duke
parents:
diff changeset
   949
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   950
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   951
    void setString(String parameterName, String x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   952
90ce3da70b43 Initial load
duke
parents:
diff changeset
   953
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   954
     * Sets the designated parameter to the given Java array of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   955
     * The driver converts this to an SQL <code>VARBINARY</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   956
     * <code>LONGVARBINARY</code> (depending on the argument's size relative
90ce3da70b43 Initial load
duke
parents:
diff changeset
   957
     * to the driver's limits on <code>VARBINARY</code> values) when it sends
90ce3da70b43 Initial load
duke
parents:
diff changeset
   958
     * it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   959
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   960
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   961
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   962
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   963
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   964
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   965
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   966
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   967
     * @see #getBytes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   968
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   969
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   970
    void setBytes(String parameterName, byte x[]) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   971
90ce3da70b43 Initial load
duke
parents:
diff changeset
   972
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   973
     * Sets the designated parameter to the given <code>java.sql.Date</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   974
     * using the default time zone of the virtual machine that is running
90ce3da70b43 Initial load
duke
parents:
diff changeset
   975
     * the application.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   976
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   977
     * to an SQL <code>DATE</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   978
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   979
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   980
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   981
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
   982
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
   983
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   984
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   985
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   986
     * @see #getDate
90ce3da70b43 Initial load
duke
parents:
diff changeset
   987
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   988
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   989
    void setDate(String parameterName, java.sql.Date x)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   990
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   991
90ce3da70b43 Initial load
duke
parents:
diff changeset
   992
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   993
     * Sets the designated parameter to the given <code>java.sql.Time</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   994
     * The driver converts this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   995
     * to an SQL <code>TIME</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   996
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   997
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
   998
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   999
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1000
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1001
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1002
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1003
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1004
     * @see #getTime
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1005
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1006
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1007
    void setTime(String parameterName, java.sql.Time x)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1008
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1009
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1010
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1011
     * Sets the designated parameter to the given <code>java.sql.Timestamp</code> value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1012
     * The driver
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1013
     * converts this to an SQL <code>TIMESTAMP</code> value when it sends it to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1014
     * database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1015
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1016
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1017
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1018
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1019
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1020
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1021
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1022
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1023
     * @see #getTimestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1024
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1025
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1026
    void setTimestamp(String parameterName, java.sql.Timestamp x)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1027
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1028
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1029
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1030
     * Sets the designated parameter to the given input stream, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1031
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1032
     * When a very large ASCII value is input to a <code>LONGVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1033
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1034
     * <code>java.io.InputStream</code>. Data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1035
     * as needed until end-of-file is reached.  The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1036
     * do any necessary conversion from ASCII to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1037
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1038
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1039
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1040
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1041
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1042
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1043
     * @param x the Java input stream that contains the ASCII parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1044
     * @param length the number of bytes in the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1045
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1046
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1047
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1048
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1049
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1050
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1051
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1052
    void setAsciiStream(String parameterName, java.io.InputStream x, int length)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1053
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1054
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1055
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1056
     * Sets the designated parameter to the given input stream, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1057
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1058
     * When a very large binary value is input to a <code>LONGVARBINARY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1059
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1060
     * <code>java.io.InputStream</code> object. The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1061
     * as needed until end-of-file is reached.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1062
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1063
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1064
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1065
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1066
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1067
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1068
     * @param x the java input stream which contains the binary parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1069
     * @param length the number of bytes in the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1070
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1071
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1072
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1073
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1074
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1075
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1076
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1077
    void setBinaryStream(String parameterName, java.io.InputStream x,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1078
                         int length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1079
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1080
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1081
     * Sets the value of the designated parameter with the given object. The second
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1082
     * argument must be an object type; for integral values, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1083
     * <code>java.lang</code> equivalent objects should be used.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1084
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1085
     * <p>The given Java object will be converted to the given targetSqlType
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1086
     * before being sent to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1087
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1088
     * If the object has a custom mapping (is of a class implementing the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1089
     * interface <code>SQLData</code>),
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1090
     * the JDBC driver should call the method <code>SQLData.writeSQL</code> to write it
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1091
     * to the SQL data stream.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1092
     * If, on the other hand, the object is of a class implementing
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1093
     * <code>Ref</code>, <code>Blob</code>, <code>Clob</code>,  <code>NClob</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1094
     *  <code>Struct</code>, <code>java.net.URL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1095
     * or <code>Array</code>, the driver should pass it to the database as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1096
     * value of the corresponding SQL type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1097
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1098
     * Note that this method may be used to pass datatabase-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1099
     * specific abstract data types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1100
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1101
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1102
     * @param x the object containing the input parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1103
     * @param targetSqlType the SQL type (as defined in java.sql.Types) to be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1104
     * sent to the database. The scale argument may further qualify this type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1105
     * @param scale for java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1106
     *          this is the number of digits after the decimal point.  For all other
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1107
     *          types, this value will be ignored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1108
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1109
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1110
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1111
     * @exception SQLFeatureNotSupportedException if <code>targetSqlType</code> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1112
     * a <code>ARRAY</code>, <code>BLOB</code>, <code>CLOB</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1113
     * <code>DATALINK</code>, <code>JAVA_OBJECT</code>, <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1114
     * <code>NCLOB</code>, <code>NVARCHAR</code>, <code>LONGNVARCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1115
     *  <code>REF</code>, <code>ROWID</code>, <code>SQLXML</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1116
     * or  <code>STRUCT</code> data type and the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1117
     * this data type
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1118
     * @see Types
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1119
     * @see #getObject
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1120
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1121
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1122
    void setObject(String parameterName, Object x, int targetSqlType, int scale)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1123
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1124
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1125
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1126
     * Sets the value of the designated parameter with the given object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1127
     * This method is like the method <code>setObject</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1128
     * above, except that it assumes a scale of zero.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1129
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1130
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1131
     * @param x the object containing the input parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1132
     * @param targetSqlType the SQL type (as defined in java.sql.Types) to be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1133
     *                      sent to the database
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1134
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1135
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1136
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1137
     * @exception SQLFeatureNotSupportedException if <code>targetSqlType</code> is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1138
     * a <code>ARRAY</code>, <code>BLOB</code>, <code>CLOB</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1139
     * <code>DATALINK</code>, <code>JAVA_OBJECT</code>, <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1140
     * <code>NCLOB</code>, <code>NVARCHAR</code>, <code>LONGNVARCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1141
     *  <code>REF</code>, <code>ROWID</code>, <code>SQLXML</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1142
     * or  <code>STRUCT</code> data type and the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1143
     * this data type
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1144
     * @see #getObject
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1145
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1146
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1147
    void setObject(String parameterName, Object x, int targetSqlType)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1148
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1149
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1150
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1151
     * Sets the value of the designated parameter with the given object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1152
     * The second parameter must be of type <code>Object</code>; therefore, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1153
     * <code>java.lang</code> equivalent objects should be used for built-in types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1154
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1155
     * <p>The JDBC specification specifies a standard mapping from
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1156
     * Java <code>Object</code> types to SQL types.  The given argument
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1157
     * will be converted to the corresponding SQL type before being
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1158
     * sent to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1159
     * <p>Note that this method may be used to pass datatabase-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1160
     * specific abstract data types, by using a driver-specific Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1161
     * type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1162
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1163
     * If the object is of a class implementing the interface <code>SQLData</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1164
     * the JDBC driver should call the method <code>SQLData.writeSQL</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1165
     * to write it to the SQL data stream.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1166
     * If, on the other hand, the object is of a class implementing
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1167
     * <code>Ref</code>, <code>Blob</code>, <code>Clob</code>,  <code>NClob</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1168
     *  <code>Struct</code>, <code>java.net.URL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1169
     * or <code>Array</code>, the driver should pass it to the database as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1170
     * value of the corresponding SQL type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1171
     * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1172
     * This method throws an exception if there is an ambiguity, for example, if the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1173
     * object is of a class implementing more than one of the interfaces named above.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1174
     *<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1175
     *<b>Note:</b> Not all databases allow for a non-typed Null to be sent to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1176
     * the backend. For maximum portability, the <code>setNull</code> or the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1177
     * <code>setObject(String parameterName, Object x, int sqlType)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1178
     * method should be used
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1179
     * instead of <code>setObject(String parameterName, Object x)</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1180
     *<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1181
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1182
     * @param x the object containing the input parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1183
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1184
     * parameter; if a database access error occurs,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1185
     * this method is called on a closed <code>CallableStatement</code> or if the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1186
     *            <code>Object</code> parameter is ambiguous
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1187
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1188
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1189
     * @see #getObject
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1190
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1191
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1192
    void setObject(String parameterName, Object x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1193
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1194
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1195
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1196
     * Sets the designated parameter to the given <code>Reader</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1197
     * object, which is the given number of characters long.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1198
     * When a very large UNICODE value is input to a <code>LONGVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1199
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1200
     * <code>java.io.Reader</code> object. The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1201
     * as needed until end-of-file is reached.  The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1202
     * do any necessary conversion from UNICODE to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1203
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1204
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1205
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1206
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1207
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1208
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1209
     * @param reader the <code>java.io.Reader</code> object that
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1210
     *        contains the UNICODE data used as the designated parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1211
     * @param length the number of characters in the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1212
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1213
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1214
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1215
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1216
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1217
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1218
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1219
    void setCharacterStream(String parameterName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1220
                            java.io.Reader reader,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1221
                            int length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1222
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1223
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1224
     * Sets the designated parameter to the given <code>java.sql.Date</code> value,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1225
     * using the given <code>Calendar</code> object.  The driver uses
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1226
     * the <code>Calendar</code> object to construct an SQL <code>DATE</code> value,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1227
     * which the driver then sends to the database.  With a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1228
     * a <code>Calendar</code> object, the driver can calculate the date
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1229
     * taking into account a custom timezone.  If no
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1230
     * <code>Calendar</code> object is specified, the driver uses the default
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1231
     * timezone, which is that of the virtual machine running the application.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1232
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1233
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1234
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1235
     * @param cal the <code>Calendar</code> object the driver will use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1236
     *            to construct the date
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1237
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1238
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1239
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1240
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1241
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1242
     * @see #getDate
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1243
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1244
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1245
    void setDate(String parameterName, java.sql.Date x, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1246
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1247
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1248
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1249
     * Sets the designated parameter to the given <code>java.sql.Time</code> value,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1250
     * using the given <code>Calendar</code> object.  The driver uses
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1251
     * the <code>Calendar</code> object to construct an SQL <code>TIME</code> value,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1252
     * which the driver then sends to the database.  With a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1253
     * a <code>Calendar</code> object, the driver can calculate the time
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1254
     * taking into account a custom timezone.  If no
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1255
     * <code>Calendar</code> object is specified, the driver uses the default
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1256
     * timezone, which is that of the virtual machine running the application.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1257
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1258
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1259
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1260
     * @param cal the <code>Calendar</code> object the driver will use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1261
     *            to construct the time
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1262
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1263
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1264
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1265
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1266
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1267
     * @see #getTime
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1268
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1269
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1270
    void setTime(String parameterName, java.sql.Time x, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1271
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1272
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1273
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1274
     * Sets the designated parameter to the given <code>java.sql.Timestamp</code> value,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1275
     * using the given <code>Calendar</code> object.  The driver uses
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1276
     * the <code>Calendar</code> object to construct an SQL <code>TIMESTAMP</code> value,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1277
     * which the driver then sends to the database.  With a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1278
     * a <code>Calendar</code> object, the driver can calculate the timestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1279
     * taking into account a custom timezone.  If no
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1280
     * <code>Calendar</code> object is specified, the driver uses the default
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1281
     * timezone, which is that of the virtual machine running the application.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1282
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1283
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1284
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1285
     * @param cal the <code>Calendar</code> object the driver will use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1286
     *            to construct the timestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1287
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1288
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1289
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1290
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1291
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1292
     * @see #getTimestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1293
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1294
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1295
    void setTimestamp(String parameterName, java.sql.Timestamp x, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1296
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1297
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1298
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1299
     * Sets the designated parameter to SQL <code>NULL</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1300
     * This version of the method <code>setNull</code> should
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1301
     * be used for user-defined types and REF type parameters.  Examples
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1302
     * of user-defined types include: STRUCT, DISTINCT, JAVA_OBJECT, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1303
     * named array types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1304
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1305
     * <P><B>Note:</B> To be portable, applications must give the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1306
     * SQL type code and the fully-qualified SQL type name when specifying
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1307
     * a NULL user-defined or REF parameter.  In the case of a user-defined type
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1308
     * the name is the type name of the parameter itself.  For a REF
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1309
     * parameter, the name is the type name of the referenced type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1310
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1311
     * Although it is intended for user-defined and Ref parameters,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1312
     * this method may be used to set a null parameter of any JDBC type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1313
     * If the parameter does not have a user-defined or REF type, the given
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1314
     * typeName is ignored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1315
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1316
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1317
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1318
     * @param sqlType a value from <code>java.sql.Types</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1319
     * @param typeName the fully-qualified name of an SQL user-defined type;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1320
     *        ignored if the parameter is not a user-defined type or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1321
     *        SQL <code>REF</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1322
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1323
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1324
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1325
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1326
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1327
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1328
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1329
    void setNull (String parameterName, int sqlType, String typeName)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1330
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1331
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1332
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1333
     * Retrieves the value of a JDBC <code>CHAR</code>, <code>VARCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1334
     * or <code>LONGVARCHAR</code> parameter as a <code>String</code> in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1335
     * the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1336
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1337
     * For the fixed-length type JDBC <code>CHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1338
     * the <code>String</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1339
     * returned has exactly the same value the SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1340
     * <code>CHAR</code> value had in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1341
     * database, including any padding added by the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1342
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1343
     * @return the parameter value. If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1344
     * is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1345
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1346
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1347
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1348
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1349
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1350
     * @see #setString
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1351
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1352
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1353
    String getString(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1354
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1355
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1356
     * Retrieves the value of a JDBC <code>BIT</code> or <code>BOOLEAN</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1357
     * parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1358
     * <code>boolean</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1359
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1360
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1361
     * is <code>false</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1362
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1363
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1364
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1365
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1366
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1367
     * @see #setBoolean
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1368
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1369
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1370
    boolean getBoolean(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1371
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1372
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1373
     * Retrieves the value of a JDBC <code>TINYINT</code> parameter as a <code>byte</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1374
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1375
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1376
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1377
     * is <code>0</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1378
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1379
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1380
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1381
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1382
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1383
     * @see #setByte
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1384
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1385
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1386
    byte getByte(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1387
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1388
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1389
     * Retrieves the value of a JDBC <code>SMALLINT</code> parameter as a <code>short</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1390
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1391
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1392
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1393
     * is <code>0</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1394
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1395
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1396
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1397
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1398
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1399
     * @see #setShort
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1400
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1401
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1402
    short getShort(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1403
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1404
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1405
     * Retrieves the value of a JDBC <code>INTEGER</code> parameter as an <code>int</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1406
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1407
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1408
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1409
     * @return the parameter value.  If the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1410
     *         the result is <code>0</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1411
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1412
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1413
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1414
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1415
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1416
     * @see #setInt
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1417
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1418
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1419
    int getInt(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1420
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1421
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1422
     * Retrieves the value of a JDBC <code>BIGINT</code> parameter as a <code>long</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1423
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1424
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1425
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1426
     * @return the parameter value.  If the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1427
     *         the result is <code>0</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1428
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1429
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1430
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1431
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1432
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1433
     * @see #setLong
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1434
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1435
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1436
    long getLong(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1437
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1438
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1439
     * Retrieves the value of a JDBC <code>FLOAT</code> parameter as a <code>float</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1440
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1441
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1442
     * @return the parameter value.  If the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1443
     *         the result is <code>0</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1444
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1445
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1446
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1447
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1448
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1449
     * @see #setFloat
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1450
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1451
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1452
    float getFloat(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1453
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1454
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1455
     * Retrieves the value of a JDBC <code>DOUBLE</code> parameter as a <code>double</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1456
     * in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1457
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1458
     * @return the parameter value.  If the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1459
     *         the result is <code>0</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1460
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1461
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1462
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1463
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1464
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1465
     * @see #setDouble
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1466
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1467
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1468
    double getDouble(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1469
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1470
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1471
     * Retrieves the value of a JDBC <code>BINARY</code> or <code>VARBINARY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1472
     * parameter as an array of <code>byte</code> values in the Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1473
     * programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1474
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1475
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1476
     *  <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1477
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1478
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1479
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1480
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1481
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1482
     * @see #setBytes
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1483
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1484
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1485
    byte[] getBytes(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1486
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1487
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1488
     * Retrieves the value of a JDBC <code>DATE</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1489
     * <code>java.sql.Date</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1490
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1491
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1492
     * is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1493
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1494
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1495
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1496
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1497
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1498
     * @see #setDate
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1499
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1500
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1501
    java.sql.Date getDate(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1502
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1503
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1504
     * Retrieves the value of a JDBC <code>TIME</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1505
     * <code>java.sql.Time</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1506
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1507
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1508
     * is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1509
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1510
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1511
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1512
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1513
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1514
     * @see #setTime
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1515
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1516
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1517
    java.sql.Time getTime(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1518
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1519
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1520
     * Retrieves the value of a JDBC <code>TIMESTAMP</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1521
     * <code>java.sql.Timestamp</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1522
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1523
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1524
     * is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1525
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1526
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1527
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1528
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1529
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1530
     * @see #setTimestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1531
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1532
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1533
    java.sql.Timestamp getTimestamp(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1534
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1535
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1536
     * Retrieves the value of a parameter as an <code>Object</code> in the Java
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1537
     * programming language. If the value is an SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1538
     * driver returns a Java <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1539
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1540
     * This method returns a Java object whose type corresponds to the JDBC
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1541
     * type that was registered for this parameter using the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1542
     * <code>registerOutParameter</code>.  By registering the target JDBC
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1543
     * type as <code>java.sql.Types.OTHER</code>, this method can be used
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1544
     * to read database-specific abstract data types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1545
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1546
     * @return A <code>java.lang.Object</code> holding the OUT parameter value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1547
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1548
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1549
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1550
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1551
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1552
     * @see Types
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1553
     * @see #setObject
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1554
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1555
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1556
    Object getObject(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1557
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1558
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1559
     * Retrieves the value of a JDBC <code>NUMERIC</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1560
     * <code>java.math.BigDecimal</code> object with as many digits to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1561
     * right of the decimal point as the value contains.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1562
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1563
     * @return the parameter value in full precision.  If the value is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1564
     * SQL <code>NULL</code>, the result is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1565
     * @exception SQLExceptionif parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1566
     * parameter;  if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1567
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1568
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1569
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1570
     * @see #setBigDecimal
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1571
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1572
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1573
    BigDecimal getBigDecimal(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1574
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1575
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1576
     * Returns an object representing the value of OUT parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1577
     * <code>parameterName</code> and uses <code>map</code> for the custom
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1578
     * mapping of the parameter value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1579
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1580
     * This method returns a Java object whose type corresponds to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1581
     * JDBC type that was registered for this parameter using the method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1582
     * <code>registerOutParameter</code>.  By registering the target
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1583
     * JDBC type as <code>java.sql.Types.OTHER</code>, this method can
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1584
     * be used to read database-specific abstract data types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1585
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1586
     * @param map the mapping from SQL type names to Java classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1587
     * @return a <code>java.lang.Object</code> holding the OUT parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1588
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1589
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1590
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1591
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1592
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1593
     * @see #setObject
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1594
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1595
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1596
    Object getObject(String parameterName, java.util.Map<String,Class<?>> map)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1597
      throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1598
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1599
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1600
     * Retrieves the value of a JDBC <code>REF(&lt;structured-type&gt;)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1601
     * parameter as a {@link java.sql.Ref} object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1602
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1603
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1604
     * @return the parameter value as a <code>Ref</code> object in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1605
     *         Java programming language.  If the value was SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1606
     *         the value <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1607
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1608
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1609
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1610
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1611
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1612
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1613
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1614
    Ref getRef (String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1615
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1616
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1617
     * Retrieves the value of a JDBC <code>BLOB</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1618
     * {@link java.sql.Blob} object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1619
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1620
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1621
     * @return the parameter value as a <code>Blob</code> object in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1622
     *         Java programming language.  If the value was SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1623
     *         the value <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1624
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1625
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1626
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1627
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1628
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1629
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1630
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1631
    Blob getBlob (String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1632
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1633
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1634
     * Retrieves the value of a JDBC <code>CLOB</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1635
     * <code>java.sql.Clob</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1636
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1637
     * @return the parameter value as a <code>Clob</code> object in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1638
     *         Java programming language.  If the value was SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1639
     *         the value <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1640
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1641
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1642
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1643
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1644
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1645
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1646
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1647
    Clob getClob (String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1648
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1649
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1650
     * Retrieves the value of a JDBC <code>ARRAY</code> parameter as an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1651
     * {@link java.sql.Array} object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1652
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1653
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1654
     * @return the parameter value as an <code>Array</code> object in
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1655
     *         Java programming language.  If the value was SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1656
     *         the value <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1657
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1658
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1659
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1660
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1661
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1662
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1663
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1664
    Array getArray (String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1665
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1666
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1667
     * Retrieves the value of a JDBC <code>DATE</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1668
     * <code>java.sql.Date</code> object, using
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1669
     * the given <code>Calendar</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1670
     * to construct the date.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1671
     * With a <code>Calendar</code> object, the driver
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1672
     * can calculate the date taking into account a custom timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1673
     * If no <code>Calendar</code> object is specified, the driver uses the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1674
     * default timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1675
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1676
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1677
     * @param cal the <code>Calendar</code> object the driver will use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1678
     *            to construct the date
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1679
     * @return the parameter value.  If the value is SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1680
     * the result is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1681
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1682
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1683
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1684
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1685
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1686
     * @see #setDate
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1687
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1688
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1689
    java.sql.Date getDate(String parameterName, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1690
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1691
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1692
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1693
     * Retrieves the value of a JDBC <code>TIME</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1694
     * <code>java.sql.Time</code> object, using
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1695
     * the given <code>Calendar</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1696
     * to construct the time.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1697
     * With a <code>Calendar</code> object, the driver
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1698
     * can calculate the time taking into account a custom timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1699
     * If no <code>Calendar</code> object is specified, the driver uses the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1700
     * default timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1701
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1702
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1703
     * @param cal the <code>Calendar</code> object the driver will use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1704
     *            to construct the time
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1705
     * @return the parameter value; if the value is SQL <code>NULL</code>, the result is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1706
     * <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1707
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1708
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1709
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1710
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1711
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1712
     * @see #setTime
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1713
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1714
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1715
    java.sql.Time getTime(String parameterName, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1716
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1717
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1718
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1719
     * Retrieves the value of a JDBC <code>TIMESTAMP</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1720
     * <code>java.sql.Timestamp</code> object, using
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1721
     * the given <code>Calendar</code> object to construct
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1722
     * the <code>Timestamp</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1723
     * With a <code>Calendar</code> object, the driver
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1724
     * can calculate the timestamp taking into account a custom timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1725
     * If no <code>Calendar</code> object is specified, the driver uses the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1726
     * default timezone and locale.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1727
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1728
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1729
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1730
     * @param cal the <code>Calendar</code> object the driver will use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1731
     *            to construct the timestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1732
     * @return the parameter value.  If the value is SQL <code>NULL</code>, the result is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1733
     * <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1734
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1735
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1736
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1737
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1738
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1739
     * @see #setTimestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1740
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1741
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1742
    java.sql.Timestamp getTimestamp(String parameterName, Calendar cal)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1743
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1744
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1745
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1746
     * Retrieves the value of a JDBC <code>DATALINK</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1747
     * <code>java.net.URL</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1748
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1749
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1750
     * @return the parameter value as a <code>java.net.URL</code> object in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1751
     * Java programming language.  If the value was SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1752
     * value <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1753
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1754
     * parameter; if a database access error occurs,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1755
     * this method is called on a closed <code>CallableStatement</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1756
     *            or if there is a problem with the URL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1757
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1758
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1759
     * @see #setURL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1760
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1761
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1762
    java.net.URL getURL(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1763
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1764
    //------------------------- JDBC 4.0 -----------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1765
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1766
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1767
     * Retrieves the value of the designated JDBC <code>ROWID</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1768
     * <code>java.sql.RowId</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1769
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1770
     * @param parameterIndex the first parameter is 1, the second is 2,...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1771
     * @return a <code>RowId</code> object that represents the JDBC <code>ROWID</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1772
     *     value is used as the designated parameter. If the parameter contains
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1773
     * a SQL <code>NULL</code>, then a <code>null</code> value is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1774
     * @throws SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1775
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1776
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1777
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1778
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1779
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1780
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1781
    RowId getRowId(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1782
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1783
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1784
     * Retrieves the value of the designated JDBC <code>ROWID</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1785
     * <code>java.sql.RowId</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1786
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1787
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1788
     * @return a <code>RowId</code> object that represents the JDBC <code>ROWID</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1789
     *     value is used as the designated parameter. If the parameter contains
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1790
     * a SQL <code>NULL</code>, then a <code>null</code> value is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1791
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1792
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1793
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1794
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1795
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1796
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1797
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1798
    RowId getRowId(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1799
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1800
     /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1801
     * Sets the designated parameter to the given <code>java.sql.RowId</code> object. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1802
     * driver converts this to a SQL <code>ROWID</code> when it sends it to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1803
     * database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1804
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1805
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1806
     * @param x the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1807
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1808
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1809
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1810
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1811
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1812
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1813
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1814
    void setRowId(String parameterName, RowId x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1815
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1816
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1817
     * Sets the designated parameter to the given <code>String</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1818
     * The driver converts this to a SQL <code>NCHAR</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1819
     * <code>NVARCHAR</code> or <code>LONGNVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1820
     * @param parameterName the name of the parameter to be set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1821
     * @param value the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1822
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1823
     * parameter; if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1824
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1825
     *  error could occur; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1826
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1827
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1828
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1829
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1830
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1831
    void setNString(String parameterName, String value)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1832
            throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1833
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1834
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1835
     * Sets the designated parameter to a <code>Reader</code> object. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1836
     * <code>Reader</code> reads the data till end-of-file is reached. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1837
     * driver does the necessary conversion from Java character format to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1838
     * the national character set in the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1839
     * @param parameterName the name of the parameter to be set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1840
     * @param value the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1841
     * @param length the number of characters in the parameter data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1842
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1843
     * parameter; if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1844
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1845
     *  error could occur; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1846
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1847
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1848
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1849
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1850
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1851
    void setNCharacterStream(String parameterName, Reader value, long length)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1852
            throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1853
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1854
     /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1855
     * Sets the designated parameter to a <code>java.sql.NClob</code> object. The object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1856
     * implements the <code>java.sql.NClob</code> interface. This <code>NClob</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1857
     * object maps to a SQL <code>NCLOB</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1858
     * @param parameterName the name of the parameter to be set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1859
     * @param value the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1860
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1861
     * parameter; if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1862
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1863
     *  error could occur; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1864
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1865
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1866
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1867
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1868
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1869
     void setNClob(String parameterName, NClob value) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1870
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1871
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1872
     * 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
  1873
     * of characters specified by length otherwise a <code>SQLException</code> will be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1874
     * generated when the <code>CallableStatement</code> is executed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1875
     * This method differs from the <code>setCharacterStream (int, Reader, int)</code> method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1876
     * because it informs the driver that the parameter value should be sent to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1877
     * the server as a <code>CLOB</code>.  When the <code>setCharacterStream</code> method is used, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1878
     * driver may have to do extra work to determine whether the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1879
     * data should be send to the server as a <code>LONGVARCHAR</code> or a <code>CLOB</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1880
     * @param parameterName the name of the parameter to be set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1881
     * @param reader An object that contains the data to set the parameter value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1882
     * @param length the number of characters in the parameter data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1883
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1884
     * parameter; if the length specified is less than zero;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1885
     * a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1886
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1887
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1888
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1889
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1890
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1891
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1892
     void setClob(String parameterName, Reader reader, long length)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1893
       throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1894
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1895
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1896
     * 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
  1897
     * of characters specified by length, otherwise a <code>SQLException</code> will be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1898
     * generated when the <code>CallableStatement</code> is executed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1899
     * This method differs from the <code>setBinaryStream (int, InputStream, int)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1900
     * method because it informs the driver that the parameter value should be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1901
     * sent to the server as a <code>BLOB</code>.  When the <code>setBinaryStream</code> method is used,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1902
     * the driver may have to do extra work to determine whether the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1903
     * data should be sent to the server as a <code>LONGVARBINARY</code> or a <code>BLOB</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1904
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1905
     * @param parameterName the name of the parameter to be set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1906
     * the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1907
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1908
     * @param inputStream An object that contains the data to set the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1909
     * value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1910
     * @param length the number of bytes in the parameter data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1911
     * @throws SQLException  if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1912
     * parameter; if the length specified
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1913
     * is less than zero; if the number of bytes in the inputstream does not match
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1914
     * the specfied length; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1915
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1916
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1917
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1918
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1919
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1920
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1921
     void setBlob(String parameterName, InputStream inputStream, long length)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1922
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1923
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1924
     * 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
  1925
     * of characters specified by length otherwise a <code>SQLException</code> will be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1926
     * generated when the <code>CallableStatement</code> is executed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1927
     * This method differs from the <code>setCharacterStream (int, Reader, int)</code> method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1928
     * because it informs the driver that the parameter value should be sent to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1929
     * the server as a <code>NCLOB</code>.  When the <code>setCharacterStream</code> method is used, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1930
     * driver may have to do extra work to determine whether the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1931
     * data should be send to the server as a <code>LONGNVARCHAR</code> or a <code>NCLOB</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1932
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1933
     * @param parameterName the name of the parameter to be set
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1934
     * @param reader An object that contains the data to set the parameter value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1935
     * @param length the number of characters in the parameter data.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1936
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1937
     * parameter; if the length specified is less than zero;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1938
     * if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1939
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1940
     *  error could occur; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1941
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1942
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1943
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1944
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1945
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1946
     void setNClob(String parameterName, Reader reader, long length)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1947
       throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1948
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1949
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1950
     * Retrieves the value of the designated JDBC <code>NCLOB</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1951
     * <code>java.sql.NClob</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1952
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1953
     * @param parameterIndex the first parameter is 1, the second is 2, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1954
     * so on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1955
     * @return the parameter value as a <code>NClob</code> object in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1956
     * Java programming language.  If the value was SQL <code>NULL</code>, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1957
     * value <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1958
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1959
     * if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1960
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1961
     *  error could occur; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1962
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1963
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1964
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1965
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1966
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1967
    NClob getNClob (int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1968
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1969
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1970
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1971
     * Retrieves the value of a JDBC <code>NCLOB</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1972
     * <code>java.sql.NClob</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1973
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1974
     * @return the parameter value as a <code>NClob</code> object in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1975
     *         Java programming language.  If the value was SQL <code>NULL</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1976
     *         the value <code>null</code> is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1977
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1978
     * parameter; if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1979
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1980
     *  error could occur; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1981
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1982
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1983
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1984
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1985
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1986
    NClob getNClob (String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1987
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1988
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1989
     * 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
  1990
     * <code>SQL XML</code> value when it sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1991
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1992
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1993
     * @param xmlObject a <code>SQLXML</code> object that maps an <code>SQL XML</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1994
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1995
     * parameter; if a database access error occurs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1996
     * this method is called on a closed <code>CallableStatement</code> or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1997
     * the <code>java.xml.transform.Result</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1998
   *  <code>Writer</code> or <code>OutputStream</code> has not been closed for the <code>SQLXML</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1999
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2000
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2001
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2002
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2003
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2004
    void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2005
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2006
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2007
     * Retrieves the value of the designated <code>SQL XML</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2008
     * <code>java.sql.SQLXML</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2009
     * @param parameterIndex index of the first parameter is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2010
     * @return a <code>SQLXML</code> object that maps an <code>SQL XML</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2011
     * @throws SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2012
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2013
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2014
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2015
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2016
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2017
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2018
    SQLXML getSQLXML(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2019
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2020
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2021
     * Retrieves the value of the designated <code>SQL XML</code> parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2022
     * <code>java.sql.SQLXML</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2023
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2024
     * @return a <code>SQLXML</code> object that maps an <code>SQL XML</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2025
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2026
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2027
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2028
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2029
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2030
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2031
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2032
    SQLXML getSQLXML(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2033
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2034
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2035
     * Retrieves the value of the designated <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2036
     * <code>NVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2037
     * or <code>LONGNVARCHAR</code> parameter as
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2038
     * a <code>String</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2039
     *  <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2040
     * For the fixed-length type JDBC <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2041
     * the <code>String</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2042
     * returned has exactly the same value the SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2043
     * <code>NCHAR</code> value had in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2044
     * database, including any padding added by the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2045
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2046
     * @param parameterIndex index of the first parameter is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2047
     * @return a <code>String</code> object that maps an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2048
     * <code>NCHAR</code>, <code>NVARCHAR</code> or <code>LONGNVARCHAR</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2049
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2050
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2051
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2052
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2053
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2054
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2055
     * @see #setNString
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2056
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2057
    String getNString(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2058
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2059
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2060
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2061
     *  Retrieves the value of the designated <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2062
     * <code>NVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2063
     * or <code>LONGNVARCHAR</code> parameter as
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2064
     * a <code>String</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2065
     * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2066
     * For the fixed-length type JDBC <code>NCHAR</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2067
     * the <code>String</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2068
     * returned has exactly the same value the SQL
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2069
     * <code>NCHAR</code> value had in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2070
     * database, including any padding added by the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2071
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2072
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2073
     * @return a <code>String</code> object that maps an
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2074
     * <code>NCHAR</code>, <code>NVARCHAR</code> or <code>LONGNVARCHAR</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2075
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2076
     * parameter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2077
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2078
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2079
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2080
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2081
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2082
     * @see #setNString
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2083
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2084
    String getNString(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2085
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2086
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2087
     * Retrieves the value of the designated parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2088
     * <code>java.io.Reader</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2089
     * It is intended for use when
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2090
     * accessing  <code>NCHAR</code>,<code>NVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2091
     * and <code>LONGNVARCHAR</code> parameters.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2092
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2093
     * @return a <code>java.io.Reader</code> object that contains the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2094
     * value; if the value is SQL <code>NULL</code>, the value returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2095
     * <code>null</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2096
     * @param parameterIndex the first parameter is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2097
     * @exception SQLException if the parameterIndex is not valid;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2098
     * if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2099
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2100
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2101
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2102
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2103
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2104
    java.io.Reader getNCharacterStream(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2105
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2106
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2107
     * Retrieves the value of the designated parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2108
     * <code>java.io.Reader</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2109
     * It is intended for use when
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2110
     * accessing  <code>NCHAR</code>,<code>NVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2111
     * and <code>LONGNVARCHAR</code> parameters.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2112
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2113
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2114
     * @return a <code>java.io.Reader</code> object that contains the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2115
     * value; if the value is SQL <code>NULL</code>, the value returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2116
     * <code>null</code> in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2117
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2118
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2119
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2120
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2121
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2122
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2123
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2124
    java.io.Reader getNCharacterStream(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2125
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2126
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2127
     * Retrieves the value of the designated parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2128
     * <code>java.io.Reader</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2129
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2130
     * @return a <code>java.io.Reader</code> object that contains the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2131
     * value; if the value is SQL <code>NULL</code>, the value returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2132
     * <code>null</code> in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2133
     * @param parameterIndex the first parameter is 1, the second is 2, ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2134
     * @exception SQLException if the parameterIndex is not valid; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2135
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2136
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2137
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2138
    java.io.Reader getCharacterStream(int parameterIndex) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2139
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2140
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2141
     * Retrieves the value of the designated parameter as a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2142
     * <code>java.io.Reader</code> object in the Java programming language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2143
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2144
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2145
     * @return a <code>java.io.Reader</code> object that contains the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2146
     * value; if the value is SQL <code>NULL</code>, the value returned is
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2147
     * <code>null</code> in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2148
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2149
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2150
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2151
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2152
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2153
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2154
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2155
    java.io.Reader getCharacterStream(String parameterName) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2156
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2157
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2158
     * Sets the designated parameter to the given <code>java.sql.Blob</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2159
     * The driver converts this to an SQL <code>BLOB</code> value when it
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2160
     * sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2161
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2162
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2163
     * @param x a <code>Blob</code> object that maps an SQL <code>BLOB</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2164
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2165
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2166
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2167
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2168
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2169
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2170
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2171
    void setBlob (String parameterName, Blob x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2172
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2173
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2174
     * Sets the designated parameter to the given <code>java.sql.Clob</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2175
     * The driver converts this to an SQL <code>CLOB</code> value when it
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2176
     * sends it to the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2177
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2178
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2179
     * @param x a <code>Clob</code> object that maps an SQL <code>CLOB</code> value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2180
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2181
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2182
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2183
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2184
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2185
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2186
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2187
    void setClob (String parameterName, Clob x) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2188
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2189
     * Sets the designated parameter to the given input stream, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2190
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2191
     * When a very large ASCII value is input to a <code>LONGVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2192
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2193
     * <code>java.io.InputStream</code>. Data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2194
     * as needed until end-of-file is reached.  The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2195
     * do any necessary conversion from ASCII to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2196
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2197
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2198
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2199
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2200
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2201
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2202
     * @param x the Java input stream that contains the ASCII parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2203
     * @param length the number of bytes in the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2204
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2205
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2206
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2207
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2208
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2209
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2210
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2211
    void setAsciiStream(String parameterName, java.io.InputStream x, long length)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2212
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2213
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2214
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2215
     * Sets the designated parameter to the given input stream, which will have
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2216
     * the specified number of bytes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2217
     * When a very large binary value is input to a <code>LONGVARBINARY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2218
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2219
     * <code>java.io.InputStream</code> object. The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2220
     * as needed until end-of-file is reached.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2221
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2222
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2223
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2224
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2225
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2226
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2227
     * @param x the java input stream which contains the binary parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2228
     * @param length the number of bytes in the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2229
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2230
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2231
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2232
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2233
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2234
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2235
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2236
    void setBinaryStream(String parameterName, java.io.InputStream x,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2237
                         long length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2238
        /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2239
     * Sets the designated parameter to the given <code>Reader</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2240
     * object, which is the given number of characters long.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2241
     * When a very large UNICODE value is input to a <code>LONGVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2242
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2243
     * <code>java.io.Reader</code> object. The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2244
     * as needed until end-of-file is reached.  The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2245
     * do any necessary conversion from UNICODE to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2246
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2247
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2248
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2249
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2250
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2251
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2252
     * @param reader the <code>java.io.Reader</code> object that
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2253
     *        contains the UNICODE data used as the designated parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2254
     * @param length the number of characters in the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2255
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2256
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2257
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2258
     * @exception SQLFeatureNotSupportedException if the JDBC driver does not support
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2259
     * this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2260
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2261
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2262
    void setCharacterStream(String parameterName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2263
                            java.io.Reader reader,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2264
                            long length) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2265
     //--
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2266
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2267
     * Sets the designated parameter to the given input stream.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2268
     * When a very large ASCII value is input to a <code>LONGVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2269
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2270
     * <code>java.io.InputStream</code>. Data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2271
     * as needed until end-of-file is reached.  The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2272
     * do any necessary conversion from ASCII to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2273
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2274
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2275
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2276
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2277
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2278
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2279
     * <code>setAsciiStream</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2280
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2281
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2282
     * @param x the Java input stream that contains the ASCII parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2283
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2284
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2285
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2286
     * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2287
       * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2288
    */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2289
    void setAsciiStream(String parameterName, java.io.InputStream x)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2290
            throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2291
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2292
     * Sets the designated parameter to the given input stream.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2293
     * When a very large binary value is input to a <code>LONGVARBINARY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2294
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2295
     * <code>java.io.InputStream</code> object. The data will be read from the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2296
     * stream as needed until end-of-file is reached.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2297
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2298
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2299
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2300
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2301
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2302
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2303
     * <code>setBinaryStream</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2304
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2305
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2306
     * @param x the java input stream which contains the binary parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2307
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2308
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2309
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2310
     * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2311
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2312
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2313
    void setBinaryStream(String parameterName, java.io.InputStream x)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2314
    throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2315
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2316
     * Sets the designated parameter to the given <code>Reader</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2317
     * object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2318
     * When a very large UNICODE value is input to a <code>LONGVARCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2319
     * parameter, it may be more practical to send it via a
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2320
     * <code>java.io.Reader</code> object. The data will be read from the stream
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2321
     * as needed until end-of-file is reached.  The JDBC driver will
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2322
     * do any necessary conversion from UNICODE to the database char format.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2323
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2324
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2325
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2326
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2327
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2328
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2329
     * <code>setCharacterStream</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2330
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2331
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2332
     * @param reader the <code>java.io.Reader</code> object that contains the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2333
     *        Unicode data
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2334
     * @exception SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2335
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2336
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2337
     * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2338
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2339
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2340
    void setCharacterStream(String parameterName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2341
                          java.io.Reader reader) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2342
  /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2343
     * Sets the designated parameter to a <code>Reader</code> object. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2344
     * <code>Reader</code> reads the data till end-of-file is reached. The
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2345
     * driver does the necessary conversion from Java character format to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2346
     * the national character set in the database.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2347
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2348
     * <P><B>Note:</B> This stream object can either be a standard
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2349
     * Java stream object or your own subclass that implements the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2350
     * standard interface.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2351
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2352
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2353
     * <code>setNCharacterStream</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2354
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2355
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2356
     * @param value the parameter value
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2357
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2358
     * parameter; if the driver does not support national
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2359
     *         character sets;  if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2360
     *  error could occur; if a database access error occurs; or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2361
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2362
     * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2363
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2364
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2365
     void setNCharacterStream(String parameterName, Reader value) throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2366
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2367
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2368
     * Sets the designated parameter to a <code>Reader</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2369
     * This method differs from the <code>setCharacterStream (int, Reader)</code> method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2370
     * because it informs the driver that the parameter value should be sent to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2371
     * the server as a <code>CLOB</code>.  When the <code>setCharacterStream</code> method is used, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2372
     * driver may have to do extra work to determine whether the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2373
     * data should be send to the server as a <code>LONGVARCHAR</code> or a <code>CLOB</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2374
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2375
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2376
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2377
     * <code>setClob</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2378
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2379
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2380
     * @param reader An object that contains the data to set the parameter value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2381
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2382
     * parameter; if a database access error occurs or this method is called on
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2383
     * a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2384
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2385
     * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2386
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2387
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2388
     void setClob(String parameterName, Reader reader)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2389
       throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2390
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2391
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2392
     * Sets the designated parameter to a <code>InputStream</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2393
     * This method differs from the <code>setBinaryStream (int, InputStream)</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2394
     * method because it informs the driver that the parameter value should be
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2395
     * sent to the server as a <code>BLOB</code>.  When the <code>setBinaryStream</code> method is used,
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2396
     * the driver may have to do extra work to determine whether the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2397
     * data should be send to the server as a <code>LONGVARBINARY</code> or a <code>BLOB</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2398
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2399
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2400
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2401
     * <code>setBlob</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2402
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2403
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2404
     * @param inputStream An object that contains the data to set the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2405
     * value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2406
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2407
     * parameter; if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2408
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2409
     * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2410
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2411
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2412
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2413
     void setBlob(String parameterName, InputStream inputStream)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2414
        throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2415
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2416
     * Sets the designated parameter to a <code>Reader</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2417
     * This method differs from the <code>setCharacterStream (int, Reader)</code> method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2418
     * because it informs the driver that the parameter value should be sent to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2419
     * the server as a <code>NCLOB</code>.  When the <code>setCharacterStream</code> method is used, the
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2420
     * driver may have to do extra work to determine whether the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2421
     * data should be send to the server as a <code>LONGNVARCHAR</code> or a <code>NCLOB</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2422
     * <P><B>Note:</B> Consult your JDBC driver documentation to determine if
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2423
     * it might be more efficient to use a version of
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2424
     * <code>setNClob</code> which takes a length parameter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2425
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2426
     * @param parameterName the name of the parameter
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2427
     * @param reader An object that contains the data to set the parameter value to.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2428
     * @throws SQLException if parameterName does not correspond to a named
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2429
     * parameter; if the driver does not support national character sets;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2430
     * if the driver can detect that a data conversion
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2431
     *  error could occur;  if a database access error occurs or
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2432
     * this method is called on a closed <code>CallableStatement</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2433
     * @throws SQLFeatureNotSupportedException  if the JDBC driver does not support this method
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2434
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2435
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2436
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2437
     void setNClob(String parameterName, Reader reader)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2438
       throws SQLException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2439
}