Package dev.morphia.mapping.codec
Class MorphiaLocalDateTimeCodec
- java.lang.Object
-
- dev.morphia.mapping.codec.MorphiaLocalDateTimeCodec
-
- All Implemented Interfaces:
Codec<LocalDateTime>
,Decoder<LocalDateTime>
,Encoder<LocalDateTime>
public class MorphiaLocalDateTimeCodec extends Object implements Codec<LocalDateTime>
Converts theLocalDateTime
values to and from the zone defined inMapperOptions.getDateStorage()
- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalDateTime
decode(BsonReader reader, DecoderContext decoderContext)
void
encode(BsonWriter writer, LocalDateTime value, EncoderContext encoderContext)
Class<LocalDateTime>
getEncoderClass()
-
-
-
Method Detail
-
decode
public LocalDateTime decode(BsonReader reader, DecoderContext decoderContext)
- Specified by:
decode
in interfaceDecoder<LocalDateTime>
-
encode
public void encode(BsonWriter writer, LocalDateTime value, EncoderContext encoderContext)
- Specified by:
encode
in interfaceEncoder<LocalDateTime>
-
getEncoderClass
public Class<LocalDateTime> getEncoderClass()
- Specified by:
getEncoderClass
in interfaceEncoder<LocalDateTime>
-
-