private void purgeOOBs() {
purgeTables("rhq_measurement_oob");
}
private void purgeTables(final String... tables) {
executeInTransaction(false, new TransactionCallback() {
@Override
public void execute() throws Exception {
for (String table : tables) {
getEntityManager().createNativeQuery("delete from " + table).executeUpdate();
}