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.wiki.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 WikiPageFinderUtil {
027            public static int countByCreateDate(long groupId, long nodeId,
028                    java.util.Date createDate, boolean before) {
029                    return getFinder().countByCreateDate(groupId, nodeId, createDate, before);
030            }
031    
032            public static int countByCreateDate(long groupId, long nodeId,
033                    java.sql.Timestamp createDate, boolean before) {
034                    return getFinder().countByCreateDate(groupId, nodeId, createDate, before);
035            }
036    
037            public static int filterCountByCreateDate(long groupId, long nodeId,
038                    java.util.Date createDate, boolean before) {
039                    return getFinder()
040                                       .filterCountByCreateDate(groupId, nodeId, createDate, before);
041            }
042    
043            public static int filterCountByCreateDate(long groupId, long nodeId,
044                    java.sql.Timestamp createDate, boolean before) {
045                    return getFinder()
046                                       .filterCountByCreateDate(groupId, nodeId, createDate, before);
047            }
048    
049            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByCreateDate(
050                    long groupId, long nodeId, java.util.Date createDate, boolean before,
051                    int start, int end) {
052                    return getFinder()
053                                       .filterFindByCreateDate(groupId, nodeId, createDate, before,
054                            start, end);
055            }
056    
057            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByCreateDate(
058                    long groupId, long nodeId, java.sql.Timestamp createDate,
059                    boolean before, int start, int end) {
060                    return getFinder()
061                                       .filterFindByCreateDate(groupId, nodeId, createDate, before,
062                            start, end);
063            }
064    
065            public static com.liferay.portlet.wiki.model.WikiPage findByResourcePrimKey(
066                    long resourcePrimKey)
067                    throws com.liferay.portlet.wiki.NoSuchPageException {
068                    return getFinder().findByResourcePrimKey(resourcePrimKey);
069            }
070    
071            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByCreateDate(
072                    long groupId, long nodeId, java.util.Date createDate, boolean before,
073                    int start, int end) {
074                    return getFinder()
075                                       .findByCreateDate(groupId, nodeId, createDate, before,
076                            start, end);
077            }
078    
079            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByCreateDate(
080                    long groupId, long nodeId, java.sql.Timestamp createDate,
081                    boolean before, int start, int end) {
082                    return getFinder()
083                                       .findByCreateDate(groupId, nodeId, createDate, before,
084                            start, end);
085            }
086    
087            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByNoAssets() {
088                    return getFinder().findByNoAssets();
089            }
090    
091            public static WikiPageFinder getFinder() {
092                    if (_finder == null) {
093                            _finder = (WikiPageFinder)PortalBeanLocatorUtil.locate(WikiPageFinder.class.getName());
094    
095                            ReferenceRegistry.registerReference(WikiPageFinderUtil.class,
096                                    "_finder");
097                    }
098    
099                    return _finder;
100            }
101    
102            public void setFinder(WikiPageFinder finder) {
103                    _finder = finder;
104    
105                    ReferenceRegistry.registerReference(WikiPageFinderUtil.class, "_finder");
106            }
107    
108            private static WikiPageFinder _finder;
109    }