001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * @author Brian Wing Shun Chan
024     */
025    @ProviderType
026    public class JournalFeedFinderUtil {
027            public static int countByKeywords(long companyId, long groupId,
028                    java.lang.String keywords) {
029                    return getFinder().countByKeywords(companyId, groupId, keywords);
030            }
031    
032            public static int countByC_G_F_N_D(long companyId, long groupId,
033                    java.lang.String feedId, java.lang.String name,
034                    java.lang.String description, boolean andOperator) {
035                    return getFinder()
036                                       .countByC_G_F_N_D(companyId, groupId, feedId, name,
037                            description, andOperator);
038            }
039    
040            public static int countByC_G_F_N_D(long companyId, long groupId,
041                    java.lang.String[] feedIds, java.lang.String[] names,
042                    java.lang.String[] descriptions, boolean andOperator) {
043                    return getFinder()
044                                       .countByC_G_F_N_D(companyId, groupId, feedIds, names,
045                            descriptions, andOperator);
046            }
047    
048            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByKeywords(
049                    long companyId, long groupId, java.lang.String keywords, int start,
050                    int end,
051                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> obc) {
052                    return getFinder()
053                                       .findByKeywords(companyId, groupId, keywords, start, end, obc);
054            }
055    
056            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByC_G_F_N_D(
057                    long companyId, long groupId, java.lang.String feedId,
058                    java.lang.String name, java.lang.String description,
059                    boolean andOperator, int start, int end,
060                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> obc) {
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<com.liferay.portlet.journal.model.JournalFeed> obc) {
071                    return getFinder()
072                                       .findByC_G_F_N_D(companyId, groupId, feedIds, names,
073                            descriptions, andOperator, start, end, obc);
074            }
075    
076            public static JournalFeedFinder getFinder() {
077                    if (_finder == null) {
078                            _finder = (JournalFeedFinder)PortalBeanLocatorUtil.locate(JournalFeedFinder.class.getName());
079    
080                            ReferenceRegistry.registerReference(JournalFeedFinderUtil.class,
081                                    "_finder");
082                    }
083    
084                    return _finder;
085            }
086    
087            public void setFinder(JournalFeedFinder finder) {
088                    _finder = finder;
089    
090                    ReferenceRegistry.registerReference(JournalFeedFinderUtil.class,
091                            "_finder");
092            }
093    
094            private static JournalFeedFinder _finder;
095    }