java.lang.Object
java.lang.Enum<DataTypeClass>
com.inductiveautomation.ignition.common.sqltags.model.types.DataTypeClass
All Implemented Interfaces:
Serializable, Comparable<DataTypeClass>, Constable

public enum DataTypeClass extends Enum<DataTypeClass>
Represents a "category" of data type, since often in SQLTags we do this based on a broad category- int, float, string or date.

DataSet is included since the type is defined in DataType, though it is not currently used in SQLTags.

  • Enum Constant Details

  • Method Details

    • values

      public static DataTypeClass[] 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 DataTypeClass 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
    • getIntValue

      public int getIntValue()
      Returns the type code for this AlertMode
    • isNumeric

      public boolean isNumeric()
    • getTypeForValue

      public static DataTypeClass getTypeForValue(int val)
      Returns the AlertMode for the given type code. Returns null if there is node defined mode for the given code
    • getJavaType

      public Class<?> getJavaType()
      Gets the java type that would be able to hold a value of this class.
    • getDataType

      public DataType getDataType()
      Returns a datatype capable of handling this type class.
    • getCompatibleType

      public DataTypeClass getCompatibleType(DataTypeClass in)
      Compares the two data type classes and returns the most compatible type