public class DBTimestampTypeHandler extends AbstractTimeTypeHandler
构造器和说明 |
---|
DBTimestampTypeHandler() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
getValue(java.sql.ResultSet rs,
int index,
int type)
将从数据库中获取的值转化成合适的FR中使用的值
|
protected void |
setPreparedStatementByTime(java.sql.PreparedStatement ps,
int i,
long time) |
setValue
protected void setPreparedStatementByTime(java.sql.PreparedStatement ps, int i, long time) throws java.sql.SQLException
setPreparedStatementByTime
在类中 AbstractTimeTypeHandler
java.sql.SQLException
public java.lang.Object getValue(java.sql.ResultSet rs, int index, int type) throws java.sql.SQLException
SQLTypeHandler
rs
- 预处理SQLindex
- 查询结果的某行索引type
- 数据库字段类型java.sql.SQLException
- 如果值获取失败则抛出此异常