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="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 020 * <attribute name="columnNames" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 021 * <attribute name="refColumnNames" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 022 * <attribute name="refTableName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 023 * <attribute name="indexName" type="{http://www.w3.org/2001/XMLSchema}string" /> 024 * <attribute name="onDelete" type="{http://www.w3.org/2001/XMLSchema}string" /> 025 * <attribute name="onUpdate" type="{http://www.w3.org/2001/XMLSchema}string" /> 026 * </restriction> 027 * </complexContent> 028 * </complexType> 029 * </pre> 030 */ 031@XmlAccessorType(XmlAccessType.FIELD) 032@XmlType(name = "") 033@XmlRootElement(name = "foreignKey") 034public class ForeignKey { 035 036 @XmlAttribute(name = "name", required = true) 037 protected String name; 038 @XmlAttribute(name = "columnNames", required = true) 039 protected String columnNames; 040 @XmlAttribute(name = "refColumnNames", required = true) 041 protected String refColumnNames; 042 @XmlAttribute(name = "refTableName", required = true) 043 protected String refTableName; 044 @XmlAttribute(name = "indexName") 045 protected String indexName; 046 @XmlAttribute(name = "onDelete") 047 protected String onDelete; 048 @XmlAttribute(name = "onUpdate") 049 protected String onUpdate; 050 051 /** 052 * Gets the value of the name property. 053 * 054 * @return possible object is 055 * {@link String } 056 */ 057 public String getName() { 058 return name; 059 } 060 061 /** 062 * Sets the value of the name property. 063 * 064 * @param value allowed object is 065 * {@link String } 066 */ 067 public void setName(String value) { 068 this.name = value; 069 } 070 071 /** 072 * Gets the value of the columnNames property. 073 * 074 * @return possible object is 075 * {@link String } 076 */ 077 public String getColumnNames() { 078 return columnNames; 079 } 080 081 /** 082 * Sets the value of the columnNames property. 083 * 084 * @param value allowed object is 085 * {@link String } 086 */ 087 public void setColumnNames(String value) { 088 this.columnNames = value; 089 } 090 091 /** 092 * Gets the value of the refColumnNames property. 093 * 094 * @return possible object is 095 * {@link String } 096 */ 097 public String getRefColumnNames() { 098 return refColumnNames; 099 } 100 101 /** 102 * Sets the value of the refColumnNames property. 103 * 104 * @param value allowed object is 105 * {@link String } 106 */ 107 public void setRefColumnNames(String value) { 108 this.refColumnNames = value; 109 } 110 111 /** 112 * Gets the value of the refTableName property. 113 * 114 * @return possible object is 115 * {@link String } 116 */ 117 public String getRefTableName() { 118 return refTableName; 119 } 120 121 /** 122 * Sets the value of the refTableName property. 123 * 124 * @param value allowed object is 125 * {@link String } 126 */ 127 public void setRefTableName(String value) { 128 this.refTableName = value; 129 } 130 131 /** 132 * Gets the value of the indexName property. 133 * 134 * @return possible object is 135 * {@link String } 136 */ 137 public String getIndexName() { 138 return indexName; 139 } 140 141 /** 142 * Sets the value of the indexName property. 143 * 144 * @param value allowed object is 145 * {@link String } 146 */ 147 public void setIndexName(String value) { 148 this.indexName = value; 149 } 150 151 /** 152 * Gets the value of the onDelete property. 153 * 154 * @return possible object is 155 * {@link String } 156 */ 157 public String getOnDelete() { 158 return onDelete; 159 } 160 161 /** 162 * Sets the value of the onDelete property. 163 * 164 * @param value allowed object is 165 * {@link String } 166 */ 167 public void setOnDelete(String value) { 168 this.onDelete = value; 169 } 170 171 /** 172 * Gets the value of the onUpdate property. 173 * 174 * @return possible object is 175 * {@link String } 176 */ 177 public String getOnUpdate() { 178 return onUpdate; 179 } 180 181 /** 182 * Sets the value of the onUpdate property. 183 * 184 * @param value allowed object is 185 * {@link String } 186 */ 187 public void setOnUpdate(String value) { 188 this.onUpdate = value; 189 } 190 191}