Class TiDBConnection
- java.lang.Object
-
- migratedb.core.internal.database.base.BaseConnection<MySQLDatabase>
-
- migratedb.core.internal.database.mysql.MySQLConnection
-
- migratedb.core.internal.database.mysql.tidb.TiDBConnection
-
- All Implemented Interfaces:
AutoCloseable,Connection<MySQLDatabase>
public class TiDBConnection extends MySQLConnection
-
-
Field Summary
-
Fields inherited from class migratedb.core.internal.database.base.BaseConnection
database, jdbcTemplate, originalSchemaNameOrSearchPath
-
-
Constructor Summary
Constructors Constructor Description TiDBConnection(MySQLDatabase database, Connection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanUseNamedLockTemplate()<T> Tlock(Table<?,?> table, Callable<T> callable)Locks this table and executes this callable.-
Methods inherited from class migratedb.core.internal.database.mysql.MySQLConnection
doChangeCurrentSchemaOrSearchPathTo, doGetCurrentSchema, doRestoreOriginalState, getCurrentSchemaNameOrSearchPath, getSchema
-
Methods inherited from class migratedb.core.internal.database.base.BaseConnection
changeCurrentSchemaTo, close, getCurrentSchema, getJdbcConnection, getJdbcTemplate, restoreOriginalState
-
-
-
-
Constructor Detail
-
TiDBConnection
public TiDBConnection(MySQLDatabase database, Connection connection)
-
-
Method Detail
-
lock
public <T> T lock(Table<?,?> table, Callable<T> callable)
Description copied from interface:ConnectionLocks this table and executes this callable.- Specified by:
lockin interfaceConnection<MySQLDatabase>- Overrides:
lockin classMySQLConnection- Returns:
- The result of the callable.
-
canUseNamedLockTemplate
protected boolean canUseNamedLockTemplate()
- Overrides:
canUseNamedLockTemplatein classMySQLConnection
-
-