Class EnumTypeHandler<E extends Enum<E>>
java.lang.Object
cool.scx.jdbc.type_handler.EnumTypeHandler<E>
- All Implemented Interfaces:
TypeHandler<E>
EnumTypeHandler
此处不使用枚举序号而是使用枚举名称 是为了保证如果 后期 枚举修改了仍然能够对应读取
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Details
-
EnumTypeHandler
-
-
Method Details
-
setObject
- Specified by:
setObjectin interfaceTypeHandler<E extends Enum<E>>- Throws:
SQLException
-
getObject
- Specified by:
getObjectin interfaceTypeHandler<E extends Enum<E>>- Throws:
SQLException
-