/** * {@inheritDoc} */ @Override public void addAllToBag(ObjectStoreBag osb, Collection<Integer> coll) throws ObjectStoreException { try { Connection c = null; try { c = getConnection(); addAllToBagWithConnection(c, osb, coll); } finally { releaseConnection(c); } } catch (SQLException e) { throw new ObjectStoreException("Could not get connection to database", e); } }
/** * {@inheritDoc} */ @Override public void addAllToBag(ObjectStoreBag osb, Collection<Integer> coll) throws ObjectStoreException { try { Connection c = null; try { c = getConnection(); addAllToBagWithConnection(c, osb, coll); } finally { releaseConnection(c); } } catch (SQLException e) { throw new ObjectStoreException("Could not get connection to database", e); } }