Class PrimaryKeyInfo
- java.lang.Object
-
- org.castor.cpa.persistence.sql.engine.info.PrimaryKeyInfo
-
public final class PrimaryKeyInfo extends java.lang.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
Constructors Modifier Constructor Description protected
PrimaryKeyInfo(TableInfo table)
Construct primary key info for given table.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addColumn(ColumnInfo column)
Add column to list of primary key columns.java.util.List<ColumnInfo>
getColumns()
Get list of primary key columns.TableInfo
getTable()
Get table the primary key belongs to.
-
-
-
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 java.util.List<ColumnInfo> getColumns()
Get list of primary key columns.- Returns:
- List of primary key columns.
-
-