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