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.mobiledevicerules.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 Edward C. Han
024     */
025    @ProviderType
026    public class MDRRuleGroupFinderUtil {
027            public static int countByKeywords(long groupId, java.lang.String keywords,
028                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) {
029                    return getFinder().countByKeywords(groupId, keywords, params);
030            }
031    
032            public static int countByG_N(long groupId, java.lang.String name,
033                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
034                    boolean andOperator) {
035                    return getFinder().countByG_N(groupId, name, params, andOperator);
036            }
037    
038            public static int countByG_N(long groupId, java.lang.String[] names,
039                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
040                    boolean andOperator) {
041                    return getFinder().countByG_N(groupId, names, params, andOperator);
042            }
043    
044            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByKeywords(
045                    long groupId, java.lang.String keywords,
046                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
047                    int start, int end) {
048                    return getFinder().findByKeywords(groupId, keywords, params, start, end);
049            }
050    
051            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByG_N(
052                    long groupId, java.lang.String name,
053                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
054                    boolean andOperator) {
055                    return getFinder().findByG_N(groupId, name, params, andOperator);
056            }
057    
058            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByG_N(
059                    long groupId, java.lang.String name,
060                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
061                    boolean andOperator, int start, int end) {
062                    return getFinder()
063                                       .findByG_N(groupId, name, params, andOperator, start, end);
064            }
065    
066            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByG_N(
067                    long groupId, java.lang.String[] names,
068                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
069                    boolean andOperator, int start, int end) {
070                    return getFinder()
071                                       .findByG_N(groupId, names, params, andOperator, start, end);
072            }
073    
074            public static MDRRuleGroupFinder getFinder() {
075                    if (_finder == null) {
076                            _finder = (MDRRuleGroupFinder)PortalBeanLocatorUtil.locate(MDRRuleGroupFinder.class.getName());
077    
078                            ReferenceRegistry.registerReference(MDRRuleGroupFinderUtil.class,
079                                    "_finder");
080                    }
081    
082                    return _finder;
083            }
084    
085            public void setFinder(MDRRuleGroupFinder finder) {
086                    _finder = finder;
087    
088                    ReferenceRegistry.registerReference(MDRRuleGroupFinderUtil.class,
089                            "_finder");
090            }
091    
092            private static MDRRuleGroupFinder _finder;
093    }