| Constructor and Description |
|---|
DBRefCodec(org.bson.codecs.configuration.CodecRegistry registry)
Construct an instance with the given registry, which is used to encode the id of the referenced document.
|
public DBRefCodec(org.bson.codecs.configuration.CodecRegistry registry)
registry - the non-null codec registrypublic void encode(org.bson.BsonWriter writer,
DBRef value,
org.bson.codecs.EncoderContext encoderContext)
encode in interface org.bson.codecs.Encoder<DBRef>public Class<DBRef> getEncoderClass()
getEncoderClass in interface org.bson.codecs.Encoder<DBRef>Copyright © 2017. All rights reserved.