001    /**
002     * Copyright (c) 2000-2013 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                    throws com.liferay.portal.kernel.exception.SystemException {
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                    throws com.liferay.portal.kernel.exception.SystemException {
037                    return getFinder().countByG_N(groupId, name, params, andOperator);
038            }
039    
040            public static int countByG_N(long groupId, java.lang.String[] names,
041                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
042                    boolean andOperator)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return getFinder().countByG_N(groupId, names, params, andOperator);
045            }
046    
047            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByKeywords(
048                    long groupId, java.lang.String keywords,
049                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
050                    int start, int end)
051                    throws com.liferay.portal.kernel.exception.SystemException {
052                    return getFinder().findByKeywords(groupId, keywords, params, start, end);
053            }
054    
055            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByG_N(
056                    long groupId, java.lang.String name,
057                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
058                    boolean andOperator)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return getFinder().findByG_N(groupId, name, params, andOperator);
061            }
062    
063            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByG_N(
064                    long groupId, java.lang.String name,
065                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
066                    boolean andOperator, int start, int end)
067                    throws com.liferay.portal.kernel.exception.SystemException {
068                    return getFinder()
069                                       .findByG_N(groupId, name, params, andOperator, start, end);
070            }
071    
072            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByG_N(
073                    long groupId, java.lang.String[] names,
074                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
075                    boolean andOperator, int start, int end)
076                    throws com.liferay.portal.kernel.exception.SystemException {
077                    return getFinder()
078                                       .findByG_N(groupId, names, params, andOperator, start, end);
079            }
080    
081            public static MDRRuleGroupFinder getFinder() {
082                    if (_finder == null) {
083                            _finder = (MDRRuleGroupFinder)PortalBeanLocatorUtil.locate(MDRRuleGroupFinder.class.getName());
084    
085                            ReferenceRegistry.registerReference(MDRRuleGroupFinderUtil.class,
086                                    "_finder");
087                    }
088    
089                    return _finder;
090            }
091    
092            public void setFinder(MDRRuleGroupFinder finder) {
093                    _finder = finder;
094    
095                    ReferenceRegistry.registerReference(MDRRuleGroupFinderUtil.class,
096                            "_finder");
097            }
098    
099            private static MDRRuleGroupFinder _finder;
100    }