• 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
Re: fetch EOs using Oracle stored procedures
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fetch EOs using Oracle stored procedures


  • Subject: Re: fetch EOs using Oracle stored procedures
  • From: Francis Labrie <email@hidden>
  • Date: Fri, 9 Feb 2007 08:19:32 -0500

Hi,


David den Boer a écrit :
[...]
2. You can fetch using : 
public static NSArray rawRowsForStoredProcedureNamed(EOEditingContext ec, String name,NSDictionary args)

This will return an array of NSDictionary (raw rows). 

If this is being used to display results, you are best to leave them as raw rows and just put a repetition over the array of rows. Bind your iterator to a dictionary and then use key value coding to get columns out of the dictionary (be sure to use column names as the key, not your fancy attribute names). When a user needs to inspect a row from this list, turn that one row back to an EO using :

public static EOEnterpriseObject objectWithPrimaryKeyValue(EOEditingContext ec, String entityName, Object value)


You can also use EOEditingContext method to turn a raw row into an EO:

public EOEnterpriseObject faultForRawRow(NSDictionary row,
                                         String entityName)


OS communications informatiquesFrancis Labrie, System Architect, OS communications informatiques - Your communication engine
email@hidden | Phone: (450) 676-1238 ext. 27 | Fax: (450) 676-5276

 _______________________________________________
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

References: 
 >fetch EOs using Oracle stored procedures (From: "James C. Lee" <email@hidden>)
 >Re: fetch EOs using Oracle stored procedures (From: David den Boer <email@hidden>)

  • Prev by Date: Re: Help please: ClassCastException during appendToResponse
  • Next by Date: Re: Help please: ClassCastException during appendToResponse
  • Previous by thread: Re: fetch EOs using Oracle stored procedures
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread