Java Doc for DomainDAO.java in  » J2EE » Jaffa » org » jaffa » beans » moulding » data » domain » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » Jaffa » org.jaffa.beans.moulding.data.domain 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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



Field Summary
protected  java.beans.PropertyChangeSupportpropertyChangeSupport
     Utility field used by bound properties.

Constructor Summary
public  DomainDAO()
    

Method Summary
final public  voidaddPropertyChangeListener(java.beans.PropertyChangeListener l)
     Adds a PropertyChangeListener to the listener list.
public  voidclearChanges()
     Clear all the changes on this bean.
public  ObjectgetOriginalValue(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 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.
public  booleanhasChanged(String property)
    
final public  voidremovePropertyChangeListener(java.beans.PropertyChangeListener l)
     Removes a PropertyChangeListener from the listener list.
public  StringtoString()
     Converts the current contents of the bean to a multi-line nested output string, listing all the bean's properties.
public  StringtoString(List objectStack)
     Converts the current contents of the bean to a multi-line nested output string, listing all the bean's properties.
abstract public  voidvalidate()
     This is called prior to a domain DAO being used in a service.

Field Detail
propertyChangeSupport
protected java.beans.PropertyChangeSupport propertyChangeSupport(Code)
Utility field used by bound properties.




Constructor Detail
DomainDAO
public DomainDAO()(Code)
Creates a new instance of DAO




Method Detail
addPropertyChangeListener
final public void addPropertyChangeListener(java.beans.PropertyChangeListener l)(Code)
Adds a PropertyChangeListener to the listener list.
Parameters:
  l - The listener to add.



clearChanges
public void clearChanges()(Code)
Clear all the changes on this bean. Will cause all future calls to DomainDAO.hasChanged(String) to return false



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.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.