• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
EOUtilities.executeStoredProcedureNamed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EOUtilities.executeStoredProcedureNamed


  • Subject: EOUtilities.executeStoredProcedureNamed
  • From: "Loehr, Paula" <email@hidden>
  • Date: Tue, 21 May 2013 11:57:08 +0000
  • Thread-topic: EOUtilities.executeStoredProcedureNamed

I am trying to call a stored procedure in Oracle 10 that has two parameters (In, Out).

I've added the Stored Procedure to my EOModel:
Name: StudentCountReadyForApproval

Attributes:
Name: idSchool
Column: schoolId
Settings: do not allow nulls
Direction: In
Data Type: Integer
External Type: Number
Class: java.lang.integer
Precision:  

Name: studentCount
Column: studentCount
Settings: do not allow nulls
Direction: Out
Data Type: Integer
External Type: Number
Class: java.lang.Integer
Precision: 

When I call this stored procedure from my component:

        NSMutableDictionary<String, Number> args = new NSMutableDictionary<String, Number>();

        args.setObjectForKey(session().loggedInSchool().idSchoolRO(),"idSchool");

        args.setObjectForKey(0, "studentCount");


EOUtilities.executeStoredProcedureNamed(localEditingContext(),"StudentCountReadyForApproval", 

                    args.immutableClone());



I get the following error:
-  === Begin Internal Transaction

evaluateExpression: <com.webobjects.jdbcadaptor.EROracleExpression: "{ call StuReadyForApproveCountTest (?, ?)}" withBindings: 1:1012(idSchool), 2:0(studentCount)>

-  === Rollback Internal Transaction

- Exception while retrieving studentsReadyForApproval MassApproveTabContent: Unable to determine JDBC type for attribute 'studentCount' when preparing output parameter for stored procedure.



Any ideas for what I am missing or what I need to change?
Thanks in advance,
Paula


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: ERRest and WOAdaptor
  • Next by Date: WOWODC 2013: room block ends tomorrow
  • Previous by thread: Re: The infamous "WOServletAdaptor is not available" error on Tomcat
  • Next by thread: WOWODC 2013: room block ends tomorrow
  • Index(es):
    • Date
    • Thread