/** * {@inheritDoc} */ @Override public void delete(InterMineObject o) throws ObjectStoreException { Connection c = null; try { c = getConnection(); deleteWithConnection(c, o); } catch (SQLException e) { throw new ObjectStoreException("Could not get connection to database", e); } finally { releaseConnection(c); } }
/** * {@inheritDoc} */ @Override public void delete(QueryClass qc, Constraint c) throws ObjectStoreException { Connection con = null; try { con = getConnection(); deleteWithConnection(con, qc, c); } catch (SQLException e) { throw new ObjectStoreException("Could not get connection to database", e); } finally { releaseConnection(con); } }
/** * {@inheritDoc} */ @Override public void delete(InterMineObject o) throws ObjectStoreException { Connection c = null; try { c = getConnection(); deleteWithConnection(c, o); } catch (SQLException e) { throw new ObjectStoreException("Could not get connection to database", e); } finally { releaseConnection(c); } }
/** * {@inheritDoc} */ @Override public void delete(QueryClass qc, Constraint c) throws ObjectStoreException { Connection con = null; try { con = getConnection(); deleteWithConnection(con, qc, c); } catch (SQLException e) { throw new ObjectStoreException("Could not get connection to database", e); } finally { releaseConnection(con); } }