Dao dao = new NutDao(sds);
dao.run(new ConnCallback() {
@Override
public void invoke(Connection conn) throws Exception {
CallableStatement cstm=conn.prepareCall("call detail(?)");
cstm.registerOutParameter(1, OracleTypes.CURSOR);
cstm.execute();
ResultSet rs = (ResultSet)cstm.getObject(1);
ResultSetLooping ing = new ResultSetLooping() {
protected boolean createObject(int index,
ResultSet rs,
SqlContext context,
int rowCout) {
NutMap re = new NutMap();
Record.create(re, rs, rs.getMetaData());
list.add(re);
return true;
}
};
ing.doLoop(rs, 这里个sqlcontent怎么用);
List<NutMap> re=Lang.array2list(ing.getList(), NutMap.class);
System.out.println(re);
}
});
那个sqlcontent怎么取?