| Modifier and Type | Method and Description |
|---|---|
protected boolean |
DBMaintainer.errorInIndexedScriptDuringLastUpdate(Set<ExecutedScript> alreadyExecutedScripts) |
protected Version |
DBMaintainer.getHighestExecutedScriptVersion(Set<ExecutedScript> executedScripts) |
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 |
|---|---|
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 |
|---|---|
protected Map<String,Script> |
DefaultScriptSource.convertToScriptNameScriptMap(Set<ExecutedScript> executedScripts) |
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 |
|---|---|
Set<ExecutedScript> |
ExecutedScriptInfoSource.getExecutedScripts() |
| Modifier and Type | Method and Description |
|---|---|
void |
ExecutedScriptInfoSource.registerExecutedScript(ExecutedScript executedScript)
Registers the fact that the given script has been executed on the database
|
void |
ExecutedScriptInfoSource.updateExecutedScript(ExecutedScript executedScript)
Updates the given registered script
|
| Modifier and Type | Field and Description |
|---|---|
protected Set<ExecutedScript> |
DefaultExecutedScriptInfoSource.executedScripts |
| Modifier and Type | Method and Description |
|---|---|
protected Set<ExecutedScript> |
DefaultExecutedScriptInfoSource.doGetExecutedScripts()
Precondition: The table dbmaintain_scripts must exist
|
Set<ExecutedScript> |
DefaultExecutedScriptInfoSource.getExecutedScripts() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DefaultExecutedScriptInfoSource.doRegisterExecutedScript(ExecutedScript executedScript)
Registers the fact that the given script has been executed on the database
Precondition: The table dbmaintain_scripts must exist
|
protected void |
DefaultExecutedScriptInfoSource.doSaveExecutedScript(ExecutedScript executedScript)
Saves the given registered script
Precondition: The table dbmaintain_scripts must exist
|
protected void |
DefaultExecutedScriptInfoSource.doUpdateExecutedScript(ExecutedScript executedScript)
Updates the given registered script
Precondition: The table dbmaintain_scripts must exist
|
void |
DefaultExecutedScriptInfoSource.registerExecutedScript(ExecutedScript executedScript)
Registers the fact that the given script has been executed on the database
|
void |
DefaultExecutedScriptInfoSource.updateExecutedScript(ExecutedScript executedScript)
Updates the given registered script
|
Copyright © 2016. All Rights Reserved.