KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * $Header: /cvsroot/jdbforms/dbforms/src/org/dbforms/config/Reference.java,v 1.4 2004/08/18 12:25:56 hkollmann Exp $
3  * $Revision: 1.4 $
4  * $Date: 2004/08/18 12:25:56 $
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.4 $
32  */

33 public class Reference {
34    /** Holds value of property foreign. */
35    private String JavaDoc foreign;
36
37    /** Holds value of property local. */
38    private String JavaDoc local;
39
40    /**
41     * Creates a new instance of ReferenceColumnPair
42     */

43    public Reference() {
44    }
45
46
47    /**
48     * Creates a new Reference object.
49     *
50     * @param local DOCUMENT ME!
51     * @param foreign DOCUMENT ME!
52     */

53    public Reference(String JavaDoc local,
54                     String JavaDoc foreign) {
55       this.local = local;
56       this.foreign = foreign;
57    }
58
59    /**
60     * Setter for property foreign.
61     *
62     * @param foreign New value of property foreign.
63     */

64    public void setForeign(String JavaDoc foreign) {
65       this.foreign = foreign;
66    }
67
68
69    /**
70     * Getter for property foreign.
71     *
72     * @return Value of property foreign.
73     */

74    public String JavaDoc getForeign() {
75       return this.foreign;
76    }
77
78
79    /**
80     * Setter for property local.
81     *
82     * @param local New value of property local.
83     */

84    public void setLocal(String JavaDoc local) {
85       this.local = local;
86    }
87
88
89    /**
90     * Getter for property local.
91     *
92     * @return Value of property local.
93     */

94    public String JavaDoc getLocal() {
95       return this.local;
96    }
97 }
98
Popular Tags