Class MongoConnection

  • All Implemented Interfaces:
    liquibase.database.DatabaseConnection, liquibase.servicelocator.PrioritizedService

    public class MongoConnection
    extends AbstractNoSqlConnection
    • Field Detail

      • mongoClient

        protected com.mongodb.client.MongoClient mongoClient
      • mongoDatabase

        protected com.mongodb.client.MongoDatabase mongoDatabase
    • Constructor Detail

      • MongoConnection

        public MongoConnection()
    • Method Detail

      • supports

        public boolean supports​(String url)
        Specified by:
        supports in interface liquibase.database.DatabaseConnection
        Specified by:
        supports in class AbstractNoSqlConnection
      • getCatalog

        public String getCatalog()
                          throws liquibase.exception.DatabaseException
        Throws:
        liquibase.exception.DatabaseException
      • getDatabaseProductName

        public String getDatabaseProductName()
                                      throws liquibase.exception.DatabaseException
        Throws:
        liquibase.exception.DatabaseException
      • getURL

        public String getURL()
      • getConnectionUserName

        public String getConnectionUserName()
      • isClosed

        public boolean isClosed()
                         throws liquibase.exception.DatabaseException
        Throws:
        liquibase.exception.DatabaseException
      • open

        public void open​(String url,
                         Driver driverObject,
                         Properties driverProperties)
                  throws liquibase.exception.DatabaseException
        Throws:
        liquibase.exception.DatabaseException
      • close

        public void close()
                   throws liquibase.exception.DatabaseException
        Throws:
        liquibase.exception.DatabaseException