variable cur refcursor;
execute GET_APP_POOL_CURSOR(:cur, 'SCREEN', 'N');
print :cur
sf.getCurrentSession().doWork(new Work() {
@Override
public void execute(Connection conn) throws SQLException {
final CallableStatement cs = conn.prepareCall("{call GET_APP_POOL_CURSOR(?, ?, ?)}");
cs.registerOutParameter(1, oracle.jdbc.OracleTypes.CURSOR);
cs.setString(2, "aa");
cs.setString(3, "bb");
cs.execute();
final ResultSet rs = (ResultSet) cs.getObject(1);
while (rs.next()) {
final EvaluationAnpAppVW evaluationAnpAppVW = new EvaluationAnpAppVW();
evaluationAnpAppVW.setAnpPrdSeq(rs.getLong(2));
}
}
}