public class DataTypeConverUtil extends Object
| Constructor and Description |
|---|
DataTypeConverUtil() |
| Modifier and Type | Method and Description |
|---|---|
static BigDecimal |
getBigDecimal(int taosType,
Object value) |
static boolean |
getBoolean(int taosType,
Object value) |
static byte |
getByte(int taosType,
Object value,
int columnIndex) |
static byte[] |
getBytes(Object value) |
static Date |
getDate(Object value,
ZoneId zoneId) |
static double |
getDouble(int taosType,
Object value,
int columnIndex,
int timestampPrecision) |
static float |
getFloat(int taosType,
Object value,
int columnIndex) |
static int |
getInt(int taosType,
Object value,
int columnIndex) |
static long |
getLong(int taosType,
Object value,
int columnIndex,
int timestampPrecision) |
static short |
getShort(int taosType,
Object value,
int columnIndex) |
static String |
getString(Object value) |
static Time |
getTime(Object value,
ZoneId zoneId) |
static Object |
parseValue(int type,
Object source,
boolean varcharAsString) |
public static boolean getBoolean(int taosType,
Object value)
throws SQLDataException
SQLDataExceptionpublic static byte getByte(int taosType,
Object value,
int columnIndex)
throws SQLException
SQLExceptionpublic static short getShort(int taosType,
Object value,
int columnIndex)
throws SQLException
SQLExceptionpublic static int getInt(int taosType,
Object value,
int columnIndex)
throws SQLException
SQLExceptionpublic static long getLong(int taosType,
Object value,
int columnIndex,
int timestampPrecision)
throws SQLException
SQLExceptionpublic static float getFloat(int taosType,
Object value,
int columnIndex)
throws SQLException
SQLExceptionpublic static double getDouble(int taosType,
Object value,
int columnIndex,
int timestampPrecision)
throws SQLException
SQLExceptionpublic static byte[] getBytes(Object value) throws SQLException
SQLExceptionpublic static String getString(Object value) throws SQLException
SQLExceptionpublic static BigDecimal getBigDecimal(int taosType, Object value)
public static Object parseValue(int type, Object source, boolean varcharAsString) throws SQLException
SQLExceptionCopyright © 2025. All rights reserved.