Package com.atlassian.confluence.setup
Interface DatabaseCollationVerifier
- All Known Subinterfaces:
DatabaseVerifier
- All Known Implementing Classes:
DefaultDatabaseVerifier
public interface DatabaseCollationVerifier
Verify the database collation.
- Since:
- 6.13
-
Method Summary
Modifier and TypeMethodDescriptionverifyCollationOfDatabase
(Connection connection, String script, String[] supportedCollations, String docLink) Validates the database collation for a given connection.
-
Method Details
-
verifyCollationOfDatabase
Optional<DatabaseVerificationResult> verifyCollationOfDatabase(Connection connection, String script, String[] supportedCollations, String docLink) throws SQLException Validates the database collation for a given connection.- Parameters:
connection
- the database connection to validate against.script
- the script used to check the collation.supportedCollations
- collations which are supported for the given database.docLink
- link to the Confluence document.- Returns:
- the verification result or empty if successful.
- Throws:
SQLException
- - indicates sql error occurs during the verification
-