public class LongToTimestampConverter extends Object implements ScalarTypeConverter<Long,Timestamp>
| Constructor and Description |
|---|
LongToTimestampConverter() |
| Modifier and Type | Method and Description |
|---|---|
Long |
getNullValue()
Return the value to represent null.
|
Timestamp |
unwrapValue(Long beanType)
Convert the value object into a scalar value that Ebean knows how to
persist.
|
Long |
wrapValue(Timestamp scalarType)
Convert the scalar type value into the value object.
|
public Long getNullValue()
ScalarTypeConvertergetNullValue in interface ScalarTypeConverter<Long,Timestamp>public Timestamp unwrapValue(Long beanType)
ScalarTypeConverterThis typically occurs when Ebean is persisting the value object to the data store.
unwrapValue in interface ScalarTypeConverter<Long,Timestamp>beanType - the value objectpublic Long wrapValue(Timestamp scalarType)
ScalarTypeConverterThis typically occurs when Ebean reads the value from a resultSet or other data source.
wrapValue in interface ScalarTypeConverter<Long,Timestamp>scalarType - the value from the data sourceCopyright © 2014. All Rights Reserved.