| java.lang.Object org.jaffa.beans.moulding.data.domain.DomainDAO
All known Subclasses: org.jaffa.beans.moulding.data.Generic,
DomainDAO | abstract public class DomainDAO (Code) | | 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.
author: PaulE version: 1.0 |
DomainDAO | public DomainDAO()(Code) | | Creates a new instance of DAO
|
addPropertyChangeListener | final public void addPropertyChangeListener(java.beans.PropertyChangeListener l)(Code) | | Adds a PropertyChangeListener to the listener list.
Parameters: l - The listener to add. |
getOriginalValue | public Object getOriginalValue(String property) throws NoSuchFieldException(Code) | | Get the original value for this field, throw an error if this field has no
changed, so you should consider first checking with the
DomainDAO.hasChanged(String) method
Parameters: property - Name of bean property to check throws: NoSuchFieldException - Throw if the property has not been changed, or does not exist. The object representing the original values. Primitives are return as theirObject counterparts. |
hasChanged | public boolean hasChanged(String property)(Code) | | Has the specified bean property been changed since the bean was
created or last cleared
Parameters: property - Name of bean property to check true if the property has been modified |
removePropertyChangeListener | final public void removePropertyChangeListener(java.beans.PropertyChangeListener l)(Code) | | Removes a PropertyChangeListener from the listener list.
Parameters: l - The listener to remove. |
toString | public String toString()(Code) | | Converts the current contents of the bean to a multi-line
nested output string, listing all the bean's properties.
Property names that are suffixed with an asterisk (*) indicate
that the value hasChanged() .
test string listing the beans contents |
toString | public String toString(List objectStack)(Code) | | Converts the current contents of the bean to a multi-line
nested output string, listing all the bean's properties.
Property names that are suffixed with an asterisk (*) indicate
that the value hasChanged() .
test string listing the beans contents |
validate | abstract public void validate() throws ApplicationExceptions, FrameworkException(Code) | | This is called prior to a domain DAO being used in a service. This is
only called on the top level DAO of a DAO Graph, so this method should roll
up lower level validations. The DAO is assumed to be valid if no exception
is thrown.
throws: ApplicationExceptions - Contains an list of possible business logicexceptions that caused the validation to fail throws: FrameworkException - Thrown if there is an environment/runtime problemthat prevented the validation from being performed. |
|
|