public class TnPlainValueTypes extends Object
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected Map<Class<?>,ValueType> |
_basicInterfaceValueTypeMap |
protected Map<Class<?>,ValueType> |
_basicObjectValueTypeMap |
protected Map<Integer,ValueType> |
_dynamicObjectValueTypeMap
The map of value type keyed by JDBC definition type.
|
protected Map<String,ValueType> |
_pluginValueTypeMap |
| コンストラクタと説明 |
|---|
TnPlainValueTypes() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
assertObjectNotNull(String variableName,
Object value)
Assert that the object is not null.
|
ValueType |
findByTypeOrValue(Class<?> type,
Object value)
Find a value type by a class type or an object instance.
|
ValueType |
findByValueOrJdbcDefType(Object value,
int jdbcDefType)
Find a value type by an object instance or a definition type of JDBC.
|
protected ValueType |
getBasicInterfaceValueType(Class<?> type) |
protected ValueType |
getBasicObjectValueType(Class<?> type) |
ValueType |
getPluginValueType(String valueTypeName) |
protected Class<?> |
getType(int jdbcDefType) |
ValueType |
getValueType(Class<?> type)
Get the value type by class type.
|
ValueType |
getValueType(int jdbcDefType) |
ValueType |
getValueType(Object value)
Get the value type by object instance.
|
protected void |
initialize() |
boolean |
isDefaultObject(ValueType valueType) |
boolean |
isDynamicObject(ValueType valueType) |
void |
registerBasicValueType(Class<?> keyType,
ValueType valueType)
Register the basic value type.
|
void |
registerPluginValueType(String keyName,
ValueType valueType)
Register the plug-in value type.
|
void |
removeBasicValueType(Class<?> keyType)
Remove the basic value type.
|
void |
removePluginValueType(String keyName)
Remove the plug-in value type.
|
protected void |
restoreDefault() |
protected void initialize()
public 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 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 ValueType getValueType(Object value)
value - The object value. (NullAllowed: if null, returns object type)public ValueType getValueType(Class<?> type)
type - The type of class. (NullAllowed: if null, returns object type)public ValueType getValueType(int jdbcDefType)
jdbcDefType - The definition type of JDBC.protected Class<?> getType(int jdbcDefType)
public ValueType getPluginValueType(String valueTypeName)
valueTypeName - The name of value type. (NotNull)public boolean isDefaultObject(ValueType valueType)
public boolean isDynamicObject(ValueType valueType)
public void registerBasicValueType(Class<?> keyType, ValueType valueType)
keyType - The key as type. (NotNull)valueType - The value type. (NotNull)public void removeBasicValueType(Class<?> keyType)
keyType - The key as type. (NotNull)public void registerPluginValueType(String keyName, ValueType valueType)
keyName - The key as name. (NotNull)valueType - The value type. (NotNull)public void removePluginValueType(String keyName)
keyName - The key as name. (NotNull)protected void restoreDefault()
protected 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.