|| (engine == DatabaseEngineType.ORACLE)
|| (engine == DatabaseEngineType.SQL_SERVER);
}
public void delete() throws Exception {
JDOManager jdo = getJDOManager(DBNAME, MAPPING);
// Delete all records to avoid problems with previous runs
Connection conn = jdo.getConnectionFactory().createConnection();
conn.setAutoCommit(true);
conn.createStatement().execute("DELETE FROM test87_entity");
conn.close();
LOG.debug("Deleted all records from database.");
// Expire all objects in cache
Database db = jdo.getDatabase();
db.getCacheManager().expireCache();
db.close();
LOG.debug("Expired all objects from cache.");
}