Class TypeUtil
java.lang.Object
org.huiche.jdbc.support.TypeUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisSingleColumnType(Type type) 是否单列类型static ObjectnullToDefault(Type type, Configuration configuration) null转默认值,主要用来处理基本类型和集合类型static ObjectnullToEmpty(Type type, Configuration configuration) 根据配置,如果是集合|数组|Map类型,返回空的对象,而不是nullstatic ParameterizedTypeparameterizedType(Class<?> raw, Type... args) 构造参数化类型
-
Method Details
-
isSingleColumnType
-
nullToDefault
null转默认值,主要用来处理基本类型和集合类型- Parameters:
type- 类型configuration- 配置- Returns:
- 默认值
-
nullToEmpty
根据配置,如果是集合|数组|Map类型,返回空的对象,而不是null- Parameters:
type- 类型configuration- 配置- Returns:
- 空对象或null
-
parameterizedType
构造参数化类型- Parameters:
raw- 原始类型args- 参数类型- Returns:
- 参数化类型
-