public abstract class AbstractDatabaseSettingsValidator extends Object implements DatabaseSettingsValidator
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.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDatabaseSettingsValidator(Connection connection,
com.opensymphony.xwork2.TextProvider textProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected <R> Optional<R> |
executeQuery(String sql,
ThrowingFunction<ResultSet,R> mapper) |
protected Connection |
getConnection() |
protected String |
getText(String key) |
protected String |
getText(String key,
List<?> args) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetErrorsprotected AbstractDatabaseSettingsValidator(Connection connection, com.opensymphony.xwork2.TextProvider textProvider)
protected Connection getConnection()
protected <R> Optional<R> executeQuery(String sql, ThrowingFunction<ResultSet,R> mapper)
Copyright © 2024 Atlassian. All rights reserved.