public interface ValueAdaptor
Modifier and Type | Method and Description |
---|---|
Object |
get(ResultSet rs,
String colName)
从结果集里获取一个字段的值
|
void |
set(PreparedStatement stat,
Object obj,
int index)
为缓冲语句设置值
|
Object get(ResultSet rs, String colName) throws SQLException
rs
- 结果集colName
- 列名SQLException
void set(PreparedStatement stat, Object obj, int index) throws SQLException
一个值可以被设置到多个占位符中
stat
- 缓冲语句obj
- 值index
- 占位符位置,从 1 开始SQLException
Copyright © 2017. All rights reserved.