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

org.hibernate.internal.jaxb.mapping.hbm.JaxbKeyElement 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.04.25 at 10:42:09 AM 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.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 

Java class for key-element complex type. * *

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

 * <complexType name="key-element">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="column" type="{http://www.hibernate.org/xsd/hibernate-mapping}column-element" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="column" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="foreign-key" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="not-null" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *       <attribute name="on-delete" default="noaction">
 *         <simpleType>
 *           <restriction base="{http://www.w3.org/2001/XMLSchema}token">
 *             <enumeration value="cascade"/>
 *             <enumeration value="noaction"/>
 *           </restriction>
 *         </simpleType>
 *       </attribute>
 *       <attribute name="property-ref" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="unique" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *       <attribute name="update" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "key-element", propOrder = { "column" }) public class JaxbKeyElement { protected List column; @XmlAttribute(name = "column") protected String columnAttribute; @XmlAttribute(name = "foreign-key") protected String foreignKey; @XmlAttribute(name = "not-null") protected Boolean notNull; @XmlAttribute(name = "on-delete") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String onDelete; @XmlAttribute(name = "property-ref") protected String propertyRef; @XmlAttribute protected Boolean unique; @XmlAttribute protected Boolean update; /** * Gets the value of the column 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 column property. * *

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

     *    getColumn().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JaxbColumnElement } * * */ public List getColumn() { if (column == null) { column = new ArrayList(); } return this.column; } /** * 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 foreignKey property. * * @return * possible object is * {@link String } * */ public String getForeignKey() { return foreignKey; } /** * Sets the value of the foreignKey property. * * @param value * allowed object is * {@link String } * */ public void setForeignKey(String value) { this.foreignKey = 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 onDelete property. * * @return * possible object is * {@link String } * */ public String getOnDelete() { if (onDelete == null) { return "noaction"; } else { return onDelete; } } /** * Sets the value of the onDelete property. * * @param value * allowed object is * {@link String } * */ public void setOnDelete(String value) { this.onDelete = value; } /** * Gets the value of the propertyRef property. * * @return * possible object is * {@link String } * */ public String getPropertyRef() { return propertyRef; } /** * Sets the value of the propertyRef property. * * @param value * allowed object is * {@link String } * */ public void setPropertyRef(String value) { this.propertyRef = value; } /** * Gets the value of the unique property. * * @return * possible object is * {@link Boolean } * */ public Boolean isUnique() { 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 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; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy