Package org.appng.cli.commands
Class CommandMain
- java.lang.Object
-
- org.appng.cli.commands.CommandMain
-
public class CommandMain extends Object
The mainappng
command.
Usage: appng [options] [command] [command options] Options: -h, -help Prints the usage of the appNG Command Line Interface Default: false -initdatabase, -i Initializes the database. Use this in production. Must be executed also if connection parameters like user name or password of the database root connection have been changed. Default: false -managed, -m Make the root-connection managed by appNG Default: false -plainsql Do not format the SQL. Default: false -schemaexport Exports the schema to the database. Use only during development! Default: false -showsql Prints formatted SQL. Default: false
- Author:
- Matthias Herlitzius
-
-
Constructor Summary
Constructors Constructor Description CommandMain()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.flywaydb.core.api.MigrationInfo
doInitDatabase(DatabaseService databaseService, Properties config)
Initializes the appNG root connectionMap<String,String>
getHibernateParams()
List<String>
getParameters()
boolean
isConnectionManaged()
boolean
isInitDatabase()
boolean
isSchemaExport()
boolean
isUsage()
-
-
-
Method Detail
-
isUsage
public boolean isUsage()
-
isSchemaExport
public boolean isSchemaExport()
-
isInitDatabase
public boolean isInitDatabase()
-
isConnectionManaged
public boolean isConnectionManaged()
-
doInitDatabase
public org.flywaydb.core.api.MigrationInfo doInitDatabase(DatabaseService databaseService, Properties config)
Initializes the appNG root connection- Parameters:
databaseService
- aDatabaseService
config
- the properties read from "/conf/appNG.properties"- Returns:
- the
MigrationInfo
for the current version of the database (seeMigrationInfoService.current()
)
-
-