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

org.jvnet.hyperjaxb3.hibernate.mapping.HibernateMapping Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2007.01.30 at 01:23:09 PM CET 
//


package org.jvnet.hyperjaxb3.hibernate.mapping;

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;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "meta",
    "typedef",
    "_import",
    "clazzOrSubclassOrJoinedSubclassOrUnionSubclass",
    "resultset",
    "queryOrSqlQuery",
    "filterDef",
    "databaseObject"
})
@XmlRootElement(name = "hibernate-mapping")
public class HibernateMapping {

    @XmlAttribute
    @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
    protected String schema;
    @XmlAttribute
    @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
    protected String catalog;
    @XmlAttribute(name = "default-cascade")
    @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
    protected String defaultCascade;
    @XmlAttribute(name = "default-access")
    @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
    protected String defaultAccess;
    @XmlAttribute(name = "default-lazy")
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    protected String defaultLazy;
    @XmlAttribute(name = "auto-import")
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    protected String autoImport;
    @XmlAttribute(name = "package")
    @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
    protected String _package;
    protected List meta;
    protected List typedef;
    @XmlElement(name = "import")
    protected List _import;
    @XmlElements({
        @XmlElement(name = "class", type = Clazz.class),
        @XmlElement(name = "subclass", type = Subclass.class),
        @XmlElement(name = "joined-subclass", type = JoinedSubclass.class),
        @XmlElement(name = "union-subclass", type = UnionSubclass.class)
    })
    protected List clazzOrSubclassOrJoinedSubclassOrUnionSubclass;
    protected List resultset;
    @XmlElements({
        @XmlElement(name = "query", type = Query.class),
        @XmlElement(name = "sql-query", type = SqlQuery.class)
    })
    protected List queryOrSqlQuery;
    @XmlElement(name = "filter-def")
    protected List filterDef;
    @XmlElement(name = "database-object")
    protected List databaseObject;

    /**
     * Gets the value of the schema property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getSchema() {
        return schema;
    }

    /**
     * Sets the value of the schema property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setSchema(String value) {
        this.schema = value;
    }

    /**
     * Gets the value of the catalog property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCatalog() {
        return catalog;
    }

    /**
     * Sets the value of the catalog property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCatalog(String value) {
        this.catalog = value;
    }

    /**
     * Gets the value of the defaultCascade property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getDefaultCascade() {
        if (defaultCascade == null) {
            return "none";
        } else {
            return defaultCascade;
        }
    }

    /**
     * Sets the value of the defaultCascade property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setDefaultCascade(String value) {
        this.defaultCascade = value;
    }

    /**
     * Gets the value of the defaultAccess property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getDefaultAccess() {
        if (defaultAccess == null) {
            return "property";
        } else {
            return defaultAccess;
        }
    }

    /**
     * Sets the value of the defaultAccess property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setDefaultAccess(String value) {
        this.defaultAccess = value;
    }

    /**
     * Gets the value of the defaultLazy property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getDefaultLazy() {
        if (defaultLazy == null) {
            return "true";
        } else {
            return defaultLazy;
        }
    }

    /**
     * Sets the value of the defaultLazy property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setDefaultLazy(String value) {
        this.defaultLazy = value;
    }

    /**
     * Gets the value of the autoImport property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getAutoImport() {
        if (autoImport == null) {
            return "true";
        } else {
            return autoImport;
        }
    }

    /**
     * Sets the value of the autoImport property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setAutoImport(String value) {
        this.autoImport = value;
    }

    /**
     * Gets the value of the package property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getPackage() {
        return _package;
    }

    /**
     * Sets the value of the package property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setPackage(String value) {
        this._package = value;
    }

    /**
     * Gets the value of the meta 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 meta property. * *

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

     *    getMeta().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Meta } * * */ public List getMeta() { if (meta == null) { meta = new ArrayList(); } return this.meta; } /** * Gets the value of the typedef 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 typedef property. * *

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

     *    getTypedef().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Typedef } * * */ public List getTypedef() { if (typedef == null) { typedef = new ArrayList(); } return this.typedef; } /** * Gets the value of the import 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 import property. * *

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

     *    getImport().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Import } * * */ public List getImport() { if (_import == null) { _import = new ArrayList(); } return this._import; } /** * Gets the value of the clazzOrSubclassOrJoinedSubclassOrUnionSubclass 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 clazzOrSubclassOrJoinedSubclassOrUnionSubclass property. * *

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

     *    getClazzOrSubclassOrJoinedSubclassOrUnionSubclass().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Clazz } * {@link Subclass } * {@link JoinedSubclass } * {@link UnionSubclass } * * */ public List getClazzOrSubclassOrJoinedSubclassOrUnionSubclass() { if (clazzOrSubclassOrJoinedSubclassOrUnionSubclass == null) { clazzOrSubclassOrJoinedSubclassOrUnionSubclass = new ArrayList(); } return this.clazzOrSubclassOrJoinedSubclassOrUnionSubclass; } /** * Gets the value of the resultset 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 resultset property. * *

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

     *    getResultset().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Resultset } * * */ public List getResultset() { if (resultset == null) { resultset = new ArrayList(); } return this.resultset; } /** * Gets the value of the queryOrSqlQuery 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 queryOrSqlQuery property. * *

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

     *    getQueryOrSqlQuery().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Query } * {@link SqlQuery } * * */ public List getQueryOrSqlQuery() { if (queryOrSqlQuery == null) { queryOrSqlQuery = new ArrayList(); } return this.queryOrSqlQuery; } /** * Gets the value of the filterDef 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 filterDef property. * *

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

     *    getFilterDef().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link FilterDef } * * */ public List getFilterDef() { if (filterDef == null) { filterDef = new ArrayList(); } return this.filterDef; } /** * Gets the value of the databaseObject 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 databaseObject property. * *

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

     *    getDatabaseObject().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link DatabaseObject } * * */ public List getDatabaseObject() { if (databaseObject == null) { databaseObject = new ArrayList(); } return this.databaseObject; } }