net.ontopia.persistence.rdbms
Class Table

java.lang.Object
  extended by net.ontopia.persistence.rdbms.Table

public class Table
extends Object

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

name

protected String name

shortname

protected String shortname

colsmap

protected Map colsmap

columns

protected List columns

idxsmap

protected Map idxsmap

indexes

protected List indexes

pkeys

protected String[] pkeys

properties

protected Map properties
Constructor Detail

Table

public Table()
Method Detail

getName

public String getName()
INTERNAL: Gets the name of the table.


setName

public void setName(String name)
INTERNAL: Sets the name of the table.


getShortName

public String getShortName()
INTERNAL: Gets the short name of the table.


setShortName

public void setShortName(String shortname)
INTERNAL: Sets the short name of the table.


getProperties

public Collection getProperties()
INTERNAL: Gets the table properties.


getProperty

public String getProperty(String property)
INTERNAL: Gets the property value


addProperty

public void addProperty(String property,
                        String value)
INTERNAL: Adds table property.


removeProperty

public void removeProperty(String property,
                           String value)
INTERNAL: Removes table property.


getColumnByName

public Column getColumnByName(String name)
INTERNAL: Gets a column by name.


getColumns

public List getColumns()
INTERNAL: Gets all the columns in the table.


addColumn

public void addColumn(Column column)
INTERNAL: Adds the column to the table definition.


removeColumn

public void removeColumn(Column column)
INTERNAL: Removes the column from the table definition.


getIndexes

public List getIndexes()
INTERNAL: Gets all the indexes in the table.


addIndex

public void addIndex(Index index)
INTERNAL: Adds the index to the table definition.


removeIndex

public void removeIndex(Index index)
INTERNAL: Removes the index from the table definition.


getPrimaryKeys

public String[] getPrimaryKeys()
INTERNAL: Gets the primary key columns.


setPrimaryKeys

public void setPrimaryKeys(String[] pkeys)
INTERNAL: Sets the primary key columns.



Copyright © 2000-2012 Ontopia.