Package com.liferay.portal.kernel.dao.orm

Examples of com.liferay.portal.kernel.dao.orm.QueryPos


            try {
                session = openSession();

                Query q = session.createQuery(sql);

                QueryPos qPos = QueryPos.getInstance(q);

                if (certificateID != null) {
                    qPos.add(certificateID.intValue());
                }

                if (siteID != null) {
                    qPos.add(siteID.intValue());
                }

                if (!pagination) {
                    list = (List<LFCertificateSite>) QueryUtil.list(q,
                            getDialect(), start, end, false);
View Full Code Here


        Query q = session.createQuery(sql);

        q.setFirstResult(0);
        q.setMaxResults(2);

        QueryPos qPos = QueryPos.getInstance(q);

        if (certificateID != null) {
            qPos.add(certificateID.intValue());
        }

        if (siteID != null) {
            qPos.add(siteID.intValue());
        }

        if (orderByComparator != null) {
            Object[] values = orderByComparator.getOrderByConditionValues(lfCertificateSite);

            for (Object value : values) {
                qPos.add(value);
            }
        }

        List<LFCertificateSite> list = q.list();
View Full Code Here

            try {
                session = openSession();

                Query q = session.createQuery(sql);

                QueryPos qPos = QueryPos.getInstance(q);

                if (certificateIDs != null) {
                    for (Integer certificateID : certificateIDs) {
                        if (certificateID != null) {
                            qPos.add(certificateID);
                        }
                    }
                }

                if (siteID != null) {
                    qPos.add(siteID.intValue());
                }

                if (!pagination) {
                    list = (List<LFCertificateSite>) QueryUtil.list(q,
                            getDialect(), start, end, false);
View Full Code Here

            try {
                session = openSession();

                Query q = session.createQuery(sql);

                QueryPos qPos = QueryPos.getInstance(q);

                if (certificateID != null) {
                    qPos.add(certificateID.intValue());
                }

                if (siteID != null) {
                    qPos.add(siteID.intValue());
                }

                count = (Long) q.uniqueResult();

                FinderCacheUtil.putResult(finderPath, finderArgs, count);
View Full Code Here

            try {
                session = openSession();

                Query q = session.createQuery(sql);

                QueryPos qPos = QueryPos.getInstance(q);

                if (certificateIDs != null) {
                    for (Integer certificateID : certificateIDs) {
                        if (certificateID != null) {
                            qPos.add(certificateID);
                        }
                    }
                }

                if (siteID != null) {
                    qPos.add(siteID.intValue());
                }

                count = (Long) q.uniqueResult();

                FinderCacheUtil.putResult(FINDER_PATH_WITH_PAGINATION_COUNT_BY_CERTIFICATEIDANDSITEID,
View Full Code Here

            try {
                session = openSession();

                Query q = session.createQuery(sql);

                QueryPos qPos = QueryPos.getInstance(q);

                if (bindTincanID) {
                    if (tincanID != null) {
                        qPos.add(tincanID);
                    }
                }

                List<LFTincanActor> list = q.list();
View Full Code Here

            try {
                session = openSession();

                Query q = session.createQuery(sql);

                QueryPos qPos = QueryPos.getInstance(q);

                if (bindTincanID) {
                    if (tincanID != null) {
                        qPos.add(tincanID);
                    }
                }

                count = (Long) q.uniqueResult();
View Full Code Here

            try {
                session = openSession();

                Query q = session.createQuery(sql);

                QueryPos qPos = QueryPos.getInstance(q);

                if (bindMemberOf) {
                    if (memberOf != null) {
                        qPos.add(memberOf);
                    }
                }

                if (!pagination) {
                    list = (List<LFTincanActor>) QueryUtil.list(q,
View Full Code Here

        Query q = session.createQuery(sql);

        q.setFirstResult(0);
        q.setMaxResults(2);

        QueryPos qPos = QueryPos.getInstance(q);

        if (bindMemberOf) {
            if (memberOf != null) {
                qPos.add(memberOf);
            }
        }

        if (orderByComparator != null) {
            Object[] values = orderByComparator.getOrderByConditionValues(lfTincanActor);

            for (Object value : values) {
                qPos.add(value);
            }
        }

        List<LFTincanActor> list = q.list();
View Full Code Here

            try {
                session = openSession();

                Query q = session.createQuery(sql);

                QueryPos qPos = QueryPos.getInstance(q);

                if (bindMemberOf) {
                    if (memberOf != null) {
                        qPos.add(memberOf);
                    }
                }

                count = (Long) q.uniqueResult();
View Full Code Here

TOP

Related Classes of com.liferay.portal.kernel.dao.orm.QueryPos

Copyright © 2018 www.massapicom. 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.