fonction stockée retournant un record
Salut !
J'ai une fonction PL\SQL retournant un "record" pl\sql :
Code:
1 2 3 4 5 6 7 8
|
type PRESCRIPTIONREC is record(
PR1 VARCHAR2(20),
PR2 dpprescmedic.dpmdatval%type,
PR3 uf.ufcrt%type,
PR4 uf.ufcrt%type,
PR5 VARCHAR2(500));
function SSMPRESCRIPTION(dpprescmedic_dpmno in dpprescmedic.dpmno%type) return PRESCRIPTIONREC; |
J'aimerais savoir s'il est possible de récupérer ce "record" en java.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
public PrescMedic (Database database, int noprescmedic) throws SQLException{
int Result=0;
CallableStatement stmt = null;
try{
stmt = database.db.prepareCall("begin :1 := SSMPRESCRIPTION(:2); end;");
stmt.registerOutParameter(1, ????????);
}
} |
Merci d'avance pour vos réponses...
PS : Il parait que ça ne fonctionne pas sous Oracle8i mais que c'est possible sous 9i