java执行timesten的存储过程,怎样处理带游标的啊

附上代码:
public ResultSet executeProcedure(String sql) {
try {
if(sql.indexOf("call")<0){
// 若出现参数异常,就抛出,不再执行
throw new Exception("【数据库处理组件】【您输入的SQL语句有误】您是不是想用【query(String sql, SqlContainer container)】");
}
// 编译SQL语句
this.callStatement = connection.prepareCall(sql);
this.callStatement.registerOutParameter(1, OracleTypes.CURSOR);
// 存储过程执行
// rs = callStatement.executeQuery();
this.callStatement.registerOutParameter(1, oracle.jdbc.OracleTypes.CURSOR);
this.callStatement.executeUpdate();
rs=(ResultSet)this.callStatement.getObject(1);
} catch (Exception e) {
// log.save(e.toString());
}
return rs;
}