Class PrimaryKeyInfo

java.lang.Object
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 Details

    • PrimaryKeyInfo

      protected PrimaryKeyInfo(TableInfo table)
      Construct primary key info for given table.
      Parameters:
      table - Table the primary key belongs to.
  • Method Details

    • 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.