Class MorphiaReferenceCodec

    • Constructor Detail

      • MorphiaReferenceCodec

        public MorphiaReferenceCodec​(Datastore datastore,
                                     PropertyModel propertyModel)
        Creates a codec
        Parameters:
        datastore - the datastore
        propertyModel - the reference property model
    • Method Detail

      • decode

        public MorphiaReference decode​(org.bson.BsonReader reader,
                                       org.bson.codecs.DecoderContext decoderContext)
        Specified by:
        decode in interface org.bson.codecs.Decoder<MorphiaReference>
      • encode

        public void encode​(org.bson.BsonWriter writer,
                           MorphiaReference value,
                           org.bson.codecs.EncoderContext encoderContext)
        Specified by:
        encode in interface org.bson.codecs.Encoder<MorphiaReference>
      • getEncoderClass

        public Class getEncoderClass()
        Specified by:
        getEncoderClass in interface org.bson.codecs.Encoder<MorphiaReference>