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