Class DefaultDatabaseVerifier

    • Constructor Detail

      • DefaultDatabaseVerifier

        public DefaultDatabaseVerifier()
    • Method Detail

      • setBootstrapManager

        public void setBootstrapManager​(BootstrapManager bootstrapManager)
      • verifyDatasource

        public void verifyDatasource​(String databaseType,
                                     String datasourceName)
                              throws SQLException,
                                     DatabaseVerifyException
        Description copied from interface: DatabaseVerifier
        Validates the given datasource by checking whether a connection can be returned, next checking the collation for MS SQL Server and MySQL.
        Specified by:
        verifyDatasource in interface DatabaseVerifier
        Parameters:
        databaseType - - the database type, such as mssql
        datasourceName - - the JNDI datasource name input by customer at database setup stage
        Throws:
        SQLException - - indicates the connection could not be created with the provided details
        DatabaseVerifyException - - indicates the database was not configured successfully.
      • verifyDatabaseDetails

        public void verifyDatabaseDetails​(String databaseType,
                                          com.atlassian.config.db.DatabaseDetails databaseDetails)
                                   throws SQLException,
                                          DatabaseVerifyException
        Description copied from interface: DatabaseVerifier
        Validates the given connection details by checking whether a connection can be returned, next checking the collation for MS SQL Server and MySQL.
        Specified by:
        verifyDatabaseDetails in interface DatabaseVerifier
        Parameters:
        databaseType - - the database type, such as mssql
        databaseDetails - - the connection details input by customer at database setup stage
        Throws:
        SQLException - - indicates the connection could not be created with the provided details
        DatabaseVerifyException - - indicates the database was not configured successfully using the provided details
        See Also:
        DatabaseDetails