|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgpruitt.datamodeler.core.Schema
public class Schema
A Schema is a collection of database Tables.
Field Summary | |
---|---|
protected java.lang.String |
comment
|
protected java.util.List<Table> |
list
|
protected java.util.Map<java.lang.String,Table> |
map
|
protected Model |
model
|
protected java.lang.String |
name
|
Constructor Summary | |
---|---|
Schema(java.lang.String name)
Constructor. |
Method Summary | |
---|---|
Table |
add(Table tbl)
Adds a Table to the Schema |
boolean |
contains(java.lang.String name)
Tests whether the Schema contains a Table by the name given |
boolean |
contains(Table tbl)
Tests whether the Schema contains the table given |
Table |
get(int index)
Gets a Table from the Schema by the index |
Table |
get(java.lang.String name)
Gets a Table from the Schema by the Table's name |
java.lang.String |
getComment()
Gets the comment describing the Schema |
Model |
getModel()
Gets the Model to which this Schema belongs |
java.lang.String |
getName()
Gets the name of the Schema. |
boolean |
isEmpty()
Tests whether the Schema contains any Tables |
java.util.Iterator<Table> |
iterator()
Gets a read-only Iterator over the Table in the Schema |
void |
setComment(java.lang.String comment)
Sets the comment describing the Schema |
void |
setModel(Model model)
Sets the Model to which this Schema belongs |
int |
size()
Gets the number of Tables in the Schema |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String name
protected Model model
protected final java.util.Map<java.lang.String,Table> map
protected final java.util.List<Table> list
protected java.lang.String comment
Constructor Detail |
---|
public Schema(java.lang.String name)
name
- the name of the SchemaMethod Detail |
---|
public java.lang.String getName()
public Model getModel()
public void setModel(Model model)
model
- the Modelpublic Table add(Table tbl)
tbl
- the Table to add
Table
public Table get(int index)
index
- the index
public Table get(java.lang.String name)
name
- the name of the Table to get
public boolean contains(java.lang.String name)
name
- the name of the Table to get
public boolean contains(Table tbl)
tbl
- the Table
public java.util.Iterator<Table> iterator()
iterator
in interface java.lang.Iterable<Table>
public boolean isEmpty()
public int size()
public java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- the comment
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |