public class CommandMain extends Object
appng
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
Constructor and Description |
---|
CommandMain() |
Modifier and Type | Method and Description |
---|---|
org.flywaydb.core.api.MigrationInfo |
doInitDatabase(DatabaseService databaseService,
Properties config)
Initializes the appNG root connection
|
Map<String,String> |
getHibernateParams() |
List<String> |
getParameters() |
boolean |
isConnectionManaged() |
boolean |
isInitDatabase() |
boolean |
isSchemaExport() |
boolean |
isUsage() |
public boolean isUsage()
public boolean isSchemaExport()
public boolean isInitDatabase()
public boolean isConnectionManaged()
public org.flywaydb.core.api.MigrationInfo doInitDatabase(DatabaseService databaseService, Properties config)
databaseService
- a DatabaseService
config
- the properties read from "/WEB-INF/conf/appNG.properties"MigrationInfo
for the current version of the database (see
MigrationInfoService.current()
)Copyright © 2011–2017 aiticon GmbH. All rights reserved.