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
This archive was generated by hypermail 2.0.0 : Tue Apr 26 2005 - 08:58:41 EDT