• 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: Invalidating objects asynchronously
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invalidating objects asynchronously


  • Subject: Re: Invalidating objects asynchronously
  • From: Lachlan Deck <email@hidden>
  • Date: Tue, 9 Sep 2008 20:51:32 +1000

On 09/09/2008, at 10:56 AM, Mike Schrag wrote:

More specifically:
/**
* This is Kelly Hawks' fix for the missing to one relationship.
* Delegate on EODatabaseContext that gets called when a to-one fault cannot find its data in
* the database. The object that is returned is a cleared fault.
* We raise here to restore the functionality that existed prior to WebObjects 4.5.
* Whenever a fault fails for a globalID (i.e. the object is NOT found in the database), we raise
* an {@link com.webobjects.eoaccess.EOObjectNotAvailableException EOObjectNotAvailableException}. <br>
* If you have entities you don't really care about, you can set the system property
* < code>er.extensions.ERXDatabaseContextDelegate.tolerantEntityPattern</ code> to a regular expression
* that will be tested against the GID entity name. If it matches, then only an error will be logged
* but no exception will be thrown.
*
* @param context database context
* @param object object that is firing the fault for a given to- one relationship
* @param gid global id that wasn't found in the database.
*/
public boolean databaseContextFailedToFetchObject(EODatabaseContext context, Object object, EOGlobalID gid) {

Ah, thank you! That always bugged me that it would throw an exception when the restricting qualifier had kicked in.


Now I can have peace ;-)
er.extensions.ERXDatabaseContextDelegate.tolerantEntityPattern=\\w+

with regards,
--

Lachlan Deck

_______________________________________________
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: 
 >Invalidating objects asynchronously (From: Dan Grec <email@hidden>)
 >Re: Invalidating objects asynchronously (From: Mike Schrag <email@hidden>)
 >Re: Invalidating objects asynchronously (From: Dan Grec <email@hidden>)
 >Re: Invalidating objects asynchronously (From: Chuck Hill <email@hidden>)
 >Re: Invalidating objects asynchronously (From: Mike Schrag <email@hidden>)
 >Re: Invalidating objects asynchronously (From: Chuck Hill <email@hidden>)
 >Re: Invalidating objects asynchronously (From: Peter Vandoros <email@hidden>)
 >Re: Invalidating objects asynchronously (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: IllegalArgumentException in D2W queryAll page?
  • Next by Date: Load Order for Frameworks in a Servlet Deployment
  • Previous by thread: Re: Invalidating objects asynchronously
  • Next by thread: Re: Invalidating objects asynchronously
  • Index(es):
    • Date
    • Thread