Package adql.db

Enum DBType.DBDatatype

All Implemented Interfaces:
Serializable, Comparable<DBType.DBDatatype>, java.lang.constant.Constable
Enclosing class:
DBType

public static enum DBType.DBDatatype extends Enum<DBType.DBDatatype>
List of all datatypes declared in the IVOA recommendation of TAP (in the section UPLOAD).
Since:
1.3
Version:
1.4 (07/2016)
Author:
Grégory Mantelet (ARI)
  • Enum Constant Details

  • Method Details

    • values

      public static DBType.DBDatatype[] 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 DBType.DBDatatype 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<DBType.DBDatatype>
    • setCustomType

      public void setCustomType(String typeName)

      This function lets define the name of the type as provided ONLY FOR UNKNOWN and UNKNOWN_NUMERIC DBType.DBDatatypes.

      Important: If this DBType.DBDatatype is not UNKNOWN or UNKNOWN_NUMERIC this function has no effect. But if the given name is NULL or empty, no custom type will be set ; instead the default value (i.e. name of the unknown enum item) will be returned.

      Parameters:
      typeName - User type name.
      Since:
      1.4