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="constraintName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
020 *       &lt;attribute name="tableName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
021 *       &lt;attribute name="columnNames" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
022 *       &lt;attribute name="oneToOne" type="{http://www.w3.org/2001/XMLSchema}boolean" />
023 *       &lt;attribute name="nullableColumns" type="{http://www.w3.org/2001/XMLSchema}string" />
024 *       &lt;attribute name="platforms" type="{http://www.w3.org/2001/XMLSchema}string" />
025 *     &lt;/restriction>
026 *   &lt;/complexContent>
027 * &lt;/complexType>
028 * </pre>
029 */
030@XmlAccessorType(XmlAccessType.FIELD)
031@XmlType(name = "")
032@XmlRootElement(name = "addUniqueConstraint")
033public class AddUniqueConstraint {
034
035  @XmlAttribute(name = "constraintName", required = true)
036  protected String constraintName;
037  @XmlAttribute(name = "tableName", required = true)
038  protected String tableName;
039  @XmlAttribute(name = "columnNames", required = true)
040  protected String columnNames;
041  @XmlAttribute(name = "oneToOne")
042  protected Boolean oneToOne;
043  @XmlAttribute(name = "nullableColumns")
044  protected String nullableColumns;
045  @XmlAttribute(name = "platforms")
046  protected String platforms;
047
048  /**
049   * Gets the value of the constraintName property.
050   *
051   * @return possible object is
052   * {@link String }
053   */
054  public String getConstraintName() {
055    return constraintName;
056  }
057
058  /**
059   * Sets the value of the constraintName property.
060   *
061   * @param value allowed object is
062   *              {@link String }
063   */
064  public void setConstraintName(String value) {
065    this.constraintName = value;
066  }
067
068  /**
069   * Gets the value of the tableName property.
070   *
071   * @return possible object is
072   * {@link String }
073   */
074  public String getTableName() {
075    return tableName;
076  }
077
078  /**
079   * Sets the value of the tableName property.
080   *
081   * @param value allowed object is
082   *              {@link String }
083   */
084  public void setTableName(String value) {
085    this.tableName = value;
086  }
087
088  /**
089   * Gets the value of the columnNames property.
090   *
091   * @return possible object is
092   * {@link String }
093   */
094  public String getColumnNames() {
095    return columnNames;
096  }
097
098  /**
099   * Sets the value of the columnNames property.
100   *
101   * @param value allowed object is
102   *              {@link String }
103   */
104  public void setColumnNames(String value) {
105    this.columnNames = value;
106  }
107
108  /**
109   * Gets the value of the oneToOne property.
110   *
111   * @return possible object is
112   * {@link Boolean }
113   */
114  public Boolean isOneToOne() {
115    return oneToOne;
116  }
117
118  /**
119   * Sets the value of the oneToOne property.
120   *
121   * @param value allowed object is
122   *              {@link Boolean }
123   */
124  public void setOneToOne(Boolean value) {
125    this.oneToOne = value;
126  }
127
128  /**
129   * Gets the value of the nullableColumns property.
130   *
131   * @return possible object is
132   * {@link String }
133   */
134  public String getNullableColumns() {
135    return nullableColumns;
136  }
137
138  /**
139   * Sets the value of the nullableColumns property.
140   *
141   * @param value allowed object is
142   *              {@link String }
143   */
144  public void setNullableColumns(String value) {
145    this.nullableColumns = value;
146  }
147
148  /**
149   * Gets the value of the platforms property.
150   *
151   * @return possible object is
152   * {@link String }
153   */
154  public String getPlatforms() {
155    return platforms;
156  }
157
158  /**
159   * Sets the value of the platforms property.
160   *
161   * @param value allowed object is
162   *              {@link String }
163   */
164  public void setPlatforms(String value) {
165    this.platforms = value;
166  }
167
168}