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