| Package | Description |
|---|---|
| org.unitils.dbmaintainer | |
| org.unitils.dbmaintainer.locator | |
| org.unitils.dbmaintainer.script | |
| org.unitils.dbmaintainer.script.impl |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DBMaintainer.executePostProcessingScripts(List<Script> postProcessingScripts)
Executes the given post processing scripts on the database.
|
protected void |
DBMaintainer.executeScripts(List<Script> scripts)
Executes the given scripts and updates the database version and state appropriatly.
|
protected void |
DBMaintainer.updateDatabase(List<Script> scripts,
String schema,
boolean defaultDatabase)
Updates the state of the database using the given scripts.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<Script> |
ClassPathScriptLocator.scriptList |
| Modifier and Type | Method and Description |
|---|---|
void |
ClassPathScriptLocator.loadScripts(List<Script> scriptList1,
String path1,
ResourcePickingStrategie resourcePickingStrategie,
List<String> scriptExtensions1,
String schema,
boolean defaultDatabase,
Properties configuration) |
| Modifier and Type | Method and Description |
|---|---|
Script |
ExecutedScript.getScript() |
| Modifier and Type | Method and Description |
|---|---|
List<Script> |
ScriptSource.getAllUpdateScripts(String dialect,
String databaseName,
boolean defaultDatabase) |
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.
|
List<Script> |
ScriptSource.getPostProcessingScripts(String dialect,
String databaseName,
boolean defaultDatabase)
Gets a list of all post processing scripts.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Script.compareTo(Script script)
Compares the given script to this script by comparing the versions.
|
boolean |
Script.isScriptContentEqualTo(Script other,
boolean useLastModificationDates) |
| Constructor and Description |
|---|
ExecutedScript(Script script,
Date executedAt,
Boolean successful) |
| Modifier and Type | Field and Description |
|---|---|
protected List<Script> |
DefaultScriptSource.allPostProcessingScripts |
protected List<Script> |
DefaultScriptSource.allUpdateScripts |
| Modifier and Type | Method and Description |
|---|---|
protected Script |
DefaultScriptSource.createScript(File scriptFile,
String relativePath)
Creates a script object for the given script file
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Script> |
DefaultScriptSource.convertToScriptNameScriptMap(Set<ExecutedScript> executedScripts) |
List<Script> |
DefaultScriptSource.getAllUpdateScripts(String dialect,
String databaseName,
boolean defaultDatabase)
Gets a list of all available update scripts.
|
protected List<Script> |
DefaultScriptSource.getIncrementalScripts(String dialect,
String databaseName,
boolean defaultDatabase) |
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.
|
List<Script> |
DefaultScriptSource.getPostProcessingScripts(String dialect,
String databaseName,
boolean defaultDatabase)
Gets the configured post-processing script files and verfies that they on the file system.
|
protected List<Script> |
ResourceScriptSource.loadAllScripts(String dialect,
String databaseName,
boolean defaultDatabase) |
protected List<Script> |
DefaultScriptSource.loadAllScripts(String dialect,
String databaseName,
boolean defaultDatabase) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
DefaultScriptSource.isPostProcessingScript(Script script) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DefaultScriptSource.assertNoDuplicateIndexes(List<Script> scripts)
Asserts that, in the given list of database update scripts, there are no two indexed scripts with the same version.
|
protected void |
ResourceScriptSource.getScriptsAt(List<Script> scripts,
String scriptRoot,
String relativeLocation,
String databaseName,
boolean defaultDatabase) |
protected void |
DefaultScriptSource.getScriptsAt(List<Script> scripts,
String scriptRoot,
String relativeLocation,
String databaseName,
boolean defaultDatabase)
Adds all scripts available in the given directory or one of its subdirectories to the
given List of files
|
Copyright © 2017. All rights reserved.