Package org.scictrl.csshell
Enum Class DataType
- All Implemented Interfaces:
Serializable
,Comparable<DataType>
,Constable
Enumeration for data types supported by DAL and this broker.
- Author:
- igor@scictrl.com
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDouble data type.Double data type, as array.Enumerated data type.Long data type.Long data type, as array.Generic object type.Generic object type, as array.Bit set pattern data type.String data type.String data type, as array. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataType
fromJavaClass
(Class<?> type) Converts Java data type to one of supported Java data types, such asDouble
,Long
,String
and similar.Class
<?> Getter for the fieldjavaClass
.Class
<?> Getter for the fieldprimitiveType
.static DataType
Returns the enum constant of this class with the specified name.static DataType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OBJECT
Generic object type. -
OBJECTS
Generic object type, as array. -
DOUBLE
Double data type. -
DOUBLES
Double data type, as array. -
LONG
Long data type. -
LONGS
Long data type, as array. -
STRING
String data type. -
STRINGS
String data type, as array. -
PATTERN
Bit set pattern data type. -
ENUM
Enumerated data type.
-
-
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
-
getJavaClass
Getter for the field
javaClass
.- Returns:
- a
Class
object
-
getPrimitiveType
Getter for the field
primitiveType
.- Returns:
- a
Class
object
-
fromJavaClass
Converts Java data type to one of supported Java data types, such asDouble
,Long
,String
and similar.- Parameters:
type
- Java data type- Returns:
- supported Java data type
-