@ApplicationScoped public class DatabaseAutoSynchronizer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
customDelimiter |
protected String |
customDelimiterEnabler |
protected String |
databaseConfigDir |
protected String[] |
excludedScriptStatements |
protected String |
installedModulesTable |
| Constructor and Description |
|---|
DatabaseAutoSynchronizer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createDatabase(String databaseName) |
protected boolean |
existsModulesTable(String default_schema)
Check if the dashbuilder installed modules table exist.
|
protected String |
removeComments(String ddlStatement) |
protected void |
runDDL(String ddl) |
protected void |
runSQLFile(File f) |
void |
synchronize(HibernateInitializer hibernateInitializer) |
@Inject protected String databaseConfigDir
@Inject protected String installedModulesTable
@Inject protected String[] excludedScriptStatements
@Inject protected String customDelimiter
@Inject protected String customDelimiterEnabler
public void synchronize(HibernateInitializer hibernateInitializer) throws Exception
Exceptionprotected void createDatabase(String databaseName) throws Exception
Exceptionprotected boolean existsModulesTable(String default_schema) throws Exception
default_schema argument to allow finding tables only for a given database schema.default_schema - If specified, look up the table only for the specified schema.ExceptionCopyright © 2012–2016 JBoss by Red Hat. All rights reserved.