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 class
A builder to create new instances ofconfigurations
.static enum
Used for configuring the transaction mode in Cypher-based transactions. -
Method Summary
Modifier and TypeMethodDescriptionstatic MigrationsConfig.Builder
builder()
Start building a new configuration.static MigrationsConfig
Deprecated.Deprecated.since 1.1.0, please usegetOptionalImpersonatedUser()
Deprecated.since 1.1.0, please usegetOptionalInstalledBy()
String[]
String[]
boolean
Deprecated.Since 1.1.0, will be removed from public without replace.boolean
boolean
void
-
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
-
getLocationsToScan
-
getTransactionMode
-
getDatabase
Deprecated.since 1.1.0, please usegetOptionalDatabase()
- 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, please usegetOptionalImpersonatedUser()
- 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, please usegetOptionalInstalledBy()
- 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() -
isAutocrlf
public boolean isAutocrlf() -
logTo
-
hasPlacesToLookForMigrations
Deprecated.Since 1.1.0, will be removed from public without replace.This is internal API and will be made package private in 2.0.0- Returns:
- True if there are packages to scan
-
getOptionalDatabase()