程序包 gu.sql2java
类 BaseColumnCodec
java.lang.Object
gu.sql2java.BaseColumnCodec
- 所有已实现的接口:
ColumnCodec
- 直接已知子类:
BaseTypeColumnCodec,JsonColumnCodec
- 从以下版本开始:
- 3.21.0
- 作者:
- guyadong
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明<T> Tdeserialize(Object columnValue, Class<T> targetType) 将数据库中获取的结果集(ResultSet)的字段值反序列化为指定的类型<T> Tdeserialize(Object columnValue, Type targetType) 将数据库中获取的结果集(ResultSet)的字段值反序列化为指定的类型protected abstract <T> TdoDeserialize(Object columnValue, Class<T> targetType) protected abstract <T> TdoDeserialize(Object columnValue, Type targetType) protected abstract <T> TdoSerialize(Object obj, Class<T> targetType) <T> T将指定的对象序列化为数据库存储类型
-
构造器详细资料
-
BaseColumnCodec
protected BaseColumnCodec()
-
-
方法详细资料
-
doDeserialize
protected abstract <T> T doDeserialize(Object columnValue, Class<T> targetType) throws ResultSetCodecException -
doDeserialize
protected abstract <T> T doDeserialize(Object columnValue, Type targetType) throws ResultSetCodecException -
doSerialize
protected abstract <T> T doSerialize(Object obj, Class<T> targetType) throws ResultSetCodecException -
deserialize
从接口复制的说明:ColumnCodec将数据库中获取的结果集(ResultSet)的字段值反序列化为指定的类型- 指定者:
deserialize在接口中ColumnCodec- 类型参数:
T- 目标类型- 参数:
columnValue- 字段值,为null返回nulltargetType- 反序列化目标类型,对于不支持的目标类型抛出异常UnsupportTypeException- 抛出:
ResultSetCodecException
-
deserialize
从接口复制的说明:ColumnCodec将数据库中获取的结果集(ResultSet)的字段值反序列化为指定的类型- 指定者:
deserialize在接口中ColumnCodec- 类型参数:
T- 目标类型- 参数:
columnValue- 字段值,为null返回nulltargetType- 反序列化目标类型,对于不支持的目标类型抛出异常UnsupportTypeException- 抛出:
ResultSetCodecException
-
serialize
从接口复制的说明:ColumnCodec将指定的对象序列化为数据库存储类型- 指定者:
serialize在接口中ColumnCodec- 类型参数:
T- 输入类型- 参数:
obj- 序列化对象,为null返回nulltargetType- 序列化目标类型,对于不支持的目标类型抛出异常UnsupportTypeException- 抛出:
ResultSetCodecException
-