Class Nice2PostgreDatabase

java.lang.Object
liquibase.database.AbstractJdbcDatabase
liquibase.database.core.PostgresDatabase
ch.tocco.nice2.dbrefactoring.impl.liquibase.Nice2PostgreDatabase
All Implemented Interfaces:
AutoCloseable, liquibase.database.Database, liquibase.servicelocator.PrioritizedService

@Component @Lazy(false) public class Nice2PostgreDatabase extends liquibase.database.core.PostgresDatabase
  • Field Summary

    Fields inherited from class liquibase.database.core.PostgresDatabase

    MINIMUM_DBMS_MAJOR_VERSION, MINIMUM_DBMS_MINOR_VERSION, PRODUCT_NAME, VALID_AUTO_INCREMENT_COLUMN_TYPE_NAMES

    Fields inherited from class liquibase.database.AbstractJdbcDatabase

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

    Fields inherited from interface liquibase.database.Database

    COMPLETE_SQL_SCOPE_KEY

    Fields inherited from interface liquibase.servicelocator.PrioritizedService

    COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    executeStatements(liquibase.change.Change change, liquibase.changelog.DatabaseChangeLog changeLog, List<liquibase.sql.visitor.SqlVisitor> sqlVisitors)
     
    Revert to original behaviour.
     
    protected String
    getAutoIncrementClause(String generationType, Boolean defaultOnNull)
     
    int
     
    boolean
     
    void
     

    Methods inherited from class liquibase.database.core.PostgresDatabase

    correctObjectName, equals, escapeObjectName, generateAutoIncrementBy, generateAutoIncrementStartWith, getConnectionSchemaNameCallStatement, getDatabaseChangeLogLockTableName, getDatabaseChangeLogTableName, getDefaultDatabaseProductName, getDefaultDriver, getDefaultPort, getMaxFractionalDigitsForTimestamp, getSchemaAndCatalogCase, getShortName, getSystemViews, hashCode, hasMixedCase, isCorrectDatabaseImplementation, isSystemObject, rollback, setConnection, setDefaultCatalogName, supportsCatalogInObjectName, supportsCreateIfNotExists, supportsDatabaseChangeLogHistory, supportsInitiallyDeferrableColumns, supportsSequences, supportsTablespaces, unescapeDataTypeName, useSerialDatatypes

    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, filterRollbackVisitors, generateDatabaseFunctionValue, get, getAutoCommitMode, getAutoIncrementByClause, getAutoIncrementClause, getAutoIncrementClosing, getAutoIncrementOpening, getAutoIncrementStartWithClause, getConcatSql, getConnection, getConnectionCatalogName, getConnectionSchemaName, getContainingObjects, getCurrentDateTimeFunction, 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, getRawDatabaseChangeLogLockTableName, getRawDatabaseChangeLogTableName, getRunStatus, getSchemaFromJdbcInfo, getSystemSchema, getSystemTables, getTimeLiteral, getViewDefinition, isAutoCommit, isCaseSensitive, isCatalogOrSchemaType, isCurrentTimeFunction, 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, setDefaultSchemaName, setLiquibaseCatalogName, setLiquibaseSchemaName, setLiquibaseTablespaceName, setObjectQuotingStrategy, setOutputDefaultCatalog, setOutputDefaultSchema, startsWithNumeric, supportsAutoIncrement, supportsBatchUpdates, supportsCatalogs, supportsDDLInTransaction, supportsDropTableCascadeConstraints, supportsForeignKeyDisable, supportsNotNullConstraintNames, supportsPrimaryKeyNames, supportsRestrictForeignKeys, supportsSchemas, tag, toString, unescapeDataTypeString, validate

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface liquibase.database.Database

    addCompleteSqlToScope, afterUpdate, dropDatabaseObjects, failOnDefferable, getDisplayName, temporarilySetObjectQuotingStrategy
  • Constructor Details

    • Nice2PostgreDatabase

      public Nice2PostgreDatabase()
  • Method Details

    • getPriority

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

      @Autowired public void setExecutionListeners(List<ChangeExecutionListener> executionListeners)
    • executeStatements

      public void executeStatements(liquibase.change.Change change, liquibase.changelog.DatabaseChangeLog changeLog, List<liquibase.sql.visitor.SqlVisitor> sqlVisitors) throws liquibase.exception.LiquibaseException
      Specified by:
      executeStatements in interface liquibase.database.Database
      Overrides:
      executeStatements in class liquibase.database.AbstractJdbcDatabase
      Throws:
      liquibase.exception.LiquibaseException
    • isReservedWord

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

      public String generatePrimaryKeyName(String tableName)
      Revert to original behaviour. Necessary due to https://github.com/liquibase/liquibase/commit/4b65c947c7711eadfde5713af31eccb654fb5bfc
      Specified by:
      generatePrimaryKeyName in interface liquibase.database.Database
      Overrides:
      generatePrimaryKeyName in class liquibase.database.core.PostgresDatabase
    • getAutoIncrementClause

      public String getAutoIncrementClause()
      Overrides:
      getAutoIncrementClause in class liquibase.database.core.PostgresDatabase
    • getAutoIncrementClause

      protected String getAutoIncrementClause(String generationType, Boolean defaultOnNull)
      Overrides:
      getAutoIncrementClause in class liquibase.database.core.PostgresDatabase