public class Table extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,Column> |
colsmap |
protected List<Column> |
columns |
protected Map<String,Index> |
idxsmap |
protected List<Index> |
indexes |
protected String |
name |
protected String[] |
pkeys |
protected Map<String,String> |
properties |
protected String |
shortname |
Constructor and Description |
---|
Table() |
Modifier and Type | Method and Description |
---|---|
void |
addColumn(Column column)
INTERNAL: Adds the column to the table definition.
|
void |
addIndex(Index index)
INTERNAL: Adds the index to the table definition.
|
void |
addProperty(String property,
String value)
INTERNAL: Adds table property.
|
Column |
getColumnByName(String name)
INTERNAL: Gets a column by name.
|
List<Column> |
getColumns()
INTERNAL: Gets all the columns in the table.
|
List<Index> |
getIndexes()
INTERNAL: Gets all the indexes in the table.
|
String |
getName()
INTERNAL: Gets the name of the table.
|
String[] |
getPrimaryKeys()
INTERNAL: Gets the primary key columns.
|
Collection<String> |
getProperties()
INTERNAL: Gets the table properties.
|
String |
getProperty(String property)
INTERNAL: Gets the property value
|
String |
getShortName()
INTERNAL: Gets the short name of the table.
|
void |
removeColumn(Column column)
INTERNAL: Removes the column from the table definition.
|
void |
removeIndex(Index index)
INTERNAL: Removes the index from the table definition.
|
void |
removeProperty(String property,
String value)
INTERNAL: Removes table property.
|
void |
setName(String name)
INTERNAL: Sets the name of the table.
|
void |
setPrimaryKeys(String[] pkeys)
INTERNAL: Sets the primary key columns.
|
void |
setShortName(String shortname)
INTERNAL: Sets the short name of the table.
|
protected String name
protected String shortname
protected String[] pkeys
public String getName()
public void setName(String name)
public String getShortName()
public void setShortName(String shortname)
public Collection<String> getProperties()
public void removeProperty(String property, String value)
public void addColumn(Column column)
public void removeColumn(Column column)
public void addIndex(Index index)
public void removeIndex(Index index)
public String[] getPrimaryKeys()
public void setPrimaryKeys(String[] pkeys)