>Can someone please help me
>with some info (sample code) on how to construct such an NSDictionary,
>using Java?
EODatabaseDataSource ds = new EODatabaseDataSource(
this.session().defaultEditingContext(),
"MyEO");
EODatabaseContext dbContext = ds.databaseContext();
NSMutableDictionary mdArgs = new NSMutableDictionary();
mdArgs.setObjectForKey(argValue1, "argKey1");
mdArgs.setObjectForKey(argValue2, "argKey2");
mdArgs.setObjectForKey(argValue3, "argKey3");
NSDictionary args = (NSDictionary)mdArgs;
EOAdaptorChannel adChannel =
dbContext.availableChannel().adaptorChannel();
EOModelGroup defaultGroup = EOModelGroup.defaultGroup();
EOStoredProcedure storedProc =
defaultGroup.storProcedureNamed("MyStoredProcedure");
try {
adChannel.openChannel();
NSDictionary results =
adChannel.executeStoredProcedure(storedProc, args);
if ((results != null) && (results.count() > 0))
String resultVal = (String)results.objectForKey("returnValue");
} catch (Exception e) { // handle exception }
Paul Croarkin
Peace Corps
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com