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({TYPE}) @Retention(RUNTIME)
022 * public @interface DiscriminatorColumn {
023 * String name() default "DTYPE";
024 * DiscriminatorType discriminatorType() default STRING;
025 * String columnDefinition() default "";
026 * int length() default 31;
027 * }
028 *
029 *
030 *
031 * <p>Java class for discriminator-column complex type.
032 *
033 * <p>The following schema fragment specifies the expected content contained within this class.
034 *
035 * <pre>
036 * <complexType name="discriminator-column">
037 * <complexContent>
038 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
039 * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
040 * <attribute name="discriminator-type" type="{http://java.sun.com/xml/ns/persistence/orm}discriminator-type" />
041 * <attribute name="column-definition" type="{http://www.w3.org/2001/XMLSchema}string" />
042 * <attribute name="length" type="{http://www.w3.org/2001/XMLSchema}int" />
043 * </restriction>
044 * </complexContent>
045 * </complexType>
046 * </pre>
047 *
048 *
049 */
050 @XmlAccessorType(XmlAccessType.FIELD)
051 @XmlType(name = "discriminator-column")
052 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
053 public class DiscriminatorColumn implements Cloneable
054 {
055
056 @XmlAttribute
057 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
058 protected String name;
059 @XmlAttribute(name = "discriminator-type")
060 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
061 protected DiscriminatorType discriminatorType;
062 @XmlAttribute(name = "column-definition")
063 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
064 protected String columnDefinition;
065 @XmlAttribute
066 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
067 protected Integer length;
068
069 /**
070 * Creates a new {@code DiscriminatorColumn} instance.
071 *
072 */
073 public DiscriminatorColumn() {
074 // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
075 super();
076 }
077
078 /**
079 * Creates a new {@code DiscriminatorColumn} instance by deeply copying a given {@code DiscriminatorColumn} instance.
080 *
081 *
082 * @param o
083 * The instance to copy.
084 * @throws NullPointerException
085 * if {@code o} is {@code null}.
086 */
087 public DiscriminatorColumn(final DiscriminatorColumn o) {
088 // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
089 super();
090 if (o == null) {
091 throw new NullPointerException("Cannot create a copy of 'DiscriminatorColumn' from 'null'.");
092 }
093 // CBuiltinLeafInfo: java.lang.String
094 this.name = o.getName();
095 // CEnumLeafInfo: net.sourceforge.jpaxjc.ns.persistence.orm.DiscriminatorType
096 this.discriminatorType = o.getDiscriminatorType();
097 // CBuiltinLeafInfo: java.lang.String
098 this.columnDefinition = o.getColumnDefinition();
099 // CBuiltinLeafInfo: java.lang.Integer
100 this.length = o.getLength();
101 }
102
103 /**
104 * Gets the value of the name property.
105 *
106 * @return
107 * possible object is
108 * {@link String }
109 *
110 */
111 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
112 public String getName() {
113 return name;
114 }
115
116 /**
117 * Sets the value of the name property.
118 *
119 * @param value
120 * allowed object is
121 * {@link String }
122 *
123 */
124 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
125 public void setName(String value) {
126 this.name = value;
127 }
128
129 /**
130 * Gets the value of the discriminatorType property.
131 *
132 * @return
133 * possible object is
134 * {@link DiscriminatorType }
135 *
136 */
137 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
138 public DiscriminatorType getDiscriminatorType() {
139 return discriminatorType;
140 }
141
142 /**
143 * Sets the value of the discriminatorType property.
144 *
145 * @param value
146 * allowed object is
147 * {@link DiscriminatorType }
148 *
149 */
150 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
151 public void setDiscriminatorType(DiscriminatorType value) {
152 this.discriminatorType = value;
153 }
154
155 /**
156 * Gets the value of the columnDefinition property.
157 *
158 * @return
159 * possible object is
160 * {@link String }
161 *
162 */
163 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
164 public String getColumnDefinition() {
165 return columnDefinition;
166 }
167
168 /**
169 * Sets the value of the columnDefinition property.
170 *
171 * @param value
172 * allowed object is
173 * {@link String }
174 *
175 */
176 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
177 public void setColumnDefinition(String value) {
178 this.columnDefinition = value;
179 }
180
181 /**
182 * Gets the value of the length property.
183 *
184 * @return
185 * possible object is
186 * {@link Integer }
187 *
188 */
189 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
190 public Integer getLength() {
191 return length;
192 }
193
194 /**
195 * Sets the value of the length property.
196 *
197 * @param value
198 * allowed object is
199 * {@link Integer }
200 *
201 */
202 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
203 public void setLength(Integer value) {
204 this.length = value;
205 }
206
207 /**
208 * Creates and returns a deep copy of this object.
209 *
210 *
211 * @return
212 * A deep copy of this object.
213 */
214 @Override
215 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
216 public DiscriminatorColumn clone() {
217 // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
218 return new DiscriminatorColumn(this);
219 }
220
221 }