View Javadoc

1   /*
2    * Copyright (c) 2004 International Decision Systems, Inc.  All Rights Reserved.
3    *
4    * By using this Software, You acknowledge that the Software is a valuable asset
5    * and trade secret of either International Decision Systems, Inc. ("IDSI") or a
6    * third party supplier of IDSI and constitutes confidential and proprietary
7    * information.
8    *
9    * NEITHER IDSI NOR ANY AGENT OR PERSON ACTING FOR OR WITH IDSI HAS MADE OR DOES
10   * MAKE ANY STATEMENTS, AFFIRMATIONS, REPRESENTATIONS OR WARRANTIES WHATSOEVER
11   * TO YOU, WHETHER EXPRESS OR IMPLIED, AS TO THE SOFTWARE, THE QUALITY OR
12   * CONDITION OF THE SOFTWARE, OR THE OPERATING CHARACTERISTICS OR RELIABILITY OF
13   * THE SOFTWARE, OR ITS SUITABILITY FOR ANY GENERAL OR PARTICULAR PURPOSE, OR AS
14   * TO ANY OTHER MATTER WHATSOEVER; ANY AND ALL OTHER WARRANTIES INCLUDING
15   * WITHOUT LIMITATION ANY WARRANTIES IMPLIED BY LAW, SUCH AS THE IMPLIED
16   * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND TITLE,
17   * USE AND NON-INFRINGEMENT; ARE HEREBY EXPRESSLY DISCLAIMED AND EXCLUDED.
18  */
19  package net.sourceforge.addam.ddlgen.generic;
20  
21  import java.util.ArrayList;
22  import java.util.List;
23  
24  /**
25   * User: mkrishna
26   * Date: Nov 16, 2004
27   */
28  public class TablePrimaryKey extends Object {
29      private String firstColumnName;
30      private String primaryKeyName;
31      private List columns = new ArrayList();
32  
33      public TablePrimaryKey(String primaryKeyName, String columnName) {
34          this.primaryKeyName = primaryKeyName;
35          this.firstColumnName = columnName;
36      }
37  
38      public String getFirstColumnName() {
39          return firstColumnName;
40      }
41  
42      public String getPrimaryKeyName() {
43          return primaryKeyName;
44      }
45  
46      public void addColumn(String column) {
47          columns.add(column);
48      }
49  
50      public List getColumns() {
51          return columns;
52      }
53  }