| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.tools.domainmeta.common.TableBean
Java Bean to store information about a domain object
| Constructor Summary | |
| TableBean()Creates new TableBean | |
| Method Summary | |
|  void | addRelationship(TableBean table,
                               boolean cardinalityMany)Add a relationship from this table to another one. | 
| static String | formatName(String name)Format a field / table name so it complies with Jaffa. | 
|  String | getDescription()Getter for property description. | 
|  String | getDomainName()Getter for property domainName. | 
|  String | getDomainPackage()Getter for property domainPackage. | 
|  HashMap | getFields()Getter for property fields. | 
|  String | getId()Getter for property id. | 
|  String | getLabel()Getter for property label. | 
|  ArrayList | getRelationships()Getter for property relationships. | 
|  String | getTableName()Getter for property tableName. | 
|  void | setDescription(String description)Setter for property description. | 
|  void | setDomainName(String domainName)Setter for property domainName. | 
|  void | setDomainPackage(String domainPackage)Setter for property domainPackage. | 
|  void | setFields(LinkedHashMap fields)Setter for property fields. | 
|  void | setId(String id)Setter for property id. | 
|  void | setLabel(String label)Setter for property label. | 
|  void | setTableName(String tableName)Setter for property tableName. | 
|  void | write(PrintWriter out,
           String mappingPackage,
           String patternTemplate)Write out an XML verion of the bean, including all the fields beans in this table bean. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public TableBean()
| Method Detail | 
public void write(PrintWriter out,
                  String mappingPackage,
                  String patternTemplate)
mappingPackage - mapping packge for this table to usepatternTemplate - pattern template this this is based onout - XMl representation as a stringpublic String getId()
public void setId(String id)
id - New value of property id.public String getTableName()
public void setTableName(String tableName)
tableName - New value of property tableName.public HashMap getFields()
public void setFields(LinkedHashMap fields)
fields - New value of property fields.public String getDomainName()
public void setDomainName(String domainName)
domainName - New value of property domainName.public String getDomainPackage()
public void setDomainPackage(String domainPackage)
domainPackage - New value of property domainPackage.public ArrayList getRelationships()
public void addRelationship(TableBean table,
                            boolean cardinalityMany)
table - table this one is related tocardinalityMany - true if this is a one to many table, false if its one-to-onepublic static String formatName(String name)
name - original database name
public String getLabel()
public void setLabel(String label)
label - New value of property label.public String getDescription()
public void setDescription(String description)
description - New value of property description.| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||