net.ontopia.persistence.rdbms
Class Table

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

public class Table
extends java.lang.Object

INTERNAL: Represents the definition of a relational database table.


Field Summary
protected  java.util.Map colsmap
           
protected  java.util.List columns
           
protected  java.util.Map idxsmap
           
protected  java.util.List indexes
           
protected  java.lang.String name
           
protected  java.lang.String[] pkeys
           
protected  java.util.Map properties
           
protected  java.lang.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(java.lang.String property, java.lang.String value)
          INTERNAL: Adds table property.
 Column getColumnByName(java.lang.String name)
          INTERNAL: Gets a column by name.
 java.util.List getColumns()
          INTERNAL: Gets all the columns in the table.
 java.util.List getIndexes()
          INTERNAL: Gets all the indexes in the table.
 java.lang.String getName()
          INTERNAL: Gets the name of the table.
 java.lang.String[] getPrimaryKeys()
          INTERNAL: Gets the primary key columns.
 java.util.Collection getProperties()
          INTERNAL: Gets the table properties.
 java.lang.String getProperty(java.lang.String property)
          INTERNAL: Gets the property value
 java.lang.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(java.lang.String property, java.lang.String value)
          INTERNAL: Removes table property.
 void setName(java.lang.String name)
          INTERNAL: Sets the name of the table.
 void setPrimaryKeys(java.lang.String[] pkeys)
          INTERNAL: Sets the primary key columns.
 void setShortName(java.lang.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 java.lang.String name

shortname

protected java.lang.String shortname

colsmap

protected java.util.Map colsmap

columns

protected java.util.List columns

idxsmap

protected java.util.Map idxsmap

indexes

protected java.util.List indexes

pkeys

protected java.lang.String[] pkeys

properties

protected java.util.Map properties
Constructor Detail

Table

public Table()
Method Detail

getName

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


setName

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


getShortName

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


setShortName

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


getProperties

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


getProperty

public java.lang.String getProperty(java.lang.String property)
INTERNAL: Gets the property value


addProperty

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


removeProperty

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


getColumnByName

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


getColumns

public java.util.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 java.util.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 java.lang.String[] getPrimaryKeys()
INTERNAL: Gets the primary key columns.


setPrimaryKeys

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



Copyright © 2000-2012 Ontopia.