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