• 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
Determining database plugin at runtime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Determining database plugin at runtime


  • Subject: Determining database plugin at runtime
  • From: Paul Hoadley <email@hidden>
  • Date: Sat, 30 Mar 2013 17:06:16 +1030

Hello,

I (think I) want to determine what plugin is in use for a particular model at runtime.  What's the easiest way?  (I see EOAdaptor.pluginName(), but, somewhat embarrassingly, I can't quite work out how to get the EOAdaptor object for a model.)

(This relates to my recent thread "Disable constraint checking under H2".  I want to do exactly that: at runtime, if the H2 plugin is in use, I'll run "SET REFERENTIAL_INTEGRITY FALSE;".  If anyone can suggest a better way to do that conditional on running H2, I'm all ears.)


-- 
Paul Hoadley
http://logicsquad.net/



 _______________________________________________
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: AjaxObserveField problems
  • Next by Date: Re: Weird problem with D2W rules
  • Previous by thread: Re: D2W Rule Question
  • Next by thread: Re: Determining database plugin at runtime
  • Index(es):
    • Date
    • Thread