org.hibernate.Criteria.scroll()

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 7

17 Source : AbstractHibernateDAO.java
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;
}