public abstract class AbstractDBSpecificValidator extends ValidatorCallbackHelper implements DBSpecificValidator
| Constructor and Description |
|---|
AbstractDBSpecificValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected List |
getColumnNames(ResultSetMetaData metadata) |
protected ComparablePair |
getJDBCDriverVersion(Connection con) |
protected List |
query(Connection con,
String sqlSelect)
Executes a SQL SELECT statement and returns the result as a List of Maps.
|
protected Map |
singletonQuery(Connection con,
String sqlSelect) |
protected void |
sql(Connection con,
String sql)
Simple method for executing any arbitrary statement and ignoring the result (including any success / failure conditions).
|
protected void |
validateJdbcDriverVersion(ValidatorCallback callback,
Connection con,
ComparablePair[] supportedVersions,
String[] urisForMoreInformation) |
endTest, newTopic, progress, startTestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateprotected void sql(Connection con, String sql) throws SQLException
con - The database connection to use (must not be null).sqlSelect - The SQL statement to execute (must not be null, empty or blank).SQLExceptionprotected Map singletonQuery(Connection con, String sqlSelect) throws SQLException
SQLExceptionprotected List query(Connection con, String sqlSelect) throws SQLException
con - The database connection to use (must not be null).sqlSelect - The SQL SELECT statement to execute (must not be null, empty or blank).SQLExceptionprotected List getColumnNames(ResultSetMetaData metadata) throws SQLException
SQLExceptionprotected void validateJdbcDriverVersion(ValidatorCallback callback, Connection con, ComparablePair[] supportedVersions, String[] urisForMoreInformation)
protected ComparablePair getJDBCDriverVersion(Connection con) throws SQLException
SQLExceptionCopyright © 2014. All rights reserved.