public class SqlMigrationAction extends Object implements StallionRunAction<SqlMigrateCommandOptions>
Constructor and Description |
---|
SqlMigrationAction() |
Modifier and Type | Method and Description |
---|---|
void |
execute(SqlMigrateCommandOptions options)
Actually do the action.
|
String |
getActionName()
The name of the action, will be used on the command line to run the action.
|
List<SqlMigration> |
getDefaultMigrations() |
String |
getHelp()
A friendly description of what the action does, will be printed on the command-line
when help is asked for.
|
ScriptEngine |
getOrCreateScriptEngine() |
List<SqlMigration> |
getUserMigrations() |
void |
loadApp(SqlMigrateCommandOptions options)
Load the application context.
|
SqlMigrateCommandOptions |
newCommandOptions()
Each action might have its own command-line arguments.
|
String |
transformJavascript(String source) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSubActionName
public SqlMigrationAction()
public String getActionName()
StallionRunAction
getActionName
in interface StallionRunAction<SqlMigrateCommandOptions>
public String getHelp()
StallionRunAction
getHelp
in interface StallionRunAction<SqlMigrateCommandOptions>
public SqlMigrateCommandOptions newCommandOptions()
StallionRunAction
newCommandOptions
in interface StallionRunAction<SqlMigrateCommandOptions>
public void loadApp(SqlMigrateCommandOptions options)
StallionRunAction
loadApp
in interface StallionRunAction<SqlMigrateCommandOptions>
public void execute(SqlMigrateCommandOptions options) throws Exception
StallionRunAction
execute
in interface StallionRunAction<SqlMigrateCommandOptions>
Exception
public String transformJavascript(String source)
public ScriptEngine getOrCreateScriptEngine()
public List<SqlMigration> getUserMigrations()
public List<SqlMigration> getDefaultMigrations()
Copyright © 2016. All rights reserved.