KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > dbforms > config > ForeignKey


1 /*
2  * $Header: /cvsroot/jdbforms/dbforms/src/org/dbforms/config/ForeignKey.java,v 1.5 2004/08/18 12:25:55 hkollmann Exp $
3  * $Revision: 1.5 $
4  * $Date: 2004/08/18 12:25:55 $
5  *
6  * DbForms - a Rapid Application Development Framework
7  * Copyright (C) 2001 Joachim Peer <joepeer@excite.com>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22  */

23
24 package org.dbforms.config;
25
26
27 /**
28  * DOCUMENT ME!
29  *
30  * @author $author$
31  * @version $Revision: 1.5 $
32  */

33 public class ForeignKey {
34    /** Holds value of property displayType */
35    private String JavaDoc displayType;
36
37    /** Holds value of property foreignTable. */
38    private String JavaDoc foreignTable;
39
40    /** Holds value of property format. */
41    private String JavaDoc format;
42
43    /** Holds value of property name. */
44    private String JavaDoc name;
45
46    /** Holds value of property visibleFields. */
47    private String JavaDoc visibleFields;
48
49    /** Holds value of property referencesVector. */
50    private java.util.Vector JavaDoc referencesVector;
51
52    /** Holds value of property id. */
53    private int id;
54
55    /**
56     * Creates a new instance of ForeignKeyInfo
57     */

58    public ForeignKey() {
59       referencesVector = new java.util.Vector JavaDoc();
60    }
61
62    /**
63     * Setter for property displayType.
64     *
65     * @param displayType New value of property displayType.
66     */

67    public void setDisplayType(String JavaDoc displayType) {
68       this.displayType = displayType;
69    }
70
71
72    /**
73     * Getter for property displayType.
74     *
75     * @return Value of property displayTYpe.
76     */

77    public String JavaDoc getDisplayType() {
78       return this.displayType;
79    }
80
81
82    /**
83     * Setter for property foreignTable.
84     *
85     * @param foreignTable New value of property foreignTable.
86     */

87    public void setForeignTable(String JavaDoc foreignTable) {
88       this.foreignTable = foreignTable;
89    }
90
91
92    /**
93     * Getter for property foreignTable.
94     *
95     * @return Value of property foreignTable.
96     */

97    public String JavaDoc getForeignTable() {
98       return this.foreignTable;
99    }
100
101
102    /**
103     * Setter for property format.
104     *
105     * @param format New value of property format.
106     */

107    public void setFormat(String JavaDoc format) {
108       this.format = format;
109    }
110
111
112    /**
113     * Getter for property format.
114     *
115     * @return Value of property format.
116     */

117    public String JavaDoc getFormat() {
118       return this.format;
119    }
120
121
122    /**
123     * Setter for property id.
124     *
125     * @param id New value of property id.
126     */

127    public void setId(int id) {
128       this.id = id;
129    }
130
131
132    /**
133     * Getter for property id.
134     *
135     * @return Value of property id.
136     */

137    public int getId() {
138       return this.id;
139    }
140
141
142    /**
143     * Setter for property name.
144     *
145     * @param name New value of property name.
146     */

147    public void setName(String JavaDoc name) {
148       this.name = name;
149    }
150
151
152    /**
153     * Getter for property name.
154     *
155     * @return Value of property name.
156     */

157    public String JavaDoc getName() {
158       return this.name;
159    }
160
161
162    /**
163     * Getter for property referencesVector.
164     *
165     * @return Value of property referencesVector.
166     */

167    public java.util.Vector JavaDoc getReferencesVector() {
168       return this.referencesVector;
169    }
170
171
172    /**
173     * Setter for property visibleFields.
174     *
175     * @param visibleFields New value of property visibleFields.
176     */

177    public void setVisibleFields(String JavaDoc visibleFields) {
178       this.visibleFields = visibleFields;
179    }
180
181
182    /**
183     * Getter for property visibleFields.
184     *
185     * @return Value of property visibleFields.
186     */

187    public String JavaDoc getVisibleFields() {
188       return this.visibleFields;
189    }
190
191
192    /**
193     * DOCUMENT ME!
194     *
195     * @param ref DOCUMENT ME!
196     */

197    public void addReference(Reference ref) {
198       referencesVector.add(ref);
199    }
200 }
201
Popular Tags