net.sf.dewdrop.sqlml
Class Table
java.lang.Object
net.sf.dewdrop.sqlml.SqlmlComponent
net.sf.dewdrop.sqlml.SchemaComponent
net.sf.dewdrop.sqlml.Table
- public class Table
- extends SchemaComponent
- Author:
- Les Hazlewood
Constructor Summary |
Table()
|
Methods inherited from class net.sf.dewdrop.sqlml.SqlmlComponent |
getIndentLevel, i18n, i18n, i18n, setIndentLevel, toSql, toSql, toSql, toString, writeSql, writeSql, writeSql |
global
protected boolean global
cached
protected boolean cached
temporary
protected boolean temporary
primaryKey
protected PrimaryKey primaryKey
columns
protected List columns
repeatableTableConstraints
protected List repeatableTableConstraints
natives
protected List natives
Table
public Table()
isGlobal
public boolean isGlobal()
setGlobal
public void setGlobal(boolean global)
isCached
public boolean isCached()
setCached
public void setCached(boolean cached)
isTemporary
public boolean isTemporary()
setTemporary
public void setTemporary(boolean temporary)
getPrimaryKey
public PrimaryKey getPrimaryKey()
setPrimaryKey
public void setPrimaryKey(PrimaryKey primaryKey)
getColumns
public List getColumns()
addColumn
public void addColumn(Column column)
removeColumn
public boolean removeColumn(String name)
getRepeatableTableConstraints
public List getRepeatableTableConstraints()
addRepeatableTableConstraint
public void addRepeatableTableConstraint(Constraint c)
getNatives
public List getNatives()
addNative
public void addNative(Native aNative)
getColumn
public Column getColumn(String columnName)
- Returns the table with a name of
columnName
. This method first checks the
sysName
attribute, and if it does not match, then the name
attribute is checked. This method returns null if no column with either a
sysName
or name
matches columnName
attributes.
- Parameters:
columnName
- name to check against
- Returns:
- the column with sysName or name of 'columnName', or null if no column with such a
name exists in the table.
containsColumn
public boolean containsColumn(String columnName)
equals
public boolean equals(Object o)
- Overrides:
equals
in class SchemaComponent
onWriteSql
public void onWriteSql(Writer out,
Configuration cfg)
- Specified by:
onWriteSql
in class SqlmlComponent
- See Also:
SqlmlComponent.writeSql(java.io.Writer)