|
||||||||
| 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(java.lang.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)
|
java.util.List<ColumnInfo> |
getColumns()
Method returning columns currently set. |
TableInfo |
getExtendedTable()
Method returning extendedTable currently set. |
java.util.List<TableInfo> |
getExtendingTables()
Method returning list of tables extending this one. |
java.util.List<TableLink> |
getForeignKeys()
Method returning list of foreign keys. |
PrimaryKeyInfo |
getPrimaryKey()
Get primary key of the table. |
java.lang.String |
getTableName()
Method returning name of this table. |
java.util.List<ColumnInfo> |
iterateAll()
Method returning list of all columns belonging to this table. |
protected void |
setExtendedTable(TableInfo table)
|
java.util.List<ColumnValue> |
toSQL(Identity input)
Method appending values from passed identity to corresponding columns. |
java.util.List<ColumnValue> |
toSQL(java.lang.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(java.lang.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 java.util.List<ColumnInfo> iterateAll()
public java.lang.String getTableName()
public TableInfo getExtendedTable()
public java.util.List<TableInfo> getExtendingTables()
public java.util.List<ColumnInfo> getColumns()
public PrimaryKeyInfo getPrimaryKey()
public java.util.List<TableLink> getForeignKeys()
public java.util.List<ColumnValue> toSQL(Identity input)
input - Identity containing values to be assigned to corresponding columns.
public java.util.List<ColumnValue> toSQL(java.lang.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 | |||||||