Package cn.mapway.ui.client.db
Enum DbFieldType
- java.lang.Object
-
- java.lang.Enum<DbFieldType>
-
- cn.mapway.ui.client.db.DbFieldType
-
- All Implemented Interfaces:
Serializable,Comparable<DbFieldType>
public enum DbFieldType extends Enum<DbFieldType>
Shape File 字段类型 0 String 1 Integer 2 Float 3 DateTime 4 Boolean public static final int FLD_TYPE_STRING = 0; public static final int FLD_TYPE_INTEGER = 1; public static final int FLD_TYPE_FLOAT = 2; public static final int FLD_TYPE_DATETIME = 3; public static final int FLD_TYPE_BOOLEAN = 4;
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FLD_TYPE_BIGINTEGERFLD_TYPE_BLOBFLD_TYPE_BOOLEANFLD_TYPE_CLOBFLD_TYPE_CUSTOMFLD_TYPE_DATETIMEFLD_TYPE_FLOATFLD_TYPE_GEOMETRYFLD_TYPE_INTEGERFLD_TYPE_SERIALFLD_TYPE_STRINGFLD_TYPE_STRING_ARRAY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()StringgetName()StringgetUnicode()StringtoString()static DbFieldTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DbFieldTypevalueOfCode(Integer code)static DbFieldType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FLD_TYPE_STRING
public static final DbFieldType FLD_TYPE_STRING
-
FLD_TYPE_INTEGER
public static final DbFieldType FLD_TYPE_INTEGER
-
FLD_TYPE_BIGINTEGER
public static final DbFieldType FLD_TYPE_BIGINTEGER
-
FLD_TYPE_FLOAT
public static final DbFieldType FLD_TYPE_FLOAT
-
FLD_TYPE_DATETIME
public static final DbFieldType FLD_TYPE_DATETIME
-
FLD_TYPE_BOOLEAN
public static final DbFieldType FLD_TYPE_BOOLEAN
-
FLD_TYPE_GEOMETRY
public static final DbFieldType FLD_TYPE_GEOMETRY
-
FLD_TYPE_SERIAL
public static final DbFieldType FLD_TYPE_SERIAL
-
FLD_TYPE_STRING_ARRAY
public static final DbFieldType FLD_TYPE_STRING_ARRAY
-
FLD_TYPE_CLOB
public static final DbFieldType FLD_TYPE_CLOB
-
FLD_TYPE_BLOB
public static final DbFieldType FLD_TYPE_BLOB
-
FLD_TYPE_CUSTOM
public static final DbFieldType FLD_TYPE_CUSTOM
-
-
Method Detail
-
values
public static DbFieldType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DbFieldType c : DbFieldType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DbFieldType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
valueOfCode
public static DbFieldType valueOfCode(Integer code)
-
toString
public String toString()
- Overrides:
toStringin classEnum<DbFieldType>
-
getCode
public int getCode()
-
getName
public String getName()
-
getUnicode
public String getUnicode()
-
-