Revision ea33ac4f
Added by Andreas Müller almost 6 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/description/DescriptionElementDaoImpl.java | ||
---|---|---|
57 | 57 |
} |
58 | 58 |
|
59 | 59 |
@Override |
60 |
public int count(Class<? extends DescriptionElementBase> clazz, String queryString) {
|
|
60 |
public long count(Class<? extends DescriptionElementBase> clazz, String queryString) {
|
|
61 | 61 |
checkNotInPriorView("DescriptionElementDaoImpl.countTextData(String queryString)"); |
62 | 62 |
QueryParser queryParser = new QueryParser(defaultField, new StandardAnalyzer()); |
63 | 63 |
|
... | ... | |
72 | 72 |
} else { |
73 | 73 |
fullTextQuery = fullTextSession.createFullTextQuery(query, clazz); |
74 | 74 |
} |
75 |
return fullTextQuery.getResultSize();
|
|
75 |
return fullTextQuery.getResultSize(); |
|
76 | 76 |
} catch (ParseException e) { |
77 | 77 |
throw new QueryParseException(e, queryString); |
78 | 78 |
} |
Also available in: Unified diff
use long instead of int (cont.)