Package ac.simons.neo4j.migrations.core
Class MigrationsConfig
java.lang.Object
ac.simons.neo4j.migrations.core.MigrationsConfig
Configuration for Migrations.
- Since:
 - 0.0.1
 - Author:
 - Michael J. Simons
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder to create new instances ofconfigurations.static enumUsed for configuring the transaction mode in Cypher-based transactions. - 
Method Summary
Modifier and TypeMethodDescriptionstatic MigrationsConfig.Builderbuilder()Start building a new configuration.static MigrationsConfigDeprecated.Deprecated.since 1.1.0, seegetOptionalImpersonatedUser()Deprecated.since 1.1.0, seegetOptionalInstalledBy()String[]String[]booleanDeprecated.Since 1.1.0, will be removed from public without replacement.booleanbooleanvoidHelper method to pretty print this configuration into a logger (on level INFO respectively WARNING. 
- 
Method Details
- 
builder
Start building a new configuration.- Returns:
 - The entry point for creating a new configuration.
 - Since:
 - 0.0.1
 
 - 
defaultConfig
- Returns:
 - The default config
 - Since:
 - 0.0.6
 
 - 
getPackagesToScan
- Returns:
 - the list of packages to scan
 
 - 
getLocationsToScan
- Returns:
 - the list of locations to scan
 
 - 
getTransactionMode
- Returns:
 - the transaction mode (whether to use one transaction for per migration or per statement)
 
 - 
getDatabase
Deprecated.since 1.1.0, seegetOptionalDatabase()- Returns:
 - An optional target database, maybe null
 
 - 
getOptionalDatabase
- Returns:
 - An optional target database
 - Since:
 - 1.1.0
 
 - 
getOptionalSchemaDatabase
- Returns:
 - An optional schema database
 - Since:
 - 1.1.0
 
 - 
getImpersonatedUser
Deprecated.since 1.1.0, seegetOptionalImpersonatedUser()- Returns:
 - An optional user to impersonate, maybe null
 
 - 
getOptionalImpersonatedUser
- Returns:
 - An optional user to impersonate
 - Since:
 - 1.1.0
 
 - 
getInstalledBy
Deprecated.since 1.1.0, seegetOptionalInstalledBy()- Returns:
 - Optional user information about the user executing the migration, maybe null
 
 - 
getOptionalInstalledBy
- Returns:
 - Optional user information about the user executing the migration
 - Since:
 - 1.1.0
 
 - 
isValidateOnMigrate
public boolean isValidateOnMigrate()- Returns:
 - true if resolved migrations and database state should be validated before a migration attempt is applied
 
 - 
isAutocrlf
public boolean isAutocrlf()- Returns:
 - whether CRLF line endings should be automatically converted into LF
 
 - 
getMigrationClassesDiscoverer
- Returns:
 - The discoverer for class based migrations, never null
 - Since:
 - 1.3.0
 
 - 
getResourceScanner
- Returns:
 - The resource scanner, never null
 - Since:
 - 1.3.0
 
 - 
logTo
Helper method to pretty print this configuration into a logger (on level INFO respectively WARNING.- Parameters:
 logger- the logger to print toverbose- set to true if you want to print all details
 - 
hasPlacesToLookForMigrations
Deprecated.Since 1.1.0, will be removed from public without replacement.This is internal API and will be made package private in 2.0.0- Returns:
 - True if there are packages to scan
 
 
 - 
 
getOptionalDatabase()