public class TypeCast extends Object
| 构造器和说明 |
|---|
TypeCast() |
| 限定符和类型 | 方法和说明 |
|---|---|
static com.xxdb.data.Entity |
basicType_db2db(com.xxdb.data.Entity srcEntity,
String targetEntityClassName) |
static com.xxdb.data.Entity |
basicType_java2db(Object srcValue,
String targetEntityClassName) |
static com.xxdb.data.Entity |
basicTypeArr2Vector(Object[] srcValue,
String targetEntityClassName) |
static com.xxdb.data.Entity |
basicTypeCast(Object srcValue,
String targetEntityClassName) |
static String |
castDbString(Object o) |
static Temporal |
castTemporal(Object srcValue,
String targetTemporalClassName) |
static boolean |
CheckedBasicType(String srcEntityClassName,
String targetEntityClassName) |
static boolean |
CheckedDateTime(String srcEntityClassName,
String targetEntityClassName) |
static com.xxdb.data.Entity |
dataTime_java2db(Object srcValue,
String targetEntityClassName) |
static com.xxdb.data.Entity |
dateTime_db2db(com.xxdb.data.Entity srcEntity,
String targetEntityClassName) |
static com.xxdb.data.Entity |
dateTimeArr2Vector(Object[] srcValue,
String targetEntityClassName) |
static com.xxdb.data.Entity |
dateTimeCast(Object srcValue,
String targetEntityClassName) |
static Object |
entity2java(com.xxdb.data.Entity entity,
String targetTemporalClassName) |
static Temporal |
getTemporal(Object value) |
static com.xxdb.data.Entity |
java2db(Object srcValue,
String targetEntityClassName) |
static Object |
nullScalar(com.xxdb.data.Entity.DATA_TYPE type) |
static com.xxdb.data.Entity |
Temporal2dateTime(Temporal srcTemporal,
String srcEntityClassName,
String targetEntityClassName) |
static com.xxdb.data.Entity |
Tempos2dateTime(Object[] srcTempos,
String srcEntityClassName,
String targetEntityClassName) |
public static final int YEAR
public static final int MONTH
public static final int DAY
public static final int HOUR
public static final int MINUTE
public static final int SECOND
public static final int NANO
public static final YearMonth YEARMONTH
public static final LocalTime LOCALTIME
public static final LocalDate LOCALDATE
public static final LocalDateTime LOCALDATETIME
public static com.xxdb.data.Scalar[] NULL
public static Object nullScalar(com.xxdb.data.Entity.DATA_TYPE type) throws SQLException
SQLExceptionpublic static com.xxdb.data.Entity java2db(Object srcValue, String targetEntityClassName) throws IOException
IOExceptionpublic static com.xxdb.data.Entity dateTimeCast(Object srcValue, String targetEntityClassName) throws Exception
Exceptionpublic static com.xxdb.data.Entity basicTypeCast(Object srcValue, String targetEntityClassName) throws IOException
IOExceptionpublic static com.xxdb.data.Entity dataTime_java2db(Object srcValue, String targetEntityClassName) throws IOException
IOExceptionpublic static boolean CheckedDateTime(String srcEntityClassName, String targetEntityClassName) throws IOException
IOExceptionpublic static com.xxdb.data.Entity Tempos2dateTime(Object[] srcTempos, String srcEntityClassName, String targetEntityClassName) throws IOException
IOExceptionpublic static com.xxdb.data.Entity Temporal2dateTime(Temporal srcTemporal, String srcEntityClassName, String targetEntityClassName) throws IOException
IOExceptionpublic static com.xxdb.data.Entity dateTime_db2db(com.xxdb.data.Entity srcEntity,
String targetEntityClassName)
throws Exception
Exceptionpublic static com.xxdb.data.Entity dateTimeArr2Vector(Object[] srcValue, String targetEntityClassName) throws IOException
IOExceptionpublic static boolean CheckedBasicType(String srcEntityClassName, String targetEntityClassName) throws IOException
IOExceptionpublic static com.xxdb.data.Entity basicTypeArr2Vector(Object[] srcValue, String targetEntityClassName) throws IOException
IOExceptionpublic static com.xxdb.data.Entity basicType_db2db(com.xxdb.data.Entity srcEntity,
String targetEntityClassName)
throws IOException
IOExceptionpublic static com.xxdb.data.Entity basicType_java2db(Object srcValue, String targetEntityClassName) throws IOException
IOExceptionpublic static Object entity2java(com.xxdb.data.Entity entity, String targetTemporalClassName) throws Exception
ExceptionCopyright © 2023 dolphindb. All rights reserved.