Class DefaultSchemaPermittingMSSQLDatabase

java.lang.Object
liquibase.database.AbstractJdbcDatabase
liquibase.database.core.MSSQLDatabase
com.peterphi.std.guice.liquibase.hibernate.DefaultSchemaPermittingMSSQLDatabase
All Implemented Interfaces:
liquibase.database.Database, liquibase.servicelocator.PrioritizedService

public final class DefaultSchemaPermittingMSSQLDatabase extends liquibase.database.core.MSSQLDatabase
Extension to liquibase MSSQLDatabase that bypasses the prohibition on changing the default schema name
  • Nested Class Summary

    Nested classes/interfaces inherited from class liquibase.database.core.MSSQLDatabase

    liquibase.database.core.MSSQLDatabase.MSSQL_SERVER_VERSIONS
  • Field Summary

    Fields inherited from class liquibase.database.core.MSSQLDatabase

    MSSQL_DEFAULT_TCP_PORT, PRODUCT_NAME, systemTablesAndViews

    Fields inherited from class liquibase.database.AbstractJdbcDatabase

    caseSensitive, currentDateTimeFunction, dateFunctions, defaultAutoIncrementBy, defaultAutoIncrementStartWith, defaultCatalogName, defaultSchemaName, quotingStrategy, sequenceCurrentValueFunction, sequenceNextValueFunction, unmodifiableDataTypes, unquotedObjectsAreUppercased

    Fields inherited from interface liquibase.servicelocator.PrioritizedService

    COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    void
     

    Methods inherited from class liquibase.database.core.MSSQLDatabase

    escapeDataTypeName, escapeObjectName, escapeObjectName, escapeTableName, generateAutoIncrementBy, generateAutoIncrementStartWith, generateDefaultConstraintName, getAutoIncrementByClause, getAutoIncrementClause, getAutoIncrementStartWithClause, getConcatSql, getConnectionSchemaNameCallStatement, getDataTypeMaxParameters, getDateLiteral, getDefaultCatalogName, getDefaultDatabaseProductName, getDefaultDriver, getDefaultFractionalDigitsForTimestamp, getDefaultPort, getDefaultScaleForNativeDataType, getEngineEdition, getJdbcSchemaName, getQuotingEndCharacter, getQuotingEndReplacement, getQuotingStartCharacter, getShortName, getSystemTables, getSystemViews, getViewDefinition, isAzureDb, isCaseSensitive, isCorrectDatabaseImplementation, isSystemObject, sendsStringParametersAsUnicode, supportsCatalogInObjectName, supportsDropTableCascadeConstraints, supportsInitiallyDeferrableColumns, supportsRestrictForeignKeys, supportsSequences, supportsTablespaces, unescapeDataTypeName, unescapeDataTypeString

    Methods inherited from class liquibase.database.AbstractJdbcDatabase

    addReservedWords, canCreateChangeLogTable, close, commit, correctObjectName, correctSchema, correctSchema, createsIndexesForForeignKeys, dataTypeIsNotModifiable, disableForeignKeyChecks, doesTagExist, dropDatabaseObjects, enableForeignKeyChecks, equals, escapeColumnName, escapeColumnName, escapeColumnNameList, escapeConstraintName, escapeIndexName, escapeSequenceName, escapeStringForDatabase, escapeViewName, execute, executeRollbackStatements, executeRollbackStatements, executeStatements, filterRollbackVisitors, generateDatabaseFunctionValue, generatePrimaryKeyName, get, getAutoCommitMode, getAutoIncrementClause, getAutoIncrementClause, getAutoIncrementClosing, getAutoIncrementOpening, getConnection, getConnectionCatalogName, getConnectionSchemaName, getContainingObjects, getCurrentDateTimeFunction, getDatabaseChangeLogLockTableName, getDatabaseChangeLogTableName, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseProductName, getDatabaseProductVersion, getDateFunctions, getDateLiteral, getDateLiteral, getDateTimeLiteral, getDefaultSchema, getDefaultSchemaName, getFetchSize, getJdbcCatalogName, getJdbcCatalogName, getJdbcSchemaName, getLineComment, getLiquibaseCatalogName, getLiquibaseSchemaName, getLiquibaseTablespaceName, getMaxFractionalDigitsForTimestamp, getName, getObjectQuotingStrategy, getOutputDefaultCatalog, getOutputDefaultSchema, getRanChangeSet, getRanChangeSetList, getRanDate, getRunStatus, getSchemaAndCatalogCase, getSchemaFromJdbcInfo, getSystemSchema, getTimeLiteral, hashCode, isAutoCommit, isCurrentTimeFunction, isDateOnly, isDateTime, isDefaultCatalog, isDefaultSchema, isFunction, isLiquibaseObject, isReservedWord, isSafeToRunUpdate, isSystemView, isTimeOnly, isTimestamp, jdbcCallsCatalogsSchemas, markChangeSetExecStatus, mustQuoteObjectName, parseDate, quoteObject, removeRanStatus, requiresExplicitNullForColumns, requiresPassword, requiresUsername, resetInternalState, rollback, saveRollbackStatement, saveStatements, set, setAutoCommit, setCanCacheLiquibaseTableInfo, setCaseSensitive, setConnection, setCurrentDateTimeFunction, setDatabaseChangeLogLockTableName, setDatabaseChangeLogTableName, setDefaultCatalogName, setLiquibaseCatalogName, setLiquibaseSchemaName, setLiquibaseTablespaceName, setObjectQuotingStrategy, setOutputDefaultCatalog, setOutputDefaultSchema, startsWithNumeric, supportsAutoIncrement, supportsBatchUpdates, supportsCatalogs, supportsDDLInTransaction, supportsForeignKeyDisable, supportsNotNullConstraintNames, supportsPrimaryKeyNames, supportsSchemas, tag, toString, validate

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DefaultSchemaPermittingMSSQLDatabase

      public DefaultSchemaPermittingMSSQLDatabase()
  • Method Details

    • setDefaultSchemaName

      public void setDefaultSchemaName(String schemaName)
      Specified by:
      setDefaultSchemaName in interface liquibase.database.Database
      Overrides:
      setDefaultSchemaName in class liquibase.database.core.MSSQLDatabase
    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface liquibase.servicelocator.PrioritizedService
      Overrides:
      getPriority in class liquibase.database.core.MSSQLDatabase