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

org.hibernate.internal.jaxb.mapping.hbm.JaxbPropertyElement 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, vhudson-jaxb-ri-2.1-520 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2013.05.22 at 01:35:13 PM EDT 
//


package org.hibernate.internal.jaxb.mapping.hbm;

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


/**
 * 

Java class for property-element complex type. * *

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

 * <complexType name="property-element">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="meta" type="{http://www.hibernate.org/xsd/hibernate-mapping}meta-element" maxOccurs="unbounded" minOccurs="0"/>
 *         <choice maxOccurs="unbounded" minOccurs="0">
 *           <element name="column" type="{http://www.hibernate.org/xsd/hibernate-mapping}column-element"/>
 *           <element name="formula" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         </choice>
 *         <element name="type" type="{http://www.hibernate.org/xsd/hibernate-mapping}type-element" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="access" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="column" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="formula" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="generated" default="never">
 *         <simpleType>
 *           <restriction base="{http://www.w3.org/2001/XMLSchema}token">
 *             <enumeration value="always"/>
 *             <enumeration value="insert"/>
 *             <enumeration value="never"/>
 *           </restriction>
 *         </simpleType>
 *       </attribute>
 *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="insert" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *       <attribute name="lazy" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *       <attribute name="length" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="node" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="not-null" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *       <attribute name="optimistic-lock" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
 *       <attribute name="precision" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="scale" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="unique" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *       <attribute name="unique-key" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="update" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "property-element", propOrder = { "meta", "columnOrFormula", "type" }) public class JaxbPropertyElement implements SingularAttributeSource { protected List meta; @XmlElements({ @XmlElement(name = "formula", type = String.class), @XmlElement(name = "column", type = JaxbColumnElement.class) }) protected List columnOrFormula; protected JaxbTypeElement type; @XmlAttribute protected String access; @XmlAttribute protected String column; @XmlAttribute protected String formula; @XmlAttribute @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String generated; @XmlAttribute protected String index; @XmlAttribute protected Boolean insert; @XmlAttribute protected Boolean lazy; @XmlAttribute protected String length; @XmlAttribute(required = true) protected String name; @XmlAttribute protected String node; @XmlAttribute(name = "not-null") protected Boolean notNull; @XmlAttribute(name = "optimistic-lock") protected Boolean optimisticLock; @XmlAttribute protected String precision; @XmlAttribute protected String scale; @XmlAttribute(name = "type") protected String typeAttribute; @XmlAttribute protected Boolean unique; @XmlAttribute(name = "unique-key") protected String uniqueKey; @XmlAttribute protected Boolean update; /** * 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 JaxbMetaElement } * * */ public List getMeta() { if (meta == null) { meta = new ArrayList(); } return this.meta; } /** * Gets the value of the columnOrFormula 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 columnOrFormula property. * *

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

     *    getColumnOrFormula().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * {@link JaxbColumnElement } * * */ public List getColumnOrFormula() { if (columnOrFormula == null) { columnOrFormula = new ArrayList(); } return this.columnOrFormula; } /** * Gets the value of the type property. * * @return * possible object is * {@link JaxbTypeElement } * */ public JaxbTypeElement getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link JaxbTypeElement } * */ public void setType(JaxbTypeElement value) { this.type = value; } /** * Gets the value of the access property. * * @return * possible object is * {@link String } * */ public String getAccess() { return access; } /** * Sets the value of the access property. * * @param value * allowed object is * {@link String } * */ public void setAccess(String value) { this.access = value; } /** * Gets the value of the column property. * * @return * possible object is * {@link String } * */ public String getColumn() { return column; } /** * Sets the value of the column property. * * @param value * allowed object is * {@link String } * */ public void setColumn(String value) { this.column = value; } /** * Gets the value of the formula property. * * @return * possible object is * {@link String } * */ public String getFormula() { return formula; } /** * Sets the value of the formula property. * * @param value * allowed object is * {@link String } * */ public void setFormula(String value) { this.formula = value; } /** * Gets the value of the generated property. * * @return * possible object is * {@link String } * */ public String getGenerated() { if (generated == null) { return "never"; } else { return generated; } } /** * Sets the value of the generated property. * * @param value * allowed object is * {@link String } * */ public void setGenerated(String value) { this.generated = value; } /** * Gets the value of the index property. * * @return * possible object is * {@link String } * */ public String getIndex() { return index; } /** * Sets the value of the index property. * * @param value * allowed object is * {@link String } * */ public void setIndex(String value) { this.index = value; } /** * Gets the value of the insert property. * * @return * possible object is * {@link Boolean } * */ public Boolean isInsert() { return insert; } /** * Sets the value of the insert property. * * @param value * allowed object is * {@link Boolean } * */ public void setInsert(Boolean value) { this.insert = value; } /** * Gets the value of the lazy property. * * @return * possible object is * {@link Boolean } * */ public boolean isLazy() { if (lazy == null) { return false; } else { return lazy; } } /** * Sets the value of the lazy property. * * @param value * allowed object is * {@link Boolean } * */ public void setLazy(Boolean value) { this.lazy = value; } /** * Gets the value of the length property. * * @return * possible object is * {@link String } * */ public String getLength() { return length; } /** * Sets the value of the length property. * * @param value * allowed object is * {@link String } * */ public void setLength(String value) { this.length = value; } /** * 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; } /** * Gets the value of the node property. * * @return * possible object is * {@link String } * */ public String getNode() { return node; } /** * Sets the value of the node property. * * @param value * allowed object is * {@link String } * */ public void setNode(String value) { this.node = value; } /** * Gets the value of the notNull property. * * @return * possible object is * {@link Boolean } * */ public Boolean isNotNull() { return notNull; } /** * Sets the value of the notNull property. * * @param value * allowed object is * {@link Boolean } * */ public void setNotNull(Boolean value) { this.notNull = value; } /** * Gets the value of the optimisticLock property. * * @return * possible object is * {@link Boolean } * */ public boolean isOptimisticLock() { if (optimisticLock == null) { return true; } else { return optimisticLock; } } /** * Sets the value of the optimisticLock property. * * @param value * allowed object is * {@link Boolean } * */ public void setOptimisticLock(Boolean value) { this.optimisticLock = value; } /** * Gets the value of the precision property. * * @return * possible object is * {@link String } * */ public String getPrecision() { return precision; } /** * Sets the value of the precision property. * * @param value * allowed object is * {@link String } * */ public void setPrecision(String value) { this.precision = value; } /** * Gets the value of the scale property. * * @return * possible object is * {@link String } * */ public String getScale() { return scale; } /** * Sets the value of the scale property. * * @param value * allowed object is * {@link String } * */ public void setScale(String value) { this.scale = value; } /** * Gets the value of the typeAttribute property. * * @return * possible object is * {@link String } * */ public String getTypeAttribute() { return typeAttribute; } /** * Sets the value of the typeAttribute property. * * @param value * allowed object is * {@link String } * */ public void setTypeAttribute(String value) { this.typeAttribute = value; } /** * Gets the value of the unique property. * * @return * possible object is * {@link Boolean } * */ public boolean isUnique() { if (unique == null) { return false; } else { return unique; } } /** * Sets the value of the unique property. * * @param value * allowed object is * {@link Boolean } * */ public void setUnique(Boolean value) { this.unique = value; } /** * Gets the value of the uniqueKey property. * * @return * possible object is * {@link String } * */ public String getUniqueKey() { return uniqueKey; } /** * Sets the value of the uniqueKey property. * * @param value * allowed object is * {@link String } * */ public void setUniqueKey(String value) { this.uniqueKey = value; } /** * Gets the value of the update property. * * @return * possible object is * {@link Boolean } * */ public Boolean isUpdate() { return update; } /** * Sets the value of the update property. * * @param value * allowed object is * {@link Boolean } * */ public void setUpdate(Boolean value) { this.update = value; } }