173 */
174 NVARCHAR(Types.NVARCHAR),
175 /**
176 * Identifies the generic SQL type {@code LONGNVARCHAR}.
177 */
178 LONGNVARCHAR(Types.LONGNVARCHAR),
179 /**
180 * Identifies the generic SQL type {@code NCLOB}.
181 */
182 NCLOB(Types.NCLOB),
183 /**
184 * Identifies the generic SQL type {@code SQLXML}.
185 */
186 SQLXML(Types.SQLXML),
187
188 /* JDBC 4.2 Types */
189
190 /**
191 * Identifies the generic SQL type {@code REF_CURSOR}.
192 */
193 REF_CURSOR(Types.REF_CURSOR);
194
195 /**
196 * The Integer value for the JDBCType. It maps to a value in
197 * {@code Types.java}
198 */
199 private Integer type;
200
201 /**
202 * Constructor to specify the data type value from {@code Types) for
203 * this data type.
204 * @param type The value from {@code Types) for this data type
205 */
206 JDBCType(final Integer type) {
207 this.type = type;
208 }
209
210 /**
211 * Returns the name of the data type.
212 * @return The name of the data type.
213 */
|
173 */
174 NVARCHAR(Types.NVARCHAR),
175 /**
176 * Identifies the generic SQL type {@code LONGNVARCHAR}.
177 */
178 LONGNVARCHAR(Types.LONGNVARCHAR),
179 /**
180 * Identifies the generic SQL type {@code NCLOB}.
181 */
182 NCLOB(Types.NCLOB),
183 /**
184 * Identifies the generic SQL type {@code SQLXML}.
185 */
186 SQLXML(Types.SQLXML),
187
188 /* JDBC 4.2 Types */
189
190 /**
191 * Identifies the generic SQL type {@code REF_CURSOR}.
192 */
193 REF_CURSOR(Types.REF_CURSOR),
194
195 /**
196 * Identifies the generic SQL type {@code TIME_WITH_TIMEZONE}.
197 */
198 TIME_WITH_TIMEZONE(Types.TIME_WITH_TIMEZONE),
199
200 /**
201 * Identifies the generic SQL type {@code TIMESTAMP_WITH_TIMEZONE}.
202 */
203 TIMESTAMP_WITH_TIMEZONE(Types.TIMESTAMP_WITH_TIMEZONE);
204
205 /**
206 * The Integer value for the JDBCType. It maps to a value in
207 * {@code Types.java}
208 */
209 private Integer type;
210
211 /**
212 * Constructor to specify the data type value from {@code Types) for
213 * this data type.
214 * @param type The value from {@code Types) for this data type
215 */
216 JDBCType(final Integer type) {
217 this.type = type;
218 }
219
220 /**
221 * Returns the name of the data type.
222 * @return The name of the data type.
223 */
|