001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.mobiledevicerules.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * @author Edward C. Han
022     */
023    public class MDRRuleGroupFinderUtil {
024            public static int countByKeywords(long groupId, java.lang.String keywords)
025                    throws com.liferay.portal.kernel.exception.SystemException {
026                    return getFinder().countByKeywords(groupId, keywords);
027            }
028    
029            public static int countByG_N(long groupId, java.lang.String name,
030                    boolean andOperator)
031                    throws com.liferay.portal.kernel.exception.SystemException {
032                    return getFinder().countByG_N(groupId, name, andOperator);
033            }
034    
035            public static int countByG_N(long groupId, java.lang.String[] names,
036                    boolean andOperator)
037                    throws com.liferay.portal.kernel.exception.SystemException {
038                    return getFinder().countByG_N(groupId, names, andOperator);
039            }
040    
041            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByKeywords(
042                    long groupId, java.lang.String keywords, int start, int end)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return getFinder().findByKeywords(groupId, keywords, start, end);
045            }
046    
047            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByG_N(
048                    long groupId, java.lang.String name, boolean andOperator)
049                    throws com.liferay.portal.kernel.exception.SystemException {
050                    return getFinder().findByG_N(groupId, name, andOperator);
051            }
052    
053            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByG_N(
054                    long groupId, java.lang.String name, boolean andOperator, int start,
055                    int end) throws com.liferay.portal.kernel.exception.SystemException {
056                    return getFinder().findByG_N(groupId, name, andOperator, start, end);
057            }
058    
059            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> findByG_N(
060                    long groupId, java.lang.String[] names, boolean andOperator, int start,
061                    int end) throws com.liferay.portal.kernel.exception.SystemException {
062                    return getFinder().findByG_N(groupId, names, andOperator, start, end);
063            }
064    
065            public static MDRRuleGroupFinder getFinder() {
066                    if (_finder == null) {
067                            _finder = (MDRRuleGroupFinder)PortalBeanLocatorUtil.locate(MDRRuleGroupFinder.class.getName());
068    
069                            ReferenceRegistry.registerReference(MDRRuleGroupFinderUtil.class,
070                                    "_finder");
071                    }
072    
073                    return _finder;
074            }
075    
076            public void setFinder(MDRRuleGroupFinder finder) {
077                    _finder = finder;
078    
079                    ReferenceRegistry.registerReference(MDRRuleGroupFinderUtil.class,
080                            "_finder");
081            }
082    
083            private static MDRRuleGroupFinder _finder;
084    }