public class DefaultDbIntegrityValidatorImpl extends Object implements DbIntegrityValidator
DbIntegrityValidator.| Modifier and Type | Field and Description |
|---|---|
protected String |
query
SQL statement to generate the validation value.
|
| Constructor and Description |
|---|
DefaultDbIntegrityValidatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
store(Connection connection)
Generates the validator value for a new database.
|
void |
validate(Connection connection)
Checks the validation value for an existing database.
|
protected String query
public void store(Connection connection) throws SQLException
store in interface DbIntegrityValidatorconnection - connection to the databaseSQLException - if there is any connection errorpublic void validate(Connection connection) throws EntitlementException, SQLException
validate in interface DbIntegrityValidatorconnection - connection to the databaseEntitlementException - if the validation failsSQLException - if there is any connection errorCopyright © 2019 CrafterCMS. All rights reserved.