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.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                    throws com.liferay.portal.kernel.exception.SystemException {
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                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return getFinder().countByCreateDate(groupId, nodeId, createDate, before);
037            }
038    
039            public static int countByG_N_H_S(long groupId, long nodeId, boolean head,
040                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return getFinder().countByG_N_H_S(groupId, nodeId, head, queryDefinition);
043            }
044    
045            public static int filterCountByCreateDate(long groupId, long nodeId,
046                    java.util.Date createDate, boolean before)
047                    throws com.liferay.portal.kernel.exception.SystemException {
048                    return getFinder()
049                                       .filterCountByCreateDate(groupId, nodeId, createDate, before);
050            }
051    
052            public static int filterCountByCreateDate(long groupId, long nodeId,
053                    java.sql.Timestamp createDate, boolean before)
054                    throws com.liferay.portal.kernel.exception.SystemException {
055                    return getFinder()
056                                       .filterCountByCreateDate(groupId, nodeId, createDate, before);
057            }
058    
059            public static int filterCountByG_N_H_S(long groupId, long nodeId,
060                    boolean head,
061                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
062                    throws com.liferay.portal.kernel.exception.SystemException {
063                    return getFinder()
064                                       .filterCountByG_N_H_S(groupId, nodeId, head, queryDefinition);
065            }
066    
067            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByCreateDate(
068                    long groupId, long nodeId, java.util.Date createDate, boolean before,
069                    int start, int end)
070                    throws com.liferay.portal.kernel.exception.SystemException {
071                    return getFinder()
072                                       .filterFindByCreateDate(groupId, nodeId, createDate, before,
073                            start, end);
074            }
075    
076            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByCreateDate(
077                    long groupId, long nodeId, java.sql.Timestamp createDate,
078                    boolean before, int start, int end)
079                    throws com.liferay.portal.kernel.exception.SystemException {
080                    return getFinder()
081                                       .filterFindByCreateDate(groupId, nodeId, createDate, before,
082                            start, end);
083            }
084    
085            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> filterFindByG_N_H_S(
086                    long groupId, long nodeId, boolean head,
087                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
088                    throws com.liferay.portal.kernel.exception.SystemException {
089                    return getFinder()
090                                       .filterFindByG_N_H_S(groupId, nodeId, head, queryDefinition);
091            }
092    
093            public static com.liferay.portlet.wiki.model.WikiPage findByResourcePrimKey(
094                    long resourcePrimKey)
095                    throws com.liferay.portal.kernel.exception.SystemException,
096                            com.liferay.portlet.wiki.NoSuchPageException {
097                    return getFinder().findByResourcePrimKey(resourcePrimKey);
098            }
099    
100            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByCreateDate(
101                    long groupId, long nodeId, java.util.Date createDate, boolean before,
102                    int start, int end)
103                    throws com.liferay.portal.kernel.exception.SystemException {
104                    return getFinder()
105                                       .findByCreateDate(groupId, nodeId, createDate, before,
106                            start, end);
107            }
108    
109            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByCreateDate(
110                    long groupId, long nodeId, java.sql.Timestamp createDate,
111                    boolean before, int start, int end)
112                    throws com.liferay.portal.kernel.exception.SystemException {
113                    return getFinder()
114                                       .findByCreateDate(groupId, nodeId, createDate, before,
115                            start, end);
116            }
117    
118            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByNoAssets()
119                    throws com.liferay.portal.kernel.exception.SystemException {
120                    return getFinder().findByNoAssets();
121            }
122    
123            public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByG_N_H_S(
124                    long groupId, long nodeId, boolean head,
125                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
126                    throws com.liferay.portal.kernel.exception.SystemException {
127                    return getFinder().findByG_N_H_S(groupId, nodeId, head, queryDefinition);
128            }
129    
130            public static WikiPageFinder getFinder() {
131                    if (_finder == null) {
132                            _finder = (WikiPageFinder)PortalBeanLocatorUtil.locate(WikiPageFinder.class.getName());
133    
134                            ReferenceRegistry.registerReference(WikiPageFinderUtil.class,
135                                    "_finder");
136                    }
137    
138                    return _finder;
139            }
140    
141            public void setFinder(WikiPageFinder finder) {
142                    _finder = finder;
143    
144                    ReferenceRegistry.registerReference(WikiPageFinderUtil.class, "_finder");
145            }
146    
147            private static WikiPageFinder _finder;
148    }