From 0eddcc30bbe3680331d934f19b3181df1cea9d2f Mon Sep 17 00:00:00 2001 From: Robin Bygrave Date: Mon, 17 Aug 2015 11:42:06 +1200 Subject: [PATCH] #374 - Cleanup - remove unused migration objects --- .../dbmigration/migration/AddForeignKey.java | 143 ------------------ .../migration/CreateDropHistoryTable.java | 60 -------- .../migration/CreateHistoryTable.java | 87 ----------- .../dbmigration/migration/CreateView.java | 116 -------------- .../dbmigration/migration/DropForeignKey.java | 89 ----------- .../ebean/dbmigration/migration/DropView.java | 60 -------- 6 files changed, 555 deletions(-) delete mode 100644 src/main/java/com/avaje/ebean/dbmigration/migration/AddForeignKey.java delete mode 100644 src/main/java/com/avaje/ebean/dbmigration/migration/CreateDropHistoryTable.java delete mode 100644 src/main/java/com/avaje/ebean/dbmigration/migration/CreateHistoryTable.java delete mode 100644 src/main/java/com/avaje/ebean/dbmigration/migration/CreateView.java delete mode 100644 src/main/java/com/avaje/ebean/dbmigration/migration/DropForeignKey.java delete mode 100644 src/main/java/com/avaje/ebean/dbmigration/migration/DropView.java diff --git a/src/main/java/com/avaje/ebean/dbmigration/migration/AddForeignKey.java b/src/main/java/com/avaje/ebean/dbmigration/migration/AddForeignKey.java deleted file mode 100644 index 6a9aac565..000000000 --- a/src/main/java/com/avaje/ebean/dbmigration/migration/AddForeignKey.java +++ /dev/null @@ -1,143 +0,0 @@ - -package com.avaje.ebean.dbmigration.migration; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - *

Java class for anonymous complex type. - * - *

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

- * <complexType>
- *   <simpleContent>
- *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
- *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="columns" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="references" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "value" -}) -@XmlRootElement(name = "addForeignKey") -public class AddForeignKey { - - @XmlValue - protected String value; - @XmlAttribute(name = "name", required = true) - protected String name; - @XmlAttribute(name = "columns", required = true) - protected String columns; - @XmlAttribute(name = "references", required = true) - protected String references; - - /** - * Gets the value of the value property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getValue() { - return value; - } - - /** - * Sets the value of the value property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setValue(String value) { - this.value = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the columns property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getColumns() { - return columns; - } - - /** - * Sets the value of the columns property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setColumns(String value) { - this.columns = value; - } - - /** - * Gets the value of the references property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getReferences() { - return references; - } - - /** - * Sets the value of the references property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setReferences(String value) { - this.references = value; - } - -} diff --git a/src/main/java/com/avaje/ebean/dbmigration/migration/CreateDropHistoryTable.java b/src/main/java/com/avaje/ebean/dbmigration/migration/CreateDropHistoryTable.java deleted file mode 100644 index c3cd8aa8f..000000000 --- a/src/main/java/com/avaje/ebean/dbmigration/migration/CreateDropHistoryTable.java +++ /dev/null @@ -1,60 +0,0 @@ - -package com.avaje.ebean.dbmigration.migration; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

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">
- *       <attribute name="baseTable" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "") -@XmlRootElement(name = "createDropHistoryTable", namespace = "http://ebean-orm.github.io/xml/ns/dbmigration") -public class CreateDropHistoryTable { - - @XmlAttribute(name = "baseTable", required = true) - protected String baseTable; - - /** - * Gets the value of the baseTable property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getBaseTable() { - return baseTable; - } - - /** - * Sets the value of the baseTable property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setBaseTable(String value) { - this.baseTable = value; - } - -} diff --git a/src/main/java/com/avaje/ebean/dbmigration/migration/CreateHistoryTable.java b/src/main/java/com/avaje/ebean/dbmigration/migration/CreateHistoryTable.java deleted file mode 100644 index 2784c4f3a..000000000 --- a/src/main/java/com/avaje/ebean/dbmigration/migration/CreateHistoryTable.java +++ /dev/null @@ -1,87 +0,0 @@ - -package com.avaje.ebean.dbmigration.migration; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

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">
- *       <attribute name="baseTable" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="whenCreatedColumn" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "") -@XmlRootElement(name = "createHistoryTable") -public class CreateHistoryTable { - - @XmlAttribute(name = "baseTable", required = true) - protected String baseTable; - @XmlAttribute(name = "whenCreatedColumn") - protected String whenCreatedColumn; - - /** - * Gets the value of the baseTable property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getBaseTable() { - return baseTable; - } - - /** - * Sets the value of the baseTable property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setBaseTable(String value) { - this.baseTable = value; - } - - /** - * Gets the value of the whenCreatedColumn property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getWhenCreatedColumn() { - return whenCreatedColumn; - } - - /** - * Sets the value of the whenCreatedColumn property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setWhenCreatedColumn(String value) { - this.whenCreatedColumn = value; - } - -} diff --git a/src/main/java/com/avaje/ebean/dbmigration/migration/CreateView.java b/src/main/java/com/avaje/ebean/dbmigration/migration/CreateView.java deleted file mode 100644 index 0eccb5849..000000000 --- a/src/main/java/com/avaje/ebean/dbmigration/migration/CreateView.java +++ /dev/null @@ -1,116 +0,0 @@ - -package com.avaje.ebean.dbmigration.migration; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - *

Java class for anonymous complex type. - * - *

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

- * <complexType>
- *   <simpleContent>
- *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
- *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="replaceIfExists" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "value" -}) -@XmlRootElement(name = "createView") -public class CreateView { - - @XmlValue - protected String value; - @XmlAttribute(name = "name", required = true) - protected String name; - @XmlAttribute(name = "replaceIfExists") - protected Boolean replaceIfExists; - - /** - * Gets the value of the value property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getValue() { - return value; - } - - /** - * Sets the value of the value property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setValue(String value) { - this.value = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the replaceIfExists property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isReplaceIfExists() { - return replaceIfExists; - } - - /** - * Sets the value of the replaceIfExists property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setReplaceIfExists(Boolean value) { - this.replaceIfExists = value; - } - -} diff --git a/src/main/java/com/avaje/ebean/dbmigration/migration/DropForeignKey.java b/src/main/java/com/avaje/ebean/dbmigration/migration/DropForeignKey.java deleted file mode 100644 index a38b15e76..000000000 --- a/src/main/java/com/avaje/ebean/dbmigration/migration/DropForeignKey.java +++ /dev/null @@ -1,89 +0,0 @@ - -package com.avaje.ebean.dbmigration.migration; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - *

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">
- *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "content" -}) -@XmlRootElement(name = "dropForeignKey") -public class DropForeignKey { - - @XmlValue - protected String content; - @XmlAttribute(name = "name", required = true) - protected String name; - - /** - * Gets the value of the content property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getContent() { - return content; - } - - /** - * Sets the value of the content property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setContent(String value) { - this.content = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - -} diff --git a/src/main/java/com/avaje/ebean/dbmigration/migration/DropView.java b/src/main/java/com/avaje/ebean/dbmigration/migration/DropView.java deleted file mode 100644 index 6fd5ad032..000000000 --- a/src/main/java/com/avaje/ebean/dbmigration/migration/DropView.java +++ /dev/null @@ -1,60 +0,0 @@ - -package com.avaje.ebean.dbmigration.migration; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

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">
- *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "") -@XmlRootElement(name = "dropView") -public class DropView { - - @XmlAttribute(name = "name", required = true) - protected String name; - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - -}