Class RedshiftDatabase

  • All Implemented Interfaces:
    liquibase.database.Database, liquibase.servicelocator.PrioritizedService

    public class RedshiftDatabase
    extends liquibase.database.core.PostgresDatabase
    • Nested Class Summary

      • Nested classes/interfaces inherited from class liquibase.database.core.PostgresDatabase

        liquibase.database.core.PostgresDatabase.DbTypes
    • Field Summary

      • Fields inherited from class liquibase.database.core.PostgresDatabase

        MINIMUM_DBMS_MAJOR_VERSION, MINIMUM_DBMS_MINOR_VERSION, PRODUCT_NAME
      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String escapeObjectName​(String objectName, Class<? extends liquibase.structure.DatabaseObject> objectType)  
      protected liquibase.statement.SqlStatement getConnectionSchemaNameCallStatement()  
      String getCurrentDateTimeFunction()  
      protected String getDefaultDatabaseProductName()  
      String getDefaultDriver​(String url)  
      Integer getDefaultPort()  
      int getPriority()  
      String getShortName()  
      boolean isCorrectDatabaseImplementation​(liquibase.database.DatabaseConnection conn)  
      boolean isReservedWord​(String tableName)  
      • Methods inherited from class liquibase.database.core.PostgresDatabase

        correctObjectName, equals, generateAutoIncrementBy, generateAutoIncrementStartWith, generatePrimaryKeyName, getAutoIncrementClause, getAutoIncrementClause, getDatabaseChangeLogLockTableName, getDatabaseChangeLogTableName, getDatabaseFullVersion, getDbType, getMaxFractionalDigitsForTimestamp, getSchemaAndCatalogCase, getSystemViews, hashCode, hasMixedCase, isSystemObject, rollback, setConnection, supportsCatalogInObjectName, supportsInitiallyDeferrableColumns, supportsSequences, supportsTablespaces, unescapeDataTypeName
      • Methods inherited from class liquibase.database.AbstractJdbcDatabase

        addReservedWords, canCreateChangeLogTable, close, commit, correctSchema, correctSchema, createsIndexesForForeignKeys, dataTypeIsNotModifiable, disableForeignKeyChecks, doesTagExist, dropDatabaseObjects, enableForeignKeyChecks, escapeColumnName, escapeColumnName, escapeColumnNameList, escapeConstraintName, escapeDataTypeName, escapeIndexName, escapeObjectName, escapeSequenceName, escapeStringForDatabase, escapeTableName, escapeViewName, execute, executeRollbackStatements, executeRollbackStatements, executeStatements, filterRollbackVisitors, generateDatabaseFunctionValue, get, getAutoCommitMode, getAutoIncrementByClause, getAutoIncrementClause, getAutoIncrementClosing, getAutoIncrementOpening, getAutoIncrementStartWithClause, getConcatSql, getConnection, getConnectionCatalogName, getConnectionSchemaName, getContainingObjects, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseProductName, getDatabaseProductVersion, getDataTypeMaxParameters, getDateFunctions, getDateLiteral, getDateLiteral, getDateLiteral, getDateTimeLiteral, getDefaultCatalogName, getDefaultFractionalDigitsForTimestamp, getDefaultScaleForNativeDataType, getDefaultSchema, getDefaultSchemaName, getFetchSize, getJdbcCatalogName, getJdbcCatalogName, getJdbcSchemaName, getJdbcSchemaName, getLineComment, getLiquibaseCatalogName, getLiquibaseSchemaName, getLiquibaseTablespaceName, getName, getObjectQuotingStrategy, getOutputDefaultCatalog, getOutputDefaultSchema, getQuotingEndCharacter, getQuotingEndReplacement, getQuotingStartCharacter, getRanChangeSet, getRanChangeSetList, getRanDate, getRunStatus, getSchemaFromJdbcInfo, getSystemSchema, getSystemTables, getTimeLiteral, getViewDefinition, isAutoCommit, isCaseSensitive, isDateOnly, isDateTime, isDefaultCatalog, isDefaultSchema, isFunction, isLiquibaseObject, isSafeToRunUpdate, isSystemView, isTimeOnly, isTimestamp, jdbcCallsCatalogsSchemas, markChangeSetExecStatus, mustQuoteObjectName, parseDate, quoteObject, removeRanStatus, requiresExplicitNullForColumns, requiresPassword, requiresUsername, resetInternalState, saveRollbackStatement, saveStatements, set, setAutoCommit, setCanCacheLiquibaseTableInfo, setCaseSensitive, setCurrentDateTimeFunction, setDatabaseChangeLogLockTableName, setDatabaseChangeLogTableName, setDefaultCatalogName, setDefaultSchemaName, setLiquibaseCatalogName, setLiquibaseSchemaName, setLiquibaseTablespaceName, setObjectQuotingStrategy, setOutputDefaultCatalog, setOutputDefaultSchema, startsWithNumeric, supportsAutoIncrement, supportsBatchUpdates, supportsCatalogs, supportsDDLInTransaction, supportsDropTableCascadeConstraints, supportsForeignKeyDisable, supportsNotNullConstraintNames, supportsPrimaryKeyNames, supportsRestrictForeignKeys, supportsSchemas, tag, toString, unescapeDataTypeString, validate
    • Constructor Detail

      • RedshiftDatabase

        public RedshiftDatabase()
    • Method Detail

      • isCorrectDatabaseImplementation

        public boolean isCorrectDatabaseImplementation​(liquibase.database.DatabaseConnection conn)
                                                throws liquibase.exception.DatabaseException
        Specified by:
        isCorrectDatabaseImplementation in interface liquibase.database.Database
        Overrides:
        isCorrectDatabaseImplementation in class liquibase.database.core.PostgresDatabase
        Throws:
        liquibase.exception.DatabaseException
      • getShortName

        public String getShortName()
        Specified by:
        getShortName in interface liquibase.database.Database
        Overrides:
        getShortName in class liquibase.database.core.PostgresDatabase
      • getDefaultDatabaseProductName

        protected String getDefaultDatabaseProductName()
        Overrides:
        getDefaultDatabaseProductName in class liquibase.database.core.PostgresDatabase
      • getPriority

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

        public boolean isReservedWord​(String tableName)
        Specified by:
        isReservedWord in interface liquibase.database.Database
        Overrides:
        isReservedWord in class liquibase.database.core.PostgresDatabase
      • escapeObjectName

        public String escapeObjectName​(String objectName,
                                       Class<? extends liquibase.structure.DatabaseObject> objectType)
        Specified by:
        escapeObjectName in interface liquibase.database.Database
        Overrides:
        escapeObjectName in class liquibase.database.core.PostgresDatabase
      • getDefaultDriver

        public String getDefaultDriver​(String url)
        Specified by:
        getDefaultDriver in interface liquibase.database.Database
        Overrides:
        getDefaultDriver in class liquibase.database.core.PostgresDatabase
      • getDefaultPort

        public Integer getDefaultPort()
        Specified by:
        getDefaultPort in interface liquibase.database.Database
        Overrides:
        getDefaultPort in class liquibase.database.core.PostgresDatabase
      • getCurrentDateTimeFunction

        public String getCurrentDateTimeFunction()
        Specified by:
        getCurrentDateTimeFunction in interface liquibase.database.Database
        Overrides:
        getCurrentDateTimeFunction in class liquibase.database.AbstractJdbcDatabase
      • getConnectionSchemaNameCallStatement

        protected liquibase.statement.SqlStatement getConnectionSchemaNameCallStatement()
        Overrides:
        getConnectionSchemaNameCallStatement in class liquibase.database.core.PostgresDatabase