1 23 24 30 31 package com.sun.jdo.spi.persistence.support.sqlstore.model; 32 33 import org.netbeans.modules.dbschema.ColumnElement; 34 import java.util.ArrayList ; 35 36 40 public class KeyDesc { 41 42 43 private ArrayList fields; 44 45 46 private ArrayList columns; 47 48 49 void addColumns(ArrayList columns) { 50 this.columns = columns; 51 } 52 53 56 void addField(FieldDesc f) { 57 if (fields == null) 58 fields = new ArrayList (); 59 60 fields.add(f); 61 } 62 63 66 void addColumn(ColumnElement c) { 67 if (columns == null) 68 columns = new ArrayList (); 69 70 columns.add(c); 71 } 72 73 76 public ArrayList getColumns() { 77 return columns; 78 } 79 80 83 public ArrayList getFields() { 84 return fields; 85 } 86 } 87 88 89 90 91 | Popular Tags |