Class Helper


  • public class Helper
    extends Object
    Created by andrzej on 23.03.2016.
    • Constructor Detail

      • Helper

        public Helper()
    • Method Detail

      • collectionExists

        public static boolean collectionExists​(com.mongodb.client.MongoDatabase db,
                                               String collection)
      • createIndexName

        public static String createIndexName​(org.bson.Document index)
      • indexCreateOrReplace

        public static void indexCreateOrReplace​(com.mongodb.client.MongoCollection<org.bson.Document> collection,
                                                org.bson.Document index,
                                                com.mongodb.client.model.IndexOptions options)