Class AbstractDatabaseSettingsValidator
java.lang.Object
com.atlassian.crowd.console.action.setup.database.validator.AbstractDatabaseSettingsValidator
- All Implemented Interfaces:
DatabaseSettingsValidator
- Direct Known Subclasses:
MsSQLServerSettingsValidator
,MySQLSettingsValidator
public abstract class AbstractDatabaseSettingsValidator
extends Object
implements DatabaseSettingsValidator
Abstract database validator that depends on an existing
Connection
. Inheritors can make use of this
to execute SQL queries against the database (helper methods provided), to check whether database requirements are met.
This might include checking settings like collation, char_encoding, transaction isolation-level, etc.
This class also delegates provision of end-user messages to a TextProvider
.-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractDatabaseSettingsValidator
(Connection connection, com.opensymphony.xwork2.TextProvider textProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected <R> Optional<R>
executeQuery
(String sql, ThrowingFunction<ResultSet, R> mapper) protected Connection
protected String
protected String
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.crowd.console.action.setup.database.validator.DatabaseSettingsValidator
getErrors
-
Constructor Details
-
AbstractDatabaseSettingsValidator
protected AbstractDatabaseSettingsValidator(Connection connection, com.opensymphony.xwork2.TextProvider textProvider)
-
-
Method Details
-
getConnection
-
executeQuery
-
getText
-
getText
-