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