* INTERNAL:
*/
@Override
public void process(AbstractSession session) {
// Build the stored procedure call.
StoredFunctionCall call = new StoredFunctionCall();
// Process the stored procedure parameters.
boolean callByIndex = callByIndex();
for (StoredProcedureParameterMetadata parameter : getParameters()) {
parameter.processArgument(call, callByIndex, -1);
}
if (getReturnParameter() != null) {
getReturnParameter().processResult(call, -1);
}
// 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.