jdk/src/share/classes/java/sql/Types.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
/**
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.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
public class Types {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * <code>BIT</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
        public final static int BIT             =  -7;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * <code>TINYINT</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
        public final static int TINYINT         =  -6;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 * <code>SMALLINT</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
        public final static int SMALLINT        =   5;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 * <code>INTEGER</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
        public final static int INTEGER         =   4;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
 * <code>BIGINT</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
        public final static int BIGINT          =  -5;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
 * <code>FLOAT</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
        public final static int FLOAT           =   6;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
 * <code>REAL</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
        public final static int REAL            =   7;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
 * <code>DOUBLE</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
        public final static int DOUBLE          =   8;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
 * <code>NUMERIC</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
        public final static int NUMERIC         =   2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
 * <code>DECIMAL</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
        public final static int DECIMAL         =   3;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
 * <code>CHAR</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        public final static int CHAR            =   1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
 * <code>VARCHAR</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
        public final static int VARCHAR         =  12;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
 * <code>LONGVARCHAR</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
        public final static int LONGVARCHAR     =  -1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
 * <code>DATE</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
        public final static int DATE            =  91;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
 * <code>TIME</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
        public final static int TIME            =  92;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
 * <code>TIMESTAMP</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
        public final static int TIMESTAMP       =  93;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
 * <code>BINARY</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
        public final static int BINARY          =  -2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
 * <code>VARBINARY</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
        public final static int VARBINARY       =  -3;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
 * <P>The constant in the Java programming language, sometimes referred
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
 * to as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
 * <code>LONGVARBINARY</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
        public final static int LONGVARBINARY   =  -4;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
 * <P>The constant in the Java programming language
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
 * that identifies the generic SQL value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
 * <code>NULL</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
        public final static int NULL            =   0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     * The constant in the Java programming language that indicates
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     * that the SQL type is database-specific and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     * gets mapped to a Java object that can be accessed via
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     * the methods <code>getObject</code> and <code>setObject</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
        public final static int OTHER           = 1111;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
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
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     * as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     * <code>JAVA_OBJECT</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
        public final static int JAVA_OBJECT         = 2000;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     * as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     * <code>DISTINCT</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
        public final static int DISTINCT            = 2001;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
     * as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
     * <code>STRUCT</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
        public final static int STRUCT              = 2002;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     * as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     * <code>ARRAY</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
        public final static int ARRAY               = 2003;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
     * as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
     * <code>BLOB</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
        public final static int BLOB                = 2004;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
     * as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
     * <code>CLOB</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
        public final static int CLOB                = 2005;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
     * as a type code, that identifies the generic SQL type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
     * <code>REF</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
     * @since 1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
        public final static int REF                 = 2006;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
     * The constant in the Java programming language, somtimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
     * as a type code, that identifies the generic SQL type <code>DATALINK</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
    public final static int DATALINK = 70;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
     * The constant in the Java programming language, somtimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
     * as a type code, that identifies the generic SQL type <code>BOOLEAN</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
    public final static int BOOLEAN = 16;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
    //------------------------- JDBC 4.0 -----------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
     * as a type code, that identifies the generic SQL type <code>ROWID</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
    public final static int ROWID = -8;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
     * as a type code, that identifies the generic SQL type <code>NCHAR</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
    public static final int NCHAR = -15;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
     * as a type code, that identifies the generic SQL type <code>NVARCHAR</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
    public static final int NVARCHAR = -9;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
     * as a type code, that identifies the generic SQL type <code>LONGNVARCHAR</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
    public static final int LONGNVARCHAR = -16;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
     * as a type code, that identifies the generic SQL type <code>NCLOB</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
    public static final int NCLOB = 2011;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
     * The constant in the Java programming language, sometimes referred to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
     * as a type code, that identifies the generic SQL type <code>XML</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
     * @since 1.6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
    public static final int SQLXML = 2009;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
    // Prevent instantiation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
    private Types() {}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
}