Class BsonUtils


  • public final class BsonUtils
    extends Object
    • Field Detail

      • DOCUMENT_CODEC

        public static final org.bson.codecs.DocumentCodec DOCUMENT_CODEC
    • Constructor Detail

      • BsonUtils

        public BsonUtils()
    • Method Detail

      • uuidCodecRegistry

        public static org.bson.codecs.configuration.CodecRegistry uuidCodecRegistry()
      • orEmptyDocument

        public static org.bson.Document orEmptyDocument​(String json)
      • orEmptyList

        public static List<org.bson.Document> orEmptyList​(String json)
      • toJson

        public static String toJson​(org.bson.Document document)
      • toCommand

        public static org.bson.Document toCommand​(String commandName,
                                                  Object commandValue,
                                                  org.bson.Document options)