|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScriptSource
A source that provides scripts for updating the database to a given state.
| Method Summary | |
|---|---|
List<Script> |
getAllUpdateScripts(String dialect)
|
List<Script> |
getNewScripts(Version highestExecutedScriptVersion,
Set<ExecutedScript> alreadyExecutedScripts,
String dialect)
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> |
getPostProcessingScripts(String dialect)
Gets a list of all post processing scripts. |
boolean |
isExistingIndexedScriptModified(Version currentVersion,
Set<ExecutedScript> alreadyExecutedScripts,
String dialect)
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. |
| Methods inherited from interface org.unitils.core.util.Configurable |
|---|
init |
| Method Detail |
|---|
List<Script> getAllUpdateScripts(String dialect)
List<Script> getNewScripts(Version highestExecutedScriptVersion,
Set<ExecutedScript> alreadyExecutedScripts,
String dialect)
highestExecutedScriptVersion - The highest version of the versioned scripts that were already applied to the databasealreadyExecutedScripts - The scripts which were already executed on the database
boolean isExistingIndexedScriptModified(Version currentVersion,
Set<ExecutedScript> alreadyExecutedScripts,
String dialect)
currentVersion - The current database version, not nullalreadyExecutedScripts -
List<Script> getPostProcessingScripts(String dialect)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||