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     *         These defaults are applied to the persistence unit as a whole
022     *         unless they are overridden by local annotation or XML
023     *         element settings.
024     * 
025     *         schema - Used as the schema for all tables or secondary tables
026     *             that apply to the persistence unit
027     *         catalog - Used as the catalog for all tables or secondary tables
028     *             that apply to the persistence unit
029     *         access - Used as the access type for all managed classes in
030     *             the persistence unit
031     *         cascade-persist - Adds cascade-persist to the set of cascade options
032     *             in entity relationships of the persistence unit
033     *         entity-listeners - List of default entity listeners to be invoked
034     *             on each entity in the persistence unit.
035     * 
036     *       
037     * 
038     * <p>Java class for persistence-unit-defaults complex type.
039     * 
040     * <p>The following schema fragment specifies the expected content contained within this class.
041     * 
042     * <pre>
043     * &lt;complexType name="persistence-unit-defaults">
044     *   &lt;complexContent>
045     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
046     *       &lt;sequence>
047     *         &lt;element name="schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
048     *         &lt;element name="catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
049     *         &lt;element name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" minOccurs="0"/>
050     *         &lt;element name="cascade-persist" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
051     *         &lt;element name="entity-listeners" type="{http://java.sun.com/xml/ns/persistence/orm}entity-listeners" minOccurs="0"/>
052     *       &lt;/sequence>
053     *     &lt;/restriction>
054     *   &lt;/complexContent>
055     * &lt;/complexType>
056     * </pre>
057     * 
058     * 
059     */
060    @XmlAccessorType(XmlAccessType.FIELD)
061    @XmlType(name = "persistence-unit-defaults", propOrder = {
062        "schema",
063        "catalog",
064        "access",
065        "cascadePersist",
066        "entityListeners"
067    })
068    @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
069    public class PersistenceUnitDefaults implements Cloneable
070    {
071    
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 String schema;
074        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
075        protected String catalog;
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 AccessType access;
078        @XmlElement(name = "cascade-persist")
079        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
080        protected EmptyType cascadePersist;
081        @XmlElement(name = "entity-listeners")
082        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
083        protected EntityListeners entityListeners;
084    
085        /**
086         * Creates a new {@code PersistenceUnitDefaults} instance.
087         * 
088         */
089        public PersistenceUnitDefaults() {
090            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
091            super();
092        }
093    
094        /**
095         * Creates a new {@code PersistenceUnitDefaults} instance by deeply copying a given {@code PersistenceUnitDefaults} instance.
096         * 
097         * 
098         * @param o
099         *     The instance to copy.
100         * @throws NullPointerException
101         *     if {@code o} is {@code null}.
102         */
103        public PersistenceUnitDefaults(final PersistenceUnitDefaults o) {
104            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
105            super();
106            if (o == null) {
107                throw new NullPointerException("Cannot create a copy of 'PersistenceUnitDefaults' from 'null'.");
108            }
109            // CBuiltinLeafInfo: java.lang.String
110            this.schema = o.getSchema();
111            // CBuiltinLeafInfo: java.lang.String
112            this.catalog = o.getCatalog();
113            // CEnumLeafInfo: net.sourceforge.jpaxjc.ns.persistence.orm.AccessType
114            this.access = o.getAccess();
115            // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.EmptyType
116            this.cascadePersist = ((o.getCascadePersist() == null)?null:o.getCascadePersist().clone());
117            // CClassInfo: net.sourceforge.jpaxjc.ns.persistence.orm.EntityListeners
118            this.entityListeners = ((o.getEntityListeners() == null)?null:o.getEntityListeners().clone());
119        }
120    
121        /**
122         * Gets the value of the schema property.
123         * 
124         * @return
125         *     possible object is
126         *     {@link String }
127         *     
128         */
129        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
130        public String getSchema() {
131            return schema;
132        }
133    
134        /**
135         * Sets the value of the schema property.
136         * 
137         * @param value
138         *     allowed object is
139         *     {@link String }
140         *     
141         */
142        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
143        public void setSchema(String value) {
144            this.schema = value;
145        }
146    
147        /**
148         * Gets the value of the catalog property.
149         * 
150         * @return
151         *     possible object is
152         *     {@link String }
153         *     
154         */
155        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
156        public String getCatalog() {
157            return catalog;
158        }
159    
160        /**
161         * Sets the value of the catalog property.
162         * 
163         * @param value
164         *     allowed object is
165         *     {@link String }
166         *     
167         */
168        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
169        public void setCatalog(String value) {
170            this.catalog = value;
171        }
172    
173        /**
174         * Gets the value of the access property.
175         * 
176         * @return
177         *     possible object is
178         *     {@link AccessType }
179         *     
180         */
181        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
182        public AccessType getAccess() {
183            return access;
184        }
185    
186        /**
187         * Sets the value of the access property.
188         * 
189         * @param value
190         *     allowed object is
191         *     {@link AccessType }
192         *     
193         */
194        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
195        public void setAccess(AccessType value) {
196            this.access = value;
197        }
198    
199        /**
200         * Gets the value of the cascadePersist property.
201         * 
202         * @return
203         *     possible object is
204         *     {@link EmptyType }
205         *     
206         */
207        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
208        public EmptyType getCascadePersist() {
209            return cascadePersist;
210        }
211    
212        /**
213         * Sets the value of the cascadePersist property.
214         * 
215         * @param value
216         *     allowed object is
217         *     {@link EmptyType }
218         *     
219         */
220        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
221        public void setCascadePersist(EmptyType value) {
222            this.cascadePersist = value;
223        }
224    
225        /**
226         * Gets the value of the entityListeners property.
227         * 
228         * @return
229         *     possible object is
230         *     {@link EntityListeners }
231         *     
232         */
233        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
234        public EntityListeners getEntityListeners() {
235            return entityListeners;
236        }
237    
238        /**
239         * Sets the value of the entityListeners property.
240         * 
241         * @param value
242         *     allowed object is
243         *     {@link EntityListeners }
244         *     
245         */
246        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
247        public void setEntityListeners(EntityListeners value) {
248            this.entityListeners = value;
249        }
250    
251        /**
252         * Creates and returns a deep copy of this object.
253         * 
254         * 
255         * @return
256         *     A deep copy of this object.
257         */
258        @Override
259        @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-08-18T10:46:56+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
260        public PersistenceUnitDefaults clone() {
261            // CC-XJC Version 1.3 Build 2010-02-27T15:04:03+0000
262            return new PersistenceUnitDefaults(this);
263        }
264    
265    }