/** {@link RepositoryOperations#count} */ public long count(Iterable<QueryCriteria> queryCriterias) { Criteria criteria = MongoQueryUtils.getQueryFromQueryCriteria(queryCriterias); Query query = new Query(); if (criteria != null) { query.addCriteria(criteria); } return mongoOperations.count(query, model); }
/** {@link RepositoryOperations#count} */ public long count() { return mongoOperations.count(new Query(), model); }
@Override public Long nombreComptes() { final Query query = new Query(); return mongoOperations.count(query, Compte.class); }