Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Override the propertyChange method of AttributeChangeListener Class(Override the propertyChange method of AttributeChangeListener Class)
Override the propertyChange method of AttributeChangeListener Class [message #668852] Sun, 08 May 2011 17:21 Go to next message
DTKCJ  is currently offline DTKCJ
Messages: 1
Registered: May 2011
Junior Member
Hi All,

I am trying to track changes, including the old and new values of changed attributes of all my entities in a generic manner.

For this I want to override the propertyChange method of AttributeChangeListener Class inorder to obtain the old and new value of an attribute before it can be updated.

Looking forward to suggestions how this could be implemented.

Thanks in advance.
Tess
Re: Override the propertyChange method of AttributeChangeListener Class [message #669214 is a reply to message #668852] Mon, 09 May 2011 09:58 Go to previous message
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

What are you trying to do exactly (and why?)?

The EclipseLink DescriptorEvents such as postUpdate give an ObjectChangeSet as argument (from DescriptorEvent) that contains the list of changes. The latest EclipseLink release also contains the old values.


James : Wiki : Book : Blog : Twitter
Previous Topic:Oracle ORDERED USE_NL and Eclipselink
Next Topic:EJB transaction does not rollback stored procedure changes
Goto Forum:
  


Current Time: Fri Apr 18 19:26:12 EDT 2014

Powered by FUDForum. Page generated in 0.01791 seconds