Package net.ontopia.persistence.rdbms
Class Table
java.lang.Object
net.ontopia.persistence.rdbms.Table
INTERNAL: Represents the definition of a relational database table.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidINTERNAL: Adds the column to the table definition.voidINTERNAL: Adds the index to the table definition.voidaddProperty(String property, String value) INTERNAL: Adds table property.getColumnByName(String name) INTERNAL: Gets a column by name.INTERNAL: Gets all the columns in the table.INTERNAL: Gets all the indexes in the table.getName()INTERNAL: Gets the name of the table.String[]INTERNAL: Gets the primary key columns.INTERNAL: Gets the table properties.getProperty(String property) INTERNAL: Gets the property valueINTERNAL: Gets the short name of the table.voidremoveColumn(Column column) INTERNAL: Removes the column from the table definition.voidremoveIndex(Index index) INTERNAL: Removes the index from the table definition.voidremoveProperty(String property, String value) INTERNAL: Removes table property.voidINTERNAL: Sets the name of the table.voidsetPrimaryKeys(String[] pkeys) INTERNAL: Sets the primary key columns.voidsetShortName(String shortname) INTERNAL: Sets the short name of the table.
-
Field Details
-
name
-
shortname
-
colsmap
-
columns
-
idxsmap
-
indexes
-
pkeys
-
properties
-
-
Constructor Details
-
Table
public Table()
-
-
Method Details
-
getName
INTERNAL: Gets the name of the table. -
setName
INTERNAL: Sets the name of the table. -
getShortName
INTERNAL: Gets the short name of the table. -
setShortName
INTERNAL: Sets the short name of the table. -
getProperties
INTERNAL: Gets the table properties. -
getProperty
INTERNAL: Gets the property value -
addProperty
INTERNAL: Adds table property. -
removeProperty
INTERNAL: Removes table property. -
getColumnByName
INTERNAL: Gets a column by name. -
getColumns
INTERNAL: Gets all the columns in the table. -
addColumn
INTERNAL: Adds the column to the table definition. -
removeColumn
INTERNAL: Removes the column from the table definition. -
getIndexes
INTERNAL: Gets all the indexes in the table. -
addIndex
INTERNAL: Adds the index to the table definition. -
removeIndex
INTERNAL: Removes the index from the table definition. -
getPrimaryKeys
INTERNAL: Gets the primary key columns. -
setPrimaryKeys
INTERNAL: Sets the primary key columns.
-