Enum Class DbFieldType
- All Implemented Interfaces:
Serializable,Comparable<DbFieldType>,Constable
The enum for supported database field types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic DbFieldTypeabstract List<CompareOperator>Returns a list of compare operators that can be used to compare two values for this field type.abstract StringReturns the name of the Thymeleaf fragments in the 'inputs.html' file, used to render an input field for this specific type.abstract Class<?>Returns the Java class corresponding to this field type.booleanabstract ObjectparseValue(Object value) Parse the value received through an HTML form into a instance of an object of this specific type.static DbFieldTypeReturns the enum constant of this class with the specified name.static DbFieldType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SHORT
-
BIG_INTEGER
-
INTEGER
-
DOUBLE
-
LONG
-
FLOAT
-
OFFSET_DATE_TIME
-
DATE
-
LOCAL_DATE
-
LOCAL_DATE_TIME
-
STRING
-
TEXT
-
BOOLEAN
-
BIG_DECIMAL
-
CHAR
-
BYTE
-
BYTE_ARRAY
-
UUID
-
ONE_TO_MANY
-
ONE_TO_ONE
-
MANY_TO_MANY
-
COMPUTED
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getFragmentName
Returns the name of the Thymeleaf fragments in the 'inputs.html' file, used to render an input field for this specific type. For example, a fragment using a file input is used for binary fields. -
parseValue
Parse the value received through an HTML form into a instance of an object of this specific type. This usually involves a conversion from string, but, for example, files are sent as MultipartFile instead.- Parameters:
value- the value to parse- Returns:
-
getJavaClass
Returns the Java class corresponding to this field type.- Returns:
-
getCompareOperators
Returns a list of compare operators that can be used to compare two values for this field type. Used in the faceted search to provide more operators than just equality (e.g. after/before for dates).- Returns:
-
isRelationship
public boolean isRelationship() -
fromClass
-