Package org.apache.ibatis.type
Class TypeHandlerRegistry
java.lang.Object
org.apache.ibatis.type.TypeHandlerRegistry
- Author:
- Clinton Begin, Kazuki Shimizu
-
Constructor Summary
ConstructorDescriptionThe default constructor.TypeHandlerRegistry
(Configuration configuration) The constructor that pass the MyBatis configuration. -
Method Summary
Modifier and TypeMethodDescription<T> TypeHandler<T>
getInstance
(Class<?> javaTypeClass, Class<?> typeHandlerClass) TypeHandler<?>
getMappingTypeHandler
(Class<? extends TypeHandler<?>> handlerType) <T> TypeHandler<T>
getTypeHandler
(Class<T> type) <T> TypeHandler<T>
getTypeHandler
(Class<T> type, JdbcType jdbcType) TypeHandler<?>
getTypeHandler
(JdbcType jdbcType) <T> TypeHandler<T>
getTypeHandler
(TypeReference<T> javaTypeReference) <T> TypeHandler<T>
getTypeHandler
(TypeReference<T> javaTypeReference, JdbcType jdbcType) Gets the type handlers.boolean
hasTypeHandler
(Class<?> javaType) boolean
hasTypeHandler
(Class<?> javaType, JdbcType jdbcType) boolean
hasTypeHandler
(TypeReference<?> javaTypeReference) boolean
hasTypeHandler
(TypeReference<?> javaTypeReference, JdbcType jdbcType) void
void
void
<T> void
register
(Class<T> type, JdbcType jdbcType, TypeHandler<? extends T> handler) <T> void
register
(Class<T> javaType, TypeHandler<? extends T> typeHandler) void
void
void
register
(JdbcType jdbcType, TypeHandler<?> handler) <T> void
register
(TypeHandler<T> typeHandler) <T> void
register
(TypeReference<T> javaTypeReference, TypeHandler<? extends T> handler) void
setDefaultEnumTypeHandler
(Class<? extends TypeHandler> typeHandler) Set a defaultTypeHandler
class forEnum
.
-
Constructor Details
-
TypeHandlerRegistry
public TypeHandlerRegistry()The default constructor. -
TypeHandlerRegistry
The constructor that pass the MyBatis configuration.- Parameters:
configuration
- a MyBatis configuration- Since:
- 3.5.4
-
-
Method Details
-
setDefaultEnumTypeHandler
- Parameters:
typeHandler
- a type handler class forEnum
- Since:
- 3.4.5
-
hasTypeHandler
-
hasTypeHandler
-
hasTypeHandler
-
hasTypeHandler
-
getMappingTypeHandler
-
getTypeHandler
-
getTypeHandler
-
getTypeHandler
-
getTypeHandler
-
getTypeHandler
-
getUnknownTypeHandler
-
register
-
register
-
register
-
register
-
register
-
register
-
register
public void register(String javaTypeClassName, String typeHandlerClassName) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
register
-
register
-
getInstance
-
register
-
getTypeHandlers
Gets the type handlers.- Returns:
- the type handlers
- Since:
- 3.2.2
-