Class PrimaryKeyInfo
java.lang.Object
org.castor.cpa.persistence.sql.engine.info.PrimaryKeyInfo
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
ConstructorsModifierConstructorDescriptionprotected
PrimaryKeyInfo
(TableInfo table) Construct primary key info for given table. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addColumn
(ColumnInfo column) Add column to list of primary key columns.Get list of primary key columns.getTable()
Get table the primary key belongs to.
-
Constructor Details
-
PrimaryKeyInfo
Construct primary key info for given table.- Parameters:
table
- Table the primary key belongs to.
-
-
Method Details
-
addColumn
Add column to list of primary key columns.- Parameters:
column
- Column that belongs to primary key.
-
getTable
Get table the primary key belongs to.- Returns:
- Table the primary key belongs to.
-
getColumns
Get list of primary key columns.- Returns:
- List of primary key columns.
-