java - Best practices for indicating a field has been modified in GWT -


There are several key objects in my application, whose fields are accessed by several presenters. At present, my use of gates / sets is limited to cases where verification is necessary. I want to track whether field values ​​have been updated (and therefore database updates are required). To do this, I am considering to include the boolean flag, the third (to indicate that the existing value is recovered or separated from the default) and deleted (to indicate that an object Reports related to should be removed). By adding such flags to orbit in the classroom, either (A) using the setters, and setting the flag values ​​in the setter when the fields are updated) or (b) the selectors should be selected, but any code is required which field Sets flags to modify the value (clearly prone error). Is there a great way to keep track of field meta-data?

If the object is stored as session attribute, then you session Regarding the state of the state (added / deleted / replaced) in the field .

I have already posted a sample code. Please have a look.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -