public class DateConverter extends TypeConverter implements SimpleValueConverter
| Modifier | Constructor and Description |
|---|---|
|
DateConverter()
Creates the Converter.
|
protected |
DateConverter(Class clazz) |
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(Class<?> targetClass,
Object val,
MappedField optionalExtraInfo)
decode the
DBObject and provide the corresponding java (type-safe) object NOTE: optionalExtraInfo might be null |
decode, encode, encode, equals, getMapper, getSupportTypes, hashCode, isSupported, oneOf, oneOfClasses, setMapper, setSupportedTypes, setSupportTypespublic DateConverter()
protected DateConverter(Class clazz)
public Object decode(Class<?> targetClass, Object val, MappedField optionalExtraInfo)
TypeConverterDBObject and provide the corresponding java (type-safe) object decode in class TypeConvertertargetClass - the class to create and populateval - the DBObject to use when populating the new instanceoptionalExtraInfo - the MappedField that contains the metadata useful for decoding