Class 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  
      • Fields inherited from class org.flywaydb.core.internal.database.base.Connection

        database, jdbcTemplate, originalSchemaNameOrSearchPath
    • 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)  
      • Methods inherited from class org.flywaydb.core.internal.database.base.Connection

        changeCurrentSchemaTo, close, doChangeCurrentSchemaOrSearchPathTo, doGetCurrentSchema, getCurrentSchema, getJdbcConnection, getJdbcTemplate, restoreOriginalState
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • originalDatabaseName

        protected final java.lang.String originalDatabaseName
    • 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 class org.flywaydb.core.internal.database.base.Connection<SQLServerDatabase>
        Throws:
        java.sql.SQLException
      • doRestoreOriginalState

        protected void doRestoreOriginalState()
                                       throws java.sql.SQLException
        Overrides:
        doRestoreOriginalState in class org.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 class org.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 class org.flywaydb.core.internal.database.base.Connection<SQLServerDatabase>
      • isAzureConnection

        public java.lang.Boolean isAzureConnection()