Package adql.db

## Enum DBType.DBDatatype

- java.lang.Object
- - java.lang.Enum<DBType.DBDatatype>
  - - adql.db.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)

- - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---
    `BIGINT` |
    `BINARY` |
    `BLOB` |
    `CHAR` |
    `CLOB` |
    `DOUBLE` |
    `INTEGER` |
    `POINT` |
    `REAL` |
    `REGION` |
    `SMALLINT` |
    `TIMESTAMP` |
    `UNKNOWN` | Type to use when the precise datatype is unknown.
    `UNKNOWN_NUMERIC` | Type to use when the type is known as numeric but there is no precise datatype (e.g.
    `VARBINARY` |
    `VARCHAR` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `setCustomType​(java.lang.String typeName)` | This function lets define the name of the type as provided ONLY FOR `UNKNOWN` and `UNKNOWN_NUMERIC` `DBType.DBDatatype`s.
    `java.lang.String` | `toString()` |
    `static DBType.DBDatatype` | `valueOf​(java.lang.String name)` | Returns the enum constant of this type with the specified name.
    `static DBType.DBDatatype[]` | `values()` | Returns an array containing the constants of this enum type, in the order they are declared.

    - ### Methods inherited from class java.lang.Enum

      `clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf`

    - ### Methods inherited from class java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### Enum Constant Detail

    - #### SMALLINT

          public static final DBType.DBDatatype SMALLINT

    - #### INTEGER

          public static final DBType.DBDatatype INTEGER

    - #### BIGINT

          public static final DBType.DBDatatype BIGINT

    - #### REAL

          public static final DBType.DBDatatype REAL

    - #### DOUBLE

          public static final DBType.DBDatatype DOUBLE

    - #### BINARY

          public static final DBType.DBDatatype BINARY

    - #### VARBINARY

          public static final DBType.DBDatatype VARBINARY

    - #### CHAR

          public static final DBType.DBDatatype CHAR

    - #### VARCHAR

          public static final DBType.DBDatatype VARCHAR

    - #### BLOB

          public static final DBType.DBDatatype BLOB

    - #### CLOB

          public static final DBType.DBDatatype CLOB

    - #### TIMESTAMP

          public static final DBType.DBDatatype TIMESTAMP

    - #### POINT

          public static final DBType.DBDatatype POINT

    - #### REGION

          public static final DBType.DBDatatype REGION

    - #### UNKNOWN

          public static final DBType.DBDatatype UNKNOWN

      Type to use when the precise datatype is unknown.
      Since:
        1.4

    - #### UNKNOWN_NUMERIC

          public static final DBType.DBDatatype UNKNOWN_NUMERIC

      Type to use when the type is known as numeric but there is no precise datatype (e.g. double, float, integer, ...).

      It is particularly used when creating a `DefaultDBColumn` from an ADQL function or operation while listing resulting columns of a sub-query.

      This type is similar to `UNKNOWN`.

      Since:
        1.4

  - ### 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.DBDatatype`s.

      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