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.XmlElement;
015 import javax.xml.bind.annotation.XmlType;
016
017
018 /**
019 *
020 *
021 * public enum CascadeType { ALL, PERSIST, MERGE, REMOVE, REFRESH};
022 *
023 *
024 *
025 * <p>Java class for cascade-type complex type.
026 *
027 * <p>The following schema fragment specifies the expected content contained within this class.
028 *
029 * <pre>
030 * <complexType name="cascade-type">
031 * <complexContent>
032 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
033 * <sequence>
034 * <element name="cascade-all" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
035 * <element name="cascade-persist" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
036 * <element name="cascade-merge" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
037 * <element name="cascade-remove" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
038 * <element name="cascade-refresh" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
039 * </sequence>
040 * </restriction>
041 * </complexContent>
042 * </complexType>
043 * </pre>
044 *
045 *
046 */
047 @XmlAccessorType(XmlAccessType.FIELD)
048 @XmlType(name = "cascade-type", propOrder = {
049 "cascadeAll",
050 "cascadePersist",
051 "cascadeMerge",
052 "cascadeRemove",
053 "cascadeRefresh"
054 })
055 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
056 public class CascadeType implements Cloneable
057 {
058
059 @XmlElement(name = "cascade-all")
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 EmptyType cascadeAll;
062 @XmlElement(name = "cascade-persist")
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 EmptyType cascadePersist;
065 @XmlElement(name = "cascade-merge")
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 EmptyType cascadeMerge;
068 @XmlElement(name = "cascade-remove")
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 EmptyType cascadeRemove;
071 @XmlElement(name = "cascade-refresh")
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 EmptyType cascadeRefresh;
074
075 /**
076 * Creates a new {@code CascadeType} instance.
077 *
078 */
079 public CascadeType() {
080 // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
081 super();
082 }
083
084 /**
085 * Creates a new {@code CascadeType} instance by deeply copying a given {@code CascadeType} instance.
086 *
087 *
088 * @param o
089 * The instance to copy.
090 * @throws NullPointerException
091 * if {@code o} is {@code null}.
092 */
093 public CascadeType(final CascadeType o) {
094 // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
095 super();
096 if (o == null) {
097 throw new NullPointerException("Cannot create a copy of 'CascadeType' from 'null'.");
098 }
099 // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.EmptyType
100 this.cascadeAll = ((o.getCascadeAll() == null)?null:o.getCascadeAll().clone());
101 // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.EmptyType
102 this.cascadePersist = ((o.getCascadePersist() == null)?null:o.getCascadePersist().clone());
103 // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.EmptyType
104 this.cascadeMerge = ((o.getCascadeMerge() == null)?null:o.getCascadeMerge().clone());
105 // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.EmptyType
106 this.cascadeRemove = ((o.getCascadeRemove() == null)?null:o.getCascadeRemove().clone());
107 // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.EmptyType
108 this.cascadeRefresh = ((o.getCascadeRefresh() == null)?null:o.getCascadeRefresh().clone());
109 }
110
111 /**
112 * Gets the value of the cascadeAll property.
113 *
114 * @return
115 * possible object is
116 * {@link EmptyType }
117 *
118 */
119 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
120 public EmptyType getCascadeAll() {
121 return cascadeAll;
122 }
123
124 /**
125 * Sets the value of the cascadeAll property.
126 *
127 * @param value
128 * allowed object is
129 * {@link EmptyType }
130 *
131 */
132 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
133 public void setCascadeAll(EmptyType value) {
134 this.cascadeAll = value;
135 }
136
137 /**
138 * Gets the value of the cascadePersist property.
139 *
140 * @return
141 * possible object is
142 * {@link EmptyType }
143 *
144 */
145 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
146 public EmptyType getCascadePersist() {
147 return cascadePersist;
148 }
149
150 /**
151 * Sets the value of the cascadePersist property.
152 *
153 * @param value
154 * allowed object is
155 * {@link EmptyType }
156 *
157 */
158 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
159 public void setCascadePersist(EmptyType value) {
160 this.cascadePersist = value;
161 }
162
163 /**
164 * Gets the value of the cascadeMerge property.
165 *
166 * @return
167 * possible object is
168 * {@link EmptyType }
169 *
170 */
171 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
172 public EmptyType getCascadeMerge() {
173 return cascadeMerge;
174 }
175
176 /**
177 * Sets the value of the cascadeMerge property.
178 *
179 * @param value
180 * allowed object is
181 * {@link EmptyType }
182 *
183 */
184 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
185 public void setCascadeMerge(EmptyType value) {
186 this.cascadeMerge = value;
187 }
188
189 /**
190 * Gets the value of the cascadeRemove property.
191 *
192 * @return
193 * possible object is
194 * {@link EmptyType }
195 *
196 */
197 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
198 public EmptyType getCascadeRemove() {
199 return cascadeRemove;
200 }
201
202 /**
203 * Sets the value of the cascadeRemove property.
204 *
205 * @param value
206 * allowed object is
207 * {@link EmptyType }
208 *
209 */
210 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
211 public void setCascadeRemove(EmptyType value) {
212 this.cascadeRemove = value;
213 }
214
215 /**
216 * Gets the value of the cascadeRefresh property.
217 *
218 * @return
219 * possible object is
220 * {@link EmptyType }
221 *
222 */
223 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
224 public EmptyType getCascadeRefresh() {
225 return cascadeRefresh;
226 }
227
228 /**
229 * Sets the value of the cascadeRefresh property.
230 *
231 * @param value
232 * allowed object is
233 * {@link EmptyType }
234 *
235 */
236 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
237 public void setCascadeRefresh(EmptyType value) {
238 this.cascadeRefresh = value;
239 }
240
241 /**
242 * Creates and returns a deep copy of this object.
243 *
244 *
245 * @return
246 * A deep copy of this object.
247 */
248 @Override
249 @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
250 public CascadeType clone() {
251 // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
252 return new CascadeType(this);
253 }
254
255 }