public class MySqlTestConnection extends JdbcConnection
| Modifier and Type | Class and Description |
|---|---|
static class |
MySqlTestConnection.MySqlVersion |
JdbcConnection.BlockingMultiResultSetConsumer, JdbcConnection.BlockingResultSetConsumer, JdbcConnection.CallPreparer, JdbcConnection.ConnectionFactory, JdbcConnection.MultiResultSetConsumer, JdbcConnection.Operations, JdbcConnection.ParameterResultSetConsumer, JdbcConnection.ResultSetConsumer, JdbcConnection.ResultSetExtractor<T>, JdbcConnection.ResultSetMapper<T>, JdbcConnection.StatementFactory, JdbcConnection.StatementPreparer| Modifier and Type | Field and Description |
|---|---|
private DatabaseDifferences |
databaseAsserts |
protected static JdbcConnection.ConnectionFactory |
FACTORY |
private MySqlTestConnection.MySqlVersion |
mySqlVersion |
| Constructor and Description |
|---|
MySqlTestConnection(Configuration config)
Create a new instance with the given configuration and connection factory.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addDefaults(Configuration.Builder builder) |
DatabaseDifferences |
databaseAsserts() |
static MySqlTestConnection |
forTestDatabase(String databaseName)
Obtain a connection instance to the named test database.
|
static MySqlTestConnection |
forTestDatabase(String databaseName,
Map<String,Object> urlProperties)
Obtain a connection instance to the named test database.
|
static MySqlTestConnection |
forTestDatabase(String databaseName,
String username,
String password)
Obtain a connection instance to the named test database.
|
MySqlTestConnection.MySqlVersion |
getMySqlVersion() |
String |
getMySqlVersionComment() |
String |
getMySqlVersionString() |
static boolean |
isMySQL5()
Obtain whether the database source is MySQL 5.x or not.
|
static boolean |
isPerconaServer()
Obtain whether the database source is the Percona Server fork.
|
boolean |
isTableIdCaseSensitive() |
call, close, commit, config, connect, connection, connection, connectionString, database, execute, execute, executeWithoutCommitting, getDefaultValue, isConnected, isNullable, isTableUniqueIndexIncluded, parseSqlStatementString, patternBasedFactory, patternBasedFactory, prepareQuery, prepareQuery, prepareQuery, prepareQuery, prepareQueryAndMap, prepareQueryWithBlockingConsumer, prepareUpdate, print, print, query, query, queryAndMap, queryAndMap, querySingleValue, queryWithBlockingConsumer, readAllCatalogNames, readAllSchemaNames, readAllTableNames, readPrimaryKeyNames, readPrimaryKeyOrUniqueIndexNames, readSchema, readTableColumn, readTableNames, readTableUniqueIndices, resolveJdbcType, resolveNativeType, rollback, setAutoCommit, singleResultMapper, tableTypes, usernameprivate DatabaseDifferences databaseAsserts
private MySqlTestConnection.MySqlVersion mySqlVersion
protected static JdbcConnection.ConnectionFactory FACTORY
public MySqlTestConnection(Configuration config)
config - the configuration; may not be nullpublic static MySqlTestConnection forTestDatabase(String databaseName)
databaseName - the name of the test databasepublic static MySqlTestConnection forTestDatabase(String databaseName, Map<String,Object> urlProperties)
databaseName - the name of the test databaseurlProperties - url propertiespublic static MySqlTestConnection forTestDatabase(String databaseName, String username, String password)
databaseName - the name of the test databaseusername - the usernamepassword - the passwordpublic static boolean isMySQL5()
public static boolean isPerconaServer()
protected static void addDefaults(Configuration.Builder builder)
public MySqlTestConnection.MySqlVersion getMySqlVersion()
public String getMySqlVersionString()
public String getMySqlVersionComment()
public boolean isTableIdCaseSensitive()
public DatabaseDifferences databaseAsserts()
Copyright © 2021 JBoss by Red Hat. All rights reserved.