public class Evolutions extends PlayPlugin
PlayPlugin.Filter<T>
Modifier and Type | Field and Description |
---|---|
protected static java.io.File |
evolutionsDirectory |
index
Constructor and Description |
---|
Evolutions() |
Modifier and Type | Method and Description |
---|---|
static boolean |
applyScript(boolean runScript,
java.lang.String moduleKey,
VirtualFile evolutionsDirectory) |
static boolean |
applyScript(java.lang.String dbName,
boolean runScript,
java.lang.String moduleKey,
VirtualFile evolutionsDirectory) |
static boolean |
autoCommit() |
void |
beforeInvocation()
Called before a Play!
|
static void |
checkEvolutionsState() |
static void |
checkEvolutionsState(java.lang.String dbName) |
static java.util.List<Evolution> |
getEvolutionScript(java.lang.String dbName,
java.lang.String moduleKey,
VirtualFile evolutionsDirectory) |
static java.util.Stack<Evolution> |
listApplicationEvolutions(java.lang.String dBName,
java.lang.String moduleKey,
VirtualFile evolutionsDirectory) |
static java.util.Stack<Evolution> |
listDatabaseEvolutions(java.lang.String dbName,
java.lang.String moduleKey) |
static void |
main(java.lang.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(java.lang.String dBName,
int revision) |
static void |
resolve(java.lang.String dBName,
java.lang.String moduleKey,
int revision) |
static java.lang.String |
toHumanReadableScript(java.util.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
public static void main(java.lang.String[] args) throws java.sql.SQLException
java.sql.SQLException
public boolean rawInvocation(Http.Request request, Http.Response response) throws java.lang.Exception
PlayPlugin
rawInvocation
in class PlayPlugin
request
- The Play requestresponse
- The Play responsejava.lang.Exception
- if cannot enhance the classpublic 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(java.lang.String dBName, int revision)
public static void resolve(java.lang.String dBName, java.lang.String moduleKey, int revision)
public static boolean applyScript(boolean runScript, java.lang.String moduleKey, VirtualFile evolutionsDirectory)
public static boolean applyScript(java.lang.String dbName, boolean runScript, java.lang.String moduleKey, VirtualFile evolutionsDirectory)
public static java.lang.String toHumanReadableScript(java.util.List<Evolution> evolutionScript)
public static void checkEvolutionsState()
public static void checkEvolutionsState(java.lang.String dbName)
public static java.util.List<Evolution> getEvolutionScript(java.lang.String dbName, java.lang.String moduleKey, VirtualFile evolutionsDirectory)
public static java.util.Stack<Evolution> listApplicationEvolutions(java.lang.String dBName, java.lang.String moduleKey, VirtualFile evolutionsDirectory)
public static java.util.Stack<Evolution> listDatabaseEvolutions(java.lang.String dbName, java.lang.String moduleKey)
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly