cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "edward pedersson" <>
Subject accessing ObjectStore graph changes [WAS reverting changes and displaying commited changes]
Date Tue, 07 Nov 2006 16:51:43 GMT

I am trying to display the changes in the object graph as granular as
possible and I have come stuck in the objectStore. These methods and fields

    protected Map changes = new HashMap();

    ObjectStoreGraphDiff getChanges() {
        return new ObjectStoreGraphDiff(this);

    Map getChangesByObjectId() {
        return changes;

are all encapsulated quite heavily and I have no access to them other than
creating a class in the org.apache.cayenne.access either as a subclass of
ObjectStore or a stand alone class with an objectStore reference.

I can't see any other way to display any more useful information to the user
other than the default DataObject.toString() which really only tells the
user the object has changed but nothing more.

Has any body tried to do this before? Many thanks for your help.


---------- Forwarded message ----------
From: edward pedersson <>
Date: 09-Oct-2006 11:11
Subject: reverting changes and displaying commited changes
To: Cayenne Users <>


I have built an application using Cayenne and Tapestry running under
Tomcat on a Linux server. I am using the latest released versions of
all of the above.

I would like to be able to display to the user the current changes in
the DataContext and allow the user to revert individual changes. I
would also like them to be able to see what values the object had
before the change.

I have read the documentation and thought about having nested contexts
but at times I would have to deal with 50+ context so it seems a bit

Any thought would be most helpful.

Thanks in advance.


-- e


-- e

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message