public interface ScriptSource extends Configurable
| Modifier and Type | Method and Description |
|---|---|
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.
|
initList<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 - Copyright © 2017. All rights reserved.