|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.persistence.rdbms.Table
public class Table
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 |
---|
protected java.lang.String name
protected java.lang.String shortname
protected java.util.Map colsmap
protected java.util.List columns
protected java.util.Map idxsmap
protected java.util.List indexes
protected java.lang.String[] pkeys
protected java.util.Map properties
Constructor Detail |
---|
public Table()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getShortName()
public void setShortName(java.lang.String shortname)
public java.util.Collection getProperties()
public java.lang.String getProperty(java.lang.String property)
public void addProperty(java.lang.String property, java.lang.String value)
public void removeProperty(java.lang.String property, java.lang.String value)
public Column getColumnByName(java.lang.String name)
public java.util.List getColumns()
public void addColumn(Column column)
public void removeColumn(Column column)
public java.util.List getIndexes()
public void addIndex(Index index)
public void removeIndex(Index index)
public java.lang.String[] getPrimaryKeys()
public void setPrimaryKeys(java.lang.String[] pkeys)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |