• 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: SQLHelper vs EOSchemaSynchronizationFactory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SQLHelper vs EOSchemaSynchronizationFactory


  • Subject: Re: SQLHelper vs EOSchemaSynchronizationFactory
  • From: Aaron Rosenzweig <email@hidden>
  • Date: Thu, 16 Jan 2014 01:00:16 -0500

If the “SQLHelper” you are thinking of is the same one that is in my mind… that is a Wonder thing. It is used for top-n queries like in the “batching display group” and other places. 
Aaron Rosenzweig / Chat 'n Bike
e:  email@hidden  t:  (301) 956-2319
Chat 'n Bike Chat 'n Bike

On Jan 14, 2014, at 8:13 AM, David Avendasora <email@hidden> wrote:

Okay, I’m not sure I understand the devision-of-labor here.

When should code for generating SQL be put in a PlugIn's SQLHelper and when should it be put in the EOSchemaSynchronizationFactory?

Is there a general rule, or is it a "wherever-is-more-convienient” kind of thing?

It seems to me if the code you want SQL created for is modifying the structure of the DB, it should be in the EOSchemaSynchronizationFactory subclass, and the SQLHelper subclass would be the place for SQL that inserts/updates/deletes data and that one of them would be responsible for the common things like if identifiers should be quoted, etc.

Or, as usual, am I missing some other fundamental concept that would make this question meaningless?

Dave


—————————————————————————————
WebObjects - so easy that even Dave Avendasora can do it!™
—————————————————————————————
David Avendasora
Senior Software Abuser
Nekesto, Inc.




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: 
 >SQLHelper vs EOSchemaSynchronizationFactory (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: How to generate and handle wr?wodata=2266409265804109874
  • Next by Date: REST + Subclassing NSIncrementalStore on iOS
  • Previous by thread: Re: SQLHelper vs EOSchemaSynchronizationFactory
  • Next by thread: WO 5.3 vs WO 5.4 Schema Synchronization in Wonder
  • Index(es):
    • Date
    • Thread