public class LocalDatabaseCreator
extends org.wso2.carbon.utils.dbcreator.DatabaseCreator
Constructor and Description |
---|
LocalDatabaseCreator(DataSource dataSource)
DataSource will set in super class.
|
Modifier and Type | Method and Description |
---|---|
void |
createRegistryDatabase()
Creates database if the script exists, otherwise returns with exception.
|
protected String |
getDbScriptLocation(String databaseType)
This method returns relevant mb store sql file path based on given database type.
|
public LocalDatabaseCreator(DataSource dataSource)
dataSource
- public void createRegistryDatabase() throws ConfigurationException
createRegistryDatabase
in class org.wso2.carbon.utils.dbcreator.DatabaseCreator
ConfigurationException
protected String getDbScriptLocation(String databaseType)
getDbScriptLocation
in class org.wso2.carbon.utils.dbcreator.DatabaseCreator
databaseType
- type of the database as a string.Copyright © 2019 WSO2. All rights reserved.