• 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: How to handle trigger from database.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to handle trigger from database.


  • Subject: Re: How to handle trigger from database.
  • From: "Ricardo Cortes" <email@hidden>
  • Date: Mon, 20 Jun 2005 16:04:38 -0400
  • Organization: Bolt

The default locking strategy with EOF is optimistic.  So, if the EOF
stack finds that a record has been changed when it tries to update that
record an EOGeneralAdaptorException will be thrown.  By default EOF
doesn't do anything with this exception but you can catch it in your
saveChanges() invocation if you'd like.  Then, if you want you can
refault the changed objects and inform the user what happened and give
them the option to save the object again.  Hope that helps...

--
Lead Software Engineer
email@hidden
Bolt Media - www.bolt.com

On Mon, 2005-06-20 at 12:37 -0700, Theodore Petrosky wrote:
> I have a cocoa app that uses that c libraries (libpq)
> to talk to a postgresql server. I have been toying
> with webobject over the last year to see if talking to
> the backend was doable. I am happy with the results.
>
> I am starting a new example that has me stumped. I
> have triggers on the database such that if a given row
> is  updated, the database will generate a notification
> to any client that is looking at that row.
>
> Is this kind of functionality doable with WebObjects?
> If a client in webobjects is looking at a row of data,
> and an update comes from my cocoa app, I want the
> webobjects page to know.
>
> Ted
>
>
>
> __________________________________
> Discover Yahoo!
> Find restaurants, movies, travel and more fun for the weekend. Check it out!
> http://discover.yahoo.com/weekend.html
>
>  _______________________________________________
> 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
>



 _______________________________________________
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: How to handle trigger from database.
      • From: Ken Anderson <email@hidden>
References: 
 >How to handle trigger from database. (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: How to handle trigger from database.
  • Next by Date: Re: How to handle trigger from database.
  • Previous by thread: How to handle trigger from database.
  • Next by thread: Re: How to handle trigger from database.
  • Index(es):
    • Date
    • Thread