Package adql.db

Enum DBType.DBDatatype

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

    public static enum DBType.DBDatatype
    extends java.lang.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)
    • Method Detail

      • values

        public static DBType.DBDatatype[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DBType.DBDatatype c : DBType.DBDatatype.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DBType.DBDatatype valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • toString

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

        public void setCustomType​(java.lang.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