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; 008import java.util.ArrayList; 009import java.util.List; 010 011 012/** 013 * <p>Java class for anonymous complex type. 014 * 015 * <p>The following schema fragment specifies the expected content contained within this class. 016 * 017 * <pre> 018 * <complexType> 019 * <complexContent> 020 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 021 * <sequence> 022 * <element name="before" type="{http://ebean-orm.github.io/xml/ns/dbmigration}ddl-script" maxOccurs="unbounded" minOccurs="0"/> 023 * <element name="after" type="{http://ebean-orm.github.io/xml/ns/dbmigration}ddl-script" maxOccurs="unbounded" minOccurs="0"/> 024 * </sequence> 025 * <attribute name="columnName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 026 * <attribute name="tableName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 027 * <attribute name="withHistory" type="{http://www.w3.org/2001/XMLSchema}boolean" /> 028 * <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" /> 029 * <attribute name="currentType" type="{http://www.w3.org/2001/XMLSchema}string" /> 030 * <attribute name="defaultValue" type="{http://www.w3.org/2001/XMLSchema}string" /> 031 * <attribute name="currentDefaultValue" type="{http://www.w3.org/2001/XMLSchema}string" /> 032 * <attribute name="notnull" type="{http://www.w3.org/2001/XMLSchema}boolean" /> 033 * <attribute name="currentNotnull" type="{http://www.w3.org/2001/XMLSchema}boolean" /> 034 * <attribute name="comment" type="{http://www.w3.org/2001/XMLSchema}string" /> 035 * <attribute name="historyExclude" type="{http://www.w3.org/2001/XMLSchema}boolean" /> 036 * <attribute name="checkConstraint" type="{http://www.w3.org/2001/XMLSchema}string" /> 037 * <attribute name="checkConstraintName" type="{http://www.w3.org/2001/XMLSchema}string" /> 038 * <attribute name="dropCheckConstraint" type="{http://www.w3.org/2001/XMLSchema}string" /> 039 * <attribute name="unique" type="{http://www.w3.org/2001/XMLSchema}string" /> 040 * <attribute name="uniqueOneToOne" type="{http://www.w3.org/2001/XMLSchema}string" /> 041 * <attribute name="dropUnique" type="{http://www.w3.org/2001/XMLSchema}string" /> 042 * <attribute name="references" type="{http://www.w3.org/2001/XMLSchema}string" /> 043 * <attribute name="foreignKeyName" type="{http://www.w3.org/2001/XMLSchema}string" /> 044 * <attribute name="foreignKeyIndex" type="{http://www.w3.org/2001/XMLSchema}string" /> 045 * <attribute name="foreignKeyOnDelete" type="{http://www.w3.org/2001/XMLSchema}string" /> 046 * <attribute name="foreignKeyOnUpdate" type="{http://www.w3.org/2001/XMLSchema}string" /> 047 * <attribute name="dropForeignKey" type="{http://www.w3.org/2001/XMLSchema}string" /> 048 * <attribute name="dropForeignKeyIndex" type="{http://www.w3.org/2001/XMLSchema}string" /> 049 * </restriction> 050 * </complexContent> 051 * </complexType> 052 * </pre> 053 */ 054@XmlAccessorType(XmlAccessType.FIELD) 055@XmlType(name = "", propOrder = { 056 "before", 057 "after" 058}) 059@XmlRootElement(name = "alterColumn") 060public class AlterColumn { 061 062 protected List<DdlScript> before; 063 protected List<DdlScript> after; 064 @XmlAttribute(name = "columnName", required = true) 065 protected String columnName; 066 @XmlAttribute(name = "tableName", required = true) 067 protected String tableName; 068 @XmlAttribute(name = "withHistory") 069 protected Boolean withHistory; 070 @XmlAttribute(name = "type") 071 protected String type; 072 @XmlAttribute(name = "currentType") 073 protected String currentType; 074 @XmlAttribute(name = "defaultValue") 075 protected String defaultValue; 076 @XmlAttribute(name = "currentDefaultValue") 077 protected String currentDefaultValue; 078 @XmlAttribute(name = "notnull") 079 protected Boolean notnull; 080 @XmlAttribute(name = "currentNotnull") 081 protected Boolean currentNotnull; 082 @XmlAttribute(name = "comment") 083 protected String comment; 084 @XmlAttribute(name = "historyExclude") 085 protected Boolean historyExclude; 086 @XmlAttribute(name = "checkConstraint") 087 protected String checkConstraint; 088 @XmlAttribute(name = "checkConstraintName") 089 protected String checkConstraintName; 090 @XmlAttribute(name = "dropCheckConstraint") 091 protected String dropCheckConstraint; 092 @XmlAttribute(name = "unique") 093 protected String unique; 094 @XmlAttribute(name = "uniqueOneToOne") 095 protected String uniqueOneToOne; 096 @XmlAttribute(name = "dropUnique") 097 protected String dropUnique; 098 @XmlAttribute(name = "references") 099 protected String references; 100 @XmlAttribute(name = "foreignKeyName") 101 protected String foreignKeyName; 102 @XmlAttribute(name = "foreignKeyIndex") 103 protected String foreignKeyIndex; 104 @XmlAttribute(name = "foreignKeyOnDelete") 105 protected String foreignKeyOnDelete; 106 @XmlAttribute(name = "foreignKeyOnUpdate") 107 protected String foreignKeyOnUpdate; 108 @XmlAttribute(name = "dropForeignKey") 109 protected String dropForeignKey; 110 @XmlAttribute(name = "dropForeignKeyIndex") 111 protected String dropForeignKeyIndex; 112 113 /** 114 * Gets the value of the before property. 115 * 116 * <p> 117 * This accessor method returns a reference to the live list, 118 * not a snapshot. Therefore any modification you make to the 119 * returned list will be present inside the JAXB object. 120 * This is why there is not a <CODE>set</CODE> method for the before property. 121 * 122 * <p> 123 * For example, to add a new item, do as follows: 124 * <pre> 125 * getBefore().add(newItem); 126 * </pre> 127 * 128 * 129 * <p> 130 * Objects of the following type(s) are allowed in the list 131 * {@link DdlScript } 132 */ 133 public List<DdlScript> getBefore() { 134 if (before == null) { 135 before = new ArrayList<>(); 136 } 137 return this.before; 138 } 139 140 /** 141 * Gets the value of the after property. 142 * 143 * <p> 144 * This accessor method returns a reference to the live list, 145 * not a snapshot. Therefore any modification you make to the 146 * returned list will be present inside the JAXB object. 147 * This is why there is not a <CODE>set</CODE> method for the after property. 148 * 149 * <p> 150 * For example, to add a new item, do as follows: 151 * <pre> 152 * getAfter().add(newItem); 153 * </pre> 154 * 155 * 156 * <p> 157 * Objects of the following type(s) are allowed in the list 158 * {@link DdlScript } 159 */ 160 public List<DdlScript> getAfter() { 161 if (after == null) { 162 after = new ArrayList<>(); 163 } 164 return this.after; 165 } 166 167 /** 168 * Gets the value of the columnName property. 169 * 170 * @return possible object is 171 * {@link String } 172 */ 173 public String getColumnName() { 174 return columnName; 175 } 176 177 /** 178 * Sets the value of the columnName property. 179 * 180 * @param value allowed object is 181 * {@link String } 182 */ 183 public void setColumnName(String value) { 184 this.columnName = value; 185 } 186 187 /** 188 * Gets the value of the tableName property. 189 * 190 * @return possible object is 191 * {@link String } 192 */ 193 public String getTableName() { 194 return tableName; 195 } 196 197 /** 198 * Sets the value of the tableName property. 199 * 200 * @param value allowed object is 201 * {@link String } 202 */ 203 public void setTableName(String value) { 204 this.tableName = value; 205 } 206 207 /** 208 * Gets the value of the withHistory property. 209 * 210 * @return possible object is 211 * {@link Boolean } 212 */ 213 public Boolean isWithHistory() { 214 return withHistory; 215 } 216 217 /** 218 * Sets the value of the withHistory property. 219 * 220 * @param value allowed object is 221 * {@link Boolean } 222 */ 223 public void setWithHistory(Boolean value) { 224 this.withHistory = value; 225 } 226 227 /** 228 * Gets the value of the type property. 229 * 230 * @return possible object is 231 * {@link String } 232 */ 233 public String getType() { 234 return type; 235 } 236 237 /** 238 * Sets the value of the type property. 239 * 240 * @param value allowed object is 241 * {@link String } 242 */ 243 public void setType(String value) { 244 this.type = value; 245 } 246 247 /** 248 * Gets the value of the currentType property. 249 * 250 * @return possible object is 251 * {@link String } 252 */ 253 public String getCurrentType() { 254 return currentType; 255 } 256 257 /** 258 * Sets the value of the currentType property. 259 * 260 * @param value allowed object is 261 * {@link String } 262 */ 263 public void setCurrentType(String value) { 264 this.currentType = value; 265 } 266 267 /** 268 * Gets the value of the defaultValue property. 269 * 270 * @return possible object is 271 * {@link String } 272 */ 273 public String getDefaultValue() { 274 return defaultValue; 275 } 276 277 /** 278 * Sets the value of the defaultValue property. 279 * 280 * @param value allowed object is 281 * {@link String } 282 */ 283 public void setDefaultValue(String value) { 284 this.defaultValue = value; 285 } 286 287 /** 288 * Gets the value of the currentDefaultValue property. 289 * 290 * @return possible object is 291 * {@link String } 292 */ 293 public String getCurrentDefaultValue() { 294 return currentDefaultValue; 295 } 296 297 /** 298 * Sets the value of the currentDefaultValue property. 299 * 300 * @param value allowed object is 301 * {@link String } 302 */ 303 public void setCurrentDefaultValue(String value) { 304 this.currentDefaultValue = value; 305 } 306 307 /** 308 * Gets the value of the notnull property. 309 * 310 * @return possible object is 311 * {@link Boolean } 312 */ 313 public Boolean isNotnull() { 314 return notnull; 315 } 316 317 /** 318 * Sets the value of the notnull property. 319 * 320 * @param value allowed object is 321 * {@link Boolean } 322 */ 323 public void setNotnull(Boolean value) { 324 this.notnull = value; 325 } 326 327 /** 328 * Gets the value of the currentNotnull property. 329 * 330 * @return possible object is 331 * {@link Boolean } 332 */ 333 public Boolean isCurrentNotnull() { 334 return currentNotnull; 335 } 336 337 /** 338 * Sets the value of the currentNotnull property. 339 * 340 * @param value allowed object is 341 * {@link Boolean } 342 */ 343 public void setCurrentNotnull(Boolean value) { 344 this.currentNotnull = value; 345 } 346 347 /** 348 * Gets the value of the comment property. 349 * 350 * @return possible object is 351 * {@link String } 352 */ 353 public String getComment() { 354 return comment; 355 } 356 357 /** 358 * Sets the value of the comment property. 359 * 360 * @param value allowed object is 361 * {@link String } 362 */ 363 public void setComment(String value) { 364 this.comment = value; 365 } 366 367 /** 368 * Gets the value of the historyExclude property. 369 * 370 * @return possible object is 371 * {@link Boolean } 372 */ 373 public Boolean isHistoryExclude() { 374 return historyExclude; 375 } 376 377 /** 378 * Sets the value of the historyExclude property. 379 * 380 * @param value allowed object is 381 * {@link Boolean } 382 */ 383 public void setHistoryExclude(Boolean value) { 384 this.historyExclude = value; 385 } 386 387 /** 388 * Gets the value of the checkConstraint property. 389 * 390 * @return possible object is 391 * {@link String } 392 */ 393 public String getCheckConstraint() { 394 return checkConstraint; 395 } 396 397 /** 398 * Sets the value of the checkConstraint property. 399 * 400 * @param value allowed object is 401 * {@link String } 402 */ 403 public void setCheckConstraint(String value) { 404 this.checkConstraint = value; 405 } 406 407 /** 408 * Gets the value of the checkConstraintName property. 409 * 410 * @return possible object is 411 * {@link String } 412 */ 413 public String getCheckConstraintName() { 414 return checkConstraintName; 415 } 416 417 /** 418 * Sets the value of the checkConstraintName property. 419 * 420 * @param value allowed object is 421 * {@link String } 422 */ 423 public void setCheckConstraintName(String value) { 424 this.checkConstraintName = value; 425 } 426 427 /** 428 * Gets the value of the dropCheckConstraint property. 429 * 430 * @return possible object is 431 * {@link String } 432 */ 433 public String getDropCheckConstraint() { 434 return dropCheckConstraint; 435 } 436 437 /** 438 * Sets the value of the dropCheckConstraint property. 439 * 440 * @param value allowed object is 441 * {@link String } 442 */ 443 public void setDropCheckConstraint(String value) { 444 this.dropCheckConstraint = value; 445 } 446 447 /** 448 * Gets the value of the unique property. 449 * 450 * @return possible object is 451 * {@link String } 452 */ 453 public String getUnique() { 454 return unique; 455 } 456 457 /** 458 * Sets the value of the unique property. 459 * 460 * @param value allowed object is 461 * {@link String } 462 */ 463 public void setUnique(String value) { 464 this.unique = value; 465 } 466 467 /** 468 * Gets the value of the uniqueOneToOne property. 469 * 470 * @return possible object is 471 * {@link String } 472 */ 473 public String getUniqueOneToOne() { 474 return uniqueOneToOne; 475 } 476 477 /** 478 * Sets the value of the uniqueOneToOne property. 479 * 480 * @param value allowed object is 481 * {@link String } 482 */ 483 public void setUniqueOneToOne(String value) { 484 this.uniqueOneToOne = value; 485 } 486 487 /** 488 * Gets the value of the dropUnique property. 489 * 490 * @return possible object is 491 * {@link String } 492 */ 493 public String getDropUnique() { 494 return dropUnique; 495 } 496 497 /** 498 * Sets the value of the dropUnique property. 499 * 500 * @param value allowed object is 501 * {@link String } 502 */ 503 public void setDropUnique(String value) { 504 this.dropUnique = value; 505 } 506 507 /** 508 * Gets the value of the references property. 509 * 510 * @return possible object is 511 * {@link String } 512 */ 513 public String getReferences() { 514 return references; 515 } 516 517 /** 518 * Sets the value of the references property. 519 * 520 * @param value allowed object is 521 * {@link String } 522 */ 523 public void setReferences(String value) { 524 this.references = value; 525 } 526 527 /** 528 * Gets the value of the foreignKeyName property. 529 * 530 * @return possible object is 531 * {@link String } 532 */ 533 public String getForeignKeyName() { 534 return foreignKeyName; 535 } 536 537 /** 538 * Sets the value of the foreignKeyName property. 539 * 540 * @param value allowed object is 541 * {@link String } 542 */ 543 public void setForeignKeyName(String value) { 544 this.foreignKeyName = value; 545 } 546 547 /** 548 * Gets the value of the foreignKeyIndex property. 549 * 550 * @return possible object is 551 * {@link String } 552 */ 553 public String getForeignKeyIndex() { 554 return foreignKeyIndex; 555 } 556 557 /** 558 * Sets the value of the foreignKeyIndex property. 559 * 560 * @param value allowed object is 561 * {@link String } 562 */ 563 public void setForeignKeyIndex(String value) { 564 this.foreignKeyIndex = value; 565 } 566 567 /** 568 * Gets the value of the foreignKeyOnDelete property. 569 * 570 * @return possible object is 571 * {@link String } 572 */ 573 public String getForeignKeyOnDelete() { 574 return foreignKeyOnDelete; 575 } 576 577 /** 578 * Sets the value of the foreignKeyOnDelete property. 579 * 580 * @param value allowed object is 581 * {@link String } 582 */ 583 public void setForeignKeyOnDelete(String value) { 584 this.foreignKeyOnDelete = value; 585 } 586 587 /** 588 * Gets the value of the foreignKeyOnUpdate property. 589 * 590 * @return possible object is 591 * {@link String } 592 */ 593 public String getForeignKeyOnUpdate() { 594 return foreignKeyOnUpdate; 595 } 596 597 /** 598 * Sets the value of the foreignKeyOnUpdate property. 599 * 600 * @param value allowed object is 601 * {@link String } 602 */ 603 public void setForeignKeyOnUpdate(String value) { 604 this.foreignKeyOnUpdate = value; 605 } 606 607 /** 608 * Gets the value of the dropForeignKey property. 609 * 610 * @return possible object is 611 * {@link String } 612 */ 613 public String getDropForeignKey() { 614 return dropForeignKey; 615 } 616 617 /** 618 * Sets the value of the dropForeignKey property. 619 * 620 * @param value allowed object is 621 * {@link String } 622 */ 623 public void setDropForeignKey(String value) { 624 this.dropForeignKey = value; 625 } 626 627 /** 628 * Gets the value of the dropForeignKeyIndex property. 629 * 630 * @return possible object is 631 * {@link String } 632 */ 633 public String getDropForeignKeyIndex() { 634 return dropForeignKeyIndex; 635 } 636 637 /** 638 * Sets the value of the dropForeignKeyIndex property. 639 * 640 * @param value allowed object is 641 * {@link String } 642 */ 643 public void setDropForeignKeyIndex(String value) { 644 this.dropForeignKeyIndex = value; 645 } 646 647}