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.XmlElement;
16 import javax.xml.bind.annotation.XmlType;
17
18
19 /**
20 * <p>Java class for DbTable complex type.
21 *
22 * <p>The following schema fragment specifies the expected content contained within this class.
23 *
24 * <pre>
25 * <complexType name="DbTable">
26 * <complexContent>
27 * <extension base="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbAbstractTable">
28 * <sequence>
29 * <element name="PrimaryKey" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbPrimaryKey" minOccurs="0"/>
30 * <element name="Field" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbField" maxOccurs="unbounded" minOccurs="0"/>
31 * <element name="ForeignKey" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbForeignKey" maxOccurs="unbounded" minOccurs="0"/>
32 * <element name="Index" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbIndex" maxOccurs="unbounded" minOccurs="0"/>
33 * <element name="Data" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbDataTable" minOccurs="0"/>
34 * </sequence>
35 * </extension>
36 * </complexContent>
37 * </complexType>
38 * </pre>
39 *
40 *
41 */
42 @XmlAccessorType(XmlAccessType.FIELD)
43 @XmlType(name = "DbTable", propOrder = {
44 "primaryKey",
45 "fields",
46 "foreignKeys",
47 "indexes",
48 "data"
49 })
50 public class DbTable
51 extends DbAbstractTable
52 {
53
54 @XmlElement(name = "PrimaryKey")
55 protected DbPrimaryKey primaryKey;
56 @XmlElement(name = "Field")
57 protected List<DbField> fields;
58 @XmlElement(name = "ForeignKey")
59 protected List<DbForeignKey> foreignKeys;
60 @XmlElement(name = "Index")
61 protected List<DbIndex> indexes;
62 @XmlElement(name = "Data")
63 protected DbDataTable data;
64
65 /**
66 * Gets the value of the primaryKey property.
67 *
68 * @return
69 * possible object is
70 * {@link DbPrimaryKey }
71 *
72 */
73 public DbPrimaryKey getPrimaryKey() {
74 return primaryKey;
75 }
76
77 /**
78 * Sets the value of the primaryKey property.
79 *
80 * @param value
81 * allowed object is
82 * {@link DbPrimaryKey }
83 *
84 */
85 public void setPrimaryKey(DbPrimaryKey value) {
86 this.primaryKey = value;
87 }
88
89 /**
90 * Gets the value of the fields property.
91 *
92 * <p>
93 * This accessor method returns a reference to the live list,
94 * not a snapshot. Therefore any modification you make to the
95 * returned list will be present inside the JAXB object.
96 * This is why there is not a <CODE>set</CODE> method for the fields property.
97 *
98 * <p>
99 * For example, to add a new item, do as follows:
100 * <pre>
101 * getFields().add(newItem);
102 * </pre>
103 *
104 *
105 * <p>
106 * Objects of the following type(s) are allowed in the list
107 * {@link DbField }
108 *
109 *
110 */
111 public List<DbField> getFields() {
112 if (fields == null) {
113 fields = new ArrayList<DbField>();
114 }
115 return this.fields;
116 }
117
118 /**
119 * Gets the value of the foreignKeys property.
120 *
121 * <p>
122 * This accessor method returns a reference to the live list,
123 * not a snapshot. Therefore any modification you make to the
124 * returned list will be present inside the JAXB object.
125 * This is why there is not a <CODE>set</CODE> method for the foreignKeys property.
126 *
127 * <p>
128 * For example, to add a new item, do as follows:
129 * <pre>
130 * getForeignKeys().add(newItem);
131 * </pre>
132 *
133 *
134 * <p>
135 * Objects of the following type(s) are allowed in the list
136 * {@link DbForeignKey }
137 *
138 *
139 */
140 public List<DbForeignKey> getForeignKeys() {
141 if (foreignKeys == null) {
142 foreignKeys = new ArrayList<DbForeignKey>();
143 }
144 return this.foreignKeys;
145 }
146
147 /**
148 * Gets the value of the indexes property.
149 *
150 * <p>
151 * This accessor method returns a reference to the live list,
152 * not a snapshot. Therefore any modification you make to the
153 * returned list will be present inside the JAXB object.
154 * This is why there is not a <CODE>set</CODE> method for the indexes property.
155 *
156 * <p>
157 * For example, to add a new item, do as follows:
158 * <pre>
159 * getIndexes().add(newItem);
160 * </pre>
161 *
162 *
163 * <p>
164 * Objects of the following type(s) are allowed in the list
165 * {@link DbIndex }
166 *
167 *
168 */
169 public List<DbIndex> getIndexes() {
170 if (indexes == null) {
171 indexes = new ArrayList<DbIndex>();
172 }
173 return this.indexes;
174 }
175
176 /**
177 * Gets the value of the data property.
178 *
179 * @return
180 * possible object is
181 * {@link DbDataTable }
182 *
183 */
184 public DbDataTable getData() {
185 return data;
186 }
187
188 /**
189 * Sets the value of the data property.
190 *
191 * @param value
192 * allowed object is
193 * {@link DbDataTable }
194 *
195 */
196 public void setData(DbDataTable value) {
197 this.data = value;
198 }
199
200 }