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