public static boolean rollbackQuietly(DSLContext context) { if (context == null) { return false; } return JooqUtils.rollbackQuietly(context); }
@Override public void clear(Class component, Language lang) throws DaoException { if (!tableExists()) { return; } DSLContext context = getJooq(); try { context.delete(Tables.META_INFO) .where(Tables.META_INFO.COMPONENT.eq(component.getSimpleName())) .and(Tables.META_INFO.LANG_ID.eq(lang.getId())) .execute(); JooqUtils.commit(context); } catch (RuntimeException e) { JooqUtils.rollbackQuietly(context); throw e; } catch (DaoException e) { JooqUtils.rollbackQuietly(context); throw e; } finally { freeJooq(context); } }
JooqUtils.commit(context); } catch (RuntimeException e) { JooqUtils.rollbackQuietly(context); throw e; } finally {