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