org.plasma.runtime.SequenceConfiguration Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.03.20 at 04:25:57 PM MST
//
package org.plasma.runtime;
import java.math.BigDecimal;
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 SequenceConfiguration complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="SequenceConfiguration">
* <complexContent>
* <extension base="{http://www.plasma.org/runtime}Configuration">
* <attribute name="generatorClassName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="prefix" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="suffix" type="{http://www.w3.org/2001/XMLSchema}string" default="_SEQ" />
* <attribute name="minValue" type="{http://www.w3.org/2001/XMLSchema}long" default="1" />
* <attribute name="maxValue" type="{http://www.w3.org/2001/XMLSchema}decimal" default="999999999999999999999999999" />
* <attribute name="startValue" type="{http://www.w3.org/2001/XMLSchema}long" default="1" />
* <attribute name="incrementBy" type="{http://www.w3.org/2001/XMLSchema}long" default="1" />
* <attribute name="cache" type="{http://www.w3.org/2001/XMLSchema}long" default="20" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SequenceConfiguration")
@XmlRootElement(name = "SequenceConfiguration")
public class SequenceConfiguration
extends Configuration
{
@XmlAttribute(name = "generatorClassName", required = true)
protected String generatorClassName;
@XmlAttribute(name = "prefix")
protected String prefix;
@XmlAttribute(name = "suffix")
protected String suffix;
@XmlAttribute(name = "minValue")
protected Long minValue;
@XmlAttribute(name = "maxValue")
protected BigDecimal maxValue;
@XmlAttribute(name = "startValue")
protected Long startValue;
@XmlAttribute(name = "incrementBy")
protected Long incrementBy;
@XmlAttribute(name = "cache")
protected Long cache;
/**
* Gets the value of the generatorClassName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getGeneratorClassName() {
return generatorClassName;
}
/**
* Sets the value of the generatorClassName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setGeneratorClassName(String value) {
this.generatorClassName = value;
}
/**
* Gets the value of the prefix property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPrefix() {
return prefix;
}
/**
* Sets the value of the prefix property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPrefix(String value) {
this.prefix = value;
}
/**
* Gets the value of the suffix property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSuffix() {
if (suffix == null) {
return "_SEQ";
} else {
return suffix;
}
}
/**
* Sets the value of the suffix property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSuffix(String value) {
this.suffix = value;
}
/**
* Gets the value of the minValue property.
*
* @return
* possible object is
* {@link Long }
*
*/
public long getMinValue() {
if (minValue == null) {
return 1L;
} else {
return minValue;
}
}
/**
* Sets the value of the minValue property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setMinValue(Long value) {
this.minValue = value;
}
/**
* Gets the value of the maxValue property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getMaxValue() {
if (maxValue == null) {
return new BigDecimal("999999999999999999999999999");
} else {
return maxValue;
}
}
/**
* Sets the value of the maxValue property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setMaxValue(BigDecimal value) {
this.maxValue = value;
}
/**
* Gets the value of the startValue property.
*
* @return
* possible object is
* {@link Long }
*
*/
public long getStartValue() {
if (startValue == null) {
return 1L;
} else {
return startValue;
}
}
/**
* Sets the value of the startValue property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setStartValue(Long value) {
this.startValue = value;
}
/**
* Gets the value of the incrementBy property.
*
* @return
* possible object is
* {@link Long }
*
*/
public long getIncrementBy() {
if (incrementBy == null) {
return 1L;
} else {
return incrementBy;
}
}
/**
* Sets the value of the incrementBy property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setIncrementBy(Long value) {
this.incrementBy = value;
}
/**
* Gets the value of the cache property.
*
* @return
* possible object is
* {@link Long }
*
*/
public long getCache() {
if (cache == null) {
return 20L;
} else {
return cache;
}
}
/**
* Sets the value of the cache property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setCache(Long value) {
this.cache = value;
}
}