Package org.apache.ibatis.type
Class TypeHandlerRegistry
java.lang.Object
org.apache.ibatis.type.TypeHandlerRegistry
- Author:
- Clinton Begin, Kazuki Shimizu
-
Constructor Summary
ConstructorsConstructorDescriptionThe 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.booleanhasTypeHandler(Class<?> javaType) booleanhasTypeHandler(Class<?> javaType, JdbcType jdbcType) booleanhasTypeHandler(TypeReference<?> javaTypeReference) booleanhasTypeHandler(TypeReference<?> javaTypeReference, JdbcType jdbcType) voidvoidvoid<T> voidregister(Class<T> type, JdbcType jdbcType, TypeHandler<? extends T> handler) <T> voidregister(Class<T> javaType, TypeHandler<? extends T> typeHandler) voidvoidvoidregister(JdbcType jdbcType, TypeHandler<?> handler) <T> voidregister(TypeHandler<T> typeHandler) <T> voidregister(TypeReference<T> javaTypeReference, TypeHandler<? extends T> handler) voidsetDefaultEnumTypeHandler(Class<? extends TypeHandler> typeHandler) Set a defaultTypeHandlerclass 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
-