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, valueOf
getDefault
public 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)
SQLTypeConverter
getJavaType
in interface SQLTypeConverter
context
- SQL contextsqlType
- The sql type (not null)public Optional<SQLType> getSqlType(SQLContext context, Class<?> javaType)
SQLTypeConverter
getSqlType
in interface SQLTypeConverter
context
- SQL contextjavaType
- The sql type (not null)Copyright © 2019 The Holon Platform. All rights reserved.