Package com.atlassian.confluence.setup
Interface DatabaseVerifier
-
- All Superinterfaces:
DatabaseCollationVerifier
- All Known Implementing Classes:
DefaultDatabaseVerifier
public interface DatabaseVerifier extends DatabaseCollationVerifier
Verify the database connection at setup stage.- Since:
- 6.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method 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, UseverifyDatabase(String, Connection)
insteadvoid
verifyDatasource(String databaseType, String datasourceName)
Deprecated.since 6.5, UseverifyDatabase(String, Connection)
instead-
Methods inherited from interface com.atlassian.confluence.setup.DatabaseCollationVerifier
verifyCollationOfDatabase
-
-
-
-
Method Detail
-
verifyDatabase
void verifyDatabase(String databaseType, Connection connection) throws SQLException, DatabaseVerifyException
Validates the database connection by performing various checks according to the db type e.g., the collation and isolation level for MySQL.- Parameters:
databaseType
- - the database type, such as mssql- Throws:
DatabaseVerifyException
- - indicates the database was not configured properly.SQLException
- - indicates sql error occurs during the verification- Since:
- 6.5
-
verifyDatasource
void verifyDatasource(String databaseType, String datasourceName) throws SQLException, DatabaseVerifyException
Deprecated.since 6.5, UseverifyDatabase(String, Connection)
insteadValidates the given datasource by checking whether a connection can be returned, next checking the collation for MS SQL Server and MySQL.- Parameters:
databaseType
- - the database type, such as mssqldatasourceName
- - the JNDI datasource name input by customer at database setup stage- Throws:
DatabaseVerifyException
- - indicates the database was not configured successfully.SQLException
- - indicates the connection could not be created with the provided details
-
verifyDatabaseDetails
void verifyDatabaseDetails(String databaseType, com.atlassian.config.db.DatabaseDetails databaseDetails) throws SQLException, DatabaseVerifyException
Deprecated.since 6.5, UseverifyDatabase(String, Connection)
insteadValidates the given connection details by checking whether a connection can be returned, next checking the collation for MS SQL Server and MySQL.- Parameters:
databaseType
- - the database type, such as mssqldatabaseDetails
- - the connection details input by customer at database setup stage- Throws:
DatabaseVerifyException
- - indicates the database was not configured successfully using the provided detailsSQLException
- - indicates the connection could not be created with the provided details- See Also:
DatabaseDetails
-
-