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