Package es.uma.crudframework.dao.hibernate.support

Examples of es.uma.crudframework.dao.hibernate.support.CrudHibernateTemplate.loadPage()


    public final List<T> getPage(final int pag, final int numRes) {
        List<T> result = null;
        try {
            final HibernateTemplate ht = super.getHibernateTemplate();
            final CrudHibernateTemplate lht = new CrudHibernateTemplate(ht);
            result = lht.loadPage(this.persistentClass, pag, numRes);
        } catch (final Exception e) {
            this.log.error("ERROR al obtener la página " + pag + " en BD:\n "
                    + e);
            throw ExceptionUtil.crearCrudException("ERROR_GET_ALL_BD", e);
        }
View Full Code Here


        List<T> result = null;
        try {
            final HibernateTemplate ht = super.getHibernateTemplate();

            final CrudHibernateTemplate lht = new CrudHibernateTemplate(ht);
            result = lht.loadPage(this.persistentClass, pag, numRes,
                    orderColumn, ascendingOrder);
        } catch (final Exception e) {
            this.log.error("ERROR al obtener la página " + pag + " en BD:\n "
                    + e);
            throw ExceptionUtil.crearCrudException("ERROR_GET_ALL_BD", e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.