| com.completex.objective.components.persistency.core.TypeHandlerRegistry
All known Subclasses: com.completex.objective.components.persistency.core.adapter.DefaultPersistencyFactory, com.completex.objective.components.persistency.core.impl.TypeHandlerRegistryImpl,
TypeHandlerRegistry | public interface TypeHandlerRegistry (Code) | | author: Gennady Krizhevsky |
getBindTypeHandler | TypeHandler getBindTypeHandler(Class clazz)(Code) | | Returnss TypeHandler only for bind by given class. It will be used only if default
type handler for read and bind is not found or the column type is not specified.
This method may never return null. If bind handler is not found it may return the default one.
To check if type handlesr is registered use isRegisteredBindTypeHandler(Class clazz)
method
Parameters: clazz - Class TypeHandler only for bind. It will be used only if defaulttype handler for read and bind is not found or the column type is not specified |
getTypeHandler | TypeHandler getTypeHandler(ColumnType columnType)(Code) | | Returns default type handler for read and bind for given ColumnType.
This method may never return null. If bind handler is not found it may return the default one.
To check if type handlesr is registered use isRegisteredTypeHandler(ColumnType columnType)
method
Parameters: columnType - default type handler for read and bind for given ColumnType |
isRegisteredBindTypeHandler | boolean isRegisteredBindTypeHandler(Class clazz)(Code) | | Returns true if typeHandler is found by ColumnType.getName()
Parameters: clazz - Class that has to be handled true if typeHandler is found by clazz |
isRegisteredTypeHandler | boolean isRegisteredTypeHandler(ColumnType columnType)(Code) | | Returns true if typeHandler is found by ColumnType.getName()
Parameters: columnType - true if typeHandler is found by ColumnType.getName() |
registerBindTypeHandler | void registerBindTypeHandler(Class clazz, TypeHandler typeHandler)(Code) | | Registers TypeHandler only for bind. It will be used only if default
type handler for read and bind is not found or the column type is not specified
Parameters: clazz - Class Parameters: typeHandler - TypeHandler |
registerTypeHandler | void registerTypeHandler(ColumnType columnType, TypeHandler typeHandler)(Code) | | Registers default type handler for read and bind for given ColumnType.
ColumnType.getName() is used as a key
Parameters: columnType - ColumnType Parameters: typeHandler - TypeHandler |
|
|