Package dev.morphia.mapping.codec
Class MorphiaLocalDateTimeCodec
- java.lang.Object
-
- dev.morphia.mapping.codec.MorphiaLocalDateTimeCodec
-
- All Implemented Interfaces:
org.bson.codecs.Codec<LocalDateTime>
,org.bson.codecs.Decoder<LocalDateTime>
,org.bson.codecs.Encoder<LocalDateTime>
public class MorphiaLocalDateTimeCodec extends Object implements org.bson.codecs.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(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
void
encode(org.bson.BsonWriter writer, LocalDateTime value, org.bson.codecs.EncoderContext encoderContext)
Class<LocalDateTime>
getEncoderClass()
-
-
-
Method Detail
-
decode
public LocalDateTime decode(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
- Specified by:
decode
in interfaceorg.bson.codecs.Decoder<LocalDateTime>
-
encode
public void encode(org.bson.BsonWriter writer, LocalDateTime value, org.bson.codecs.EncoderContext encoderContext)
- Specified by:
encode
in interfaceorg.bson.codecs.Encoder<LocalDateTime>
-
getEncoderClass
public Class<LocalDateTime> getEncoderClass()
- Specified by:
getEncoderClass
in interfaceorg.bson.codecs.Encoder<LocalDateTime>
-
-