Package com.mongodb
Class DBRefCodec
java.lang.Object
com.mongodb.DBRefCodec
A Codec for DBRef instances.
- Since:
- 3.0
-
Constructor Summary
ConstructorDescriptionDBRefCodec
(CodecRegistry registry) Construct an instance with the given registry, which is used to encode the id of the referenced document. -
Method Summary
Modifier and TypeMethodDescriptiondecode
(BsonReader reader, DecoderContext decoderContext) void
encode
(BsonWriter writer, DBRef value, EncoderContext encoderContext)
-
Constructor Details
-
DBRefCodec
Construct an instance with the given registry, which is used to encode the id of the referenced document.- Parameters:
registry
- the non-null codec registry
-
-
Method Details