1 /*
2 * This class was automatically generated with
3 * <a href="http://castor.exolab.org">Castor 0.9.4</a>, using an
4 * XML Schema.
5 * $Id$
6 */
7
8 package org.enableit.db.beans;
9
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
13
14 import java.io.IOException;
15 import java.io.Reader;
16 import java.io.Serializable;
17 import java.io.Writer;
18 import org.exolab.castor.xml.*;
19 import org.exolab.castor.xml.MarshalException;
20 import org.exolab.castor.xml.ValidationException;
21 import org.xml.sax.ContentHandler;
22
23 /***
24 *
25 *
26 * @version $Revision$ $Date$
27 **/
28 public class ForeignKey implements java.io.Serializable {
29
30
31 //--------------------------/
32 //- Class/Member Variables -/
33 //--------------------------/
34
35 private java.lang.String _fkTableName;
36
37 private DataColumn _dataColumn;
38
39 private DisplayColumn _displayColumn;
40
41
42 //----------------/
43 //- Constructors -/
44 //----------------/
45
46 public ForeignKey() {
47 super();
48 } //-- org.enableit.db.beans.ForeignKey()
49
50
51 //-----------/
52 //- Methods -/
53 //-----------/
54
55 /***
56 * Returns the value of field 'dataColumn'.
57 *
58 * @return the value of field 'dataColumn'.
59 **/
60 public DataColumn getDataColumn()
61 {
62 return this._dataColumn;
63 } //-- DataColumn getDataColumn()
64
65 /***
66 * Returns the value of field 'displayColumn'.
67 *
68 * @return the value of field 'displayColumn'.
69 **/
70 public DisplayColumn getDisplayColumn()
71 {
72 return this._displayColumn;
73 } //-- DisplayColumn getDisplayColumn()
74
75 /***
76 * Returns the value of field 'fkTableName'.
77 *
78 * @return the value of field 'fkTableName'.
79 **/
80 public java.lang.String getFkTableName()
81 {
82 return this._fkTableName;
83 } //-- java.lang.String getFkTableName()
84
85 /***
86 **/
87 public boolean isValid()
88 {
89 try {
90 validate();
91 }
92 catch (org.exolab.castor.xml.ValidationException vex) {
93 return false;
94 }
95 return true;
96 } //-- boolean isValid()
97
98 /***
99 *
100 *
101 * @param out
102 **/
103 public void marshal(java.io.Writer out)
104 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
105 {
106
107 Marshaller.marshal(this, out);
108 } //-- void marshal(java.io.Writer)
109
110 /***
111 *
112 *
113 * @param handler
114 **/
115 public void marshal(org.xml.sax.ContentHandler handler)
116 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
117 {
118
119 Marshaller.marshal(this, handler);
120 } //-- void marshal(org.xml.sax.ContentHandler)
121
122 /***
123 * Sets the value of field 'dataColumn'.
124 *
125 * @param dataColumn the value of field 'dataColumn'.
126 **/
127 public void setDataColumn(DataColumn dataColumn)
128 {
129 this._dataColumn = dataColumn;
130 } //-- void setDataColumn(DataColumn)
131
132 /***
133 * Sets the value of field 'displayColumn'.
134 *
135 * @param displayColumn the value of field 'displayColumn'.
136 **/
137 public void setDisplayColumn(DisplayColumn displayColumn)
138 {
139 this._displayColumn = displayColumn;
140 } //-- void setDisplayColumn(DisplayColumn)
141
142 /***
143 * Sets the value of field 'fkTableName'.
144 *
145 * @param fkTableName the value of field 'fkTableName'.
146 **/
147 public void setFkTableName(java.lang.String fkTableName)
148 {
149 this._fkTableName = fkTableName;
150 } //-- void setFkTableName(java.lang.String)
151
152 /***
153 *
154 *
155 * @param reader
156 **/
157 public static org.enableit.db.beans.ForeignKey unmarshal(java.io.Reader reader)
158 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
159 {
160 return (org.enableit.db.beans.ForeignKey) Unmarshaller.unmarshal(org.enableit.db.beans.ForeignKey.class, reader);
161 } //-- org.enableit.db.beans.ForeignKey unmarshal(java.io.Reader)
162
163 /***
164 **/
165 public void validate()
166 throws org.exolab.castor.xml.ValidationException
167 {
168 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
169 validator.validate(this);
170 } //-- void validate()
171
172 }
This page was automatically generated by Maven