public interface DatabaseVerifier extends DatabaseCollationVerifier
Modifier and Type | Method and Description |
---|---|
void |
verifyDatabase(String databaseType,
Connection connection)
Validates the database connection by performing various checks according to the db type
e.g., the collation and isolation level for MySQL.
|
void |
verifyDatabaseDetails(String databaseType,
com.atlassian.config.db.DatabaseDetails databaseDetails)
Deprecated.
since 6.5, Use
verifyDatabase(String, Connection) instead |
void |
verifyDatasource(String databaseType,
String datasourceName)
Deprecated.
since 6.5, Use
verifyDatabase(String, Connection) instead |
verifyCollationOfDatabase
void verifyDatabase(String databaseType, Connection connection) throws SQLException, DatabaseVerifyException
databaseType
- - the database type, such as mssqlDatabaseVerifyException
- - indicates the database was not configured properly.SQLException
- - indicates sql error occurs during the verificationvoid verifyDatasource(String databaseType, String datasourceName) throws SQLException, DatabaseVerifyException
verifyDatabase(String, Connection)
insteaddatabaseType
- - the database type, such as mssqldatasourceName
- - the JNDI datasource name input by customer at database setup stageDatabaseVerifyException
- - indicates the database was not configured successfully.SQLException
- - indicates the connection could not be created with the provided detailsvoid verifyDatabaseDetails(String databaseType, com.atlassian.config.db.DatabaseDetails databaseDetails) throws SQLException, DatabaseVerifyException
verifyDatabase(String, Connection)
insteaddatabaseType
- - the database type, such as mssqldatabaseDetails
- - the connection details input by customer at database setup stageDatabaseVerifyException
- - indicates the database was not configured successfully using the provided detailsSQLException
- - indicates the connection could not be created with the provided detailsDatabaseDetails
Copyright © 2003–2021 Atlassian. All rights reserved.