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.XmlElement; 007import javax.xml.bind.annotation.XmlRootElement; 008import javax.xml.bind.annotation.XmlType; 009import java.util.ArrayList; 010import java.util.List; 011 012 013/** 014 * <p>Java class for anonymous complex type. 015 * 016 * <p>The following schema fragment specifies the expected content contained within this class. 017 * 018 * <pre> 019 * <complexType> 020 * <complexContent> 021 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 022 * <sequence> 023 * <element ref="{http://ebean-orm.github.io/xml/ns/dbmigration}column" maxOccurs="unbounded"/> 024 * </sequence> 025 * <attribute name="tableName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 026 * <attribute name="withHistory" type="{http://www.w3.org/2001/XMLSchema}boolean" /> 027 * </restriction> 028 * </complexContent> 029 * </complexType> 030 * </pre> 031 */ 032@XmlAccessorType(XmlAccessType.FIELD) 033@XmlType(name = "", propOrder = { 034 "column" 035}) 036@XmlRootElement(name = "addColumn") 037public class AddColumn { 038 039 @XmlElement(required = true) 040 protected List<Column> column; 041 @XmlAttribute(name = "tableName", required = true) 042 protected String tableName; 043 @XmlAttribute(name = "withHistory") 044 protected Boolean withHistory; 045 046 /** 047 * Gets the value of the column property. 048 * 049 * <p> 050 * This accessor method returns a reference to the live list, 051 * not a snapshot. Therefore any modification you make to the 052 * returned list will be present inside the JAXB object. 053 * This is why there is not a <CODE>set</CODE> method for the column property. 054 * 055 * <p> 056 * For example, to add a new item, do as follows: 057 * <pre> 058 * getColumn().add(newItem); 059 * </pre> 060 * 061 * 062 * <p> 063 * Objects of the following type(s) are allowed in the list 064 * {@link Column } 065 */ 066 public List<Column> getColumn() { 067 if (column == null) { 068 column = new ArrayList<>(); 069 } 070 return this.column; 071 } 072 073 /** 074 * Gets the value of the tableName property. 075 * 076 * @return possible object is 077 * {@link String } 078 */ 079 public String getTableName() { 080 return tableName; 081 } 082 083 /** 084 * Sets the value of the tableName property. 085 * 086 * @param value allowed object is 087 * {@link String } 088 */ 089 public void setTableName(String value) { 090 this.tableName = value; 091 } 092 093 /** 094 * Gets the value of the withHistory property. 095 * 096 * @return possible object is 097 * {@link Boolean } 098 */ 099 public Boolean isWithHistory() { 100 return withHistory; 101 } 102 103 /** 104 * Sets the value of the withHistory property. 105 * 106 * @param value allowed object is 107 * {@link Boolean } 108 */ 109 public void setWithHistory(Boolean value) { 110 this.withHistory = value; 111 } 112 113}