Class FlywayProperties
java.lang.Object
org.springframework.boot.autoconfigure.flyway.FlywayProperties
Configuration properties for Flyway database migrations.
- Since:
- 1.1.0
- Author:
- Dave Syer, EddĂș MelĂ©ndez, Stephane Nicoll, Chris Bono
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
OracleConfigurationExtension
properties.static class
PostgreSQLConfigurationExtension
properties.static class
SQLServerConfigurationExtension
properties. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBatch()
String[]
int
String[]
int
String[]
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getTable()
getUrl()
getUser()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isGroup()
boolean
isMixed()
boolean
boolean
boolean
boolean
boolean
boolean
void
setBaselineDescription
(String baselineDescription) void
setBaselineOnMigrate
(boolean baselineOnMigrate) void
setBaselineVersion
(String baselineVersion) void
void
setCherryPick
(String[] cherryPick) void
setCleanDisabled
(boolean cleanDisabled) void
setCleanOnValidationError
(boolean cleanOnValidationError) void
setConnectRetries
(int connectRetries) void
setConnectRetriesInterval
(Duration connectRetriesInterval) void
setCreateSchemas
(boolean createSchemas) void
setDefaultSchema
(String defaultSchema) void
setDetectEncoding
(Boolean detectEncoding) void
setDriverClassName
(String driverClassName) void
setDryRunOutput
(File dryRunOutput) void
setEnabled
(boolean enabled) void
setEncoding
(Charset encoding) void
setErrorOverrides
(String[] errorOverrides) void
setExecuteInTransaction
(boolean executeInTransaction) void
setFailOnMissingLocations
(boolean failOnMissingLocations) void
setGroup
(boolean group) void
setIgnoreMigrationPatterns
(List<String> ignoreMigrationPatterns) void
setInitSqls
(List<String> initSqls) void
setInstalledBy
(String installedBy) void
setJdbcProperties
(Map<String, String> jdbcProperties) void
setKerberosConfigFile
(String kerberosConfigFile) void
setLicenseKey
(String licenseKey) void
setLocations
(List<String> locations) void
setLockRetryCount
(Integer lockRetryCount) void
setLoggers
(String[] loggers) void
setMixed
(boolean mixed) void
setOracleKerberosCacheFile
(String oracleKerberosCacheFile) Deprecated, for removal: This API element is subject to removal in a future version.void
setOracleSqlplus
(Boolean oracleSqlplus) Deprecated, for removal: This API element is subject to removal in a future version.void
setOracleSqlplusWarn
(Boolean oracleSqlplusWarn) Deprecated, for removal: This API element is subject to removal in a future version.void
setOracleWalletLocation
(String oracleWalletLocation) Deprecated, for removal: This API element is subject to removal in a future version.void
setOutOfOrder
(boolean outOfOrder) void
setOutputQueryResults
(Boolean outputQueryResults) void
setPassword
(String password) void
setPlaceholderPrefix
(String placeholderPrefix) void
setPlaceholderReplacement
(boolean placeholderReplacement) void
setPlaceholders
(Map<String, String> placeholders) void
setPlaceholderSeparator
(String placeholderSeparator) void
setPlaceholderSuffix
(String placeholderSuffix) void
setRepeatableSqlMigrationPrefix
(String repeatableSqlMigrationPrefix) void
setSchemas
(List<String> schemas) void
setScriptPlaceholderPrefix
(String scriptPlaceholderPrefix) void
setScriptPlaceholderSuffix
(String scriptPlaceholderSuffix) void
setSkipDefaultCallbacks
(boolean skipDefaultCallbacks) void
setSkipDefaultResolvers
(boolean skipDefaultResolvers) void
setSkipExecutingMigrations
(Boolean skipExecutingMigrations) void
setSqlMigrationPrefix
(String sqlMigrationPrefix) void
setSqlMigrationSeparator
(String sqlMigrationSeparator) void
setSqlMigrationSuffixes
(List<String> sqlMigrationSuffixes) void
setSqlServerKerberosLoginFile
(String sqlServerKerberosLoginFile) Deprecated, for removal: This API element is subject to removal in a future version.void
void
void
setTablespace
(String tablespace) void
void
setUndoSqlMigrationPrefix
(String undoSqlMigrationPrefix) void
void
void
setValidateMigrationNaming
(boolean validateMigrationNaming) void
setValidateOnMigrate
(boolean validateOnMigrate)
-
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
-
setLocations
-
getEncoding
-
setEncoding
-
getConnectRetries
public int getConnectRetries() -
setConnectRetries
public void setConnectRetries(int connectRetries) -
getConnectRetriesInterval
-
setConnectRetriesInterval
-
getLockRetryCount
public int getLockRetryCount() -
setLockRetryCount
-
getDefaultSchema
-
setDefaultSchema
-
getSchemas
-
setSchemas
-
isCreateSchemas
public boolean isCreateSchemas() -
setCreateSchemas
public void setCreateSchemas(boolean createSchemas) -
getTable
-
setTable
-
getTablespace
-
setTablespace
-
getBaselineDescription
-
setBaselineDescription
-
getBaselineVersion
-
setBaselineVersion
-
getInstalledBy
-
setInstalledBy
-
getPlaceholders
-
setPlaceholders
-
getPlaceholderPrefix
-
setPlaceholderPrefix
-
getPlaceholderSuffix
-
setPlaceholderSuffix
-
getPlaceholderSeparator
-
setPlaceholderSeparator
-
isPlaceholderReplacement
public boolean isPlaceholderReplacement() -
setPlaceholderReplacement
public void setPlaceholderReplacement(boolean placeholderReplacement) -
getSqlMigrationPrefix
-
setSqlMigrationPrefix
-
getSqlMigrationSuffixes
-
setSqlMigrationSuffixes
-
getSqlMigrationSeparator
-
setSqlMigrationSeparator
-
getRepeatableSqlMigrationPrefix
-
setRepeatableSqlMigrationPrefix
-
getTarget
-
setTarget
-
getUser
-
setUser
-
getPassword
-
setPassword
-
getDriverClassName
-
setDriverClassName
-
getUrl
-
setUrl
-
getInitSqls
-
setInitSqls
-
isBaselineOnMigrate
public boolean isBaselineOnMigrate() -
setBaselineOnMigrate
public void setBaselineOnMigrate(boolean baselineOnMigrate) -
isCleanDisabled
public boolean isCleanDisabled() -
setCleanDisabled
public void setCleanDisabled(boolean cleanDisabled) -
isCleanOnValidationError
public boolean isCleanOnValidationError() -
setCleanOnValidationError
public void setCleanOnValidationError(boolean cleanOnValidationError) -
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
-
setScriptPlaceholderPrefix
-
getScriptPlaceholderSuffix
-
setScriptPlaceholderSuffix
-
isExecuteInTransaction
public boolean isExecuteInTransaction() -
setExecuteInTransaction
public void setExecuteInTransaction(boolean executeInTransaction) -
getLoggers
-
setLoggers
-
getBatch
-
setBatch
-
getDryRunOutput
-
setDryRunOutput
-
getErrorOverrides
-
setErrorOverrides
-
getLicenseKey
-
setLicenseKey
-
getOracleSqlplus
@DeprecatedConfigurationProperty(replacement="spring.flyway.oracle.sqlplus") @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, for removal: This API element is subject to removal in a future version. -
getOracleSqlplusWarn
@DeprecatedConfigurationProperty(replacement="spring.flyway.oracle.sqlplus-warn") @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") @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
-
setStream
-
getUndoSqlMigrationPrefix
-
setUndoSqlMigrationPrefix
-
getCherryPick
-
setCherryPick
-
getJdbcProperties
-
setJdbcProperties
-
getKerberosConfigFile
-
setKerberosConfigFile
-
getOracleKerberosCacheFile
@DeprecatedConfigurationProperty(replacement="spring.flyway.oracle.kerberos-cache-file") @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
-
setOutputQueryResults
-
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
-
setSkipExecutingMigrations
-
getIgnoreMigrationPatterns
-
setIgnoreMigrationPatterns
-
getDetectEncoding
-
setDetectEncoding
-
getOracle
-
getPostgresql
-
getSqlserver
-