public class ScalarTypeJodaLocalDateTime extends ScalarTypeBaseDateTime<org.joda.time.LocalDateTime>
jdbcNative, jdbcType, type| Constructor and Description |
|---|
ScalarTypeJodaLocalDateTime() |
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.LocalDateTime |
convertFromTimestamp(Timestamp ts) |
Timestamp |
convertToTimestamp(org.joda.time.LocalDateTime t) |
org.joda.time.LocalDateTime |
parseDateTime(long systemTimeMillis)
Convert the systemTimeMillis into the appropriate java object.
|
org.joda.time.LocalDateTime |
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.LocalDateTime convertFromTimestamp(Timestamp ts)
convertFromTimestamp in class ScalarTypeBaseDateTime<org.joda.time.LocalDateTime>public Timestamp convertToTimestamp(org.joda.time.LocalDateTime t)
convertToTimestamp in class ScalarTypeBaseDateTime<org.joda.time.LocalDateTime>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.LocalDateTime 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.LocalDateTime parseDateTime(long systemTimeMillis)
ScalarTypeFor non dateTime types this will throw an exception.
parseDateTime in interface ScalarType<org.joda.time.LocalDateTime>parseDateTime in class ScalarTypeBaseDateTime<org.joda.time.LocalDateTime>Copyright © 2014. All Rights Reserved.