users@jaxb.java.net

[feature suggestion] Self-tracking of modified state by JAXB binding objects

From: Farrukh Najmi <farrukh_at_wellfleetsoftware.com>
Date: Sat, 12 Jan 2008 10:36:37 -0500

Something I have always felt th need for in JAXB generated binding
classes is the tracking of modified or dirty objects. What would be
really useful is to have a pair of accessor methods in each generated
class at the base of a type hierarchy as follows:

public boolean isModified();
public void setModified(boolean isModified);

And for each setter method in the generated bindings to call
this.setModified(true);
The object should be initialized to have the modified attribied be false.

This would allow each JAXB binding object to self-track whether it has
been modified since it was created or not.

What does the JAXB RI team think of adding this feature as a
impl-specific extension? If it makes sense for the RI then would it also
make sense to consider this feature in a future version of the JAXB
spec? It would be good to hear opinions from JAXB spec, RI and user
community members on this. Thank you.

-- 
Regards,
Farrukh Najmi
Web: http://www.wellfleetsoftware.com