Class MorphiaReferenceCodec

    • Constructor Detail

      • MorphiaReferenceCodec

        public MorphiaReferenceCodec​(Datastore datastore,
                                     PropertyModel propertyModel)
        Deprecated, for removal: This API element is subject to removal in a future version.
        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)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        decode in interface org.bson.codecs.Decoder<MorphiaReference>
      • encode

        public Object encode​(@Nullable
                             Object value)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: PropertyHandler
        Encodes the value
        Specified by:
        encode in interface PropertyHandler
        Parameters:
        value - the value
        Returns:
        the encoded value
      • encode

        public void encode​(org.bson.BsonWriter writer,
                           MorphiaReference value,
                           org.bson.codecs.EncoderContext encoderContext)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        encode in interface org.bson.codecs.Encoder<MorphiaReference>
      • getEncoderClass

        public Class getEncoderClass()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        getEncoderClass in interface org.bson.codecs.Encoder<MorphiaReference>