|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.cpa.persistence.sql.engine.info.TableInfo
public final class TableInfo
Class representing given table classes as Tables.
| Constructor Summary | |
|---|---|
protected |
TableInfo(String tableName)
Constructor taking tableName in order to construct Table that holds his name only. |
| Method Summary | |
|---|---|
protected void |
addColumn(ColumnInfo column)
Method to add a single column to the columns list. |
protected void |
addExtendingTable(TableInfo table)
|
protected void |
addForeignKey(TableLink foreignKey)
|
List<ColumnInfo> |
getColumns()
Method returning columns currently set. |
TableInfo |
getExtendedTable()
Method returning extendedTable currently set. |
List<TableInfo> |
getExtendingTables()
Method returning list of tables extending this one. |
List<TableLink> |
getForeignKeys()
Method returning list of foreign keys. |
PrimaryKeyInfo |
getPrimaryKey()
Get primary key of the table. |
String |
getTableName()
Method returning name of this table. |
List<ColumnInfo> |
iterateAll()
Method returning list of all columns belonging to this table. |
protected void |
setExtendedTable(TableInfo table)
|
List<ColumnValue> |
toSQL(Identity input)
Method appending values from passed identity to corresponding columns. |
List<ColumnValue> |
toSQL(Object[] input)
Method appending values from passed identity to corresponding columns. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected TableInfo(String tableName)
tableName - Name of the table to be constructed.| Method Detail |
|---|
protected void setExtendedTable(TableInfo table)
protected void addExtendingTable(TableInfo table)
protected void addColumn(ColumnInfo column)
column - Column to be added.protected void addForeignKey(TableLink foreignKey)
public List<ColumnInfo> iterateAll()
public String getTableName()
public TableInfo getExtendedTable()
public List<TableInfo> getExtendingTables()
public List<ColumnInfo> getColumns()
public PrimaryKeyInfo getPrimaryKey()
public List<TableLink> getForeignKeys()
public List<ColumnValue> toSQL(Identity input)
input - Identity containing values to be assigned to corresponding columns.
public List<ColumnValue> toSQL(Object[] input)
input - Identity containing values to be assigned to corresponding columns.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||