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

io.ebeaninternal.dbmigration.migration.ChangeSet Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
package io.ebeaninternal.dbmigration.migration;

import jakarta.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;


/**
 * 

Java class for anonymous complex type. * *

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

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <choice>
 *           <group ref="{http://ebean-orm.github.io/xml/ns/dbmigration}changeSetChildren" maxOccurs="unbounded" minOccurs="0"/>
 *         </choice>
 *       </sequence>
 *       <attribute name="type" use="required" type="{http://ebean-orm.github.io/xml/ns/dbmigration}changeSetType" />
 *       <attribute name="dropsFor" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="suppressDropsForever" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *       <attribute name="generated" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *       <attribute name="author" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="comment" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
*/ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "changeSetChildren" }) @XmlRootElement(name = "changeSet") public class ChangeSet { @XmlElements({ @XmlElement(name = "configuration", type = Configuration.class), @XmlElement(name = "sql", type = Sql.class), @XmlElement(name = "createSchema", type = CreateSchema.class), @XmlElement(name = "createTable", type = CreateTable.class), @XmlElement(name = "alterTable", type = AlterTable.class), @XmlElement(name = "dropTable", type = DropTable.class), @XmlElement(name = "renameTable", type = RenameTable.class), @XmlElement(name = "addTableComment", type = AddTableComment.class), @XmlElement(name = "addUniqueConstraint", type = AddUniqueConstraint.class), @XmlElement(name = "addHistoryTable", type = AddHistoryTable.class), @XmlElement(name = "dropHistoryTable", type = DropHistoryTable.class), @XmlElement(name = "alterForeignKey", type = AlterForeignKey.class), @XmlElement(name = "addColumn", type = AddColumn.class), @XmlElement(name = "dropColumn", type = DropColumn.class), @XmlElement(name = "alterColumn", type = AlterColumn.class), @XmlElement(name = "renameColumn", type = RenameColumn.class), @XmlElement(name = "createIndex", type = CreateIndex.class), @XmlElement(name = "dropIndex", type = DropIndex.class) }) protected List changeSetChildren; @XmlAttribute(name = "type", required = true) protected ChangeSetType type; @XmlAttribute(name = "dropsFor") protected String dropsFor; @XmlAttribute(name = "suppressDropsForever") protected Boolean suppressDropsForever; @XmlAttribute(name = "generated") protected Boolean generated; @XmlAttribute(name = "author") protected String author; @XmlAttribute(name = "comment") protected String comment; /** * Gets the value of the changeSetChildren 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 Jakarta XML Binding object. * This is why there is not a set method for the changeSetChildren property. * *

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

   *    getChangeSetChildren().add(newItem);
   * 
* * *

* Objects of the following type(s) are allowed in the list * {@link AddColumn } * {@link AddHistoryTable } * {@link AddTableComment } * {@link AddUniqueConstraint } * {@link AlterColumn } * {@link AlterForeignKey } * {@link AlterTable } * {@link Configuration } * {@link CreateIndex } * {@link CreateSchema } * {@link CreateTable } * {@link DropColumn } * {@link DropHistoryTable } * {@link DropIndex } * {@link DropTable } * {@link RenameColumn } * {@link RenameTable } * {@link Sql } */ public List getChangeSetChildren() { if (changeSetChildren == null) { changeSetChildren = new ArrayList<>(); } return this.changeSetChildren; } /** * Gets the value of the type property. * * @return possible object is * {@link ChangeSetType } */ public ChangeSetType getType() { return type; } /** * Sets the value of the type property. * * @param value allowed object is * {@link ChangeSetType } */ public void setType(ChangeSetType value) { this.type = value; } /** * Gets the value of the dropsFor property. * * @return possible object is * {@link String } */ public String getDropsFor() { return dropsFor; } /** * Sets the value of the dropsFor property. * * @param value allowed object is * {@link String } */ public void setDropsFor(String value) { this.dropsFor = value; } /** * Gets the value of the suppressDropsForever property. * * @return possible object is * {@link Boolean } */ public Boolean isSuppressDropsForever() { return suppressDropsForever; } /** * Sets the value of the suppressDropsForever property. * * @param value allowed object is * {@link Boolean } */ public void setSuppressDropsForever(Boolean value) { this.suppressDropsForever = value; } /** * Gets the value of the generated property. * * @return possible object is * {@link Boolean } */ public Boolean isGenerated() { return generated; } /** * Sets the value of the generated property. * * @param value allowed object is * {@link Boolean } */ public void setGenerated(Boolean value) { this.generated = value; } /** * Gets the value of the author property. * * @return possible object is * {@link String } */ public String getAuthor() { return author; } /** * Sets the value of the author property. * * @param value allowed object is * {@link String } */ public void setAuthor(String value) { this.author = value; } /** * Gets the value of the comment property. * * @return possible object is * {@link String } */ public String getComment() { return comment; } /** * Sets the value of the comment property. * * @param value allowed object is * {@link String } */ public void setComment(String value) { this.comment = value; } }