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 21:21 Go to next message
DTKCJ  is currently offline DTKCJ Friend
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 13:58 Go to previous message
James Sutherland is currently offline James SutherlandFriend
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.
Previous Topic:@ElementCollection List<String> dont delete first record on merge
Next Topic:@Embeddable object how to discriminate for an object with blank field
Goto Forum:
  


Current Time: Fri May 26 11:23:11 GMT 2017

Powered by FUDForum. Page generated in 0.04194 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software