if (!(iSqlDr.getDriverClassName().startsWith("org.apache.derby.jdbc.EmbeddedDriver"))) {
return;
}
//the code bellow is only for Embedded Derby Driver
IIdentifier drId = iSqlDr.getIdentifier();
SQLDriverManager sqlDrMan = _app.getSQLDriverManager();
//Getting java.sql.Driver to run shutdown command
Driver jdbcDr = sqlDrMan.getJDBCDriver(drId);
//Shutdown Embedded Derby DB
try {
jdbcDr.connect("jdbc:derby:;shutdown=true", new Properties());
} catch (SQLException e) {
//it is always thrown as said in Embedded Derby API.
//So it is not error it is info
s_log.info(e.getMessage());
}
//Re-registering driver is necessary for Embedded Derby
sqlDrMan.registerSQLDriver(iSqlDr);
} catch (RuntimeException e) {
s_log.error(e.getMessage(),e);
} catch (MalformedURLException e) {
s_log.error(e.getMessage(),e);
} catch (IllegalAccessException e) {