closeEMF(tempEMF);
}
}
protected void setSupportedDatabases(Class<?> ... dbs) {
OpenJPAEntityManagerFactorySPI tempEMF = emf;
if (tempEMF == null) {
tempEMF = createEMF();
}
DBDictionary dict = ((JDBCConfiguration)tempEMF.getConfiguration()).getDBDictionaryInstance();
boolean supportedDB = false;
for (Class<?> db : dbs) {
if (dict.getClass().getCanonicalName().equalsIgnoreCase(db.getCanonicalName())) {
supportedDB = true;
break;