• 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
D2W + custom EOEditingContext subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

D2W + custom EOEditingContext subclass


  • Subject: D2W + custom EOEditingContext subclass
  • From: Sam Barnum <email@hidden>
  • Date: Wed, 26 Sep 2007 05:25:38 -0700

I'm using a custom EOEditingContext subclass to auto-restrict qualifiers (thanks to everyone who had suggestions on that)

To do this, I need to ensure that all DB access is done through my EOEditingContext subclass (EGEditingContext).

I'm also using D2W.

The D2W class instantiates an editing context in a few places, and I've written my own factory to take care of these (editPageForNewObjectWithEntityNamed and editPageForNewObjectWithConfigurationNamed). However, my client uncovered some odd behavior in the query all page involving the back arrow that was instantiating a regular EC.

If I want to ensure that only my custom EC subclass is used in D2W, what other places to I need to attend to? Is there a definitive list?

I've added a check in awakeFromInsertion() to throw an exception if my objects are instantiated in a regular EC.


_______________________________________________ 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
  • Follow-Ups:
    • Re: D2W + custom EOEditingContext subclass [SOLVED]
      • From: Sam Barnum <email@hidden>
  • Prev by Date: Re: Improve Upload speed...
  • Next by Date: Re: Improve Upload speed...
  • Previous by thread: Re: Improve Upload speed...
  • Next by thread: Re: D2W + custom EOEditingContext subclass [SOLVED]
  • Index(es):
    • Date
    • Thread