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.bookmarks.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 BookmarksFolderFinderUtil {
027            public static int countF_E_ByG_F(long groupId, long folderId,
028                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
029                    return getFinder().countF_E_ByG_F(groupId, folderId, queryDefinition);
030            }
031    
032            public static int filterCountF_E_ByG_F(long groupId, long folderId,
033                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
034                    return getFinder()
035                                       .filterCountF_E_ByG_F(groupId, folderId, queryDefinition);
036            }
037    
038            public static java.util.List<java.lang.Object> filterFindBF_E_ByG_F(
039                    long groupId, long folderId,
040                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
041                    return getFinder()
042                                       .filterFindBF_E_ByG_F(groupId, folderId, queryDefinition);
043            }
044    
045            public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByNoAssets() {
046                    return getFinder().findByNoAssets();
047            }
048    
049            public static java.util.List<java.lang.Object> findF_E_ByG_F(long groupId,
050                    long folderId,
051                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
052                    return getFinder().findF_E_ByG_F(groupId, folderId, queryDefinition);
053            }
054    
055            public static BookmarksFolderFinder getFinder() {
056                    if (_finder == null) {
057                            _finder = (BookmarksFolderFinder)PortalBeanLocatorUtil.locate(BookmarksFolderFinder.class.getName());
058    
059                            ReferenceRegistry.registerReference(BookmarksFolderFinderUtil.class,
060                                    "_finder");
061                    }
062    
063                    return _finder;
064            }
065    
066            public void setFinder(BookmarksFolderFinder finder) {
067                    _finder = finder;
068    
069                    ReferenceRegistry.registerReference(BookmarksFolderFinderUtil.class,
070                            "_finder");
071            }
072    
073            private static BookmarksFolderFinder _finder;
074    }