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     * @generated
025     */
026    @ProviderType
027    public class JournalFeedFinderUtil {
028            public static int countByKeywords(long companyId, long groupId,
029                    java.lang.String keywords) {
030                    return getFinder().countByKeywords(companyId, groupId, keywords);
031            }
032    
033            public static int countByC_G_F_N_D(long companyId, long groupId,
034                    java.lang.String feedId, java.lang.String name,
035                    java.lang.String description, boolean andOperator) {
036                    return getFinder()
037                                       .countByC_G_F_N_D(companyId, groupId, feedId, name,
038                            description, andOperator);
039            }
040    
041            public static int countByC_G_F_N_D(long companyId, long groupId,
042                    java.lang.String[] feedIds, java.lang.String[] names,
043                    java.lang.String[] descriptions, boolean andOperator) {
044                    return getFinder()
045                                       .countByC_G_F_N_D(companyId, groupId, feedIds, names,
046                            descriptions, andOperator);
047            }
048    
049            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByKeywords(
050                    long companyId, long groupId, java.lang.String keywords, int start,
051                    int end,
052                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> obc) {
053                    return getFinder()
054                                       .findByKeywords(companyId, groupId, keywords, start, end, obc);
055            }
056    
057            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByC_G_F_N_D(
058                    long companyId, long groupId, java.lang.String feedId,
059                    java.lang.String name, java.lang.String description,
060                    boolean andOperator, int start, int end,
061                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> obc) {
062                    return getFinder()
063                                       .findByC_G_F_N_D(companyId, groupId, feedId, name,
064                            description, andOperator, start, end, obc);
065            }
066    
067            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByC_G_F_N_D(
068                    long companyId, long groupId, java.lang.String[] feedIds,
069                    java.lang.String[] names, java.lang.String[] descriptions,
070                    boolean andOperator, int start, int end,
071                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFeed> obc) {
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                            ReferenceRegistry.registerReference(JournalFeedFinderUtil.class,
082                                    "_finder");
083                    }
084    
085                    return _finder;
086            }
087    
088            public void setFinder(JournalFeedFinder finder) {
089                    _finder = finder;
090    
091                    ReferenceRegistry.registerReference(JournalFeedFinderUtil.class,
092                            "_finder");
093            }
094    
095            private static JournalFeedFinder _finder;
096    }