mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
DB Migration with helper stored procedures (for MySql and SQL Server)
132 lines
2.8 KiB
Java
132 lines
2.8 KiB
Java
package io.ebeaninternal.extraddl.model;
|
|
|
|
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;
|
|
|
|
|
|
/**
|
|
* <p>Java class for anonymous complex type.
|
|
* <p>
|
|
* <p>The following schema fragment specifies the expected content contained within this class.
|
|
* <p>
|
|
* <pre>
|
|
* <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="platforms" type="{http://www.w3.org/2001/XMLSchema}string" />
|
|
* </extension>
|
|
* </simpleContent>
|
|
* </complexType>
|
|
* </pre>
|
|
*/
|
|
@XmlAccessorType(XmlAccessType.FIELD)
|
|
@XmlType(name = "", propOrder = {
|
|
"value"
|
|
})
|
|
@XmlRootElement(name = "ddl-script")
|
|
public class DdlScript {
|
|
|
|
@XmlValue
|
|
protected String value;
|
|
@XmlAttribute(name = "name", required = true)
|
|
protected String name;
|
|
@XmlAttribute(name = "platforms")
|
|
protected String platforms;
|
|
@XmlAttribute(name = "drop")
|
|
protected boolean drop;
|
|
@XmlAttribute(name = "init")
|
|
protected boolean init;
|
|
/**
|
|
* 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 platforms property.
|
|
*
|
|
* @return possible object is
|
|
* {@link String }
|
|
*/
|
|
public String getPlatforms() {
|
|
return platforms;
|
|
}
|
|
|
|
/**
|
|
* Sets the value of the platforms property.
|
|
*
|
|
* @param value allowed object is
|
|
* {@link String }
|
|
*/
|
|
public void setPlatforms(String value) {
|
|
this.platforms = value;
|
|
}
|
|
|
|
/**
|
|
* Return if this a drop script.
|
|
*/
|
|
public boolean isDrop() {
|
|
return drop;
|
|
}
|
|
|
|
/**
|
|
* Sets that this is a drop script.
|
|
*/
|
|
public void setDrop(boolean drop) {
|
|
this.drop = drop;
|
|
}
|
|
|
|
/**
|
|
* Return if this a init script.
|
|
*/
|
|
public boolean isInit() {
|
|
return init;
|
|
}
|
|
|
|
/**
|
|
* Sets that this is a init script.
|
|
*/
|
|
public void setInit(boolean init) {
|
|
this.init = init;
|
|
}
|
|
}
|