org.jboss.dashboard.database
Class DatabaseAutoSynchronizer
java.lang.Object
org.jboss.dashboard.database.DatabaseAutoSynchronizer
@ApplicationScoped
public class DatabaseAutoSynchronizer
- extends Object
This component manages the database creation.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
databaseConfigDir
@Inject
protected String databaseConfigDir
installedModulesTable
@Inject
protected String installedModulesTable
excludedScriptStatements
@Inject
protected String[] excludedScriptStatements
customDelimiter
@Inject
protected String customDelimiter
customDelimiterEnabler
@Inject
protected String customDelimiterEnabler
DatabaseAutoSynchronizer
public DatabaseAutoSynchronizer()
synchronize
public void synchronize(HibernateInitializer hibernateInitializer)
throws Exception
- Throws:
Exception
createDatabase
protected void createDatabase(String databaseName)
throws Exception
- Throws:
Exception
runSQLFile
protected void runSQLFile(File f)
throws Exception
- Throws:
Exception
runDDL
protected void runDDL(String ddl)
throws Exception
- Throws:
Exception
removeComments
protected String removeComments(String ddlStatement)
existsModulesTable
protected boolean existsModulesTable()
throws Exception
- Throws:
Exception
Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.