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.documentlibrary.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 DLFileEntryTypeFinderUtil {
028            public static int countByKeywords(long companyId, long[] groupIds,
029                    java.lang.String keywords, boolean includeBasicFileEntryType) {
030                    return getFinder()
031                                       .countByKeywords(companyId, groupIds, keywords,
032                            includeBasicFileEntryType);
033            }
034    
035            public static int filterCountByKeywords(long companyId, long[] groupIds,
036                    java.lang.String keywords, boolean includeBasicFileEntryType) {
037                    return getFinder()
038                                       .filterCountByKeywords(companyId, groupIds, keywords,
039                            includeBasicFileEntryType);
040            }
041    
042            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByKeywords(
043                    long companyId, long[] groupIds, java.lang.String keywords,
044                    boolean includeBasicFileEntryType, int start, int end,
045                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator) {
046                    return getFinder()
047                                       .filterFindByKeywords(companyId, groupIds, keywords,
048                            includeBasicFileEntryType, start, end, orderByComparator);
049            }
050    
051            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByKeywords(
052                    long companyId, long[] groupIds, java.lang.String keywords,
053                    boolean includeBasicFileEntryType, int start, int end,
054                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator) {
055                    return getFinder()
056                                       .findByKeywords(companyId, groupIds, keywords,
057                            includeBasicFileEntryType, start, end, orderByComparator);
058            }
059    
060            public static DLFileEntryTypeFinder getFinder() {
061                    if (_finder == null) {
062                            _finder = (DLFileEntryTypeFinder)PortalBeanLocatorUtil.locate(DLFileEntryTypeFinder.class.getName());
063    
064                            ReferenceRegistry.registerReference(DLFileEntryTypeFinderUtil.class,
065                                    "_finder");
066                    }
067    
068                    return _finder;
069            }
070    
071            public void setFinder(DLFileEntryTypeFinder finder) {
072                    _finder = finder;
073    
074                    ReferenceRegistry.registerReference(DLFileEntryTypeFinderUtil.class,
075                            "_finder");
076            }
077    
078            private static DLFileEntryTypeFinder _finder;
079    }