| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.beans.moulding.data.domain.DomainDAO
This is the base class for all Domain Data Access Objects.
 It provides a default implementation of the PropertyChange function from
 the Java Bean specification, which keeps track of which properties in
 the Bean have been modified since construction, or since the last 
 clearChanges()
 
It therefore provides (for the bean moulding framework) a way to infer if a value has been passed, which can be used to see if a field value should be moulded from the source to target bean.
| Field Summary | |
| protected  PropertyChangeSupport | propertyChangeSupportUtility field used by bound properties. | 
| Constructor Summary | |
| DomainDAO()Creates a new instance of DAO | |
| Method Summary | |
|  void | addPropertyChangeListener(PropertyChangeListener l)Adds a PropertyChangeListener to the listener list. | 
|  void | clearChanges()Clear all the changes on this bean. | 
|  Object | getOriginalValue(String property)Get the original value for this field, throw an error if this field has no changed, so you should consider first checking with the hasChanged(String)method | 
|  boolean | hasChanged(String property)Has the specified bean property been changed since the bean was created or last cleared | 
|  void | removePropertyChangeListener(PropertyChangeListener l)Removes a PropertyChangeListener from the listener list. | 
|  String | toString()Converts the current contents of the bean to a multi-line nested output string, listing all the bean's properties. | 
|  String | toString(List objectStack)Converts the current contents of the bean to a multi-line nested output string, listing all the bean's properties. | 
| abstract  void | validate()This is called prior to a domain DAO being used in a service. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
protected PropertyChangeSupport propertyChangeSupport
| Constructor Detail | 
public DomainDAO()
| Method Detail | 
public final void addPropertyChangeListener(PropertyChangeListener l)
l - The listener to add.public final void removePropertyChangeListener(PropertyChangeListener l)
l - The listener to remove.public void clearChanges()
hasChanged(String) to return false
public boolean hasChanged(String property)
property - Name of bean property to check
public Object getOriginalValue(String property)
                        throws NoSuchFieldException
hasChanged(String)
 method
property - Name of bean property to check
NoSuchFieldException - Throw if the property has not been changed, or does not exist.
public abstract void validate()
                       throws ApplicationExceptions,
                              FrameworkException
ApplicationExceptions - Contains an list of possible business logic
 exceptions that caused the validation to fail
FrameworkException - Thrown if there is an environment/runtime problem
 that prevented the validation from being performed.public String toString()
 Property names that are suffixed with an asterisk (*) indicate
 that the value hasChanged().
public String toString(List objectStack)
 Property names that are suffixed with an asterisk (*) indicate
 that the value hasChanged().
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||