Revision 83ec5bc6
Added by Katja Luther almost 13 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IdentifiableServiceBase.java | ||
---|---|---|
90 | 90 |
// TODO: Implement parameters pageSize, pageNumber, and criteria |
91 | 91 |
} |
92 | 92 |
|
93 |
@Transactional(readOnly = true) |
|
94 |
protected Integer countByTitle(IIdentifiableEntityServiceConfigurator config){ |
|
95 |
return ((IIdentifiableDao)dao).countByTitle(config.getTitleSearchString(), |
|
96 |
config.getMatchMode(), null); |
|
97 |
|
|
98 |
} |
|
99 |
|
|
93 | 100 |
@Transactional(readOnly = false) |
94 | 101 |
public T replace(T x, T y) { |
95 | 102 |
return dao.replace(x, y); |
... | ... | |
383 | 390 |
} |
384 | 391 |
return result; |
385 | 392 |
} |
393 |
|
|
394 |
public Integer countByTitle(Class<? extends T> clazz, String queryString,MatchMode matchmode, List<Criterion> criteria, List<String> propertyPaths){ |
|
395 |
Integer numberOfResults = dao.countByTitle(clazz, queryString, matchmode, criteria); |
|
396 |
|
|
397 |
return numberOfResults; |
|
398 |
} |
|
386 | 399 |
|
387 | 400 |
} |
388 | 401 |
|
Also available in: Unified diff
countByTitle() method for IIdentifiableService