persistence@glassfish.java.net

Fixing issue 327: Do I need to change this code?

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Fri, 17 Mar 2006 14:33:40 -0800

Peter, Tom, Gordon,

The following code in SessionEventManager uses "call" as a property
name. Is it the same a EJBQuery.CALL (and should be replaced as such)?
Or is it a completely separate thing (and should be left as-is)?

      * INTERNAL:
      * Raised for stored proc output parameters.
      */
     public void outputParametersDetected(AbstractRecord outputRow,
DatasourceCall call) {
         if (!hasListeners()) {
             return;
         }
         startOperationProfile();
         SessionEvent event = new
SessionEvent(SessionEvent.OutputParametersDetected, getSession());
         event.setResult(outputRow);
         event.setProperty("call", call);
         event.setQuery(call.getQuery());
         for (Enumeration listenerEnum = getListeners().elements();
listenerEnum.hasMoreElements();) {
 
((SessionEventListener)listenerEnum.nextElement()).outputParametersDetected(event);
         }
         endOperationProfile();
     }


thanks,
-marina