src/java.sql/share/classes/java/sql/Types.java
author darcy
Wed, 25 Sep 2019 09:37:18 -0700
changeset 58338 faf791c5a710
parent 47216 71c04702a3d5
permissions -rw-r--r--
8231442: Suppress warnings on non-serializable instance fields in java.sql.* modules Reviewed-by: lancea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
25976
4de01a56e3ee 8054555: javadoc cleanup for java.sql and javax.sql
lancea
parents: 15643
diff changeset
     2
 * Copyright (c) 1996, 2014, 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>The class that defines the constants that are used to identify generic
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
 * SQL types, called JDBC types.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 * This class is never instantiated.
44256
12050b22e372 8176721: @since value errors java.sql module
mli
parents: 25991
diff changeset
    33
 *
12050b22e372 8176721: @since value errors java.sql module
mli
parents: 25991
diff changeset
    34
 * @since 1.1
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
public class Types {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * <code>BIT</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
        public final static int BIT             =  -7;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * <code>TINYINT</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
        public final static int TINYINT         =  -6;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * <code>SMALLINT</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
        public final static int SMALLINT        =   5;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
 * <code>INTEGER</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
        public final static int INTEGER         =   4;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
 * <code>BIGINT</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
        public final static int BIGINT          =  -5;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
 * <code>FLOAT</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
        public final static int FLOAT           =   6;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
 * <code>REAL</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
        public final static int REAL            =   7;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
 * <code>DOUBLE</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
        public final static int DOUBLE          =   8;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
 * <code>NUMERIC</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
        public final static int NUMERIC         =   2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
 * <code>DECIMAL</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
        public final static int DECIMAL         =   3;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
 * <code>CHAR</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
        public final static int CHAR            =   1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
 * <code>VARCHAR</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
        public final static int VARCHAR         =  12;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
 * <code>LONGVARCHAR</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
        public final static int LONGVARCHAR     =  -1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
 * <code>DATE</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
        public final static int DATE            =  91;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
 * <code>TIME</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
        public final static int TIME            =  92;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
 * <code>TIMESTAMP</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
        public final static int TIMESTAMP       =  93;
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
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
 * <code>BINARY</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        public final static int BINARY          =  -2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
 * <code>VARBINARY</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
        public final static int VARBINARY       =  -3;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
 * <code>LONGVARBINARY</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
        public final static int LONGVARBINARY   =  -4;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
 * <P>The constant in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
 * that identifies the generic SQL value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
 * <code>NULL</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
        public final static int NULL            =   0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     * The constant in the Java programming language that indicates
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     * that the SQL type is database-specific and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     * gets mapped to a Java object that can be accessed via
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     * the methods <code>getObject</code> and <code>setObject</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
        public final static int OTHER           = 1111;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     * as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
     * <code>JAVA_OBJECT</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
        public final static int JAVA_OBJECT         = 2000;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     * as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     * <code>DISTINCT</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
        public final static int DISTINCT            = 2001;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
     * as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     * <code>STRUCT</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
        public final static int STRUCT              = 2002;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
     * as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     * <code>ARRAY</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
        public final static int ARRAY               = 2003;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
     * as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
     * <code>BLOB</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
        public final static int BLOB                = 2004;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
     * as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
     * <code>CLOB</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
        public final static int CLOB                = 2005;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
     * as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
     * <code>REF</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
        public final static int REF                 = 2006;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
    /**
25976
4de01a56e3ee 8054555: javadoc cleanup for java.sql and javax.sql
lancea
parents: 15643
diff changeset
   248
     * The constant in the Java programming language, sometimes referred to
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
     * as a type code, that identifies the generic SQL type <code>DATALINK</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
    public final static int DATALINK = 70;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
    /**
25976
4de01a56e3ee 8054555: javadoc cleanup for java.sql and javax.sql
lancea
parents: 15643
diff changeset
   256
     * The constant in the Java programming language, sometimes referred to
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
     * as a type code, that identifies the generic SQL type <code>BOOLEAN</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
    public final static int BOOLEAN = 16;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
    //------------------------- JDBC 4.0 -----------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
     * as a type code, that identifies the generic SQL type <code>ROWID</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
    public final static int ROWID = -8;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
     * as a type code, that identifies the generic SQL type <code>NCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
    public static final int NCHAR = -15;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
     * as a type code, that identifies the generic SQL type <code>NVARCHAR</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
    public static final int NVARCHAR = -9;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
     * as a type code, that identifies the generic SQL type <code>LONGNVARCHAR</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
    public static final int LONGNVARCHAR = -16;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
     * as a type code, that identifies the generic SQL type <code>NCLOB</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
    public static final int NCLOB = 2011;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
     * as a type code, that identifies the generic SQL type <code>XML</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
    public static final int SQLXML = 2009;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
15278
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 5506
diff changeset
   314
    //--------------------------JDBC 4.2 -----------------------------
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 5506
diff changeset
   315
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 5506
diff changeset
   316
    /**
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 5506
diff changeset
   317
     * The constant in the Java programming language, sometimes referred to
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 5506
diff changeset
   318
     * as a type code, that identifies the generic SQL type {@code REF CURSOR}.
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 5506
diff changeset
   319
     *
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 5506
diff changeset
   320
     * @since 1.8
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 5506
diff changeset
   321
     */
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 5506
diff changeset
   322
    public static final int REF_CURSOR = 2012;
e081d3f73b75 8005080: JDBC 4.2 Core changes
lancea
parents: 5506
diff changeset
   323
15643
5e3b735b74ac 8006505: additional changes for JSR 310 support
lancea
parents: 15278
diff changeset
   324
    /**
5e3b735b74ac 8006505: additional changes for JSR 310 support
lancea
parents: 15278
diff changeset
   325
     * The constant in the Java programming language, sometimes referred to
5e3b735b74ac 8006505: additional changes for JSR 310 support
lancea
parents: 15278
diff changeset
   326
     * as a type code, that identifies the generic SQL type
5e3b735b74ac 8006505: additional changes for JSR 310 support
lancea
parents: 15278
diff changeset
   327
     * {@code TIME WITH TIMEZONE}.
5e3b735b74ac 8006505: additional changes for JSR 310 support
lancea
parents: 15278
diff changeset
   328
     *
5e3b735b74ac 8006505: additional changes for JSR 310 support
lancea
parents: 15278
diff changeset
   329
     * @since 1.8
5e3b735b74ac 8006505: additional changes for JSR 310 support
lancea
parents: 15278
diff changeset
   330
     */
5e3b735b74ac 8006505: additional changes for JSR 310 support
lancea
parents: 15278
diff changeset
   331
    public static final int TIME_WITH_TIMEZONE = 2013;
5e3b735b74ac 8006505: additional changes for JSR 310 support
lancea
parents: 15278
diff changeset
   332
5e3b735b74ac 8006505: additional changes for JSR 310 support
lancea
parents: 15278
diff changeset
   333
    /**
5e3b735b74ac 8006505: additional changes for JSR 310 support
lancea
parents: 15278
diff changeset
   334
     * The constant in the Java programming language, sometimes referred to
5e3b735b74ac 8006505: additional changes for JSR 310 support
lancea
parents: 15278
diff changeset
   335
     * as a type code, that identifies the generic SQL type
5e3b735b74ac 8006505: additional changes for JSR 310 support
lancea
parents: 15278
diff changeset
   336
     * {@code TIMESTAMP WITH TIMEZONE}.
5e3b735b74ac 8006505: additional changes for JSR 310 support
lancea
parents: 15278
diff changeset
   337
     *
5e3b735b74ac 8006505: additional changes for JSR 310 support
lancea
parents: 15278
diff changeset
   338
     * @since 1.8
5e3b735b74ac 8006505: additional changes for JSR 310 support
lancea
parents: 15278
diff changeset
   339
     */
5e3b735b74ac 8006505: additional changes for JSR 310 support
lancea
parents: 15278
diff changeset
   340
    public static final int TIMESTAMP_WITH_TIMEZONE = 2014;
5e3b735b74ac 8006505: additional changes for JSR 310 support
lancea
parents: 15278
diff changeset
   341
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
    // Prevent instantiation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
    private Types() {}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
}