public class ScalarTypeJodaLocalDate extends ScalarTypeBaseDate<org.joda.time.LocalDate>
jdbcNative, jdbcType, type| Constructor and Description |
|---|
ScalarTypeJodaLocalDate() |
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.LocalDate |
convertFromDate(Date ts) |
Date |
convertToDate(org.joda.time.LocalDate t) |
org.joda.time.LocalDate |
parseDateTime(long systemTimeMillis)
Convert the systemTimeMillis into the appropriate java object.
|
org.joda.time.LocalDate |
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, read, readData, writeDataaccumulateScalarTypes, format, getDbNullValue, getJdbcType, getLength, getType, isDbNull, isJdbcNative, loadIgnorepublic org.joda.time.LocalDate convertFromDate(Date ts)
convertFromDate in class ScalarTypeBaseDate<org.joda.time.LocalDate>public Date convertToDate(org.joda.time.LocalDate t)
convertToDate in class ScalarTypeBaseDate<org.joda.time.LocalDate>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 org.joda.time.LocalDate 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).
public org.joda.time.LocalDate parseDateTime(long systemTimeMillis)
ScalarTypeFor non dateTime types this will throw an exception.
parseDateTime in interface ScalarType<org.joda.time.LocalDate>parseDateTime in class ScalarTypeBaseDate<org.joda.time.LocalDate>Copyright © 2014. All Rights Reserved.