Package org.flywaydb.database.sqlserver
Class SQLServerConnection
- java.lang.Object
-
- org.flywaydb.core.internal.database.base.Connection<SQLServerDatabase>
-
- org.flywaydb.database.sqlserver.SQLServerConnection
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Direct Known Subclasses:
SynapseConnection
public class SQLServerConnection extends org.flywaydb.core.internal.database.base.Connection<SQLServerDatabase>
SQL Server connection.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
originalDatabaseName
-
Constructor Summary
Constructors Modifier Constructor Description protected
SQLServerConnection(SQLServerDatabase database, java.sql.Connection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doRestoreOriginalState()
protected java.lang.String
getCurrentSchemaNameOrSearchPath()
SQLServerEngineEdition
getEngineEdition()
org.flywaydb.core.internal.database.base.Schema
getSchema(java.lang.String name)
java.lang.Boolean
isAzureConnection()
<T> T
lock(org.flywaydb.core.internal.database.base.Table table, java.util.concurrent.Callable<T> callable)
-
-
-
Constructor Detail
-
SQLServerConnection
protected SQLServerConnection(SQLServerDatabase database, java.sql.Connection connection)
-
-
Method Detail
-
getCurrentSchemaNameOrSearchPath
protected java.lang.String getCurrentSchemaNameOrSearchPath() throws java.sql.SQLException
- Specified by:
getCurrentSchemaNameOrSearchPath
in classorg.flywaydb.core.internal.database.base.Connection<SQLServerDatabase>
- Throws:
java.sql.SQLException
-
doRestoreOriginalState
protected void doRestoreOriginalState() throws java.sql.SQLException
- Overrides:
doRestoreOriginalState
in classorg.flywaydb.core.internal.database.base.Connection<SQLServerDatabase>
- Throws:
java.sql.SQLException
-
getSchema
public org.flywaydb.core.internal.database.base.Schema getSchema(java.lang.String name)
- Specified by:
getSchema
in classorg.flywaydb.core.internal.database.base.Connection<SQLServerDatabase>
-
lock
public <T> T lock(org.flywaydb.core.internal.database.base.Table table, java.util.concurrent.Callable<T> callable)
- Overrides:
lock
in classorg.flywaydb.core.internal.database.base.Connection<SQLServerDatabase>
-
isAzureConnection
public java.lang.Boolean isAzureConnection()
-
getEngineEdition
public SQLServerEngineEdition getEngineEdition()
-
-