001 //
002 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833
003 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004 // Any modifications to this file will be lost upon recompilation of the source schema.
005 // Generated on: 2010.08.18 at 10:46:56 PM CEST
006 //
007
008
009 package net.sourceforge.jpaxjc.ns.persistence.orm;
010
011 import javax.annotation.Generated;
012 import javax.xml.bind.annotation.XmlAccessType;
013 import javax.xml.bind.annotation.XmlAccessorType;
014 import javax.xml.bind.annotation.XmlAttribute;
015 import javax.xml.bind.annotation.XmlElement;
016 import javax.xml.bind.annotation.XmlType;
017
018
019 /**
020 *
021 *
022 * @Target({METHOD, FIELD}) @Retention(RUNTIME)
023 * public @interface Id {}
024 *
025 *
026 *
027 * <p>Java class for id complex type.
028 *
029 * <p>The following schema fragment specifies the expected content contained within this class.
030 *
031 * <pre>
032 * <complexType name="id">
033 * <complexContent>
034 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
035 * <sequence>
036 * <element name="column" type="{http://java.sun.com/xml/ns/persistence/orm}column" minOccurs="0"/>
037 * <element name="generated-value" type="{http://java.sun.com/xml/ns/persistence/orm}generated-value" minOccurs="0"/>
038 * <element name="temporal" type="{http://java.sun.com/xml/ns/persistence/orm}temporal" minOccurs="0"/>
039 * <element name="table-generator" type="{http://java.sun.com/xml/ns/persistence/orm}table-generator" minOccurs="0"/>
040 * <element name="sequence-generator" type="{http://java.sun.com/xml/ns/persistence/orm}sequence-generator" minOccurs="0"/>
041 * </sequence>
042 * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
043 * </restriction>
044 * </complexContent>
045 * </complexType>
046 * </pre>
047 *
048 *
049 */
050 @XmlAccessorType(XmlAccessType.FIELD)
051 @XmlType(name = "id", propOrder = {
052 "column",
053 "generatedValue",
054 "temporal",
055 "tableGenerator",
056 "sequenceGenerator"
057 })
058 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
059 public class Id implements Cloneable
060 {
061
062 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
063 protected Column column;
064 @XmlElement(name = "generated-value")
065 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
066 protected GeneratedValue generatedValue;
067 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
068 protected TemporalType temporal;
069 @XmlElement(name = "table-generator")
070 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
071 protected TableGenerator tableGenerator;
072 @XmlElement(name = "sequence-generator")
073 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
074 protected SequenceGenerator sequenceGenerator;
075 @XmlAttribute(required = true)
076 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
077 protected String name;
078
079 /**
080 * Creates a new {@code Id} instance.
081 *
082 */
083 public Id() {
084 // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
085 super();
086 }
087
088 /**
089 * Creates a new {@code Id} instance by deeply copying a given {@code Id} instance.
090 *
091 *
092 * @param o
093 * The instance to copy.
094 * @throws NullPointerException
095 * if {@code o} is {@code null}.
096 */
097 public Id(final Id o) {
098 // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
099 super();
100 if (o == null) {
101 throw new NullPointerException("Cannot create a copy of 'Id' from 'null'.");
102 }
103 // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.Column
104 this.column = ((o.getColumn() == null)?null:o.getColumn().clone());
105 // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.GeneratedValue
106 this.generatedValue = ((o.getGeneratedValue() == null)?null:o.getGeneratedValue().clone());
107 // CEnumLeafInfo: net.sourceforge.jpaxjc.ns.persistence.orm.TemporalType
108 this.temporal = o.getTemporal();
109 // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.TableGenerator
110 this.tableGenerator = ((o.getTableGenerator() == null)?null:o.getTableGenerator().clone());
111 // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.SequenceGenerator
112 this.sequenceGenerator = ((o.getSequenceGenerator() == null)?null:o.getSequenceGenerator().clone());
113 // CBuiltinLeafInfo: java.lang.String
114 this.name = o.getName();
115 }
116
117 /**
118 * Gets the value of the column property.
119 *
120 * @return
121 * possible object is
122 * {@link Column }
123 *
124 */
125 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
126 public Column getColumn() {
127 return column;
128 }
129
130 /**
131 * Sets the value of the column property.
132 *
133 * @param value
134 * allowed object is
135 * {@link Column }
136 *
137 */
138 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
139 public void setColumn(Column value) {
140 this.column = value;
141 }
142
143 /**
144 * Gets the value of the generatedValue property.
145 *
146 * @return
147 * possible object is
148 * {@link GeneratedValue }
149 *
150 */
151 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
152 public GeneratedValue getGeneratedValue() {
153 return generatedValue;
154 }
155
156 /**
157 * Sets the value of the generatedValue property.
158 *
159 * @param value
160 * allowed object is
161 * {@link GeneratedValue }
162 *
163 */
164 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
165 public void setGeneratedValue(GeneratedValue value) {
166 this.generatedValue = value;
167 }
168
169 /**
170 * Gets the value of the temporal property.
171 *
172 * @return
173 * possible object is
174 * {@link TemporalType }
175 *
176 */
177 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
178 public TemporalType getTemporal() {
179 return temporal;
180 }
181
182 /**
183 * Sets the value of the temporal property.
184 *
185 * @param value
186 * allowed object is
187 * {@link TemporalType }
188 *
189 */
190 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
191 public void setTemporal(TemporalType value) {
192 this.temporal = value;
193 }
194
195 /**
196 * Gets the value of the tableGenerator property.
197 *
198 * @return
199 * possible object is
200 * {@link TableGenerator }
201 *
202 */
203 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
204 public TableGenerator getTableGenerator() {
205 return tableGenerator;
206 }
207
208 /**
209 * Sets the value of the tableGenerator property.
210 *
211 * @param value
212 * allowed object is
213 * {@link TableGenerator }
214 *
215 */
216 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
217 public void setTableGenerator(TableGenerator value) {
218 this.tableGenerator = value;
219 }
220
221 /**
222 * Gets the value of the sequenceGenerator property.
223 *
224 * @return
225 * possible object is
226 * {@link SequenceGenerator }
227 *
228 */
229 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
230 public SequenceGenerator getSequenceGenerator() {
231 return sequenceGenerator;
232 }
233
234 /**
235 * Sets the value of the sequenceGenerator property.
236 *
237 * @param value
238 * allowed object is
239 * {@link SequenceGenerator }
240 *
241 */
242 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
243 public void setSequenceGenerator(SequenceGenerator value) {
244 this.sequenceGenerator = value;
245 }
246
247 /**
248 * Gets the value of the name property.
249 *
250 * @return
251 * possible object is
252 * {@link String }
253 *
254 */
255 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
256 public String getName() {
257 return name;
258 }
259
260 /**
261 * Sets the value of the name property.
262 *
263 * @param value
264 * allowed object is
265 * {@link String }
266 *
267 */
268 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
269 public void setName(String value) {
270 this.name = value;
271 }
272
273 /**
274 * Creates and returns a deep copy of this object.
275 *
276 *
277 * @return
278 * A deep copy of this object.
279 */
280 @Override
281 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
282 public Id clone() {
283 // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
284 return new Id(this);
285 }
286
287 }