public class DB2BooleanAdaptor extends Object implements ValueAdaptor
构造器和说明 |
---|
DB2BooleanAdaptor() |
public Object get(ResultSet rs, String colName) throws SQLException
ValueAdaptor
get
在接口中 ValueAdaptor
rs
- 结果集colName
- 列名SQLException
public void set(PreparedStatement stat, Object obj, int i) throws SQLException
ValueAdaptor
一个值可以被设置到多个占位符中
set
在接口中 ValueAdaptor
stat
- 缓冲语句obj
- 值i
- 占位符位置,从 1 开始SQLException
Copyright © 2017. All rights reserved.