org.codehaus.modello.generator.database.model
public class Table extends Object
Version: $Id: Table.java 149 2004-09-29 17:32:16Z jvanzyl $
Constructor Summary | |
---|---|
Table() |
Method Summary | |
---|---|
void | addAll(List columns) |
void | addColumn(Column column) |
void | addForeignKey(ForeignKey foreignKey) |
void | addIndex(Index index) |
void | addUnique(Unique index)
Add a unique index to this table
|
Column | findColumn(String name)
Finds the table with the specified name, using case insensitive matching.
|
Index | findIndex(String name)
Finds the index with the specified name, using case insensitive matching.
|
Column | getAutoIncrementColumn() |
String | getCatalog() |
Column | getColumn(int index) |
List | getColumns() |
ForeignKey | getForeignKey(int index) |
List | getForeignKeys() |
Index | getIndex(int index) |
List | getIndexes() |
String | getName() |
List | getPrimaryKeyColumns() |
String | getRemarks() |
String | getSchema() |
String | getType() |
boolean | hasPrimaryKey() |
void | setCatalog(String catalog) |
void | setName(String name) |
void | setRemarks(String remarks) |
void | setSchema(String schema) |
void | setType(String type) |
Parameters: index The unique index
Returns: the auto increment column, if there is one, otherwise null is returned
Returns: a List of primary key columns or an empty list if there are no primary key columns for this Table
Returns: true if there is at least one primary key column on this table