Coverage Report - org.apache.ojb.broker.metadata.torque.TableDescriptor
 
Classes in this File Line Coverage Branch Coverage Complexity
TableDescriptor
N/A
N/A
1.125
 
 1  
 package org.apache.ojb.broker.metadata.torque;
 2  
 
 3  
 /* Copyright 2002-2005 The Apache Software Foundation
 4  
  *
 5  
  * Licensed under the Apache License, Version 2.0 (the "License");
 6  
  * you may not use this file except in compliance with the License.
 7  
  * You may obtain a copy of the License at
 8  
  *
 9  
  *     http://www.apache.org/licenses/LICENSE-2.0
 10  
  *
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  */
 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  
 }