All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.boot.jaxb.cfg.spi.JaxbCfgHibernateConfiguration Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.1 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2019.10.08 at 09:56:04 AM BST 
//


package org.hibernate.boot.jaxb.cfg.spi;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;


/**
 * 

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="session-factory">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="property" type="{http://www.hibernate.org/xsd/orm/cfg}ConfigPropertyType" maxOccurs="unbounded" minOccurs="0"/>
 *                   <element name="mapping" type="{http://www.hibernate.org/xsd/orm/cfg}MappingReferenceType" maxOccurs="unbounded" minOccurs="0"/>
 *                   <choice maxOccurs="unbounded" minOccurs="0">
 *                     <element name="class-cache" type="{http://www.hibernate.org/xsd/orm/cfg}EntityCacheType"/>
 *                     <element name="collection-cache" type="{http://www.hibernate.org/xsd/orm/cfg}CollectionCacheType"/>
 *                   </choice>
 *                   <element name="event" type="{http://www.hibernate.org/xsd/orm/cfg}EventListenerGroupType" maxOccurs="unbounded" minOccurs="0"/>
 *                   <element name="listener" type="{http://www.hibernate.org/xsd/orm/cfg}EventListenerType" maxOccurs="unbounded" minOccurs="0"/>
 *                 </sequence>
 *                 <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="security" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="grant" maxOccurs="unbounded" minOccurs="0">
 *                     <complexType>
 *                       <complexContent>
 *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                           <attribute name="actions" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                           <attribute name="entity-name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                           <attribute name="role" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                         </restriction>
 *                       </complexContent>
 *                     </complexType>
 *                   </element>
 *                 </sequence>
 *                 <attribute name="context" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "sessionFactory", "security" }) @XmlRootElement(name = "hibernate-configuration") public class JaxbCfgHibernateConfiguration { @XmlElement(name = "session-factory", required = true) protected JaxbCfgHibernateConfiguration.JaxbCfgSessionFactory sessionFactory; protected JaxbCfgHibernateConfiguration.JaxbCfgSecurity security; /** * Gets the value of the sessionFactory property. * * @return * possible object is * {@link JaxbCfgHibernateConfiguration.JaxbCfgSessionFactory } * */ public JaxbCfgHibernateConfiguration.JaxbCfgSessionFactory getSessionFactory() { return sessionFactory; } /** * Sets the value of the sessionFactory property. * * @param value * allowed object is * {@link JaxbCfgHibernateConfiguration.JaxbCfgSessionFactory } * */ public void setSessionFactory(JaxbCfgHibernateConfiguration.JaxbCfgSessionFactory value) { this.sessionFactory = value; } /** * Gets the value of the security property. * * @return * possible object is * {@link JaxbCfgHibernateConfiguration.JaxbCfgSecurity } * */ public JaxbCfgHibernateConfiguration.JaxbCfgSecurity getSecurity() { return security; } /** * Sets the value of the security property. * * @param value * allowed object is * {@link JaxbCfgHibernateConfiguration.JaxbCfgSecurity } * */ public void setSecurity(JaxbCfgHibernateConfiguration.JaxbCfgSecurity value) { this.security = value; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <sequence>
     *         <element name="grant" maxOccurs="unbounded" minOccurs="0">
     *           <complexType>
     *             <complexContent>
     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *                 <attribute name="actions" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     *                 <attribute name="entity-name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     *                 <attribute name="role" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     *               </restriction>
     *             </complexContent>
     *           </complexType>
     *         </element>
     *       </sequence>
     *       <attribute name="context" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "grant" }) public static class JaxbCfgSecurity { protected List grant; @XmlAttribute(name = "context", required = true) protected String context; /** * Gets the value of the grant property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the grant property. * *

* For example, to add a new item, do as follows: *

         *    getGrant().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JaxbCfgHibernateConfiguration.JaxbCfgSecurity.JaxbCfgGrant } * * */ public List getGrant() { if (grant == null) { grant = new ArrayList(); } return this.grant; } /** * Gets the value of the context property. * * @return * possible object is * {@link String } * */ public String getContext() { return context; } /** * Sets the value of the context property. * * @param value * allowed object is * {@link String } * */ public void setContext(String value) { this.context = value; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

         * <complexType>
         *   <complexContent>
         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         *       <attribute name="actions" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
         *       <attribute name="entity-name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
         *       <attribute name="role" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
         *     </restriction>
         *   </complexContent>
         * </complexType>
         * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class JaxbCfgGrant { @XmlAttribute(name = "actions", required = true) protected String actions; @XmlAttribute(name = "entity-name", required = true) protected String entityName; @XmlAttribute(name = "role", required = true) protected String role; /** * Gets the value of the actions property. * * @return * possible object is * {@link String } * */ public String getActions() { return actions; } /** * Sets the value of the actions property. * * @param value * allowed object is * {@link String } * */ public void setActions(String value) { this.actions = value; } /** * Gets the value of the entityName property. * * @return * possible object is * {@link String } * */ public String getEntityName() { return entityName; } /** * Sets the value of the entityName property. * * @param value * allowed object is * {@link String } * */ public void setEntityName(String value) { this.entityName = value; } /** * Gets the value of the role property. * * @return * possible object is * {@link String } * */ public String getRole() { return role; } /** * Sets the value of the role property. * * @param value * allowed object is * {@link String } * */ public void setRole(String value) { this.role = value; } } } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <sequence>
     *         <element name="property" type="{http://www.hibernate.org/xsd/orm/cfg}ConfigPropertyType" maxOccurs="unbounded" minOccurs="0"/>
     *         <element name="mapping" type="{http://www.hibernate.org/xsd/orm/cfg}MappingReferenceType" maxOccurs="unbounded" minOccurs="0"/>
     *         <choice maxOccurs="unbounded" minOccurs="0">
     *           <element name="class-cache" type="{http://www.hibernate.org/xsd/orm/cfg}EntityCacheType"/>
     *           <element name="collection-cache" type="{http://www.hibernate.org/xsd/orm/cfg}CollectionCacheType"/>
     *         </choice>
     *         <element name="event" type="{http://www.hibernate.org/xsd/orm/cfg}EventListenerGroupType" maxOccurs="unbounded" minOccurs="0"/>
     *         <element name="listener" type="{http://www.hibernate.org/xsd/orm/cfg}EventListenerType" maxOccurs="unbounded" minOccurs="0"/>
     *       </sequence>
     *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "property", "mapping", "classCacheOrCollectionCache", "event", "listener" }) public static class JaxbCfgSessionFactory { protected List property; protected List mapping; @XmlElements({ @XmlElement(name = "class-cache", type = JaxbCfgEntityCacheType.class), @XmlElement(name = "collection-cache", type = JaxbCfgCollectionCacheType.class) }) protected List classCacheOrCollectionCache; protected List event; protected List listener; @XmlAttribute(name = "name") protected String name; /** * Gets the value of the property property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the property property. * *

* For example, to add a new item, do as follows: *

         *    getProperty().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JaxbCfgConfigPropertyType } * * */ public List getProperty() { if (property == null) { property = new ArrayList(); } return this.property; } /** * Gets the value of the mapping property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the mapping property. * *

* For example, to add a new item, do as follows: *

         *    getMapping().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JaxbCfgMappingReferenceType } * * */ public List getMapping() { if (mapping == null) { mapping = new ArrayList(); } return this.mapping; } /** * Gets the value of the classCacheOrCollectionCache property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the classCacheOrCollectionCache property. * *

* For example, to add a new item, do as follows: *

         *    getClassCacheOrCollectionCache().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JaxbCfgEntityCacheType } * {@link JaxbCfgCollectionCacheType } * * */ public List getClassCacheOrCollectionCache() { if (classCacheOrCollectionCache == null) { classCacheOrCollectionCache = new ArrayList(); } return this.classCacheOrCollectionCache; } /** * Gets the value of the event property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the event property. * *

* For example, to add a new item, do as follows: *

         *    getEvent().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JaxbCfgEventListenerGroupType } * * */ public List getEvent() { if (event == null) { event = new ArrayList(); } return this.event; } /** * Gets the value of the listener property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the listener property. * *

* For example, to add a new item, do as follows: *

         *    getListener().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JaxbCfgEventListenerType } * * */ public List getListener() { if (listener == null) { listener = new ArrayList(); } return this.listener; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } } }