01: /**
02: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
03: *
04: * Permission is hereby granted, free of charge, to any person obtaining a copy
05: * of this software and associated documentation files (the "Software"), to deal
06: * in the Software without restriction, including without limitation the rights
07: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
08: * copies of the Software, and to permit persons to whom the Software is
09: * furnished to do so, subject to the following conditions:
10: *
11: * The above copyright notice and this permission notice shall be included in
12: * all copies or substantial portions of the Software.
13: *
14: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20: * SOFTWARE.
21: */package com.liferay.portlet.wiki.service.persistence;
22:
23: /**
24: * <a href="WikiPageFinderUtil.java.html"><b><i>View Source</i></b></a>
25: *
26: * @author Brian Wing Shun Chan
27: *
28: */
29: public class WikiPageFinderUtil {
30: public static int countByCreateDate(long nodeId,
31: java.util.Date createDate, boolean before)
32: throws com.liferay.portal.SystemException {
33: return getFinder()
34: .countByCreateDate(nodeId, createDate, before);
35: }
36:
37: public static int countByCreateDate(long nodeId,
38: java.sql.Timestamp createDate, boolean before)
39: throws com.liferay.portal.SystemException {
40: return getFinder()
41: .countByCreateDate(nodeId, createDate, before);
42: }
43:
44: public static java.util.List findByCreateDate(long nodeId,
45: java.util.Date createDate, boolean before, int begin,
46: int end) throws com.liferay.portal.SystemException {
47: return getFinder().findByCreateDate(nodeId, createDate, before,
48: begin, end);
49: }
50:
51: public static java.util.List findByCreateDate(long nodeId,
52: java.sql.Timestamp createDate, boolean before, int begin,
53: int end) throws com.liferay.portal.SystemException {
54: return getFinder().findByCreateDate(nodeId, createDate, before,
55: begin, end);
56: }
57:
58: public static java.util.List findByNoAssets()
59: throws com.liferay.portal.SystemException {
60: return getFinder().findByNoAssets();
61: }
62:
63: public static com.liferay.portlet.wiki.model.WikiPage findByUuid_G(
64: java.lang.String uuid, long groupId)
65: throws com.liferay.portal.SystemException,
66: com.liferay.portlet.wiki.NoSuchPageException {
67: return getFinder().findByUuid_G(uuid, groupId);
68: }
69:
70: public static WikiPageFinder getFinder() {
71: return _getUtil()._finder;
72: }
73:
74: public void setFinder(WikiPageFinder finder) {
75: _finder = finder;
76: }
77:
78: private static WikiPageFinderUtil _getUtil() {
79: if (_util == null) {
80: _util = (WikiPageFinderUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
81: .locate(_UTIL);
82: }
83:
84: return _util;
85: }
86:
87: private static final String _UTIL = WikiPageFinderUtil.class
88: .getName();
89: private static WikiPageFinderUtil _util;
90: private WikiPageFinder _finder;
91: }
|