Posted By:
Gibberish_Driftwood
Posted On:
Monday, June 9, 2008 03:20 PM
I have a set of Domain classes. These are just simple beans with private class variables which each have their own getter and setter. These domain objects will be stored in a persistant store. Now I also need to store the date/time and in which context (String value) the last set method was called. So for each class variable two values releated to the set method call. I could of course add two variables to next to each class variable, like private String classVariable1; private Date classVariable1_LastSet; private String classVariable1_ContextLastSet; public Date getClassVariable1_LastSet() {...} But as I have mul
More>>
I have a set of Domain classes. These are just simple beans with private class variables which each have their own getter and setter. These domain objects will be stored in a persistant store.
Now I also need to store the date/time and in which context (String value) the last set method was called. So for each class variable two values releated to the set method call.
I could of course add two variables to next to each class variable, like
private String classVariable1;
private Date classVariable1_LastSet;
private String classVariable1_ContextLastSet;
public Date getClassVariable1_LastSet() {...}
But as I have multiple class variables and multiple Domain classes this would not be the simplest way. I have bean looking into the Decorator class but I just don't see the complete solution.
Anyone got any brilliant ideas ?
THX
<<Less