001package io.ebeaninternal.dbmigration.migration;
002
003import javax.xml.bind.annotation.XmlAccessType;
004import javax.xml.bind.annotation.XmlAccessorType;
005import javax.xml.bind.annotation.XmlAttribute;
006import javax.xml.bind.annotation.XmlRootElement;
007import javax.xml.bind.annotation.XmlType;
008
009
010/**
011 * <p>Java class for anonymous complex type.
012 *
013 * <p>The following schema fragment specifies the expected content contained within this class.
014 *
015 * <pre>
016 * &lt;complexType>
017 *   &lt;complexContent>
018 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
019 *       &lt;attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
020 *       &lt;attribute name="columnNames" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
021 *       &lt;attribute name="oneToOne" type="{http://www.w3.org/2001/XMLSchema}boolean" />
022 *       &lt;attribute name="nullableColumns" type="{http://www.w3.org/2001/XMLSchema}string" />
023 *       &lt;attribute name="platforms" type="{http://www.w3.org/2001/XMLSchema}string" />
024 *     &lt;/restriction>
025 *   &lt;/complexContent>
026 * &lt;/complexType>
027 * </pre>
028 */
029@XmlAccessorType(XmlAccessType.FIELD)
030@XmlType(name = "")
031@XmlRootElement(name = "uniqueConstraint")
032public class UniqueConstraint {
033
034  @XmlAttribute(name = "name", required = true)
035  protected String name;
036  @XmlAttribute(name = "columnNames", required = true)
037  protected String columnNames;
038  @XmlAttribute(name = "oneToOne")
039  protected Boolean oneToOne;
040  @XmlAttribute(name = "nullableColumns")
041  protected String nullableColumns;
042  @XmlAttribute(name = "platforms")
043  protected String platforms;
044
045  /**
046   * Gets the value of the name property.
047   *
048   * @return possible object is
049   * {@link String }
050   */
051  public String getName() {
052    return name;
053  }
054
055  /**
056   * Sets the value of the name property.
057   *
058   * @param value allowed object is
059   *              {@link String }
060   */
061  public void setName(String value) {
062    this.name = value;
063  }
064
065  /**
066   * Gets the value of the columnNames property.
067   *
068   * @return possible object is
069   * {@link String }
070   */
071  public String getColumnNames() {
072    return columnNames;
073  }
074
075  /**
076   * Sets the value of the columnNames property.
077   *
078   * @param value allowed object is
079   *              {@link String }
080   */
081  public void setColumnNames(String value) {
082    this.columnNames = value;
083  }
084
085  /**
086   * Gets the value of the oneToOne property.
087   *
088   * @return possible object is
089   * {@link Boolean }
090   */
091  public Boolean isOneToOne() {
092    return oneToOne;
093  }
094
095  /**
096   * Sets the value of the oneToOne property.
097   *
098   * @param value allowed object is
099   *              {@link Boolean }
100   */
101  public void setOneToOne(Boolean value) {
102    this.oneToOne = value;
103  }
104
105  /**
106   * Gets the value of the nullableColumns property.
107   *
108   * @return possible object is
109   * {@link String }
110   */
111  public String getNullableColumns() {
112    return nullableColumns;
113  }
114
115  /**
116   * Sets the value of the nullableColumns property.
117   *
118   * @param value allowed object is
119   *              {@link String }
120   */
121  public void setNullableColumns(String value) {
122    this.nullableColumns = value;
123  }
124
125  /**
126   * Gets the value of the platforms property.
127   *
128   * @return possible object is
129   * {@link String }
130   */
131  public String getPlatforms() {
132    return platforms;
133  }
134
135  /**
136   * Sets the value of the platforms property.
137   *
138   * @param value allowed object is
139   *              {@link String }
140   */
141  public void setPlatforms(String value) {
142    this.platforms = value;
143  }
144
145}