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.dynamicdatalists.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     */
025    @ProviderType
026    public class DDLRecordSetFinderUtil {
027            public static int countByKeywords(long companyId, long groupId,
028                    java.lang.String keywords, int scope) {
029                    return getFinder().countByKeywords(companyId, groupId, keywords, scope);
030            }
031    
032            public static int countByC_G_N_D_S(long companyId, long groupId,
033                    java.lang.String name, java.lang.String description, int scope,
034                    boolean andOperator) {
035                    return getFinder()
036                                       .countByC_G_N_D_S(companyId, groupId, name, description,
037                            scope, andOperator);
038            }
039    
040            public static int filterCountByKeywords(long companyId, long groupId,
041                    java.lang.String keywords, int scope) {
042                    return getFinder()
043                                       .filterCountByKeywords(companyId, groupId, keywords, scope);
044            }
045    
046            public static int filterCountByC_G_N_D_S(long companyId, long groupId,
047                    java.lang.String name, java.lang.String description, int scope,
048                    boolean andOperator) {
049                    return getFinder()
050                                       .filterCountByC_G_N_D_S(companyId, groupId, name,
051                            description, scope, andOperator);
052            }
053    
054            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> filterFindByKeywords(
055                    long companyId, long groupId, java.lang.String keywords, int scope,
056                    int start, int end,
057                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> orderByComparator) {
058                    return getFinder()
059                                       .filterFindByKeywords(companyId, groupId, keywords, scope,
060                            start, end, orderByComparator);
061            }
062    
063            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> filterFindByC_G_N_D_S(
064                    long companyId, long groupId, java.lang.String name,
065                    java.lang.String description, int scope, boolean andOperator,
066                    int start, int end,
067                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> orderByComparator) {
068                    return getFinder()
069                                       .filterFindByC_G_N_D_S(companyId, groupId, name,
070                            description, scope, andOperator, start, end, orderByComparator);
071            }
072    
073            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> filterFindByC_G_N_D_S(
074                    long companyId, long groupId, java.lang.String[] names,
075                    java.lang.String[] descriptions, int scope, boolean andOperator,
076                    int start, int end,
077                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> orderByComparator) {
078                    return getFinder()
079                                       .filterFindByC_G_N_D_S(companyId, groupId, names,
080                            descriptions, scope, andOperator, start, end, orderByComparator);
081            }
082    
083            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByKeywords(
084                    long companyId, long groupId, java.lang.String keywords, int scope,
085                    int start, int end,
086                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> orderByComparator) {
087                    return getFinder()
088                                       .findByKeywords(companyId, groupId, keywords, scope, start,
089                            end, orderByComparator);
090            }
091    
092            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByC_G_N_D_S(
093                    long companyId, long groupId, java.lang.String name,
094                    java.lang.String description, int scope, boolean andOperator,
095                    int start, int end,
096                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> orderByComparator) {
097                    return getFinder()
098                                       .findByC_G_N_D_S(companyId, groupId, name, description,
099                            scope, andOperator, start, end, orderByComparator);
100            }
101    
102            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByC_G_N_D_S(
103                    long companyId, long groupId, java.lang.String[] names,
104                    java.lang.String[] descriptions, int scope, boolean andOperator,
105                    int start, int end,
106                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> orderByComparator) {
107                    return getFinder()
108                                       .findByC_G_N_D_S(companyId, groupId, names, descriptions,
109                            scope, andOperator, start, end, orderByComparator);
110            }
111    
112            public static DDLRecordSetFinder getFinder() {
113                    if (_finder == null) {
114                            _finder = (DDLRecordSetFinder)PortalBeanLocatorUtil.locate(DDLRecordSetFinder.class.getName());
115    
116                            ReferenceRegistry.registerReference(DDLRecordSetFinderUtil.class,
117                                    "_finder");
118                    }
119    
120                    return _finder;
121            }
122    
123            public void setFinder(DDLRecordSetFinder finder) {
124                    _finder = finder;
125    
126                    ReferenceRegistry.registerReference(DDLRecordSetFinderUtil.class,
127                            "_finder");
128            }
129    
130            private static DDLRecordSetFinder _finder;
131    }