@ApplicationScoped public class DatabaseAutoSynchronizer extends Object
protected String
customDelimiter
customDelimiterEnabler
databaseConfigDir
protected String[]
excludedScriptStatements
installedModulesTable
DatabaseAutoSynchronizer()
protected void
createDatabase(String databaseName)
protected boolean
existsModulesTable(String default_schema)
removeComments(String ddlStatement)
runDDL(String ddl)
runSQLFile(File f)
void
synchronize(HibernateInitializer hibernateInitializer)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@Inject protected String databaseConfigDir
@Inject protected String installedModulesTable
@Inject protected String[] excludedScriptStatements
@Inject protected String customDelimiter
@Inject protected String customDelimiterEnabler
public DatabaseAutoSynchronizer()
public void synchronize(HibernateInitializer hibernateInitializer) throws Exception
Exception
protected void createDatabase(String databaseName) throws Exception
protected void runSQLFile(File f) throws Exception
protected void runDDL(String ddl) throws Exception
protected String removeComments(String ddlStatement)
protected boolean existsModulesTable(String default_schema) throws Exception
default_schema
Copyright © 2012-2015 JBoss by Red Hat. All Rights Reserved.