• 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: Ramsey Gurley <email@hidden>
  • Date: Tue, 14 Jan 2014 08:15:08 -0700

I believe the reason for the SQLHelpers was migrations, which happened before WO 5.4.

On Jan 14, 2014, at 6: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: Wonder(ful) logging
  • Next by Date: Audio playing component?
  • Previous by thread: SQLHelper vs EOSchemaSynchronizationFactory
  • Next by thread: Re: SQLHelper vs EOSchemaSynchronizationFactory
  • Index(es):
    • Date
    • Thread