Search in sources :

Example 1 with H2DatabaseManager

use of org.wso2.carbon.h2.osgi.console.H2DatabaseManager in project jaggery by wso2.

the class ShellUtilityService method initializeUtilityServices.

/**
     * Initialize utility services for command line client
     * @throws SQLException 
     *
     */
protected static void initializeUtilityServices() throws SQLException {
    //H2 database
    final H2DatabaseManager databaseManager = H2DatabaseManager.getInstance();
    databaseManager.initialize();
}
Also used : H2DatabaseManager(org.wso2.carbon.h2.osgi.console.H2DatabaseManager)

Example 2 with H2DatabaseManager

use of org.wso2.carbon.h2.osgi.console.H2DatabaseManager in project jaggery by wso2.

the class ShellUtilityService method destroyUtilityServices.

/**
     * Destroy utility services for command line client
     *
     */
protected static void destroyUtilityServices() {
    //H2 database
    final H2DatabaseManager databaseManager = H2DatabaseManager.getInstance();
    databaseManager.terminate();
}
Also used : H2DatabaseManager(org.wso2.carbon.h2.osgi.console.H2DatabaseManager)

Aggregations

H2DatabaseManager (org.wso2.carbon.h2.osgi.console.H2DatabaseManager)2