src/java.sql/share/classes/java/sql/SQLWarning.java
author jcbeyler
Wed, 14 Nov 2018 12:25:15 -0800
changeset 52561 40098289d580
parent 47216 71c04702a3d5
permissions -rw-r--r--
8213622: Windows VS2013 build failure - "'snprintf': identifier not found" Summary: Replace snprintf with strlen and memcpy Reviewed-by: dholmes, mvala, kbarrett
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
23010
6dadb192ad81 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents: 21278
diff changeset
     2
 * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package java.sql;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
 * <P>An exception that provides information on  database access
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
 * warnings. Warnings are silently chained to the object whose method
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 * caused it to be reported.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * Warnings may be retrieved from <code>Connection</code>, <code>Statement</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * and <code>ResultSet</code> objects.  Trying to retrieve a warning on a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * connection after it has been closed will cause an exception to be thrown.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * Similarly, trying to retrieve a warning on a statement after it has been
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * closed or on a result set after it has been closed will cause
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * an exception to be thrown. Note that closing a statement also
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * closes a result set that it might have produced.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * @see Connection#getWarnings
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * @see Statement#getWarnings
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * @see ResultSet#getWarnings
44256
12050b22e372 8176721: @since value errors java.sql module
mli
parents: 25859
diff changeset
    44
 * @since 1.1
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
public class SQLWarning extends SQLException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
     * Constructs a  <code>SQLWarning</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
     *  with a given <code>reason</code>, <code>SQLState</code>  and
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
     * <code>vendorCode</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
     * The <code>cause</code> is not initialized, and may subsequently be
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
     * initialized by a call to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
     * {@link Throwable#initCause(java.lang.Throwable)} method.
23590
ffd8b0b70511 8038493: Tidy warnings cleanup for java.sql
yan
parents: 23010
diff changeset
    56
     *
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
     * @param reason a description of the warning
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
     * @param SQLState an XOPEN or SQL:2003 code identifying the warning
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
     * @param vendorCode a database vendor-specific warning code
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
     public SQLWarning(String reason, String SQLState, int vendorCode) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
        super(reason, SQLState, vendorCode);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
        DriverManager.println("SQLWarning: reason(" + reason +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
                              ") SQLState(" + SQLState +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
                              ") vendor code(" + vendorCode + ")");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
     * Constructs a <code>SQLWarning</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     * with a given <code>reason</code> and <code>SQLState</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
     * The <code>cause</code> is not initialized, and may subsequently be
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
     * initialized by a call to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
     * {@link Throwable#initCause(java.lang.Throwable)} method. The vendor code
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
     * is initialized to 0.
23590
ffd8b0b70511 8038493: Tidy warnings cleanup for java.sql
yan
parents: 23010
diff changeset
    77
     *
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
     * @param reason a description of the warning
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
     * @param SQLState an XOPEN or SQL:2003 code identifying the warning
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    public SQLWarning(String reason, String SQLState) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
        super(reason, SQLState);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
        DriverManager.println("SQLWarning: reason(" + reason +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
                                  ") SQLState(" + SQLState + ")");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     * Constructs a <code>SQLWarning</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     * with a given <code>reason</code>. The <code>SQLState</code>
21278
ef8a3a2a72f2 8022746: List of spelling errors in API doc
malenkov
parents: 20880
diff changeset
    90
     * is initialized to <code>null</code> and the vendor code is initialized
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * to 0.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
     * The <code>cause</code> is not initialized, and may subsequently be
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     * initialized by a call to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
     * {@link Throwable#initCause(java.lang.Throwable)} method.
23590
ffd8b0b70511 8038493: Tidy warnings cleanup for java.sql
yan
parents: 23010
diff changeset
    96
     *
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     * @param reason a description of the warning
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
    public SQLWarning(String reason) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
        super(reason);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
        DriverManager.println("SQLWarning: reason(" + reason + ")");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     * Constructs a  <code>SQLWarning</code> object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
     * The <code>reason</code>, <code>SQLState</code> are initialized
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
     * to <code>null</code> and the vendor code is initialized to 0.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
     * The <code>cause</code> is not initialized, and may subsequently be
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     * initialized by a call to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
     * {@link Throwable#initCause(java.lang.Throwable)} method.
20880
1b610151b316 8026812: doclint clean up for java.sql and javax.sql
lancea
parents: 5506
diff changeset
   112
     *
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
    public SQLWarning() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
        super();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
        DriverManager.println("SQLWarning: ");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     * Constructs a <code>SQLWarning</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     * with a given  <code>cause</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
     * The <code>SQLState</code> is initialized
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     * to <code>null</code> and the vendor code is initialized to 0.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     * The <code>reason</code>  is initialized to <code>null</code> if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     * <code>cause==null</code> or to <code>cause.toString()</code> if
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     * <code>cause!=null</code>.
23590
ffd8b0b70511 8038493: Tidy warnings cleanup for java.sql
yan
parents: 23010
diff changeset
   127
     *
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     * @param cause the underlying reason for this <code>SQLWarning</code> (which is saved for later retrieval by the <code>getCause()</code> method); may be null indicating
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     *     the cause is non-existent or unknown.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    public SQLWarning(Throwable cause) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
        super(cause);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
        DriverManager.println("SQLWarning");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
     * Constructs a <code>SQLWarning</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     * with a given
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * <code>reason</code> and  <code>cause</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     * The <code>SQLState</code> is  initialized to <code>null</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     * and the vendor code is initialized to 0.
23590
ffd8b0b70511 8038493: Tidy warnings cleanup for java.sql
yan
parents: 23010
diff changeset
   142
     *
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     * @param reason a description of the warning
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     * @param cause  the underlying reason for this <code>SQLWarning</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
     * (which is saved for later retrieval by the <code>getCause()</code> method);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     * may be null indicating the cause is non-existent or unknown.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
    public SQLWarning(String reason, Throwable cause) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
        super(reason,cause);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
        DriverManager.println("SQLWarning : reason("+ reason + ")");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     * Constructs a <code>SQLWarning</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     * with a given
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * <code>reason</code>, <code>SQLState</code> and  <code>cause</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     * The vendor code is initialized to 0.
23590
ffd8b0b70511 8038493: Tidy warnings cleanup for java.sql
yan
parents: 23010
diff changeset
   158
     *
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     * @param reason a description of the warning
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     * @param SQLState an XOPEN or SQL:2003 code identifying the warning
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     * @param cause the underlying reason for this <code>SQLWarning</code> (which is saved for later retrieval by the <code>getCause()</code> method); may be null indicating
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
     *     the cause is non-existent or unknown.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
    public SQLWarning(String reason, String SQLState, Throwable cause) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
        super(reason,SQLState,cause);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
        DriverManager.println("SQLWarning: reason(" + reason +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
                                  ") SQLState(" + SQLState + ")");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     * Constructs a<code>SQLWarning</code> object
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     * with a given
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
     * <code>reason</code>, <code>SQLState</code>, <code>vendorCode</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
     * and  <code>cause</code>.
23590
ffd8b0b70511 8038493: Tidy warnings cleanup for java.sql
yan
parents: 23010
diff changeset
   175
     *
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
     * @param reason a description of the warning
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     * @param SQLState an XOPEN or SQL:2003 code identifying the warning
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     * @param vendorCode a database vendor-specific warning code
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     * @param cause the underlying reason for this <code>SQLWarning</code> (which is saved for later retrieval by the <code>getCause()</code> method); may be null indicating
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     *     the cause is non-existent or unknown.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
    public SQLWarning(String reason, String SQLState, int vendorCode, Throwable cause) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
        super(reason,SQLState,vendorCode,cause);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
        DriverManager.println("SQLWarning: reason(" + reason +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
                              ") SQLState(" + SQLState +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
                              ") vendor code(" + vendorCode + ")");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
     * Retrieves the warning chained to this <code>SQLWarning</code> object by
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     * <code>setNextWarning</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     * @return the next <code>SQLException</code> in the chain; <code>null</code> if none
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
     * @see #setNextWarning
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
    public SQLWarning getNextWarning() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
        try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
            return ((SQLWarning)getNextException());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
        } catch (ClassCastException ex) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
            // The chained value isn't a SQLWarning.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
            // This is a programming error by whoever added it to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
            // the SQLWarning chain.  We throw a Java "Error".
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
            throw new Error("SQLWarning chain holds value that is not a SQLWarning");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
     * Adds a <code>SQLWarning</code> object to the end of the chain.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     * @param w the new end of the <code>SQLException</code> chain
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * @see #getNextWarning
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
    public void setNextWarning(SQLWarning w) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
        setNextException(w);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
    private static final long serialVersionUID = 3917336774604784856L;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
}