public class ScalarTypeJodaDateTime extends ScalarTypeBaseDateTime<org.joda.time.DateTime>
jdbcNative, jdbcType, type| Constructor and Description |
|---|
ScalarTypeJodaDateTime() |
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.DateTime |
convertFromTimestamp(Timestamp ts) |
Timestamp |
convertToTimestamp(org.joda.time.DateTime t) |
org.joda.time.DateTime |
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 org.joda.time.DateTime convertFromTimestamp(Timestamp ts)
convertFromTimestamp in class ScalarTypeBaseDateTime<org.joda.time.DateTime>public Timestamp convertToTimestamp(org.joda.time.DateTime t)
convertToTimestamp in class ScalarTypeBaseDateTime<org.joda.time.DateTime>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.DateTime 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.