public class TimestampType extends Object implements TypeHelper<Timestamp>
| 限定符和类型 | 字段和说明 |
|---|---|
static TimestampType |
INSTANCE |
| 限定符和类型 | 方法和说明 |
|---|---|
Timestamp |
asTimestamp(Number value) |
Timestamp |
asTimestamp(String value,
Calendar calendar) |
Timestamp |
asTimestamp(Timestamp value,
Calendar calendar) |
Timestamp |
fromValue(Object value,
Map<String,Object> conversionParams)
Returns an Object as an equivalent instance of type T
|
String |
getTypeName()
Indicative name of the type T
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitobjectConversionException, stringConversionException, valueOutOfRangeExceptionpublic static final TimestampType INSTANCE
public Timestamp fromValue(Object value, Map<String,Object> conversionParams) throws SQLException
TypeHelperfromValue 在接口中 TypeHelper<Timestamp>value - Object instance to convertconversionParams - Optional parameters to use for conversionSQLException - if there is a problem in carrying out the conversionpublic Timestamp asTimestamp(Timestamp value, Calendar calendar) throws SQLException
SQLExceptionpublic Timestamp asTimestamp(String value, Calendar calendar) throws SQLException
SQLExceptionpublic Timestamp asTimestamp(Number value) throws SQLException
SQLExceptionpublic String getTypeName()
TypeHelpergetTypeName 在接口中 TypeHelper<Timestamp>Copyright © 2022. All rights reserved.