public final class DateConverter extends java.lang.Object implements TypeConverter<java.lang.Long,java.util.Date>
| Constructor and Description |
|---|
DateConverter() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
fromDatabase(java.lang.Long value)
Converts
value of SQLite-compatible type F to type T. |
java.lang.Long |
toDatabase(java.util.Date value)
Converts
value of type T to type F
that is SQLite-compatible. |
public java.util.Date fromDatabase(java.lang.Long value)
TypeConvertervalue of SQLite-compatible type F to type T.fromDatabase in interface TypeConverter<java.lang.Long,java.util.Date>value - the value to convert.public java.lang.Long toDatabase(java.util.Date value)
TypeConvertervalue of type T to type F
that is SQLite-compatible.toDatabase in interface TypeConverter<java.lang.Long,java.util.Date>value - the value to convert.