public class TnValueTypes extends Object
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected static void |
assertObjectNotNull(String variableName,
Object value)
Assert that the object is not null.
|
protected static TnPlainValueTypes |
createValueTypes() |
static ValueType |
findByTypeOrValue(Class<?> type,
Object value)
Find a value type by a class type or an object instance.
|
static ValueType |
findByValueOrJdbcDefType(Object value,
int jdbcDefType)
Find a value type by an object instance or a definition type of JDBC.
|
protected static TnPlainValueTypes |
findValueTypes(DBDef dbdef) |
static ValueType |
getPluginValueType(String valueTypeName) |
static ValueType |
getValueType(Class<?> type)
Get the value type by class type.
|
static ValueType |
getValueType(int jdbcDefType) |
static ValueType |
getValueType(Object value)
Get the value type by object instance.
|
protected static TnPlainValueTypes |
getValueTypes() |
protected static void |
initialize() |
static boolean |
isDefaultObject(ValueType valueType) |
static boolean |
isDynamicObject(ValueType valueType) |
static void |
registerBasicValueType(DBDef dbdef,
Class<?> keyType,
ValueType valueType)
Register the basic value type (managed per DBMS).
|
static void |
registerPluginValueType(DBDef dbdef,
String keyName,
ValueType valueType)
Register the plug-in value type.
|
static void |
removeBasicValueType(DBDef dbdef,
Class<?> keyType)
Remove the basic value type (managed per DBMS).
|
static void |
removePluginValueType(DBDef dbdef,
String keyName)
Remove the plug-in value type.
|
protected static void |
restoreDefault(DBDef dbdef) |
public static final ValueType STRING
public static final ValueType CHARACTER
public static final ValueType BYTE
public static final ValueType SHORT
public static final ValueType INTEGER
public static final ValueType LONG
public static final ValueType FLOAT
public static final ValueType DOUBLE
public static final ValueType BIGDECIMAL
public static final ValueType BIGINTEGER
public static final ValueType TIME
public static final ValueType SQLDATE
public static final ValueType LOCALDATE_AS_SQLDATE
public static final ValueType LOCALDATE_AS_TIMESTAMP
public static final ValueType LOCALDATETIME_AS_TIMESTAMP
public static final ValueType LOCALTIME_AS_TIME
public static final ValueType UTILDATE_AS_SQLDATE
public static final ValueType UTILDATE_AS_TIMESTAMP
public static final ValueType TIMESTAMP
public static final ValueType BINARY
public static final ValueType BINARY_STREAM
public static final ValueType BOOLEAN
public static final ValueType UUID_AS_DIRECT
public static final ValueType UUID_AS_STRING
public static final ValueType CLASSIFICATION
public static final ValueType DEFAULT_OBJECT
public static final ValueType STRING_CLOB
public static final ValueType BYTES_OID
public static final ValueType FIXED_LENGTH_STRING
public static final ValueType OBJECT_BINDING_BIGDECIMAL
public static final ValueType POSTGRESQL_RESULT_SET
public static final ValueType ORACLE_RESULT_SET
public static final ValueType SERIALIZABLE_BYTE_ARRAY
protected static final Class<?> BYTE_ARRAY_CLASS
protected static final Map<DBDef,TnPlainValueTypes> _valueTypesMap
protected static final Object _staticWorldLock
protected static void initialize()
protected static TnPlainValueTypes createValueTypes()
protected static TnPlainValueTypes getValueTypes()
protected static TnPlainValueTypes findValueTypes(DBDef dbdef)
public static ValueType findByTypeOrValue(Class<?> type, Object value)
type - The type of class. (NullAllowed: if null, searching by instance)value - The object value. (NullAllowed: if null, returns default object type)public static ValueType findByValueOrJdbcDefType(Object value, int jdbcDefType)
value - The object value. (NullAllowed: if null, returns dynamic object type)jdbcDefType - The definition type of JDBC. (NullAllowed: if null, searching by instance)public static ValueType getValueType(Object value)
value - The object value. (NullAllowed: if null, returns object type)public static ValueType getValueType(Class<?> type)
type - The type of class. (NullAllowed: if null, returns object type)public static ValueType getValueType(int jdbcDefType)
jdbcDefType - The definition type of JDBC.public static ValueType getPluginValueType(String valueTypeName)
valueTypeName - The name of value type. (NotNull)public static boolean isDefaultObject(ValueType valueType)
public static boolean isDynamicObject(ValueType valueType)
public static void registerBasicValueType(DBDef dbdef, Class<?> keyType, ValueType valueType)
dbdef - The definition of database. (NotNull)keyType - The key as type. (NotNull)valueType - The value type. (NotNull)public static void removeBasicValueType(DBDef dbdef, Class<?> keyType)
dbdef - The definition of database. (NotNull)keyType - The key as type. (NotNull)public static void registerPluginValueType(DBDef dbdef, String keyName, ValueType valueType)
dbdef - The definition of database. (NotNull)keyName - The key as name. (NotNull)valueType - The value type. (NotNull)public static void removePluginValueType(DBDef dbdef, String keyName)
dbdef - The definition of database. (NotNull)keyName - The key as name. (NotNull)protected static void restoreDefault(DBDef dbdef)
protected static void assertObjectNotNull(String variableName, Object value)
variableName - The check name of variable for message. (NotNull)value - The checked value. (NotNull)IllegalArgumentException - When the argument is null.Copyright © 2014–2015 The DBFlute Project. All rights reserved.