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