diff --git a/src/main/java/com/avaje/ebean/dbmigration/migration/CreateIndex.java b/src/main/java/com/avaje/ebean/dbmigration/migration/CreateIndex.java new file mode 100644 index 000000000..0a17ea99b --- /dev/null +++ b/src/main/java/com/avaje/ebean/dbmigration/migration/CreateIndex.java @@ -0,0 +1,114 @@ + +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="indexName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="tableName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="columns" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "")
+@XmlRootElement(name = "createIndex")
+public class CreateIndex {
+
+ @XmlAttribute(name = "indexName", required = true)
+ protected String indexName;
+ @XmlAttribute(name = "tableName", required = true)
+ protected String tableName;
+ @XmlAttribute(name = "columns", required = true)
+ protected String columns;
+
+ /**
+ * Gets the value of the indexName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getIndexName() {
+ return indexName;
+ }
+
+ /**
+ * Sets the value of the indexName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setIndexName(String value) {
+ this.indexName = value;
+ }
+
+ /**
+ * Gets the value of the tableName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getTableName() {
+ return tableName;
+ }
+
+ /**
+ * Sets the value of the tableName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setTableName(String value) {
+ this.tableName = 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;
+ }
+
+}
diff --git a/src/main/java/com/avaje/ebean/dbmigration/migration/DropIndex.java b/src/main/java/com/avaje/ebean/dbmigration/migration/DropIndex.java
new file mode 100644
index 000000000..14e97d3a2
--- /dev/null
+++ b/src/main/java/com/avaje/ebean/dbmigration/migration/DropIndex.java
@@ -0,0 +1,87 @@
+
+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="indexName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * <attribute name="tableName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "")
+@XmlRootElement(name = "dropIndex")
+public class DropIndex {
+
+ @XmlAttribute(name = "indexName", required = true)
+ protected String indexName;
+ @XmlAttribute(name = "tableName", required = true)
+ protected String tableName;
+
+ /**
+ * Gets the value of the indexName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getIndexName() {
+ return indexName;
+ }
+
+ /**
+ * Sets the value of the indexName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setIndexName(String value) {
+ this.indexName = value;
+ }
+
+ /**
+ * Gets the value of the tableName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getTableName() {
+ return tableName;
+ }
+
+ /**
+ * Sets the value of the tableName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setTableName(String value) {
+ this.tableName = value;
+ }
+
+}