public enum DefaultSQLTypeConverter extends Enum<DefaultSQLTypeConverter> implements SQLTypeConverter
SQLTypeConverter.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Optional<Class<?>> |
getJavaType(SQLContext context,
SQLType sqlType)
Get the Java type which corresponds to given SQL type.
|
Optional<SQLType> |
getSqlType(SQLContext context,
Class<?> javaType)
Get the SQL type which corresponds to given Java type.
|
static DefaultSQLTypeConverter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultSQLTypeConverter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetDefaultpublic static final DefaultSQLTypeConverter INSTANCE
public static DefaultSQLTypeConverter[] values()
for (DefaultSQLTypeConverter c : DefaultSQLTypeConverter.values()) System.out.println(c);
public static DefaultSQLTypeConverter valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Optional<Class<?>> getJavaType(SQLContext context, SQLType sqlType)
SQLTypeConvertergetJavaType in interface SQLTypeConvertercontext - SQL contextsqlType - The sql type (not null)public Optional<SQLType> getSqlType(SQLContext context, Class<?> javaType)
SQLTypeConvertergetSqlType in interface SQLTypeConvertercontext - SQL contextjavaType - The sql type (not null)Copyright © 2019 The Holon Platform. All rights reserved.