|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteasik.sketch.util.Export.Components.ExportTable
public class ExportTable
Class to hold information about entities gleaned from XML input files. Should only be used for exportation to a database. Does not provide functionality for graphical display.
| Field Summary | |
|---|---|
private java.util.ArrayList<ExportAttribute> |
_attributes
The attributes associated with this table |
private java.util.ArrayList<ExportEdge> |
_edges
The edges associated with this table |
private boolean |
_marked
Stores whether this table has been accessed already. |
private java.lang.String |
_name
The name of this table |
private java.util.ArrayList<ExportUniqueKey> |
_uniqueKeys
The unique keys associated with this table |
| Constructor Summary | |
|---|---|
ExportTable(java.lang.String name)
Constructor initializing fields and setting the name of this table. |
|
| Method Summary | |
|---|---|
void |
addAttribute(java.lang.String name,
java.lang.String type,
java.util.HashMap map)
Add an attribute to the arraylist of attributes |
void |
addEdge(ExportEdge e)
Add an edge to the arraylist of edges |
void |
addUniqueKey(ExportUniqueKey uk)
Add a unique key to the arraylist of unique keys. |
java.util.ArrayList |
getAttributes()
Getter method for the list of attributes (that is, table columns) |
java.util.ArrayList |
getEdges()
Getter method for the list of edges (that is, foreign keys) |
java.lang.String |
getName()
Getter method for the name of the table. |
static java.lang.String |
getPrimaryKeyString(ExportTable t)
A method to determine the formatting of the primary key portion of table definition and set the relevant string field to this value |
java.util.ArrayList |
getUniqueKeys()
Getter method for the list of unique keys |
boolean |
isMarked()
Gets whether this table is marked or not. |
void |
setMarked(boolean mark)
Sets this table as |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String _name
private java.util.ArrayList<ExportEdge> _edges
private java.util.ArrayList<ExportAttribute> _attributes
private java.util.ArrayList<ExportUniqueKey> _uniqueKeys
private boolean _marked
| Constructor Detail |
|---|
public ExportTable(java.lang.String name)
name - The name of the table| Method Detail |
|---|
public java.lang.String getName()
public java.util.ArrayList getEdges()
public java.util.ArrayList getAttributes()
public java.util.ArrayList getUniqueKeys()
public void addAttribute(java.lang.String name,
java.lang.String type,
java.util.HashMap map)
name - The name of the attributetype - The attribute typemap - The map associated with this attributepublic void addEdge(ExportEdge e)
e - The edge to be addedpublic void addUniqueKey(ExportUniqueKey uk)
uk - The unique key to be addedpublic void setMarked(boolean mark)
mark - true to mark table, false otherwisepublic boolean isMarked()
public static java.lang.String getPrimaryKeyString(ExportTable t)
t - The table for which the primary key needs to be determined
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||