| java.lang.Object org.openharmonise.commons.dsi.ddl.TableDefinition
TableDefinition | public class TableDefinition (Code) | | A definition of the a database table.
author: Michael Bell version: $Revision: 1.1 $ |
Method Summary | |
public void | addColumn(ColumnDefinition coldef) Adds a column definition to this table. | public void | addColumn(String sColName, int nDataType) Adds a column definition to this table. | public void | addColumn(String sColName, int nDataType, boolean bAllowNull) Adds a column definition to this table. | public void | addColumn(String sColName, boolean bIsPrimaryKey, int nDataType) Adds a column definition to this table. | public void | addColumn(String sColName, int nDataType, Object defaultVal) Adds a column definition to this table. | public void | addColumn(String sColName, boolean bIsPrimaryKey, int nDataType, Object defaultVal) Adds a column definition to this table. | public String | getName() Returns the table name. | public Iterator | iterator() Returns an iterator which will iterate through the ColumnDefinition s
of this table. |
TableDefinition | public TableDefinition(String sName)(Code) | | Creates a table definition.
Parameters: sName - the name of the table |
addColumn | public void addColumn(ColumnDefinition coldef)(Code) | | Adds a column definition to this table.
Parameters: coldef - a column definition to add |
addColumn | public void addColumn(String sColName, int nDataType)(Code) | | Adds a column definition to this table.
Parameters: sColName - the column name Parameters: nDataType - the data type |
addColumn | public void addColumn(String sColName, int nDataType, boolean bAllowNull)(Code) | | Adds a column definition to this table.
Parameters: sColName - the column name Parameters: nDataType - the data type Parameters: bAllowNull - true if the column can be NULL |
addColumn | public void addColumn(String sColName, boolean bIsPrimaryKey, int nDataType)(Code) | | Adds a column definition to this table.
Parameters: sColName - the column name Parameters: bIsPrimaryKey - true if the column is a primary key Parameters: nDataType - the data type |
addColumn | public void addColumn(String sColName, int nDataType, Object defaultVal)(Code) | | Adds a column definition to this table.
Parameters: sColName - the column name Parameters: nDataType - the data type Parameters: defaultVal - the default value |
addColumn | public void addColumn(String sColName, boolean bIsPrimaryKey, int nDataType, Object defaultVal)(Code) | | Adds a column definition to this table.
Parameters: sColName - the column name Parameters: bIsPrimaryKey - true if the column is a primary key Parameters: nDataType - the data type Parameters: defaultVal - the default value |
getName | public String getName()(Code) | | Returns the table name.
the table name |
iterator | public Iterator iterator()(Code) | | Returns an iterator which will iterate through the ColumnDefinition s
of this table.
an iterator which will iterate through the ColumnDefinition sof this table |
|
|