Class MySQLConnection
java.lang.Object
migratedb.v1.core.internal.database.base.BaseConnection<MySQLDatabase>
migratedb.v1.core.internal.database.mysql.MySQLConnection
- All Implemented Interfaces:
AutoCloseable,Connection<MySQLDatabase>
- Direct Known Subclasses:
TiDBConnection
-
Field Summary
Fields inherited from class migratedb.v1.core.internal.database.base.BaseConnection
database, jdbcTemplate, originalSchemaNameOrSearchPath -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class migratedb.v1.core.internal.database.base.BaseConnection
changeCurrentSchemaTo, close, getCurrentSchema, getJdbcConnection, getJdbcTemplate, restoreOriginalState
-
Constructor Details
-
MySQLConnection
-
-
Method Details
-
doRestoreOriginalState
- Overrides:
doRestoreOriginalStatein classBaseConnection<MySQLDatabase>- Throws:
SQLException
-
getCurrentSchemaNameOrSearchPath
- Specified by:
getCurrentSchemaNameOrSearchPathin classBaseConnection<MySQLDatabase>- Throws:
SQLException- when the current schema name or search path could not be retrieved.
-
doChangeCurrentSchemaOrSearchPathTo
- Overrides:
doChangeCurrentSchemaOrSearchPathToin classBaseConnection<MySQLDatabase>- Parameters:
schema- The new current schema for this connection.- Throws:
SQLException- when the current schema could not be set.
-
doGetCurrentSchema
- Overrides:
doGetCurrentSchemain classBaseConnection<MySQLDatabase>- Throws:
SQLException
-
getSchema
Description copied from interface:ConnectionRetrieves the schema with this name in the database. -
lock
Description copied from interface:ConnectionLocks this table and executes this callable.- Specified by:
lockin interfaceConnection<MySQLDatabase>- Overrides:
lockin classBaseConnection<MySQLDatabase>- Returns:
- The result of the callable.
-
canUseNamedLockTemplate
protected boolean canUseNamedLockTemplate()
-