Enum DataType

java.lang.Object
java.lang.Enum<DataType>
com.objectsql.support.DataType
All Implemented Interfaces:
Serializable, Comparable<DataType>, java.lang.constant.Constable

public enum DataType extends Enum<DataType>
  • Enum Constant Details

    • VOID

      public static final DataType VOID
      默认都是String,因为是Http请求!
    • BOOLEAN

      public static final DataType BOOLEAN
    • CHAR

      public static final DataType CHAR
    • BYTE

      public static final DataType BYTE
    • SHORT

      public static final DataType SHORT
    • INTEGER

      public static final DataType INTEGER
    • FLOAT

      public static final DataType FLOAT
    • LONG

      public static final DataType LONG
    • DOUBLE

      public static final DataType DOUBLE
    • DATE

      public static final DataType DATE
    • MAP

      public static final DataType MAP
    • TIMESTAMP

      public static final DataType TIMESTAMP
    • STRING

      public static final DataType STRING
    • OBJECT

      public static final DataType OBJECT
    • BINARY

      public static final DataType BINARY
    • DECIMAL

      public static final DataType DECIMAL
    • UNKNOWN

      public static final DataType UNKNOWN
  • Method Details

    • values

      public static DataType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DataType 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 name
      NullPointerException - if the argument is null
    • getTypes

      public String[] getTypes()
    • setTypes

      public void setTypes(String[] types)
    • getDataType

      public static DataType getDataType(String type)