Package dev.morphia.mapping.codec.pojo
Class EntityDecoder
- java.lang.Object
-
- dev.morphia.mapping.codec.pojo.EntityDecoder
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EntityDecoder(MorphiaCodec<?> morphiaCodec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
decode(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
protected void
decodeModel(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext, MorphiaInstanceCreator instanceCreator, FieldModel model)
protected void
decodeProperties(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext, MorphiaInstanceCreator instanceCreator, EntityModel classModel)
protected org.bson.codecs.Codec<?>
getCodecFromDocument(org.bson.BsonReader reader, boolean useDiscriminator, String discriminatorKey, org.bson.codecs.configuration.CodecRegistry registry, DiscriminatorLookup discriminatorLookup, org.bson.codecs.Codec<?> defaultCodec)
protected MorphiaInstanceCreator
getInstanceCreator(EntityModel classModel)
-
-
-
Constructor Detail
-
EntityDecoder
protected EntityDecoder(MorphiaCodec<?> morphiaCodec)
-
-
Method Detail
-
decode
public Object decode(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
- Specified by:
decode
in interfaceorg.bson.codecs.Decoder<Object>
-
decodeModel
protected void decodeModel(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext, MorphiaInstanceCreator instanceCreator, FieldModel model)
-
decodeProperties
protected void decodeProperties(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext, MorphiaInstanceCreator instanceCreator, EntityModel classModel)
-
getCodecFromDocument
protected org.bson.codecs.Codec<?> getCodecFromDocument(org.bson.BsonReader reader, boolean useDiscriminator, String discriminatorKey, org.bson.codecs.configuration.CodecRegistry registry, DiscriminatorLookup discriminatorLookup, org.bson.codecs.Codec<?> defaultCodec)
-
getInstanceCreator
protected MorphiaInstanceCreator getInstanceCreator(EntityModel classModel)
-
-