Class FlywayProperties

java.lang.Object
org.springframework.boot.autoconfigure.flyway.FlywayProperties

@ConfigurationProperties(prefix="spring.flyway") public class FlywayProperties extends Object
Configuration properties for Flyway database migrations.
Since:
1.1.0
Author:
Dave Syer, EddĂș MelĂ©ndez, Stephane Nicoll, Chris Bono
  • Constructor Details

    • FlywayProperties

      public FlywayProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • isFailOnMissingLocations

      public boolean isFailOnMissingLocations()
    • setFailOnMissingLocations

      public void setFailOnMissingLocations(boolean failOnMissingLocations)
    • getLocations

      public List<String> getLocations()
    • setLocations

      public void setLocations(List<String> locations)
    • getEncoding

      public Charset getEncoding()
    • setEncoding

      public void setEncoding(Charset encoding)
    • getConnectRetries

      public int getConnectRetries()
    • setConnectRetries

      public void setConnectRetries(int connectRetries)
    • getConnectRetriesInterval

      public Duration getConnectRetriesInterval()
    • setConnectRetriesInterval

      public void setConnectRetriesInterval(Duration connectRetriesInterval)
    • getLockRetryCount

      public int getLockRetryCount()
    • setLockRetryCount

      public void setLockRetryCount(Integer lockRetryCount)
    • getDefaultSchema

      public String getDefaultSchema()
    • setDefaultSchema

      public void setDefaultSchema(String defaultSchema)
    • getSchemas

      public List<String> getSchemas()
    • setSchemas

      public void setSchemas(List<String> schemas)
    • isCreateSchemas

      public boolean isCreateSchemas()
    • setCreateSchemas

      public void setCreateSchemas(boolean createSchemas)
    • getTable

      public String getTable()
    • setTable

      public void setTable(String table)
    • getTablespace

      public String getTablespace()
    • setTablespace

      public void setTablespace(String tablespace)
    • getBaselineDescription

      public String getBaselineDescription()
    • setBaselineDescription

      public void setBaselineDescription(String baselineDescription)
    • getBaselineVersion

      public String getBaselineVersion()
    • setBaselineVersion

      public void setBaselineVersion(String baselineVersion)
    • getInstalledBy

      public String getInstalledBy()
    • setInstalledBy

      public void setInstalledBy(String installedBy)
    • getPlaceholders

      public Map<String,String> getPlaceholders()
    • setPlaceholders

      public void setPlaceholders(Map<String,String> placeholders)
    • getPlaceholderPrefix

      public String getPlaceholderPrefix()
    • setPlaceholderPrefix

      public void setPlaceholderPrefix(String placeholderPrefix)
    • getPlaceholderSuffix

      public String getPlaceholderSuffix()
    • setPlaceholderSuffix

      public void setPlaceholderSuffix(String placeholderSuffix)
    • getPlaceholderSeparator

      public String getPlaceholderSeparator()
    • setPlaceholderSeparator

      public void setPlaceholderSeparator(String placeholderSeparator)
    • isPlaceholderReplacement

      public boolean isPlaceholderReplacement()
    • setPlaceholderReplacement

      public void setPlaceholderReplacement(boolean placeholderReplacement)
    • getSqlMigrationPrefix

      public String getSqlMigrationPrefix()
    • setSqlMigrationPrefix

      public void setSqlMigrationPrefix(String sqlMigrationPrefix)
    • getSqlMigrationSuffixes

      public List<String> getSqlMigrationSuffixes()
    • setSqlMigrationSuffixes

      public void setSqlMigrationSuffixes(List<String> sqlMigrationSuffixes)
    • getSqlMigrationSeparator

      public String getSqlMigrationSeparator()
    • setSqlMigrationSeparator

      public void setSqlMigrationSeparator(String sqlMigrationSeparator)
    • getRepeatableSqlMigrationPrefix

      public String getRepeatableSqlMigrationPrefix()
    • setRepeatableSqlMigrationPrefix

      public void setRepeatableSqlMigrationPrefix(String repeatableSqlMigrationPrefix)
    • getTarget

      public String getTarget()
    • setTarget

      public void setTarget(String target)
    • getUser

      public String getUser()
    • setUser

      public void setUser(String user)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • getDriverClassName

      public String getDriverClassName()
    • setDriverClassName

      public void setDriverClassName(String driverClassName)
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • getInitSqls

      public List<String> getInitSqls()
    • setInitSqls

      public void setInitSqls(List<String> initSqls)
    • isBaselineOnMigrate

      public boolean isBaselineOnMigrate()
    • setBaselineOnMigrate

      public void setBaselineOnMigrate(boolean baselineOnMigrate)
    • isCleanDisabled

      public boolean isCleanDisabled()
    • setCleanDisabled

      public void setCleanDisabled(boolean cleanDisabled)
    • isCleanOnValidationError

      @Deprecated(since="3.4.0", forRemoval=true) @DeprecatedConfigurationProperty(since="3.4.0", reason="Deprecated in Flyway 10.18") public boolean isCleanOnValidationError()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setCleanOnValidationError

      @Deprecated(since="3.4.0", forRemoval=true) public void setCleanOnValidationError(boolean cleanOnValidationError)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isGroup

      public boolean isGroup()
    • setGroup

      public void setGroup(boolean group)
    • isMixed

      public boolean isMixed()
    • setMixed

      public void setMixed(boolean mixed)
    • isOutOfOrder

      public boolean isOutOfOrder()
    • setOutOfOrder

      public void setOutOfOrder(boolean outOfOrder)
    • isSkipDefaultCallbacks

      public boolean isSkipDefaultCallbacks()
    • setSkipDefaultCallbacks

      public void setSkipDefaultCallbacks(boolean skipDefaultCallbacks)
    • isSkipDefaultResolvers

      public boolean isSkipDefaultResolvers()
    • setSkipDefaultResolvers

      public void setSkipDefaultResolvers(boolean skipDefaultResolvers)
    • isValidateMigrationNaming

      public boolean isValidateMigrationNaming()
    • setValidateMigrationNaming

      public void setValidateMigrationNaming(boolean validateMigrationNaming)
    • isValidateOnMigrate

      public boolean isValidateOnMigrate()
    • setValidateOnMigrate

      public void setValidateOnMigrate(boolean validateOnMigrate)
    • getScriptPlaceholderPrefix

      public String getScriptPlaceholderPrefix()
    • setScriptPlaceholderPrefix

      public void setScriptPlaceholderPrefix(String scriptPlaceholderPrefix)
    • getScriptPlaceholderSuffix

      public String getScriptPlaceholderSuffix()
    • setScriptPlaceholderSuffix

      public void setScriptPlaceholderSuffix(String scriptPlaceholderSuffix)
    • isExecuteInTransaction

      public boolean isExecuteInTransaction()
    • setExecuteInTransaction

      public void setExecuteInTransaction(boolean executeInTransaction)
    • getLoggers

      public String[] getLoggers()
    • setLoggers

      public void setLoggers(String[] loggers)
    • getBatch

      public Boolean getBatch()
    • setBatch

      public void setBatch(Boolean batch)
    • getDryRunOutput

      public File getDryRunOutput()
    • setDryRunOutput

      public void setDryRunOutput(File dryRunOutput)
    • getErrorOverrides

      public String[] getErrorOverrides()
    • setErrorOverrides

      public void setErrorOverrides(String[] errorOverrides)
    • getOracleSqlplus

      @DeprecatedConfigurationProperty(replacement="spring.flyway.oracle.sqlplus", since="3.2.0") @Deprecated(since="3.2.0", forRemoval=true) public Boolean getOracleSqlplus()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setOracleSqlplus

      @Deprecated(since="3.2.0", forRemoval=true) public void setOracleSqlplus(Boolean oracleSqlplus)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getOracleSqlplusWarn

      @DeprecatedConfigurationProperty(replacement="spring.flyway.oracle.sqlplus-warn", since="3.2.0") @Deprecated(since="3.2.0", forRemoval=true) public Boolean getOracleSqlplusWarn()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setOracleSqlplusWarn

      @Deprecated(since="3.2.0", forRemoval=true) public void setOracleSqlplusWarn(Boolean oracleSqlplusWarn)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getOracleWalletLocation

      @DeprecatedConfigurationProperty(replacement="spring.flyway.oracle.wallet-location", since="3.2.0") @Deprecated(since="3.2.0", forRemoval=true) public String getOracleWalletLocation()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setOracleWalletLocation

      @Deprecated(since="3.2.0", forRemoval=true) public void setOracleWalletLocation(String oracleWalletLocation)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getStream

      public Boolean getStream()
    • setStream

      public void setStream(Boolean stream)
    • getJdbcProperties

      public Map<String,String> getJdbcProperties()
    • setJdbcProperties

      public void setJdbcProperties(Map<String,String> jdbcProperties)
    • getKerberosConfigFile

      public String getKerberosConfigFile()
    • setKerberosConfigFile

      public void setKerberosConfigFile(String kerberosConfigFile)
    • getOracleKerberosCacheFile

      @DeprecatedConfigurationProperty(replacement="spring.flyway.oracle.kerberos-cache-file", since="3.2.0") @Deprecated(since="3.2.0", forRemoval=true) public String getOracleKerberosCacheFile()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setOracleKerberosCacheFile

      @Deprecated(since="3.2.0", forRemoval=true) public void setOracleKerberosCacheFile(String oracleKerberosCacheFile)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getOutputQueryResults

      public Boolean getOutputQueryResults()
    • setOutputQueryResults

      public void setOutputQueryResults(Boolean outputQueryResults)
    • getSqlServerKerberosLoginFile

      @DeprecatedConfigurationProperty(replacement="spring.flyway.sqlserver.kerberos-login-file") @Deprecated(since="3.2.0", forRemoval=true) public String getSqlServerKerberosLoginFile()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setSqlServerKerberosLoginFile

      @Deprecated(since="3.2.0", forRemoval=true) public void setSqlServerKerberosLoginFile(String sqlServerKerberosLoginFile)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getSkipExecutingMigrations

      public Boolean getSkipExecutingMigrations()
    • setSkipExecutingMigrations

      public void setSkipExecutingMigrations(Boolean skipExecutingMigrations)
    • getIgnoreMigrationPatterns

      public List<String> getIgnoreMigrationPatterns()
    • setIgnoreMigrationPatterns

      public void setIgnoreMigrationPatterns(List<String> ignoreMigrationPatterns)
    • getDetectEncoding

      public Boolean getDetectEncoding()
    • setDetectEncoding

      public void setDetectEncoding(Boolean detectEncoding)
    • getCommunityDbSupportEnabled

      public Boolean getCommunityDbSupportEnabled()
    • setCommunityDbSupportEnabled

      public void setCommunityDbSupportEnabled(Boolean communityDbSupportEnabled)
    • getOracle

      public FlywayProperties.Oracle getOracle()
    • getPostgresql

      public FlywayProperties.Postgresql getPostgresql()
    • getSqlserver

      public FlywayProperties.Sqlserver getSqlserver()