1 //
2 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.5-b02-fcs
3 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4 // Any modifications to this file will be lost upon recompilation of the source schema.
5 // Generated on: 2007.08.06 at 08:17:38 PM MSD
6 //
7
8
9 package org.riverock.dbrevision.annotation.schema.db;
10
11 import java.util.ArrayList;
12 import java.util.List;
13 import javax.xml.bind.annotation.XmlAccessType;
14 import javax.xml.bind.annotation.XmlAccessorType;
15 import javax.xml.bind.annotation.XmlAttribute;
16 import javax.xml.bind.annotation.XmlElement;
17 import javax.xml.bind.annotation.XmlType;
18
19
20 /**
21 * <p>Java class for DbForeignKey complex type.
22 *
23 * <p>The following schema fragment specifies the expected content contained within this class.
24 *
25 * <pre>
26 * <complexType name="DbForeignKey">
27 * <complexContent>
28 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
29 * <sequence>
30 * <element name="Column" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbForeignKeyColumn" maxOccurs="unbounded"/>
31 * <element name="UpdateRule" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbKeyActionRule" minOccurs="0"/>
32 * <element name="DeleteRule" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbKeyActionRule" minOccurs="0"/>
33 * <element name="Deferrability" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbKeyActionRule" minOccurs="0"/>
34 * </sequence>
35 * <attribute name="fkName" type="{http://www.w3.org/2001/XMLSchema}string" />
36 * <attribute name="fkSchemaName" type="{http://www.w3.org/2001/XMLSchema}string" />
37 * <attribute name="fkTableName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
38 * <attribute name="pkName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
39 * <attribute name="pkSchemaName" type="{http://www.w3.org/2001/XMLSchema}string" />
40 * <attribute name="pkTableName" type="{http://www.w3.org/2001/XMLSchema}string" />
41 * </restriction>
42 * </complexContent>
43 * </complexType>
44 * </pre>
45 *
46 *
47 */
48 @XmlAccessorType(XmlAccessType.FIELD)
49 @XmlType(name = "DbForeignKey", propOrder = {
50 "columns",
51 "updateRule",
52 "deleteRule",
53 "deferrability"
54 })
55 public class DbForeignKey {
56
57 @XmlElement(name = "Column", required = true)
58 protected List<DbForeignKeyColumn> columns;
59 @XmlElement(name = "UpdateRule")
60 protected DbKeyActionRule updateRule;
61 @XmlElement(name = "DeleteRule")
62 protected DbKeyActionRule deleteRule;
63 @XmlElement(name = "Deferrability")
64 protected DbKeyActionRule deferrability;
65 @XmlAttribute
66 protected String fkName;
67 @XmlAttribute
68 protected String fkSchemaName;
69 @XmlAttribute(required = true)
70 protected String fkTableName;
71 @XmlAttribute(required = true)
72 protected String pkName;
73 @XmlAttribute
74 protected String pkSchemaName;
75 @XmlAttribute
76 protected String pkTableName;
77
78 /**
79 * Gets the value of the columns property.
80 *
81 * <p>
82 * This accessor method returns a reference to the live list,
83 * not a snapshot. Therefore any modification you make to the
84 * returned list will be present inside the JAXB object.
85 * This is why there is not a <CODE>set</CODE> method for the columns property.
86 *
87 * <p>
88 * For example, to add a new item, do as follows:
89 * <pre>
90 * getColumns().add(newItem);
91 * </pre>
92 *
93 *
94 * <p>
95 * Objects of the following type(s) are allowed in the list
96 * {@link DbForeignKeyColumn }
97 *
98 *
99 */
100 public List<DbForeignKeyColumn> getColumns() {
101 if (columns == null) {
102 columns = new ArrayList<DbForeignKeyColumn>();
103 }
104 return this.columns;
105 }
106
107 /**
108 * Gets the value of the updateRule property.
109 *
110 * @return
111 * possible object is
112 * {@link DbKeyActionRule }
113 *
114 */
115 public DbKeyActionRule getUpdateRule() {
116 return updateRule;
117 }
118
119 /**
120 * Sets the value of the updateRule property.
121 *
122 * @param value
123 * allowed object is
124 * {@link DbKeyActionRule }
125 *
126 */
127 public void setUpdateRule(DbKeyActionRule value) {
128 this.updateRule = value;
129 }
130
131 /**
132 * Gets the value of the deleteRule property.
133 *
134 * @return
135 * possible object is
136 * {@link DbKeyActionRule }
137 *
138 */
139 public DbKeyActionRule getDeleteRule() {
140 return deleteRule;
141 }
142
143 /**
144 * Sets the value of the deleteRule property.
145 *
146 * @param value
147 * allowed object is
148 * {@link DbKeyActionRule }
149 *
150 */
151 public void setDeleteRule(DbKeyActionRule value) {
152 this.deleteRule = value;
153 }
154
155 /**
156 * Gets the value of the deferrability property.
157 *
158 * @return
159 * possible object is
160 * {@link DbKeyActionRule }
161 *
162 */
163 public DbKeyActionRule getDeferrability() {
164 return deferrability;
165 }
166
167 /**
168 * Sets the value of the deferrability property.
169 *
170 * @param value
171 * allowed object is
172 * {@link DbKeyActionRule }
173 *
174 */
175 public void setDeferrability(DbKeyActionRule value) {
176 this.deferrability = value;
177 }
178
179 /**
180 * Gets the value of the fkName property.
181 *
182 * @return
183 * possible object is
184 * {@link String }
185 *
186 */
187 public String getFkName() {
188 return fkName;
189 }
190
191 /**
192 * Sets the value of the fkName property.
193 *
194 * @param value
195 * allowed object is
196 * {@link String }
197 *
198 */
199 public void setFkName(String value) {
200 this.fkName = value;
201 }
202
203 /**
204 * Gets the value of the fkSchemaName property.
205 *
206 * @return
207 * possible object is
208 * {@link String }
209 *
210 */
211 public String getFkSchemaName() {
212 return fkSchemaName;
213 }
214
215 /**
216 * Sets the value of the fkSchemaName property.
217 *
218 * @param value
219 * allowed object is
220 * {@link String }
221 *
222 */
223 public void setFkSchemaName(String value) {
224 this.fkSchemaName = value;
225 }
226
227 /**
228 * Gets the value of the fkTableName property.
229 *
230 * @return
231 * possible object is
232 * {@link String }
233 *
234 */
235 public String getFkTableName() {
236 return fkTableName;
237 }
238
239 /**
240 * Sets the value of the fkTableName property.
241 *
242 * @param value
243 * allowed object is
244 * {@link String }
245 *
246 */
247 public void setFkTableName(String value) {
248 this.fkTableName = value;
249 }
250
251 /**
252 * Gets the value of the pkName property.
253 *
254 * @return
255 * possible object is
256 * {@link String }
257 *
258 */
259 public String getPkName() {
260 return pkName;
261 }
262
263 /**
264 * Sets the value of the pkName property.
265 *
266 * @param value
267 * allowed object is
268 * {@link String }
269 *
270 */
271 public void setPkName(String value) {
272 this.pkName = value;
273 }
274
275 /**
276 * Gets the value of the pkSchemaName property.
277 *
278 * @return
279 * possible object is
280 * {@link String }
281 *
282 */
283 public String getPkSchemaName() {
284 return pkSchemaName;
285 }
286
287 /**
288 * Sets the value of the pkSchemaName property.
289 *
290 * @param value
291 * allowed object is
292 * {@link String }
293 *
294 */
295 public void setPkSchemaName(String value) {
296 this.pkSchemaName = value;
297 }
298
299 /**
300 * Gets the value of the pkTableName property.
301 *
302 * @return
303 * possible object is
304 * {@link String }
305 *
306 */
307 public String getPkTableName() {
308 return pkTableName;
309 }
310
311 /**
312 * Sets the value of the pkTableName property.
313 *
314 * @param value
315 * allowed object is
316 * {@link String }
317 *
318 */
319 public void setPkTableName(String value) {
320 this.pkTableName = value;
321 }
322
323 }