public static class ScalarTypeUtilDate.DateType extends ScalarTypeBaseDate<Date>
jdbcNative, jdbcType, type| Constructor and Description |
|---|
ScalarTypeUtilDate.DateType() |
| Modifier and Type | Method and Description |
|---|---|
Date |
convertFromDate(Date ts) |
Date |
convertToDate(Date t) |
Date |
toBeanType(Object value)
Convert the value as necessary to the logical Bean type.
|
Object |
toJdbcType(Object value)
Convert the value as necessary to the JDBC type.
|
bind, formatValue, isDateTimeCapable, jsonFromString, jsonToString, jsonWrite, parse, parseDateTime, read, readData, writeDataaccumulateScalarTypes, format, getDbNullValue, getJdbcType, getLength, getType, isDbNull, isJdbcNative, loadIgnorepublic Date convertFromDate(Date ts)
convertFromDate in class ScalarTypeBaseDate<Date>public Date convertToDate(Date t)
convertToDate in class ScalarTypeBaseDate<Date>public Object toJdbcType(Object value)
ScalarTypeNote that this should also match the type as per the getJdbcType() method.
This is typically used when the matching type is used in a where clause and we use this to ensure it is an appropriate jdbc type.
public Date toBeanType(Object value)
ScalarTypeThe type as per the bean property.
This is used to automatically convert id values (typically from a string to a int, long or UUID).
Copyright © 2014. All Rights Reserved.