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