Java Doc for TableBean.java in  » J2EE » Jaffa » org » jaffa » tools » domainmeta » common » 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.tools.domainmeta.common 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jaffa.tools.domainmeta.common.TableBean

TableBean
public class TableBean extends Object implements java.io.Serializable(Code)
Java Bean to store information about a domain object
author:
   PaulE



Constructor Summary
public  TableBean()
    

Method Summary
public  voidaddRelationship(TableBean table, boolean cardinalityMany)
     Add a relationship from this table to another one.
public static  StringformatName(String name)
     Format a field / table name so it complies with Jaffa.
public  StringgetDescription()
     Getter for property description.
public  StringgetDomainName()
     Getter for property domainName.
public  StringgetDomainPackage()
     Getter for property domainPackage.
public  java.util.HashMapgetFields()
     Getter for property fields.
public  StringgetId()
     Getter for property id.
public  StringgetLabel()
     Getter for property label.
public  java.util.ArrayListgetRelationships()
     Getter for property relationships.
public  StringgetTableName()
     Getter for property tableName.
public  voidsetDescription(String description)
     Setter for property description.
public  voidsetDomainName(String domainName)
     Setter for property domainName.
public  voidsetDomainPackage(String domainPackage)
     Setter for property domainPackage.
public  voidsetFields(java.util.LinkedHashMap fields)
     Setter for property fields.
public  voidsetId(String id)
     Setter for property id.
public  voidsetLabel(String label)
     Setter for property label.
public  voidsetTableName(String tableName)
     Setter for property tableName.
public  voidwrite(PrintWriter out, String mappingPackage, String patternTemplate)
     Write out an XML verion of the bean, including all the fields beans in this table bean.


Constructor Detail
TableBean
public TableBean()(Code)
Creates new TableBean




Method Detail
addRelationship
public void addRelationship(TableBean table, boolean cardinalityMany)(Code)
Add a relationship from this table to another one. It assumes that the key of this table are the same fields names that relate the two tables
Parameters:
  table - table this one is related to
Parameters:
  cardinalityMany - true if this is a one to many table, false if its one-to-one



formatName
public static String formatName(String name)(Code)
Format a field / table name so it complies with Jaffa. Typically names have no spaces and each word is caplitalized.
Parameters:
  name - original database name Jaffa compatible name



getDescription
public String getDescription()(Code)
Getter for property description. Value of property description.



getDomainName
public String getDomainName()(Code)
Getter for property domainName. Value of property domainName.



getDomainPackage
public String getDomainPackage()(Code)
Getter for property domainPackage. Value of property domainPackage.



getFields
public java.util.HashMap getFields()(Code)
Getter for property fields. Value of property fields.



getId
public String getId()(Code)
Getter for property id. Value of property id.



getLabel
public String getLabel()(Code)
Getter for property label. Value of property label.



getRelationships
public java.util.ArrayList getRelationships()(Code)
Getter for property relationships. Value of property relationships.



getTableName
public String getTableName()(Code)
Getter for property tableName. Value of property tableName.



setDescription
public void setDescription(String description)(Code)
Setter for property description.
Parameters:
  description - New value of property description.



setDomainName
public void setDomainName(String domainName)(Code)
Setter for property domainName.
Parameters:
  domainName - New value of property domainName.



setDomainPackage
public void setDomainPackage(String domainPackage)(Code)
Setter for property domainPackage.
Parameters:
  domainPackage - New value of property domainPackage.



setFields
public void setFields(java.util.LinkedHashMap fields)(Code)
Setter for property fields.
Parameters:
  fields - New value of property fields.



setId
public void setId(String id)(Code)
Setter for property id.
Parameters:
  id - New value of property id.



setLabel
public void setLabel(String label)(Code)
Setter for property label.
Parameters:
  label - New value of property label.



setTableName
public void setTableName(String tableName)(Code)
Setter for property tableName.
Parameters:
  tableName - New value of property tableName.



write
public void write(PrintWriter out, String mappingPackage, String patternTemplate)(Code)
Write out an XML verion of the bean, including all the fields beans in this table bean.
Parameters:
  mappingPackage - mapping packge for this table to use
Parameters:
  patternTemplate - pattern template this this is based on
Parameters:
  out - XMl representation as a string



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.