public class TimeType extends Object implements TypeHelper<Time>
| 限定符和类型 | 方法和说明 |
|---|---|
Time |
asTime(Number value) |
Time |
asTime(String value) |
Time |
asTime(Time value) |
Time |
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 TimeType INSTANCE
public Time fromValue(Object value, Map<String,Object> conversionParams) throws SQLException
TypeHelperfromValue 在接口中 TypeHelper<Time>value - Object instance to convertconversionParams - Optional parameters to use for conversionSQLException - if there is a problem in carrying out the conversionpublic Time asTime(String value) throws SQLException
SQLExceptionpublic String getTypeName()
TypeHelpergetTypeName 在接口中 TypeHelper<Time>Copyright © 2022. All rights reserved.