001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    public class JournalFeedFinderUtil {
023            public static int countByKeywords(long companyId, long groupId,
024                    java.lang.String keywords)
025                    throws com.liferay.portal.kernel.exception.SystemException {
026                    return getFinder().countByKeywords(companyId, groupId, keywords);
027            }
028    
029            public static int countByC_G_F_N_D(long companyId, long groupId,
030                    java.lang.String feedId, java.lang.String name,
031                    java.lang.String description, boolean andOperator)
032                    throws com.liferay.portal.kernel.exception.SystemException {
033                    return getFinder()
034                                       .countByC_G_F_N_D(companyId, groupId, feedId, name,
035                            description, andOperator);
036            }
037    
038            public static int countByC_G_F_N_D(long companyId, long groupId,
039                    java.lang.String[] feedIds, java.lang.String[] names,
040                    java.lang.String[] descriptions, boolean andOperator)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return getFinder()
043                                       .countByC_G_F_N_D(companyId, groupId, feedIds, names,
044                            descriptions, andOperator);
045            }
046    
047            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByKeywords(
048                    long companyId, long groupId, java.lang.String keywords, int start,
049                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
050                    throws com.liferay.portal.kernel.exception.SystemException {
051                    return getFinder()
052                                       .findByKeywords(companyId, groupId, keywords, start, end, obc);
053            }
054    
055            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByC_G_F_N_D(
056                    long companyId, long groupId, java.lang.String feedId,
057                    java.lang.String name, java.lang.String description,
058                    boolean andOperator, int start, int end,
059                    com.liferay.portal.kernel.util.OrderByComparator obc)
060                    throws com.liferay.portal.kernel.exception.SystemException {
061                    return getFinder()
062                                       .findByC_G_F_N_D(companyId, groupId, feedId, name,
063                            description, andOperator, start, end, obc);
064            }
065    
066            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByC_G_F_N_D(
067                    long companyId, long groupId, java.lang.String[] feedIds,
068                    java.lang.String[] names, java.lang.String[] descriptions,
069                    boolean andOperator, int start, int end,
070                    com.liferay.portal.kernel.util.OrderByComparator obc)
071                    throws com.liferay.portal.kernel.exception.SystemException {
072                    return getFinder()
073                                       .findByC_G_F_N_D(companyId, groupId, feedIds, names,
074                            descriptions, andOperator, start, end, obc);
075            }
076    
077            public static JournalFeedFinder getFinder() {
078                    if (_finder == null) {
079                            _finder = (JournalFeedFinder)PortalBeanLocatorUtil.locate(JournalFeedFinder.class.getName());
080                    }
081    
082                    return _finder;
083            }
084    
085            public void setFinder(JournalFeedFinder finder) {
086                    _finder = finder;
087            }
088    
089            private static JournalFeedFinder _finder;
090    }