public class ResourceScriptSource extends DefaultScriptSource
ScriptSource that reads script files from the classpath.
Wildcards in naming are allowed. When looking through the classpath it will use the PathMatchingResourcePatternResolver provided
by Spring.
DefaultScriptSource.PROPKEY_SCRIPT_LOCATIONS. Valid script files start with a version number followed by an underscore, and
end with the extension configured by DefaultScriptSource.PROPKEY_SCRIPT_EXTENSIONS.allPostProcessingScripts, allUpdateScripts, PROPKEY_EXCLUDE_QUALIFIERS, PROPKEY_INCLUDE_QUALIFIERS, PROPKEY_POSTPROCESSINGSCRIPT_DIRNAME, PROPKEY_QUALIFIERS, PROPKEY_SCRIPT_EXTENSIONS, PROPKEY_SCRIPT_LOCATIONS, PROPKEY_USESCRIPTFILELASTMODIFICATIONDATESconfiguration| Constructor and Description |
|---|
ResourceScriptSource() |
| Modifier and Type | Method and Description |
|---|---|
protected ResourcePickingStrategie |
getResourcePickingStrategie()
use unitil propertie instead of hardcoding
|
protected void |
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
|
protected List<Script> |
loadAllScripts(String dialect,
String databaseName,
boolean defaultDatabase) |
assertNoDuplicateIndexes, checkIfScriptContainsCorrectDatabaseName, checkIfThereAreNoQualifiers, containsOneOfQualifiers, containsQualifier, convertToScriptNameScriptMap, createScript, getAllUpdateScripts, getIncrementalScripts, getNewScripts, getPostProcessingScripts, getScriptExtensions, isExistingIndexedScriptModified, isPostProcessingScript, isScriptFile, loadAndOrganizeAllScripts, useScriptFileLastModificationDatesinitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitprotected List<Script> loadAllScripts(String dialect, String databaseName, boolean defaultDatabase)
loadAllScripts in class DefaultScriptSourceorg.unitils.dbmaintainer.script.impl.DefaultScriptSource#loadAllScripts()protected void getScriptsAt(List<Script> scripts, String scriptRoot, String relativeLocation, String databaseName, boolean defaultDatabase)
DefaultScriptSourcegetScriptsAt in class DefaultScriptSourceorg.unitils.dbmaintainer.script.impl.DefaultScriptSource#getScriptsAt(java.util.List, java.lang.String, java.lang.String)protected ResourcePickingStrategie getResourcePickingStrategie()
Copyright © 2017. All rights reserved.