Models a table.
addAll
public void addAll(List columns)
addColumn
public void addColumn(Column column)
addForeignKey
public void addForeignKey(ForeignKey foreignKey)
addIndex
public void addIndex(Index index)
addUnique
public void addUnique(Unique index)
Add a unique index to this table
findColumn
public Column findColumn(String name)
Finds the table with the specified name, using case insensitive matching.
Note that this method is not called getColumn(String) to avoid introspection
problems.
findIndex
public Index findIndex(String name)
Finds the index with the specified name, using case insensitive matching.
Note that this method is not called getIndex(String) to avoid introspection
problems.
getAutoIncrementColumn
public Column getAutoIncrementColumn()
- the auto increment column, if there is one, otherwise null is returned
getCatalog
public String getCatalog()
getColumn
public Column getColumn(int index)
getColumns
public List getColumns()
getForeignKey
public ForeignKey getForeignKey(int index)
getForeignKeys
public List getForeignKeys()
getIndex
public Index getIndex(int index)
getIndexes
public List getIndexes()
getName
public String getName()
getPrimaryKeyColumns
public List getPrimaryKeyColumns()
- a List of primary key columns or an empty list if there are no
primary key columns for this Table
getRemarks
public String getRemarks()
getSchema
public String getSchema()
getType
public String getType()
hasPrimaryKey
public boolean hasPrimaryKey()
- true if there is at least one primary key column
on this table
setCatalog
public void setCatalog(String catalog)
setName
public void setName(String name)
setRemarks
public void setRemarks(String remarks)
setSchema
public void setSchema(String schema)
setType
public void setType(String type)