getColumn(String columnName, boolean isCaseSensitive) Returns the DatabaseColumn object matching the given column
name or null if not found (the case can be enforced).
Warning! The underlying ArrayList is not synchronized.
Parameters: column - a DatabaseColumn value
addDependingTable
public synchronized void addDependingTable(String tableName)(Code)
Add a depending table to this table. A depending table is locked when the
current table is updated. A depending table is usually a table that has a
foreign key referencing the current table.
This method takes care of duplicates and a table name is only inserted
once.
Parameters: tableName - the depending table to add
Two DatabaseTable are considered equal if they have the same
name and the same columns.
Parameters: other - the object to compare with true if the tables are equal
equalsIgnoreType
public boolean equalsIgnoreType(Object other)(Code)
This function is the same as equals but ignores the column type.
Parameters: other - the object to compare with true if the table are equal ignoring the columnstype See Also:DatabaseTable.equals(Object)
Returns the DatabaseColumn object matching the given column
name or null if not found (the case is ignored).
Parameters: columnName - column name to look for a DatabaseColumn value or null
Returns the DatabaseColumn object matching the given column
name or null if not found (the case can be enforced).
Parameters: columnName - column name to look for Parameters: isCaseSensitive - true if name matching must be case sensitive a DatabaseColumn value or null
Merges this table with the given table. Both columns and depending tables
are merged.
All missing columns are added if no conflict is detected. An exception is
thrown if the given table columns conflicts with this one.
Parameters: table - the table to merge throws: SQLException - if the schemas conflict
Updates this table with the given table's columns. All missing columns are
added and if the given table columns conflicts with this one, the current
column definition is overriden with the provided one. Note that existing
locks (if any) are preserved.
Warning! Data structures of the given table are not cloned.
Parameters: table - the table to use to update the current one