/** * {@inheritDoc} */ public ResultsInfo estimate(Query q) throws ObjectStoreException { Connection c = null; try { c = getConnection(); return estimateWithConnection(c, q); } catch (SQLException e) { throw new ObjectStoreException("Could not get connection to database", e); } finally { releaseConnection(c); } }
/** * {@inheritDoc} */ public ResultsInfo estimate(Query q) throws ObjectStoreException { Connection c = null; try { c = getConnection(); return estimateWithConnection(c, q); } catch (SQLException e) { throw new ObjectStoreException("Could not get connection to database", e); } finally { releaseConnection(c); } }