979899100101102103104105106107
} else { throw new RejectedException("this message store doesn't supports direction '" + direction + "'"); } } catch (SQLException e) { throw new StoreException(e); } finally { if (conn != null) { try { conn.close(); } catch (SQLException e) {} } }
132133134135136137138139140141142
} } else { throw new RejectedException("this message store doesn't supports direction '" + direction + "'"); } } catch (SQLException e) { throw new StoreException(e); } finally { if (conn != null) { try { conn.close(); } catch (Exception e) {} } }
159160161162163164165166167168169
if (supports) { handler.updateMessagesStatus(conn, criteria, newStatus); } } catch (SQLException e) { throw new StoreException(e); } finally { if (conn != null) { try { conn.close(); } catch (Exception e) {} } }
195196197198199200201202203204205
log.trace("list messages took " + (System.currentTimeMillis() - startTime) + " millis"); return ret; } catch (SQLException e) { throw new StoreException(e); } finally { if (conn != null) { try { conn.close(); } catch (Exception e) {} } }
5960616263646566
save(message); } else { update(message); } } catch (Exception e) { throw new StoreException(e); } }
152153154155156157158159
if (direction == null || Direction.TO_APPLICATIONS.equals(direction)) { updateStatus(APPLICATIONS_MSGS, criteria, newStatus); } } catch (Exception e) { throw new StoreException(e); } }
197198199200201202203204
messages.addAll(list(APPLICATIONS_MSGS, criteria)); } return messages; } catch (Exception e) { throw new StoreException(e); } }