public static enum DBType.DBDatatype extends java.lang.Enum<DBType.DBDatatype>
Enum Constant and 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 |
Modifier and Type | Method and 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.
|
public static final DBType.DBDatatype SMALLINT
public static final DBType.DBDatatype INTEGER
public static final DBType.DBDatatype BIGINT
public static final DBType.DBDatatype REAL
public static final DBType.DBDatatype DOUBLE
public static final DBType.DBDatatype BINARY
public static final DBType.DBDatatype VARBINARY
public static final DBType.DBDatatype CHAR
public static final DBType.DBDatatype VARCHAR
public static final DBType.DBDatatype BLOB
public static final DBType.DBDatatype CLOB
public static final DBType.DBDatatype TIMESTAMP
public static final DBType.DBDatatype POINT
public static final DBType.DBDatatype REGION
public static final DBType.DBDatatype UNKNOWN
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
.
public static DBType.DBDatatype[] values()
for (DBType.DBDatatype c : DBType.DBDatatype.values()) System.out.println(c);
public static DBType.DBDatatype valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<DBType.DBDatatype>
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.
typeName
- User type name.