|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ontopia.persistence.rdbms.Table
public class Table
INTERNAL: Represents the definition of a relational database table.
Field Summary | |
---|---|
protected Map |
colsmap
|
protected List |
columns
|
protected Map |
idxsmap
|
protected List |
indexes
|
protected String |
name
|
protected String[] |
pkeys
|
protected Map |
properties
|
protected String |
shortname
|
Constructor Summary | |
---|---|
Table()
|
Method Summary | |
---|---|
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 |
getColumns()
INTERNAL: Gets all the columns in the table. |
List |
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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String name
protected String shortname
protected Map colsmap
protected List columns
protected Map idxsmap
protected List indexes
protected String[] pkeys
protected Map properties
Constructor Detail |
---|
public Table()
Method Detail |
---|
public String getName()
public void setName(String name)
public String getShortName()
public void setShortName(String shortname)
public Collection getProperties()
public String getProperty(String property)
public void addProperty(String property, String value)
public void removeProperty(String property, String value)
public Column getColumnByName(String name)
public List getColumns()
public void addColumn(Column column)
public void removeColumn(Column column)
public List getIndexes()
public void addIndex(Index index)
public void removeIndex(Index index)
public String[] getPrimaryKeys()
public void setPrimaryKeys(String[] pkeys)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |