Olá pessoal, tenho o seguinte trecho de código:
ResultSet cursor;
CallableStatement cstmt;
cstmt = ShxSetagem.getConexao().getConnection().
prepareCall("begin open ? for select * from alunos; end;");
cstmt.registerOutParameter(1, OracleTypes.CURSOR );
cstmt.execute();
Minha duvida é, como eu poderia setar este cursor e pegar seu nome?
tipo vi que ele tem um método sobrecarregado:
cstmt.registerOutParameter(String, int );
que recebe o nome do parametro ao invez do indice.