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

java.lang.Object
  extended by org.castor.cpa.persistence.sql.engine.info.PrimaryKeyInfo

public final class PrimaryKeyInfo
extends Object

Class representing primary key of a table.

Version:
$Revision: 8469 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
Author:
Dennis Butterstein, Ralf Joachim

Constructor Summary
protected PrimaryKeyInfo(TableInfo table)
          Construct primary key info for given table.
 
Method Summary
protected  void addColumn(ColumnInfo column)
          Add column to list of primary key columns.
 List<ColumnInfo> getColumns()
          Get list of primary key columns.
 TableInfo getTable()
          Get table the primary key belongs to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimaryKeyInfo

protected PrimaryKeyInfo(TableInfo table)
Construct primary key info for given table.

Parameters:
table - Table the primary key belongs to.
Method Detail

addColumn

protected void addColumn(ColumnInfo column)
Add column to list of primary key columns.

Parameters:
column - Column that belongs to primary key.

getTable

public TableInfo getTable()
Get table the primary key belongs to.

Returns:
Table the primary key belongs to.

getColumns

public List<ColumnInfo> getColumns()
Get list of primary key columns.

Returns:
List of primary key columns.


Copyright © 2011. All Rights Reserved.