public class Date2LongConvert extends Object implements AttributeConvert
@{code| 构造器和说明 |
|---|
Date2LongConvert() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
toAttr(ExecuteContext ctx,
Class cls,
String name,
ResultSet rs,
int index)
从数据库取值后的转化
|
Object |
toDb(ExecuteContext ctx,
Class cls,
String name,
Object pojo)
在存储到数据库前的转化
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoAutoSqlPartpublic Object toDb(ExecuteContext ctx, Class cls, String name, Object pojo)
toDb 在接口中 AttributeConvertctx - cls - name - 属性名pojo - 传入的Pojopublic Object toAttr(ExecuteContext ctx, Class cls, String name, ResultSet rs, int index) throws SQLException
toAttr 在接口中 AttributeConvertctx - cls - name - rs - index - SQLExceptionCopyright © 2023. All rights reserved.