Here are the examples of the java api org.hibernate.Criteria.scroll() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
17
Source : AbstractHibernateDAO.java
with GNU Affero General Public License v3.0
from KnowageLabs
with GNU Affero General Public License v3.0
from KnowageLabs
protected int getTotalNumber(Criteria criteria) {
ScrollableResults results = criteria.scroll();
results.last();
int total = results.getRowNumber() + 1;
results.close();
return total;
}