Enum Class DataType

java.lang.Object
java.lang.Enum<DataType>
org.scictrl.csshell.DataType
All Implemented Interfaces:
Serializable, Comparable<DataType>, Constable

public enum DataType extends Enum<DataType>
Enumeration for data types supported by DAL and this broker.
Author:
igor@scictrl.com
  • Enum Constant Details

    • OBJECT

      public static final DataType OBJECT
      Generic object type.
    • OBJECTS

      public static final DataType OBJECTS
      Generic object type, as array.
    • DOUBLE

      public static final DataType DOUBLE
      Double data type.
    • DOUBLES

      public static final DataType DOUBLES
      Double data type, as array.
    • LONG

      public static final DataType LONG
      Long data type.
    • LONGS

      public static final DataType LONGS
      Long data type, as array.
    • STRING

      public static final DataType STRING
      String data type.
    • STRINGS

      public static final DataType STRINGS
      String data type, as array.
    • PATTERN

      public static final DataType PATTERN
      Bit set pattern data type.
    • ENUM

      public static final DataType ENUM
      Enumerated data type.
  • Method Details

    • values

      public static DataType[] 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

      public static DataType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getJavaClass

      public Class<?> getJavaClass()

      Getter for the field javaClass.

      Returns:
      a Class object
    • getPrimitiveType

      public Class<?> getPrimitiveType()

      Getter for the field primitiveType.

      Returns:
      a Class object
    • fromJavaClass

      public static DataType fromJavaClass(Class<?> type)
      Converts Java data type to one of supported Java data types, such as Double, Long, String and similar.
      Parameters:
      type - Java data type
      Returns:
      supported Java data type