• 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: D2W and CooperatingEditingContext: Can anybody use together? SOLVED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W and CooperatingEditingContext: Can anybody use together? SOLVED


  • Subject: Re: D2W and CooperatingEditingContext: Can anybody use together? SOLVED
  • From: gbrown <email@hidden>
  • Date: Tue, 26 Apr 2005 08:58:37 -0400

It declares useful methods that an EObject must then implement which work with the CooperatingEditingContext, which is an extension of a regular ec. These methods will be called by the CooperatingEditingContext to notify the EObject that various phases or states have been or are about to be achieved, e.g.:

/**
* Called before saveChanges is invoked on super (EOEditingContext). * This would allow things such as setting the dateModified before saving an
* EO. */
public void willUpdate(){ // save modified timestamp
setRlastModified(new NSTimestamp());
return;
}


I use it mostly for timestamps for when database records/EObjects are modified.

It comes from the excellent book "Practical WebObjects". You can look at the java files if you go to www.apress.com, but it is REALLY worth it to get the book as well.



David Teran wrote:

Can a D2W use a CooperatingEditingContext, which implements the EOStateTransition interface?


Can anyone tell me what this 'EOStateTransition' interface does define?

regards, David


_______________________________________________
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: 
 >D2W and CooperatingEditingContext: Can anybody use together? (From: gbrown <email@hidden>)
 >Re: D2W and CooperatingEditingContext: Can anybody use together? (From: Chuck Hill <email@hidden>)
 >Re: D2W and CooperatingEditingContext: Can anybody use together? SOLVED (From: gbrown <email@hidden>)
 >Re: D2W and CooperatingEditingContext: Can anybody use together? SOLVED (From: Chuck Hill <email@hidden>)

  • Prev by Date: RE: target _blank with submit button?
  • Next by Date: How to force IE-Win to accept Unix newline
  • Previous by thread: Re: D2W and CooperatingEditingContext: Can anybody use together? SOLVED
  • Next by thread: Re: D2W and CooperatingEditingContext: Can anybody use together? SOLVED
  • Index(es):
    • Date
    • Thread