org.hibernate.boot.jaxb.hbm.spi.JaxbHbmBasicAttributeType Maven / Gradle / Ivy
Show all versions of hibernate-core Show documentation
//
// 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.01.19 at 06:36:52 PM CET
//
package org.hibernate.boot.jaxb.hbm.spi;
import java.io.Serializable;
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.XmlJavaTypeAdapter;
import org.hibernate.tuple.GenerationTiming;
/**
* Java class for BasicAttributeType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="BasicAttributeType">
* <complexContent>
* <extension base="{http://www.hibernate.org/xsd/orm/hbm}ToolingHintContainer">
* <sequence>
* <choice maxOccurs="unbounded" minOccurs="0">
* <group ref="{http://www.hibernate.org/xsd/orm/hbm}column-or-formula"/>
* </choice>
* <element name="type" type="{http://www.hibernate.org/xsd/orm/hbm}TypeSpecificationType" 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" type="{http://www.hibernate.org/xsd/orm/hbm}GenerationTimingEnum" default="never" />
* <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}int" />
* <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" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BasicAttributeType", propOrder = {
"columnOrFormula",
"type"
})
public class JaxbHbmBasicAttributeType
extends JaxbHbmToolingHintContainer
implements Serializable, SimpleValueTypeInfo, SingularAttributeInfo, ToolingHintContainer, TypeContainer
{
@XmlElements({
@XmlElement(name = "column", type = JaxbHbmColumnType.class),
@XmlElement(name = "formula", type = String.class)
})
protected List columnOrFormula;
protected JaxbHbmTypeSpecificationType type;
@XmlAttribute(name = "access")
protected String access;
@XmlAttribute(name = "column")
protected String columnAttribute;
@XmlAttribute(name = "formula")
protected String formulaAttribute;
@XmlAttribute(name = "generated")
@XmlJavaTypeAdapter(Adapter6 .class)
protected GenerationTiming generated;
@XmlAttribute(name = "index")
protected String index;
@XmlAttribute(name = "insert")
protected Boolean insert;
@XmlAttribute(name = "lazy")
protected Boolean lazy;
@XmlAttribute(name = "length")
protected Integer length;
@XmlAttribute(name = "name", required = true)
protected String name;
@XmlAttribute(name = "node")
protected String node;
@XmlAttribute(name = "not-null")
protected Boolean notNull;
@XmlAttribute(name = "optimistic-lock")
protected Boolean optimisticLock;
@XmlAttribute(name = "precision")
protected String precision;
@XmlAttribute(name = "scale")
protected String scale;
@XmlAttribute(name = "type")
protected String typeAttribute;
@XmlAttribute(name = "unique")
protected Boolean unique;
@XmlAttribute(name = "unique-key")
protected String uniqueKey;
@XmlAttribute(name = "update")
protected Boolean update;
/**
* 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 JaxbHbmColumnType }
* {@link String }
*
*
*/
public List getColumnOrFormula() {
if (columnOrFormula == null) {
columnOrFormula = new ArrayList();
}
return this.columnOrFormula;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link JaxbHbmTypeSpecificationType }
*
*/
public JaxbHbmTypeSpecificationType getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link JaxbHbmTypeSpecificationType }
*
*/
public void setType(JaxbHbmTypeSpecificationType 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 columnAttribute property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getColumnAttribute() {
return columnAttribute;
}
/**
* Sets the value of the columnAttribute property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setColumnAttribute(String value) {
this.columnAttribute = value;
}
/**
* Gets the value of the formulaAttribute property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFormulaAttribute() {
return formulaAttribute;
}
/**
* Sets the value of the formulaAttribute property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFormulaAttribute(String value) {
this.formulaAttribute = value;
}
/**
* Gets the value of the generated property.
*
* @return
* possible object is
* {@link String }
*
*/
public GenerationTiming getGenerated() {
if (generated == null) {
return new Adapter6().unmarshal("never");
} else {
return generated;
}
}
/**
* Sets the value of the generated property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setGenerated(GenerationTiming 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 Integer }
*
*/
public Integer getLength() {
return length;
}
/**
* Sets the value of the length property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setLength(Integer 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;
}
}