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.journal.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * @author Brian Wing Shun Chan
022     */
023    public class JournalFolderFinderUtil {
024            public static int countF_A_ByG_F(long groupId, long folderId,
025                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
026                    throws com.liferay.portal.kernel.exception.SystemException {
027                    return getFinder().countF_A_ByG_F(groupId, folderId, queryDefinition);
028            }
029    
030            public static int filterCountF_A_ByG_F(long groupId, long folderId,
031                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
032                    throws com.liferay.portal.kernel.exception.SystemException {
033                    return getFinder()
034                                       .filterCountF_A_ByG_F(groupId, folderId, queryDefinition);
035            }
036    
037            public static java.util.List<java.lang.Object> filterFindF_A_ByG_F(
038                    long groupId, long folderId,
039                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
040                    throws com.liferay.portal.kernel.exception.SystemException {
041                    return getFinder()
042                                       .filterFindF_A_ByG_F(groupId, folderId, queryDefinition);
043            }
044    
045            public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> findF_ByNoAssets()
046                    throws com.liferay.portal.kernel.exception.SystemException {
047                    return getFinder().findF_ByNoAssets();
048            }
049    
050            public static java.util.List<java.lang.Object> findF_A_ByG_F(long groupId,
051                    long folderId,
052                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
053                    throws com.liferay.portal.kernel.exception.SystemException {
054                    return getFinder().findF_A_ByG_F(groupId, folderId, queryDefinition);
055            }
056    
057            public static JournalFolderFinder getFinder() {
058                    if (_finder == null) {
059                            _finder = (JournalFolderFinder)PortalBeanLocatorUtil.locate(JournalFolderFinder.class.getName());
060    
061                            ReferenceRegistry.registerReference(JournalFolderFinderUtil.class,
062                                    "_finder");
063                    }
064    
065                    return _finder;
066            }
067    
068            public void setFinder(JournalFolderFinder finder) {
069                    _finder = finder;
070    
071                    ReferenceRegistry.registerReference(JournalFolderFinderUtil.class,
072                            "_finder");
073            }
074    
075            private static JournalFolderFinder _finder;
076    }