* INTERNAL:
*/
@Override
public void process(AbstractSession session) {
// Build the stored procedure call.
PLSQLStoredFunctionCall call = new PLSQLStoredFunctionCall();
// Process the return parameter - the return arg must be processed before
// the rest of the args to ensure that it is set on the call first
if (getReturnParameter() != null) {
getReturnParameter().process(call, true);
}
// Process the stored procedure parameters.
for (PLSQLParameterMetadata parameter : getParameters()) {
parameter.process(call, false);
}
// Process the procedure name.
call.setProcedureName(getProcedureName());
// Create a JPA query to store internally on the session.
JPAQuery query = new JPAQuery(getName(), call, processQueryHints(session));
// Process the result class.