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 |
CUSTOM_DELIMITER
public static final String CUSTOM_DELIMITER
- See Also:
- Constant Field Values
CUSTOM_DELIMITER_ENABLER
public static final String CUSTOM_DELIMITER_ENABLER
- See Also:
- Constant Field Values
DATABASE_CONFIG_DIR
public static final String DATABASE_CONFIG_DIR
- See Also:
- Constant Field Values
DatabaseAutoSynchronizer
public DatabaseAutoSynchronizer()
getTestTableExistsSql
public String getTestTableExistsSql()
setTestTableExistsSql
public void setTestTableExistsSql(String testTableExistsSql)
getCreateFiles
public Properties getCreateFiles()
setCreateFiles
public void setCreateFiles(Properties createFiles)
getSupportedDatabases
public String[] getSupportedDatabases()
setSupportedDatabases
public void setSupportedDatabases(String[] supportedDatabases)
getExcludedScriptStatements
public String[] getExcludedScriptStatements()
setExcludedScriptStatements
public void setExcludedScriptStatements(String[] excludedScriptStatements)
synchronize
public void synchronize(HibernateInitializer hibernateInitializer)
throws Exception
- Throws:
Exception
createProductDatabase
protected void createProductDatabase(String databaseName)
throws Exception
- Throws:
Exception
createDatabaseScriptPath
protected String createDatabaseScriptPath(String databaseName)
runScript
protected void runScript(String filePath)
throws Exception
- Throws:
Exception
runDDL
protected void runDDL(String ddl)
throws Exception
- Throws:
Exception
removeComments
protected String removeComments(String ddlStatement)
existsModulesTable
protected boolean existsModulesTable(String databaseName)
throws Exception
- Throws:
Exception
isCurrentDatabaseSupported
public boolean isCurrentDatabaseSupported(String databaseName)
Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.