public final class TableInfo
extends java.lang.Object
Modifier | Constructor | Description |
---|---|---|
protected |
TableInfo(java.lang.String tableName) |
Constructor taking tableName in order to construct Table that holds his name only.
|
Modifier and Type | Method | Description |
---|---|---|
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(java.lang.Object[] input) |
Method appending values from passed identity to corresponding columns.
|
java.util.List<ColumnValue> |
toSQL(Identity input) |
Method appending values from passed identity to corresponding columns.
|
protected TableInfo(java.lang.String tableName)
tableName
- Name of the table to be constructed.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.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com