public enum DataType extends Enum<DataType>
| Enum Constant and Description |
|---|
BIGINT |
BINARY |
BOOL |
DOUBLE |
FLOAT |
GEOMETRY |
INT |
JSON |
NCHAR |
NULL |
SMALLINT |
TIMESTAMP |
TINYINT |
UBIGINT |
UINT |
USMALLINT |
UTINYINT |
VARBINARY |
VARCHAR |
| Modifier and Type | Method and Description |
|---|---|
static int |
calculateColumnSize(String typeName,
String precisionType,
int length) |
static Integer |
calculateDecimalDigits(String typeName) |
static DataType |
convertJDBC2DataType(int jdbcType) |
static DataType |
convertTaosType2DataType(int taosType) |
static DataType |
getDataType(String name) |
int |
getJdbcTypeValue() |
int |
getSize() |
int |
getTaosTypeValue() |
String |
getTypeName() |
static DataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataType NULL
public static final DataType BOOL
public static final DataType TINYINT
public static final DataType UTINYINT
public static final DataType USMALLINT
public static final DataType SMALLINT
public static final DataType UINT
public static final DataType INT
public static final DataType UBIGINT
public static final DataType BIGINT
public static final DataType FLOAT
public static final DataType DOUBLE
public static final DataType BINARY
public static final DataType VARCHAR
public static final DataType TIMESTAMP
public static final DataType NCHAR
public static final DataType JSON
public static final DataType VARBINARY
public static final DataType GEOMETRY
public static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
public static DataType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getTypeName()
public int getTaosTypeValue()
public int getJdbcTypeValue()
public int getSize()
public static DataType convertJDBC2DataType(int jdbcType) throws SQLException
SQLExceptionpublic static DataType convertTaosType2DataType(int taosType) throws SQLException
SQLExceptionpublic static int calculateColumnSize(String typeName, String precisionType, int length)
Copyright © 2023. All rights reserved.