Class SynapseConnection
- java.lang.Object
-
- migratedb.core.internal.database.base.BaseConnection<SQLServerDatabase>
-
- migratedb.core.internal.database.sqlserver.SQLServerConnection
-
- migratedb.core.internal.database.sqlserver.synapse.SynapseConnection
-
- All Implemented Interfaces:
AutoCloseable,Connection<SQLServerDatabase>
public class SynapseConnection extends SQLServerConnection
Azure Synapse connection.
-
-
Field Summary
-
Fields inherited from class migratedb.core.internal.database.sqlserver.SQLServerConnection
originalDatabaseName
-
Fields inherited from class migratedb.core.internal.database.base.BaseConnection
database, jdbcTemplate, originalSchemaNameOrSearchPath
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Schema<?,?>getSchema(String name)Retrieves the schema with this name in the database.<T> Tlock(Table<?,?> table, Callable<T> callable)Locks this table and executes this callable.-
Methods inherited from class migratedb.core.internal.database.sqlserver.SQLServerConnection
doRestoreOriginalState, getCurrentSchemaNameOrSearchPath, getEngineEdition, isAzureConnection
-
Methods inherited from class migratedb.core.internal.database.base.BaseConnection
changeCurrentSchemaTo, close, doChangeCurrentSchemaOrSearchPathTo, doGetCurrentSchema, getCurrentSchema, getJdbcConnection, getJdbcTemplate, restoreOriginalState
-
-
-
-
Method Detail
-
getSchema
public Schema<?,?> getSchema(String name)
Description copied from interface:ConnectionRetrieves the schema with this name in the database.- Specified by:
getSchemain interfaceConnection<SQLServerDatabase>- Overrides:
getSchemain classSQLServerConnection
-
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<SQLServerDatabase>- Overrides:
lockin classSQLServerConnection- Returns:
- The result of the callable.
-
-