| Package | Description |
|---|---|
| org.unitils.dbmaintainer | |
| org.unitils.dbmaintainer.script | |
| org.unitils.dbmaintainer.script.impl | |
| org.unitils.dbmaintainer.version |
| Modifier and Type | Method and Description |
|---|---|
protected Version |
DBMaintainer.getHighestExecutedScriptVersion(Set<ExecutedScript> executedScripts) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
DBMaintainer.shouldUpdateDatabaseFromScratch(Version currentVersion,
Set<ExecutedScript> alreadyExecutedScripts,
String databaseName,
boolean defaultDatabase)
Checks whether the database should be updated from scratch or just incrementally.
|
| Modifier and Type | Method and Description |
|---|---|
protected Version |
Script.createVersion(List<Long> parentIndexes,
File scriptFile)
Creates a version for the given script file.
|
Version |
Script.getVersion() |
protected Version |
Script.getVersionFromPath(String relativePath) |
| Modifier and Type | Method and Description |
|---|---|
List<Script> |
ScriptSource.getNewScripts(Version highestExecutedScriptVersion,
Set<ExecutedScript> alreadyExecutedScripts,
String dialect,
String databaseName,
boolean defaultDatabase)
Returns a list of scripts including the ones that:
have a higher version than the given version
are unversioned, and they weren't yet applied on the database
are unversioned, and their contents differ from the one currently applied to the database
The scripts are returned in the order in which they should be executed.
|
boolean |
ScriptSource.isExistingIndexedScriptModified(Version currentVersion,
Set<ExecutedScript> alreadyExecutedScripts,
String dialect,
String databaseName,
boolean defaultDatabase)
Returns true if one or more scripts that have a version index equal to or lower than
the index specified by the given version object has been modified since the timestamp specfied by
the given version.
|
| Modifier and Type | Method and Description |
|---|---|
List<Script> |
DefaultScriptSource.getNewScripts(Version currentVersion,
Set<ExecutedScript> alreadyExecutedScripts,
String dialect,
String databaseName,
boolean defaultDatabase)
Returns a list of scripts with a higher version or whose contents were changed.
|
boolean |
DefaultScriptSource.isExistingIndexedScriptModified(Version currentVersion,
Set<ExecutedScript> alreadyExecutedScripts,
String dialect,
String databaseName,
boolean defaultDatabase)
Returns true if one or more scripts that have a version index equal to or lower than
the index specified by the given version object has been modified since the timestamp specfied by
the given version.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Version.compareTo(Version otherVersion)
Compares the given version to this version using the index values.
|
Copyright © 2017. All rights reserved.