public final class TypeHandlerRegistry extends Object
Constructor and Description |
---|
TypeHandlerRegistry() |
Modifier and Type | Method and Description |
---|---|
<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) |
Collection<TypeHandler<?>> |
getTypeHandlers() |
TypeHandler<Object> |
getUnknownTypeHandler() |
boolean |
hasTypeHandler(Class<?> javaType) |
boolean |
hasTypeHandler(Class<?> javaType,
JdbcType jdbcType) |
boolean |
hasTypeHandler(TypeReference<?> javaTypeReference) |
boolean |
hasTypeHandler(TypeReference<?> javaTypeReference,
JdbcType jdbcType) |
void |
register(Class<?> typeHandlerClass) |
void |
register(Class<?> javaTypeClass,
Class<?> typeHandlerClass) |
void |
register(Class<?> javaTypeClass,
JdbcType jdbcType,
Class<?> typeHandlerClass) |
<T> void |
register(Class<T> type,
JdbcType jdbcType,
TypeHandler<? extends T> handler) |
<T> void |
register(Class<T> javaType,
TypeHandler<? extends T> typeHandler) |
void |
register(JdbcType jdbcType,
TypeHandler<?> handler) |
void |
register(String packageName) |
<T> void |
register(TypeHandler<T> typeHandler) |
<T> void |
register(TypeReference<T> javaTypeReference,
TypeHandler<? extends T> handler) |
public boolean hasTypeHandler(Class<?> javaType)
public boolean hasTypeHandler(TypeReference<?> javaTypeReference)
public boolean hasTypeHandler(TypeReference<?> javaTypeReference, JdbcType jdbcType)
public TypeHandler<?> getMappingTypeHandler(Class<? extends TypeHandler<?>> handlerType)
public <T> TypeHandler<T> getTypeHandler(Class<T> type)
public <T> TypeHandler<T> getTypeHandler(TypeReference<T> javaTypeReference)
public TypeHandler<?> getTypeHandler(JdbcType jdbcType)
public <T> TypeHandler<T> getTypeHandler(Class<T> type, JdbcType jdbcType)
public <T> TypeHandler<T> getTypeHandler(TypeReference<T> javaTypeReference, JdbcType jdbcType)
public TypeHandler<Object> getUnknownTypeHandler()
public void register(JdbcType jdbcType, TypeHandler<?> handler)
public <T> void register(TypeHandler<T> typeHandler)
public <T> void register(Class<T> javaType, TypeHandler<? extends T> typeHandler)
public <T> void register(TypeReference<T> javaTypeReference, TypeHandler<? extends T> handler)
public <T> void register(Class<T> type, JdbcType jdbcType, TypeHandler<? extends T> handler)
public void register(Class<?> typeHandlerClass)
public <T> TypeHandler<T> getInstance(Class<?> javaTypeClass, Class<?> typeHandlerClass)
public void register(String packageName)
public Collection<TypeHandler<?>> getTypeHandlers()
Copyright © 2010–2015 MyBatis.org. All rights reserved.