148149150151152153154155156157
commitTransaction(); } catch (Exception e) { rollbackTransaction(); String error = Convert.toString(MSG_ERROR_OPT, "add: ", type); Logger.error(error, e); throw new JPAException(error, e); } return merged; }
171172173174175176177178
types.addAll(mergeds); } catch (Exception e) { rollbackTransaction(); String error = Convert.toString(MSG_ERROR_OPT, "addAll"); Logger.error(error, e); throw new JPAException(error, e); } }
186187188189190191192193
return this.execute(getQuery(filter), filter); } catch (Exception e) { String error = Convert.toString(MSG_ERROR_OPT, "filter: ", filter); Logger.error(error, e); throw new JPAException(error, e); } }
201202203204205206207208
return this.executeAll(getQuery(filter), filter); } catch (Exception e) { String error = Convert.toString(MSG_ERROR_OPT, "filter: ", filter); Logger.error(error, e); throw new JPAException(error, e); } }
212213214215216217218219
try { return manager.find(clazz, id); } catch (Exception e) { String error = Convert.toString(MSG_ERROR_OPT, "get: ", id); Logger.error(error, e); throw new JPAException(error, e); } }
230231232233234235236237
"SELECT t FROM ", clazz.getSimpleName(), " AS t" ))); } catch (Exception e) { String error = Convert.toString(MSG_ERROR_OPT, "getAll"); Logger.error(error, e); throw new JPAException(error, e); } }
245246247248249250251252
commitTransaction(); } catch (Exception e) { rollbackTransaction(); String error = Convert.toString(MSG_ERROR_OPT, "remove: ", type); Logger.error(error, e); throw new JPAException(error, e); } }
262263264265266267268269
commitTransaction(); } catch (Exception e) { rollbackTransaction(); String error = Convert.toString(MSG_ERROR_OPT, "removeAll"); Logger.error(error, e); throw new JPAException(error, e); } }
326327328329330331332333
} catch (Exception e) { rollbackTransaction(); String error = Convert.toString(MSG_ERROR_OPT, "execute"); Logger.error(error, e); throw new JPAException(error, e); } }
395396397398399400401402
return results; } catch (Exception e) { String error = Convert.toString(MSG_ERROR_OPT, "executeAll"); Logger.error(error, e); throw new JPAException(error, e); } }