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 * <complexType> 017 * <complexContent> 018 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 019 * <attribute name="oldName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 020 * <attribute name="newName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 021 * <attribute name="tableName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 022 * <attribute name="dataType" type="{http://www.w3.org/2001/XMLSchema}string" /> 023 * </restriction> 024 * </complexContent> 025 * </complexType> 026 * </pre> 027 */ 028@XmlAccessorType(XmlAccessType.FIELD) 029@XmlType(name = "") 030@XmlRootElement(name = "renameColumn") 031public class RenameColumn { 032 033 @XmlAttribute(name = "oldName", required = true) 034 protected String oldName; 035 @XmlAttribute(name = "newName", required = true) 036 protected String newName; 037 @XmlAttribute(name = "tableName", required = true) 038 protected String tableName; 039 @XmlAttribute(name = "dataType") 040 protected String dataType; 041 042 /** 043 * Gets the value of the oldName property. 044 * 045 * @return possible object is 046 * {@link String } 047 */ 048 public String getOldName() { 049 return oldName; 050 } 051 052 /** 053 * Sets the value of the oldName property. 054 * 055 * @param value allowed object is 056 * {@link String } 057 */ 058 public void setOldName(String value) { 059 this.oldName = value; 060 } 061 062 /** 063 * Gets the value of the newName property. 064 * 065 * @return possible object is 066 * {@link String } 067 */ 068 public String getNewName() { 069 return newName; 070 } 071 072 /** 073 * Sets the value of the newName property. 074 * 075 * @param value allowed object is 076 * {@link String } 077 */ 078 public void setNewName(String value) { 079 this.newName = value; 080 } 081 082 /** 083 * Gets the value of the tableName property. 084 * 085 * @return possible object is 086 * {@link String } 087 */ 088 public String getTableName() { 089 return tableName; 090 } 091 092 /** 093 * Sets the value of the tableName property. 094 * 095 * @param value allowed object is 096 * {@link String } 097 */ 098 public void setTableName(String value) { 099 this.tableName = value; 100 } 101 102 /** 103 * Gets the value of the dataType property. 104 * 105 * @return possible object is 106 * {@link String } 107 */ 108 public String getDataType() { 109 return dataType; 110 } 111 112 /** 113 * Sets the value of the dataType property. 114 * 115 * @param value allowed object is 116 * {@link String } 117 */ 118 public void setDataType(String value) { 119 this.dataType = value; 120 } 121 122}