1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.wiki.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="WikiPageFinderUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public class WikiPageFinderUtil {
25      public static int countByCreateDate(long nodeId, java.util.Date createDate,
26          boolean before)
27          throws com.liferay.portal.kernel.exception.SystemException {
28          return getFinder().countByCreateDate(nodeId, createDate, before);
29      }
30  
31      public static int countByCreateDate(long nodeId,
32          java.sql.Timestamp createDate, boolean before)
33          throws com.liferay.portal.kernel.exception.SystemException {
34          return getFinder().countByCreateDate(nodeId, createDate, before);
35      }
36  
37      public static com.liferay.portlet.wiki.model.WikiPage findByResourcePrimKey(
38          long resourcePrimKey)
39          throws com.liferay.portal.kernel.exception.SystemException,
40              com.liferay.portlet.wiki.NoSuchPageException {
41          return getFinder().findByResourcePrimKey(resourcePrimKey);
42      }
43  
44      public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByCreateDate(
45          long nodeId, java.util.Date createDate, boolean before, int start,
46          int end) throws com.liferay.portal.kernel.exception.SystemException {
47          return getFinder()
48                     .findByCreateDate(nodeId, createDate, before, start, end);
49      }
50  
51      public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByCreateDate(
52          long nodeId, java.sql.Timestamp createDate, boolean before, int start,
53          int end) throws com.liferay.portal.kernel.exception.SystemException {
54          return getFinder()
55                     .findByCreateDate(nodeId, createDate, before, start, end);
56      }
57  
58      public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> findByNoAssets()
59          throws com.liferay.portal.kernel.exception.SystemException {
60          return getFinder().findByNoAssets();
61      }
62  
63      public static WikiPageFinder getFinder() {
64          if (_finder == null) {
65              _finder = (WikiPageFinder)PortalBeanLocatorUtil.locate(WikiPageFinder.class.getName());
66          }
67  
68          return _finder;
69      }
70  
71      public void setFinder(WikiPageFinder finder) {
72          _finder = finder;
73      }
74  
75      private static WikiPageFinder _finder;
76  }