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.XmlType;
016    
017    
018    /**
019     * 
020     * 
021     *         @Target({METHOD, FIELD}) @Retention(RUNTIME)
022     *         public @interface Column {
023     *           String name() default "";
024     *           boolean unique() default false;
025     *           boolean nullable() default true;
026     *           boolean insertable() default true;
027     *           boolean updatable() default true;
028     *           String columnDefinition() default "";
029     *           String table() default "";
030     *           int length() default 255;
031     *           int precision() default 0; // decimal precision
032     *           int scale() default 0; // decimal scale
033     *         }
034     * 
035     *       
036     * 
037     * <p>Java class for column complex type.
038     * 
039     * <p>The following schema fragment specifies the expected content contained within this class.
040     * 
041     * <pre>
042     * &lt;complexType name="column">
043     *   &lt;complexContent>
044     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
045     *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
046     *       &lt;attribute name="unique" type="{http://www.w3.org/2001/XMLSchema}boolean" />
047     *       &lt;attribute name="nullable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
048     *       &lt;attribute name="insertable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
049     *       &lt;attribute name="updatable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
050     *       &lt;attribute name="column-definition" type="{http://www.w3.org/2001/XMLSchema}string" />
051     *       &lt;attribute name="table" type="{http://www.w3.org/2001/XMLSchema}string" />
052     *       &lt;attribute name="length" type="{http://www.w3.org/2001/XMLSchema}int" />
053     *       &lt;attribute name="precision" type="{http://www.w3.org/2001/XMLSchema}int" />
054     *       &lt;attribute name="scale" type="{http://www.w3.org/2001/XMLSchema}int" />
055     *     &lt;/restriction>
056     *   &lt;/complexContent>
057     * &lt;/complexType>
058     * </pre>
059     * 
060     * 
061     */
062    @XmlAccessorType(XmlAccessType.FIELD)
063    @XmlType(name = "column")
064    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
065    public class Column implements Cloneable
066    {
067    
068        @XmlAttribute
069        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
070        protected String name;
071        @XmlAttribute
072        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
073        protected Boolean unique;
074        @XmlAttribute
075        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
076        protected Boolean nullable;
077        @XmlAttribute
078        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
079        protected Boolean insertable;
080        @XmlAttribute
081        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
082        protected Boolean updatable;
083        @XmlAttribute(name = "column-definition")
084        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
085        protected String columnDefinition;
086        @XmlAttribute
087        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
088        protected String table;
089        @XmlAttribute
090        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
091        protected Integer length;
092        @XmlAttribute
093        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
094        protected Integer precision;
095        @XmlAttribute
096        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
097        protected Integer scale;
098    
099        /**
100         * Creates a new {@code Column} instance.
101         * 
102         */
103        public Column() {
104            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
105            super();
106        }
107    
108        /**
109         * Creates a new {@code Column} instance by deeply copying a given {@code Column} instance.
110         * 
111         * 
112         * @param o
113         *     The instance to copy.
114         * @throws NullPointerException
115         *     if {@code o} is {@code null}.
116         */
117        public Column(final Column o) {
118            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
119            super();
120            if (o == null) {
121                throw new NullPointerException("Cannot create a copy of 'Column' from 'null'.");
122            }
123            // CBuiltinLeafInfo: java.lang.String
124            this.name = o.getName();
125            // CBuiltinLeafInfo: java.lang.Boolean
126            this.unique = o.isUnique();
127            // CBuiltinLeafInfo: java.lang.Boolean
128            this.nullable = o.isNullable();
129            // CBuiltinLeafInfo: java.lang.Boolean
130            this.insertable = o.isInsertable();
131            // CBuiltinLeafInfo: java.lang.Boolean
132            this.updatable = o.isUpdatable();
133            // CBuiltinLeafInfo: java.lang.String
134            this.columnDefinition = o.getColumnDefinition();
135            // CBuiltinLeafInfo: java.lang.String
136            this.table = o.getTable();
137            // CBuiltinLeafInfo: java.lang.Integer
138            this.length = o.getLength();
139            // CBuiltinLeafInfo: java.lang.Integer
140            this.precision = o.getPrecision();
141            // CBuiltinLeafInfo: java.lang.Integer
142            this.scale = o.getScale();
143        }
144    
145        /**
146         * Gets the value of the name property.
147         * 
148         * @return
149         *     possible object is
150         *     {@link String }
151         *     
152         */
153        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
154        public String getName() {
155            return name;
156        }
157    
158        /**
159         * Sets the value of the name property.
160         * 
161         * @param value
162         *     allowed object is
163         *     {@link String }
164         *     
165         */
166        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
167        public void setName(String value) {
168            this.name = value;
169        }
170    
171        /**
172         * Gets the value of the unique property.
173         * 
174         * @return
175         *     possible object is
176         *     {@link Boolean }
177         *     
178         */
179        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
180        public Boolean isUnique() {
181            return unique;
182        }
183    
184        /**
185         * Sets the value of the unique property.
186         * 
187         * @param value
188         *     allowed object is
189         *     {@link Boolean }
190         *     
191         */
192        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
193        public void setUnique(Boolean value) {
194            this.unique = value;
195        }
196    
197        /**
198         * Gets the value of the nullable property.
199         * 
200         * @return
201         *     possible object is
202         *     {@link Boolean }
203         *     
204         */
205        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
206        public Boolean isNullable() {
207            return nullable;
208        }
209    
210        /**
211         * Sets the value of the nullable property.
212         * 
213         * @param value
214         *     allowed object is
215         *     {@link Boolean }
216         *     
217         */
218        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
219        public void setNullable(Boolean value) {
220            this.nullable = value;
221        }
222    
223        /**
224         * Gets the value of the insertable property.
225         * 
226         * @return
227         *     possible object is
228         *     {@link Boolean }
229         *     
230         */
231        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
232        public Boolean isInsertable() {
233            return insertable;
234        }
235    
236        /**
237         * Sets the value of the insertable property.
238         * 
239         * @param value
240         *     allowed object is
241         *     {@link Boolean }
242         *     
243         */
244        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
245        public void setInsertable(Boolean value) {
246            this.insertable = value;
247        }
248    
249        /**
250         * Gets the value of the updatable property.
251         * 
252         * @return
253         *     possible object is
254         *     {@link Boolean }
255         *     
256         */
257        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
258        public Boolean isUpdatable() {
259            return updatable;
260        }
261    
262        /**
263         * Sets the value of the updatable property.
264         * 
265         * @param value
266         *     allowed object is
267         *     {@link Boolean }
268         *     
269         */
270        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
271        public void setUpdatable(Boolean value) {
272            this.updatable = value;
273        }
274    
275        /**
276         * Gets the value of the columnDefinition property.
277         * 
278         * @return
279         *     possible object is
280         *     {@link String }
281         *     
282         */
283        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
284        public String getColumnDefinition() {
285            return columnDefinition;
286        }
287    
288        /**
289         * Sets the value of the columnDefinition property.
290         * 
291         * @param value
292         *     allowed object is
293         *     {@link String }
294         *     
295         */
296        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
297        public void setColumnDefinition(String value) {
298            this.columnDefinition = value;
299        }
300    
301        /**
302         * Gets the value of the table property.
303         * 
304         * @return
305         *     possible object is
306         *     {@link String }
307         *     
308         */
309        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
310        public String getTable() {
311            return table;
312        }
313    
314        /**
315         * Sets the value of the table property.
316         * 
317         * @param value
318         *     allowed object is
319         *     {@link String }
320         *     
321         */
322        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
323        public void setTable(String value) {
324            this.table = value;
325        }
326    
327        /**
328         * Gets the value of the length property.
329         * 
330         * @return
331         *     possible object is
332         *     {@link Integer }
333         *     
334         */
335        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
336        public Integer getLength() {
337            return length;
338        }
339    
340        /**
341         * Sets the value of the length property.
342         * 
343         * @param value
344         *     allowed object is
345         *     {@link Integer }
346         *     
347         */
348        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
349        public void setLength(Integer value) {
350            this.length = value;
351        }
352    
353        /**
354         * Gets the value of the precision property.
355         * 
356         * @return
357         *     possible object is
358         *     {@link Integer }
359         *     
360         */
361        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
362        public Integer getPrecision() {
363            return precision;
364        }
365    
366        /**
367         * Sets the value of the precision property.
368         * 
369         * @param value
370         *     allowed object is
371         *     {@link Integer }
372         *     
373         */
374        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
375        public void setPrecision(Integer value) {
376            this.precision = value;
377        }
378    
379        /**
380         * Gets the value of the scale property.
381         * 
382         * @return
383         *     possible object is
384         *     {@link Integer }
385         *     
386         */
387        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
388        public Integer getScale() {
389            return scale;
390        }
391    
392        /**
393         * Sets the value of the scale property.
394         * 
395         * @param value
396         *     allowed object is
397         *     {@link Integer }
398         *     
399         */
400        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
401        public void setScale(Integer value) {
402            this.scale = value;
403        }
404    
405        /**
406         * Creates and returns a deep copy of this object.
407         * 
408         * 
409         * @return
410         *     A deep copy of this object.
411         */
412        @Override
413        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
414        public Column clone() {
415            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
416            return new Column(this);
417        }
418    
419    }