Package adql.db
Enum Class DBType.DBDatatype
- All Implemented Interfaces:
Serializable
,Comparable<DBType.DBDatatype>
,Constable
- Enclosing class:
DBType
List of all datatypes declared in the IVOA recommendation of TAP (in the section UPLOAD).
- Since:
- 1.3
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvoid
setCustomType
(String typeName) This function lets define the name of the type as provided ONLY FORUNKNOWN
andUNKNOWN_NUMERIC
DBType.DBDatatype
s.toString()
static DBType.DBDatatype
Returns the enum constant of this class with the specified name.static DBType.DBDatatype[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SMALLINT
-
INTEGER
-
BIGINT
-
REAL
-
DOUBLE
-
BINARY
-
VARBINARY
-
CHAR
-
VARCHAR
-
BLOB
-
CLOB
-
TIMESTAMP
-
POINT
-
CIRCLE
- Since:
- 2.0
-
POLYGON
- Since:
- 2.0
-
REGION
-
UNKNOWN
Type to use when the precise datatype is unknown.- Since:
- 1.4
-
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 Details
-
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
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 nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<DBType.DBDatatype>
-
setCustomType
This function lets define the name of the type as provided ONLY FOR
UNKNOWN
andUNKNOWN_NUMERIC
DBType.DBDatatype
s.Important: If this
DBType.DBDatatype
is notUNKNOWN
orUNKNOWN_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
-