723724725726727728729730731732733
} return 0; } catch (HibernateException he) { throw new SystemException(he); } finally { HibernateUtil.closeSession(session); } }
760761762763764765766767768769770
125126127128129130131132133134135
count += rs.getInt(1); } } } catch (Exception e) { throw new SystemException(e); } finally { DataAccess.cleanUp(con, ps, rs); }
219220221222223224225226227228229
list.add(vote); } } } catch (Exception e) { throw new SystemException(e); } finally { DataAccess.cleanUp(con, ps, rs); }
7071727374757677787980
catch (HibernateException he) { if (he instanceof ObjectNotFoundException) { throw new NoSuchVoteException(pollsVotePK.toString()); } else { throw new SystemException(he); } } finally { HibernateUtil.closeSession(session); }
121122123124125126127128129130131
} return pollsVote; } catch (HibernateException he) { throw new SystemException(he); } finally { HibernateUtil.closeSession(session); } }
149150151152153154155156157158159
185186187188189190191192193194195
} return list; } catch (HibernateException he) { throw new SystemException(he); } finally { HibernateUtil.closeSession(session); } }
249250251252253254255256257258259
365366367368369370371372373374375
} return array; } catch (HibernateException he) { throw new SystemException(he); } finally { HibernateUtil.closeSession(session); } }