public abstract class Jdbcs extends Object
| Modifier and Type | Field and Description |
|---|---|
static TypeHandler |
asNull
空值适配器
|
static TypeHandlerRegistry |
registry |
| Constructor and Description |
|---|
Jdbcs() |
| Modifier and Type | Method and Description |
|---|---|
static <T> TypeHandler<T> |
getBean2DBMappingType(ColumnMapping column) |
static TypeHandler<?> |
getDB2BeanMappingType(Class<?> mirror) |
static TypeHandler<?> |
getDB2BeanMappingType(Class<?> mirror,
int sqlType) |
static TypeHandler<?> |
registerCustomType(Class clazz,
TypeHandler<?> adaptor)
注册一个自定义JdbcValue,若adaptor为null,则取消注册
|
static void |
setJdbcSqlType(ColumnMapping column)
设置 jdbc sql type
|
public static TypeHandlerRegistry registry
public static final TypeHandler asNull
public static TypeHandler<?> registerCustomType(Class clazz, TypeHandler<?> adaptor)
clazz - 类名adaptor - 值适配器实例,若为null,则取消注册public static TypeHandler<?> getDB2BeanMappingType(Class<?> mirror)
public static TypeHandler<?> getDB2BeanMappingType(Class<?> mirror, int sqlType)
public static <T> TypeHandler<T> getBean2DBMappingType(ColumnMapping column)
public static void setJdbcSqlType(ColumnMapping column)
column - Copyright © 2020. All rights reserved.