1 package org.apache.ojb.broker.metadata.torque; 2 3 17 18 import org.apache.ojb.broker.metadata.FieldDescriptor; 19 20 import java.util.TreeMap ; 21 import java.util.Vector ; 22 23 public class TableDescriptor { 24 25 private TreeMap columnsMap = new TreeMap (); 26 private Vector columns = new Vector (); 27 private Vector indices = new Vector (); 28 private Vector references = new Vector (); 29 private String name; 30 31 public String getName() { 32 return this.name; 33 } 34 35 public void setName(String name) { 36 this.name = name; 37 } 38 39 public Vector getColumns() { 40 return this.columns; 41 } 42 43 public void addColumn(FieldDescriptor column) { 44 if (!this.columnsMap.containsKey(column.getColumnName())) { 45 this.columnsMap.put(column.getColumnName(), column); 46 this.columns.add(column); 47 } 48 } 49 50 public Vector getIndices() { 51 return this.indices; 52 } 53 54 public void setIndices(Vector indices) { 55 this.indices = indices; 56 } 57 58 public Vector getReferences() { 59 return this.references; 60 } 61 62 public void setReferences(Vector references) { 63 this.references = references; 64 } 65 66 } 67 | Popular Tags |