56380
|
1 |
/*
|
|
2 |
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4 |
*
|
|
5 |
* This code is free software; you can redistribute it and/or modify it
|
|
6 |
* under the terms of the GNU General Public License version 2 only, as
|
|
7 |
* published by the Free Software Foundation. Oracle designates this
|
|
8 |
* particular file as subject to the "Classpath" exception as provided
|
|
9 |
* by Oracle in the LICENSE file that accompanied this code.
|
|
10 |
*
|
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that
|
|
15 |
* accompanied this code).
|
|
16 |
*
|
|
17 |
* You should have received a copy of the GNU General Public License version
|
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
20 |
*
|
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
22 |
* or visit www.oracle.com if you need additional information or have any
|
|
23 |
* questions.
|
|
24 |
*/
|
|
25 |
|
|
26 |
package jdk.incubator.sql2;
|
|
27 |
|
|
28 |
/**
|
56397
|
29 |
* <P>Defines the constants that are used to identify generic
|
|
30 |
* SQL types, called JDBC types.
|
|
31 |
*
|
|
32 |
* @see SqlType
|
|
33 |
* @since 1.8
|
56380
|
34 |
*/
|
|
35 |
public enum AdbaType implements SqlType {
|
56397
|
36 |
|
|
37 |
/**
|
|
38 |
* Identifies the generic SQL type {@code BIT}.
|
|
39 |
*/
|
|
40 |
BIT,
|
|
41 |
/**
|
|
42 |
* Identifies the generic SQL type {@code TINYINT}.
|
|
43 |
*/
|
|
44 |
TINYINT,
|
|
45 |
/**
|
|
46 |
* Identifies the generic SQL type {@code SMALLINT}.
|
|
47 |
*/
|
|
48 |
SMALLINT,
|
|
49 |
/**
|
|
50 |
* Identifies the generic SQL type {@code INTEGER}.
|
|
51 |
*/
|
|
52 |
INTEGER,
|
|
53 |
/**
|
|
54 |
* Identifies the generic SQL type {@code BIGINT}.
|
|
55 |
*/
|
|
56 |
BIGINT,
|
|
57 |
/**
|
|
58 |
* Identifies the generic SQL type {@code FLOAT}.
|
|
59 |
*/
|
|
60 |
FLOAT,
|
|
61 |
/**
|
|
62 |
* Identifies the generic SQL type {@code REAL}.
|
|
63 |
*/
|
|
64 |
REAL,
|
|
65 |
/**
|
|
66 |
* Identifies the generic SQL type {@code DOUBLE}.
|
|
67 |
*/
|
|
68 |
DOUBLE,
|
|
69 |
/**
|
|
70 |
* Identifies the generic SQL type {@code NUMERIC}.
|
|
71 |
*/
|
|
72 |
NUMERIC,
|
|
73 |
/**
|
|
74 |
* Identifies the generic SQL type {@code DECIMAL}.
|
|
75 |
*/
|
|
76 |
DECIMAL,
|
|
77 |
/**
|
|
78 |
* Identifies the generic SQL type {@code CHAR}.
|
|
79 |
*/
|
|
80 |
CHAR,
|
|
81 |
/**
|
|
82 |
* Identifies the generic SQL type {@code VARCHAR}.
|
|
83 |
*/
|
|
84 |
VARCHAR,
|
|
85 |
/**
|
|
86 |
* Identifies the generic SQL type {@code LONGVARCHAR}.
|
|
87 |
*/
|
|
88 |
LONGVARCHAR,
|
|
89 |
/**
|
|
90 |
* Identifies the generic SQL type {@code DATE}.
|
|
91 |
*/
|
|
92 |
DATE,
|
|
93 |
/**
|
|
94 |
* Identifies the generic SQL type {@code TIME}.
|
|
95 |
*/
|
|
96 |
TIME,
|
|
97 |
/**
|
|
98 |
* Identifies the generic SQL type {@code TIMESTAMP}.
|
|
99 |
*/
|
|
100 |
TIMESTAMP,
|
|
101 |
/**
|
|
102 |
* Identifies the generic SQL type {@code BINARY}.
|
|
103 |
*/
|
|
104 |
BINARY,
|
|
105 |
/**
|
|
106 |
* Identifies the generic SQL type {@code VARBINARY}.
|
|
107 |
*/
|
|
108 |
VARBINARY,
|
|
109 |
/**
|
|
110 |
* Identifies the generic SQL type {@code LONGVARBINARY}.
|
|
111 |
*/
|
|
112 |
LONGVARBINARY,
|
|
113 |
/**
|
|
114 |
* Identifies the generic SQL value {@code NULL}.
|
|
115 |
*/
|
|
116 |
NULL,
|
|
117 |
/**
|
|
118 |
* Indicates that the SQL type
|
|
119 |
* is database-specific and gets mapped to a Java object that can be
|
|
120 |
* accessed via the methods getObject and setObject.
|
|
121 |
*/
|
|
122 |
OTHER,
|
|
123 |
/**
|
|
124 |
* Indicates that the SQL type
|
|
125 |
* is database-specific and gets mapped to a Java object that can be
|
|
126 |
* accessed via the methods getObject and setObject.
|
|
127 |
*/
|
|
128 |
JAVA_OBJECT,
|
|
129 |
/**
|
|
130 |
* Identifies the generic SQL type {@code DISTINCT}.
|
|
131 |
*/
|
|
132 |
DISTINCT,
|
|
133 |
/**
|
|
134 |
* Identifies the generic SQL type {@code STRUCT}.
|
|
135 |
*/
|
|
136 |
STRUCT,
|
|
137 |
/**
|
|
138 |
* Identifies the generic SQL type {@code ARRAY}.
|
|
139 |
*/
|
|
140 |
ARRAY,
|
|
141 |
/**
|
|
142 |
* Identifies the generic SQL type {@code BLOB}.
|
|
143 |
*/
|
|
144 |
BLOB,
|
|
145 |
/**
|
|
146 |
* Identifies the generic SQL type {@code CLOB}.
|
|
147 |
*/
|
|
148 |
CLOB,
|
|
149 |
/**
|
|
150 |
* Identifies the generic SQL type {@code REF}.
|
|
151 |
*/
|
|
152 |
REF,
|
|
153 |
/**
|
|
154 |
* Identifies the generic SQL type {@code DATALINK}.
|
|
155 |
*/
|
|
156 |
DATALINK,
|
|
157 |
/**
|
|
158 |
* Identifies the generic SQL type {@code BOOLEAN}.
|
|
159 |
*/
|
|
160 |
BOOLEAN,
|
56380
|
161 |
|
56397
|
162 |
/**
|
|
163 |
* Identifies the SQL type {@code ROWID}.
|
|
164 |
*/
|
|
165 |
ROWID,
|
|
166 |
/**
|
|
167 |
* Identifies the generic SQL type {@code NCHAR}.
|
|
168 |
*/
|
|
169 |
NCHAR,
|
|
170 |
/**
|
|
171 |
* Identifies the generic SQL type {@code NVARCHAR}.
|
|
172 |
*/
|
|
173 |
NVARCHAR,
|
|
174 |
/**
|
|
175 |
* Identifies the generic SQL type {@code LONGNVARCHAR}.
|
|
176 |
*/
|
|
177 |
LONGNVARCHAR,
|
|
178 |
/**
|
|
179 |
* Identifies the generic SQL type {@code NCLOB}.
|
|
180 |
*/
|
|
181 |
NCLOB,
|
|
182 |
/**
|
|
183 |
* Identifies the generic SQL type {@code SQLXML}.
|
|
184 |
*/
|
|
185 |
SQLXML,
|
56380
|
186 |
|
56397
|
187 |
/**
|
|
188 |
* Identifies the generic SQL type {@code REF_CURSOR}.
|
|
189 |
*/
|
|
190 |
REF_CURSOR,
|
56380
|
191 |
|
56397
|
192 |
/**
|
|
193 |
* Identifies the generic SQL type {@code TIME_WITH_TIMEZONE}.
|
|
194 |
*/
|
|
195 |
TIME_WITH_TIMEZONE,
|
56380
|
196 |
|
56397
|
197 |
/**
|
|
198 |
* Identifies the generic SQL type {@code TIMESTAMP_WITH_TIMEZONE}.
|
|
199 |
*/
|
|
200 |
TIMESTAMP_WITH_TIMEZONE;
|
56380
|
201 |
|
56397
|
202 |
|
|
203 |
/**
|
|
204 |
*{@inheritDoc }
|
|
205 |
* @return The name of this {@code SQLType}.
|
|
206 |
*/
|
56380
|
207 |
@Override
|
|
208 |
public String getName() {
|
|
209 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
|
210 |
}
|
|
211 |
|
56397
|
212 |
/**
|
|
213 |
* Returns the name of the vendor that supports this data type.
|
|
214 |
* @return The name of the vendor for this data type which is
|
|
215 |
* {@literal java.sql} for ABDAType.
|
|
216 |
*/
|
56380
|
217 |
@Override
|
|
218 |
public String getVendor() {
|
|
219 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
|
220 |
}
|
|
221 |
|
56397
|
222 |
/**
|
|
223 |
* Returns the vendor specific type number for the data type.
|
|
224 |
* @return An Integer representing the data type. For {@code ABDAType},
|
|
225 |
* the value will be the same value as in {@code Types} for the data type.
|
|
226 |
*/
|
56380
|
227 |
@Override
|
|
228 |
public Integer getVendorTypeNumber() {
|
|
229 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
|
230 |
}
|
|
231 |
|
|
232 |
}
|