| java.lang.Object xdoclet.modules.ojb.model.DefBase xdoclet.modules.ojb.model.TableDef
Constructor Summary | |
public | TableDef(String name) Creates a new table definition object. |
TableDef | public TableDef(String name)(Code) | | Creates a new table definition object.
Parameters: name - The table name |
addColumn | public void addColumn(ColumnDef columnDef)(Code) | | Adds a column to this table definition.
Parameters: columnDef - The new column |
addForeignkey | public void addForeignkey(String relationName, String remoteTable, List localColumns, List remoteColumns)(Code) | | Adds a foreignkey to this table.
Parameters: relationName - The name of the relation represented by the foreignkey Parameters: remoteTable - The referenced table Parameters: localColumns - The local columns Parameters: remoteColumns - The remote columns |
addIndex | public void addIndex(IndexDef indexDef)(Code) | | Adds an index to this table.
Parameters: The - index def |
getColumn | public ColumnDef getColumn(String name)(Code) | | Returns the column with the given name.
Parameters: name - The name of the desired column The column or null if there is no column with that name |
getColumns | public Iterator getColumns()(Code) | | Returns an iterator of all columns of this table.
The iterator |
getForeignkey | public ForeignkeyDef getForeignkey(String name, String tableName)(Code) | | Returns the foreignkey to the specified table.
Parameters: name - The name of the foreignkey Parameters: tableName - The name of the referenced table The foreignkey def or null if it does not exist |
getForeignkeys | public Iterator getForeignkeys()(Code) | | Returns an iterator of all foreignkeys of this table.
The foreignkeys |
getIndex | public IndexDef getIndex(String name)(Code) | | Returns the index of the given name.
Parameters: name - The name of the index (null or empty string for the default index) The index def or null if it does not exist |
getIndices | public Iterator getIndices()(Code) | | Returns an iterator of all indices of this table.
The indices |
hasForeignkey | public boolean hasForeignkey(String name)(Code) | | Determines whether this table has a foreignkey of the given name.
Parameters: name - The name of the foreignkey true if there is a foreignkey of that name |
|
|