Class TiDBSession
- java.lang.Object
-
- migratedb.v1.core.internal.database.base.BaseSession
-
- migratedb.v1.core.internal.database.mysql.MySQLSession
-
- migratedb.v1.core.internal.database.mysql.tidb.TiDBSession
-
- All Implemented Interfaces:
AutoCloseable,Session
public class TiDBSession extends MySQLSession
-
-
Field Summary
-
Fields inherited from class migratedb.v1.core.internal.database.base.BaseSession
jdbcTemplate, originalSchemaNameOrSearchPath
-
-
Constructor Summary
Constructors Constructor Description TiDBSession(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.v1.core.internal.database.mysql.MySQLSession
doChangeCurrentSchemaOrSearchPathTo, doGetCurrentSchema, doRestoreOriginalState, getCurrentSchemaNameOrSearchPath, getDatabase, getSchema
-
Methods inherited from class migratedb.v1.core.internal.database.base.BaseSession
changeCurrentSchemaTo, close, getCurrentSchema, getJdbcConnection, getJdbcTemplate, restoreOriginalState
-
-
-
-
Constructor Detail
-
TiDBSession
public TiDBSession(MySQLDatabase database, Connection connection)
-
-
Method Detail
-
lock
public <T> T lock(Table table, Callable<T> callable)
Description copied from interface:SessionLocks this table and executes this callable.- Specified by:
lockin interfaceSession- Overrides:
lockin classMySQLSession- Returns:
- The result of the callable.
-
canUseNamedLockTemplate
protected boolean canUseNamedLockTemplate()
- Overrides:
canUseNamedLockTemplatein classMySQLSession
-
-