package com.thesecretserver.service;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for DbType.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="DbType">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="AnsiString"/>
* <enumeration value="Binary"/>
* <enumeration value="Byte"/>
* <enumeration value="Boolean"/>
* <enumeration value="Currency"/>
* <enumeration value="Date"/>
* <enumeration value="DateTime"/>
* <enumeration value="Decimal"/>
* <enumeration value="Double"/>
* <enumeration value="Guid"/>
* <enumeration value="Int16"/>
* <enumeration value="Int32"/>
* <enumeration value="Int64"/>
* <enumeration value="Object"/>
* <enumeration value="SByte"/>
* <enumeration value="Single"/>
* <enumeration value="String"/>
* <enumeration value="Time"/>
* <enumeration value="UInt16"/>
* <enumeration value="UInt32"/>
* <enumeration value="UInt64"/>
* <enumeration value="VarNumeric"/>
* <enumeration value="AnsiStringFixedLength"/>
* <enumeration value="StringFixedLength"/>
* <enumeration value="Xml"/>
* <enumeration value="DateTime2"/>
* <enumeration value="DateTimeOffset"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "DbType")
@XmlEnum
public enum DbType {
@XmlEnumValue("AnsiString")
ANSI_STRING("AnsiString"),
@XmlEnumValue("Binary")
BINARY("Binary"),
@XmlEnumValue("Byte")
BYTE("Byte"),
@XmlEnumValue("Boolean")
BOOLEAN("Boolean"),
@XmlEnumValue("Currency")
CURRENCY("Currency"),
@XmlEnumValue("Date")
DATE("Date"),
@XmlEnumValue("DateTime")
DATE_TIME("DateTime"),
@XmlEnumValue("Decimal")
DECIMAL("Decimal"),
@XmlEnumValue("Double")
DOUBLE("Double"),
@XmlEnumValue("Guid")
GUID("Guid"),
@XmlEnumValue("Int16")
INT_16("Int16"),
@XmlEnumValue("Int32")
INT_32("Int32"),
@XmlEnumValue("Int64")
INT_64("Int64"),
@XmlEnumValue("Object")
OBJECT("Object"),
@XmlEnumValue("SByte")
S_BYTE("SByte"),
@XmlEnumValue("Single")
SINGLE("Single"),
@XmlEnumValue("String")
STRING("String"),
@XmlEnumValue("Time")
TIME("Time"),
@XmlEnumValue("UInt16")
U_INT_16("UInt16"),
@XmlEnumValue("UInt32")
U_INT_32("UInt32"),
@XmlEnumValue("UInt64")
U_INT_64("UInt64"),
@XmlEnumValue("VarNumeric")
VAR_NUMERIC("VarNumeric"),
@XmlEnumValue("AnsiStringFixedLength")
ANSI_STRING_FIXED_LENGTH("AnsiStringFixedLength"),
@XmlEnumValue("StringFixedLength")
STRING_FIXED_LENGTH("StringFixedLength"),
@XmlEnumValue("Xml")
XML("Xml"),
@XmlEnumValue("DateTime2")
DATE_TIME_2("DateTime2"),
@XmlEnumValue("DateTimeOffset")
DATE_TIME_OFFSET("DateTimeOffset");
private final String value;
DbType(String v) {
value = v;
}
public String value() {
return value;
}
public static DbType fromValue(String v) {
for (DbType c: DbType.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}