public final class TableInfo extends Object
Modifier | Constructor and Description |
---|---|
protected |
TableInfo(String tableName)
Constructor taking tableName in order to construct Table that holds his name only.
|
Modifier and Type | Method and 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) |
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.
|
protected TableInfo(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 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.Copyright © 2018. All rights reserved.