/** * Checks if a query is precomputed or not for the given type * * @param query the query * @param type the type * @return true if and only if the given query is (already) precomputed * @throws ObjectStoreException if the is a database problem */ public boolean isPrecomputed(Query query, String type) throws ObjectStoreException { Connection c = null; try { c = getConnection(); return isPrecomputedWithConnection(c, query, type); } catch (SQLException e) { throw new ObjectStoreException("Could not get connection to database", e); } finally { releaseConnection(c); } }
/** * Checks if a query is precomputed or not for the given type * * @param query the query * @param type the type * @return true if and only if the given query is (already) precomputed * @throws ObjectStoreException if the is a database problem */ public boolean isPrecomputed(Query query, String type) throws ObjectStoreException { Connection c = null; try { c = getConnection(); return isPrecomputedWithConnection(c, query, type); } catch (SQLException e) { throw new ObjectStoreException("Could not get connection to database", e); } finally { releaseConnection(c); } }