Class Helper


  • public class Helper
    extends java.lang.Object
    Created by andrzej on 23.03.2016.
    • Constructor Summary

      Constructors 
      Constructor Description
      Helper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean collectionExists​(com.mongodb.client.MongoDatabase db, java.lang.String collection)  
      static java.lang.String createIndexName​(org.bson.Document index)  
      static void indexCreateOrReplace​(com.mongodb.client.MongoCollection<org.bson.Document> collection, org.bson.Document index, com.mongodb.client.model.IndexOptions options)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Helper

        public Helper()
    • Method Detail

      • collectionExists

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

        public static java.lang.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)