Class TableInfo
java.lang.Object
org.castor.cpa.persistence.sql.engine.info.TableInfo
Class representing given table classes as Tables.
- Version:
- $Revision: 8469 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Dennis Butterstein, Ralf Joachim
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addColumn
(ColumnInfo column) Method to add a single column to the columns list.protected void
addExtendingTable
(TableInfo table) protected void
addForeignKey
(TableLink foreignKey) Method returning columns currently set.Method returning extendedTable currently set.Method returning list of tables extending this one.Method returning list of foreign keys.Get primary key of the table.Method returning name of this table.Method returning list of all columns belonging to this table.protected void
setExtendedTable
(TableInfo table) Method appending values from passed identity to corresponding columns.Method appending values from passed identity to corresponding columns.
-
Constructor Details
-
TableInfo
Constructor taking tableName in order to construct Table that holds his name only.- Parameters:
tableName
- Name of the table to be constructed.
-
-
Method Details
-
setExtendedTable
-
addExtendingTable
-
addColumn
Method to add a single column to the columns list.- Parameters:
column
- Column to be added.
-
addForeignKey
-
iterateAll
Method returning list of all columns belonging to this table.- Returns:
- List of collected columns.
-
getTableName
Method returning name of this table.- Returns:
- Name of the table currently set.
-
getExtendedTable
Method returning extendedTable currently set.- Returns:
- ExtendedTable currently set.
-
getExtendingTables
Method returning list of tables extending this one.- Returns:
- List of extending tables.
-
getColumns
Method returning columns currently set.- Returns:
- List of columns currently set.
-
getPrimaryKey
Get primary key of the table.- Returns:
- Primary key of the table.
-
getForeignKeys
Method returning list of foreign keys.- Returns:
- List of foreign keys.
-
toSQL
Method appending values from passed identity to corresponding columns.- Parameters:
input
- Identity containing values to be assigned to corresponding columns.- Returns:
- ArrayList containing all columns with their corresponding values.
-
toSQL
Method appending values from passed identity to corresponding columns.- Parameters:
input
- Identity containing values to be assigned to corresponding columns.- Returns:
- ArrayList containing all columns with their corresponding values.
-