Package dev.morphia.mapping.codec
Class LegacyQueryCodec
- java.lang.Object
-
- dev.morphia.mapping.codec.LegacyQueryCodec
-
- All Implemented Interfaces:
org.bson.codecs.Codec<LegacyQuery>
,org.bson.codecs.Decoder<LegacyQuery>
,org.bson.codecs.Encoder<LegacyQuery>
public class LegacyQueryCodec extends Object implements org.bson.codecs.Codec<LegacyQuery>
Defines a codec for Query instances
-
-
Constructor Summary
Constructors Constructor Description LegacyQueryCodec(Mapper mapper)
Creates a codec
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LegacyQuery
decode(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
void
encode(org.bson.BsonWriter writer, LegacyQuery value, org.bson.codecs.EncoderContext encoderContext)
Class<LegacyQuery>
getEncoderClass()
-
-
-
Constructor Detail
-
LegacyQueryCodec
public LegacyQueryCodec(Mapper mapper)
Creates a codec- Parameters:
mapper
- the mapper to use
-
-
Method Detail
-
decode
public LegacyQuery decode(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
- Specified by:
decode
in interfaceorg.bson.codecs.Decoder<LegacyQuery>
-
encode
public void encode(org.bson.BsonWriter writer, LegacyQuery value, org.bson.codecs.EncoderContext encoderContext)
- Specified by:
encode
in interfaceorg.bson.codecs.Encoder<LegacyQuery>
-
getEncoderClass
public Class<LegacyQuery> getEncoderClass()
- Specified by:
getEncoderClass
in interfaceorg.bson.codecs.Encoder<LegacyQuery>
-
-