public class Evolutions extends PlayPlugin
PlayPlugin.Filter<T>
Modifier and Type | Field and Description |
---|---|
protected static File |
evolutionsDirectory |
index
Constructor and Description |
---|
Evolutions() |
Modifier and Type | Method and Description |
---|---|
static boolean |
applyScript(boolean runScript,
String moduleKey,
VirtualFile evolutionsDirectory) |
static boolean |
applyScript(String dbName,
boolean runScript,
String moduleKey,
VirtualFile evolutionsDirectory) |
static boolean |
autoCommit() |
void |
beforeInvocation()
Called before a Play!
|
static void |
checkEvolutionsState() |
static void |
checkEvolutionsState(String dbName) |
static List<Evolution> |
getEvolutionScript(String dbName,
String moduleKey,
VirtualFile evolutionsDirectory) |
static Stack<Evolution> |
listApplicationEvolutions(String dBName,
String moduleKey,
VirtualFile evolutionsDirectory) |
static Stack<Evolution> |
listDatabaseEvolutions(String dbName,
String moduleKey) |
static void |
main(String[] args) |
void |
onApplicationStart()
Called at application start (and at each reloading)
Time to start stateful things.
|
boolean |
rawInvocation(Http.Request request,
Http.Response response)
Give a chance to this plugin to fully manage this request
|
static void |
resolve(int revision) |
static void |
resolve(String dBName,
int revision) |
static void |
resolve(String dBName,
String moduleKey,
int revision) |
static String |
toHumanReadableScript(List<Evolution> evolutionScript) |
addMimeTypes, addTemplateExtensions, afterActionInvocation, afterApplicationStart, afterFixtureLoad, afterInvocation, beforeActionInvocation, beforeDetectingChanges, bind, bind, bind, bindBean, compareTo, compileAll, compileSources, detectChange, detectClassesChange, enhance, getFilter, getFunctionalTests, getJsonStatus, getMessage, getStatus, getUnitTests, hasFilter, invocationFinally, loadTemplate, modelFactory, onActionInvocationFinally, onActionInvocationResult, onApplicationReady, onApplicationStop, onClassesChange, onConfigurationRead, onEvent, onInvocationException, onInvocationSuccess, onLoad, onRequestRouting, onRoutesLoaded, onTemplateCompilation, overrideTemplateSource, postEvent, routeRequest, runTest, serveStatic, unBind, willBeValidated
protected static File evolutionsDirectory
public static void main(String[] args) throws SQLException
SQLException
public boolean rawInvocation(Http.Request request, Http.Response response) throws Exception
PlayPlugin
rawInvocation
in class PlayPlugin
request
- The Play requestresponse
- The Play responseException
public void beforeInvocation()
PlayPlugin
beforeInvocation
in class PlayPlugin
public void onApplicationStart()
PlayPlugin
onApplicationStart
in class PlayPlugin
public static boolean autoCommit()
public static void resolve(int revision)
public static void resolve(String dBName, int revision)
public static boolean applyScript(boolean runScript, String moduleKey, VirtualFile evolutionsDirectory)
public static boolean applyScript(String dbName, boolean runScript, String moduleKey, VirtualFile evolutionsDirectory)
public static void checkEvolutionsState()
public static void checkEvolutionsState(String dbName)
public static List<Evolution> getEvolutionScript(String dbName, String moduleKey, VirtualFile evolutionsDirectory)
public static Stack<Evolution> listApplicationEvolutions(String dBName, String moduleKey, VirtualFile evolutionsDirectory)
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly