Class MongoUtils


  • public class MongoUtils
    extends Object
    Author:
    Andrea Di Cesare
    • Constructor Detail

      • MongoUtils

        public MongoUtils​(com.mongodb.MongoClient client)
    • Method Detail

      • doesDbExist

        public boolean doesDbExist​(String dbName)
      • doesCollectionExist

        public boolean doesCollectionExist​(String dbName,
                                           String collName)
      • createDb

        public void createDb​(String dbName)
      • createCollection

        public void createCollection​(String dbName,
                                     String collName)