org.castor.cpa.persistence.sql.engine.info
Class TableInfo

java.lang.Object
  extended by org.castor.cpa.persistence.sql.engine.info.TableInfo
Direct Known Subclasses:
EntityTableInfo, RelationTableInfo

public abstract class TableInfo
extends Object

Abstract base class representing given table.

Version:
$Revision: 8994 $ $Date: 2011-08-02 01:40:59 +0200 (Di, 02 Aug 2011) $
Author:
Dennis Butterstein, Ralf Joachim

Constructor Summary
protected TableInfo(String tableName)
          Constructor taking tableName in order to construct table that holds his name only.
 
Method Summary
 String getTableName()
          Method returning name of this table.
static List<ColumnValue> toSQL(List<ColumnInfo> columns, Identity identity)
          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

TableInfo

protected TableInfo(String tableName)
Constructor taking tableName in order to construct table that holds his name only.

Parameters:
tableName - Name of the table to be constructed.
Method Detail

getTableName

public final String getTableName()
Method returning name of this table.

Returns:
Name of the table currently set.

toSQL

public static final List<ColumnValue> toSQL(List<ColumnInfo> columns,
                                            Identity identity)
Method appending values from passed identity to corresponding columns.

Parameters:
columns - List of columns.
identity - Identity containing values to be assigned to corresponding columns.
Returns:
List containing all columns with their corresponding values.


Copyright © 2012. All Rights Reserved.