Class DateTypeHandler
java.lang.Object
cool.scx.jdbc.type_handler.time.DateTypeHandler
- All Implemented Interfaces:
TypeHandler<Date>
此处因为 jdbc 的设计非常混乱 所以说明一下
Date 是指 只有日期没有时间
Time 是指 只有时间没有日期
Timestamp 是指既有日期又有时间
我们此处使用 Timestamp 进行存储, 同时建议用户使用 LocalDateTime 等替换 Date
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Details
-
DateTypeHandler
public DateTypeHandler()
-
-
Method Details
-
setObject
- Specified by:
setObjectin interfaceTypeHandler<Date>- Throws:
SQLException
-
getObject
- Specified by:
getObjectin interfaceTypeHandler<Date>- Throws:
SQLException
-