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 (bindObjectType) {
                    if (objectType != null) {
                        qPos.add(objectType);
                    }
                }

                if (bindMbox) {
                    if (mbox != null) {
                        qPos.add(mbox);
                    }
                }

                if (bindMbox_sha1sum) {
                    if (mbox_sha1sum != null) {
                        qPos.add(mbox_sha1sum);
                    }
                }

                if (bindOpenid) {
                    if (openid != null) {
                        qPos.add(openid);
                    }
                }

                if (bindAccount) {
                    if (account != null) {
                        qPos.add(account);
                    }
                }

                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 (bindObjectType) {
            if (objectType != null) {
                qPos.add(objectType);
            }
        }

        if (bindMbox) {
            if (mbox != null) {
                qPos.add(mbox);
            }
        }

        if (bindMbox_sha1sum) {
            if (mbox_sha1sum != null) {
                qPos.add(mbox_sha1sum);
            }
        }

        if (bindOpenid) {
            if (openid != null) {
                qPos.add(openid);
            }
        }

        if (bindAccount) {
            if (account != null) {
                qPos.add(account);
            }
        }

        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 (bindObjectType) {
                    if (objectType != null) {
                        qPos.add(objectType);
                    }
                }

                if (bindMbox) {
                    if (mbox != null) {
                        qPos.add(mbox);
                    }
                }

                if (bindMbox_sha1sum) {
                    if (mbox_sha1sum != null) {
                        qPos.add(mbox_sha1sum);
                    }
                }

                if (bindOpenid) {
                    if (openid != null) {
                        qPos.add(openid);
                    }
                }

                if (bindAccount) {
                    if (account != null) {
                        qPos.add(account);
                    }
                }

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

            try {
                session = openSession();

                Query q = session.createQuery(sql);

                QueryPos qPos = QueryPos.getInstance(q);

                if (bindDocumentId) {
                    if (documentId != null) {
                        qPos.add(documentId);
                    }
                }

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

            try {
                session = openSession();

                Query q = session.createQuery(sql);

                QueryPos qPos = QueryPos.getInstance(q);

                if (bindDocumentId) {
                    if (documentId != null) {
                        qPos.add(documentId);
                    }
                }

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

            try {
                session = openSession();

                Query q = session.createQuery(sql);

                QueryPos qPos = QueryPos.getInstance(q);

                if (bindFilename) {
                    if (filename != null) {
                        qPos.add(filename);
                    }
                }

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

        Query q = session.createQuery(sql);

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

        QueryPos qPos = QueryPos.getInstance(q);

        if (bindFilename) {
            if (filename != null) {
                qPos.add(filename);
            }
        }

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

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

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

            try {
                session = openSession();

                Query q = session.createQuery(sql);

                QueryPos qPos = QueryPos.getInstance(q);

                if (bindFilename) {
                    if (filename != null) {
                        qPos.add(filename);
                    }
                }

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

            try {
                session = openSession();

                Query q = session.createQuery(sql);

                QueryPos qPos = QueryPos.getInstance(q);

                if (bindFilename) {
                    if (filename != null) {
                        qPos.add(filename);
                    }
                }

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

        Query q = session.createQuery(sql);

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

        QueryPos qPos = QueryPos.getInstance(q);

        if (bindFilename) {
            if (filename != null) {
                qPos.add(filename);
            }
        }

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

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

        List<LFFileStorage> list = q.list();
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.