public static enum Field.Type extends Enum<Field.Type>
| Enum Constant and Description |
|---|
AUTOID |
BOOL
The type is a simple boolean.
|
CHAR
fixed length
|
DATE
The type is a date-field.
|
DATETIME |
DECIMAL
The type is a decimal value.
|
ENUM |
FILE
The type of the field is file.
|
HAS_MULTIPLE |
HAS_SINGLE |
HYPERLINK
hyperlink
|
INT
The type is a simple integer.
|
LIST
List of values
|
LONG
The type is a decimal value.
|
STRING
The type is a variable character string.
|
TEXT
The type is free-text.
|
UNKNOWN
The type is unknown, this case should raise an exception.
|
USER
The type of the field is user, which basically references a hidden table.
|
XREF_MULTIPLE
Reference to another table, which can contain multiple values.
|
XREF_SINGLE
Reference to another table, which can contain only 1 value.
|
| Modifier and Type | Field and Description |
|---|---|
String |
format_type |
String |
tag
The string-representation of the enumeration-type.
|
| Modifier and Type | Method and Description |
|---|---|
static Field.Type |
getType(int type)
With this method the enumeration-type can be found based on the given int conforming to java.sql.Types
|
static Field.Type |
getType(String tag)
With this method the enumeration-type can be found based on the given string.
|
String |
toString() |
static Field.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Field.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Field.Type UNKNOWN
public static final Field.Type AUTOID
public static final Field.Type BOOL
public static final Field.Type INT
public static final Field.Type LONG
public static final Field.Type DECIMAL
public static final Field.Type STRING
public static final Field.Type CHAR
public static final Field.Type TEXT
public static final Field.Type DATE
public static final Field.Type DATETIME
public static final Field.Type USER
public static final Field.Type FILE
public static final Field.Type ENUM
public static final Field.Type XREF_SINGLE
public static final Field.Type XREF_MULTIPLE
public static final Field.Type HAS_SINGLE
public static final Field.Type HAS_MULTIPLE
public static final Field.Type HYPERLINK
public static final Field.Type LIST
public final String tag
public final String format_type
public static Field.Type[] values()
for (Field.Type c : Field.Type.values()) System.out.println(c);
public static Field.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<Field.Type>public static Field.Type getType(int type)
type - The string-representation of the type.public static Field.Type getType(String tag)
tag - The string-representation of the tag.Copyright © 2015. All Rights Reserved.