Package com.im.df.util
Enum CTFieldType
- java.lang.Object
-
- java.lang.Enum<CTFieldType>
-
- com.im.df.util.CTFieldType
-
- All Implemented Interfaces:
Serializable
,Comparable<CTFieldType>
public enum CTFieldType extends Enum<CTFieldType>
Type of a chemical term field.- Since:
- 19.24.0
-
-
Field Summary
Fields Modifier and Type Field Description static List<com.im.commons.db.ddl.GenericColumnType>
SUPPORTED_TYPES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CTFieldType
findByGenericType(com.im.commons.db.ddl.GenericColumnType gt)
Class<? extends com.im.df.api.capabilities.DFFieldDataTypeCapability>
getCapabilityClassForType()
Class<?>
getClassForType()
String[]
getDefaultColumnTypes()
Integer[]
getDefaultLengthAndScale()
String
getDisplayName()
com.im.commons.db.ddl.GenericColumnType
getGenericType()
static CTFieldType[]
getOrderForFavourites()
String
getTypeImplConstant()
static CTFieldType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CTFieldType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTEGER
public static final CTFieldType INTEGER
-
TEXT
public static final CTFieldType TEXT
-
DECIMAL
public static final CTFieldType DECIMAL
-
BOOLEAN
public static final CTFieldType BOOLEAN
-
-
Field Detail
-
SUPPORTED_TYPES
public static final List<com.im.commons.db.ddl.GenericColumnType> SUPPORTED_TYPES
-
-
Method Detail
-
values
public static CTFieldType[] 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 (CTFieldType c : CTFieldType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CTFieldType 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
-
getOrderForFavourites
public static CTFieldType[] getOrderForFavourites()
-
findByGenericType
public static CTFieldType findByGenericType(com.im.commons.db.ddl.GenericColumnType gt)
-
getDisplayName
public String getDisplayName()
-
getClassForType
public Class<?> getClassForType()
-
getCapabilityClassForType
public Class<? extends com.im.df.api.capabilities.DFFieldDataTypeCapability> getCapabilityClassForType()
-
getTypeImplConstant
public String getTypeImplConstant()
-
getDefaultColumnTypes
public String[] getDefaultColumnTypes()
-
getDefaultLengthAndScale
public Integer[] getDefaultLengthAndScale()
-
getGenericType
public com.im.commons.db.ddl.GenericColumnType getGenericType()
-
-