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  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  
21  import com.liferay.portlet.wiki.model.WikiPageResource;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="WikiPageResourceUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       WikiPageResourcePersistence
35   * @see       WikiPageResourcePersistenceImpl
36   * @generated
37   */
38  public class WikiPageResourceUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(WikiPageResource)
48       */
49      public static void clearCache(WikiPageResource wikiPageResource) {
50          getPersistence().clearCache(wikiPageResource);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
55       */
56      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().countWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
63       */
64      public static List<WikiPageResource> findWithDynamicQuery(
65          DynamicQuery dynamicQuery) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
71       */
72      public static List<WikiPageResource> findWithDynamicQuery(
73          DynamicQuery dynamicQuery, int start, int end)
74          throws SystemException {
75          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
80       */
81      public static WikiPageResource remove(WikiPageResource wikiPageResource)
82          throws SystemException {
83          return getPersistence().remove(wikiPageResource);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static WikiPageResource update(WikiPageResource wikiPageResource,
90          boolean merge) throws SystemException {
91          return getPersistence().update(wikiPageResource, merge);
92      }
93  
94      public static void cacheResult(
95          com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource) {
96          getPersistence().cacheResult(wikiPageResource);
97      }
98  
99      public static void cacheResult(
100         java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> wikiPageResources) {
101         getPersistence().cacheResult(wikiPageResources);
102     }
103 
104     public static com.liferay.portlet.wiki.model.WikiPageResource create(
105         long resourcePrimKey) {
106         return getPersistence().create(resourcePrimKey);
107     }
108 
109     public static com.liferay.portlet.wiki.model.WikiPageResource remove(
110         long resourcePrimKey)
111         throws com.liferay.portal.kernel.exception.SystemException,
112             com.liferay.portlet.wiki.NoSuchPageResourceException {
113         return getPersistence().remove(resourcePrimKey);
114     }
115 
116     public static com.liferay.portlet.wiki.model.WikiPageResource updateImpl(
117         com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource,
118         boolean merge)
119         throws com.liferay.portal.kernel.exception.SystemException {
120         return getPersistence().updateImpl(wikiPageResource, merge);
121     }
122 
123     public static com.liferay.portlet.wiki.model.WikiPageResource findByPrimaryKey(
124         long resourcePrimKey)
125         throws com.liferay.portal.kernel.exception.SystemException,
126             com.liferay.portlet.wiki.NoSuchPageResourceException {
127         return getPersistence().findByPrimaryKey(resourcePrimKey);
128     }
129 
130     public static com.liferay.portlet.wiki.model.WikiPageResource fetchByPrimaryKey(
131         long resourcePrimKey)
132         throws com.liferay.portal.kernel.exception.SystemException {
133         return getPersistence().fetchByPrimaryKey(resourcePrimKey);
134     }
135 
136     public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findByUuid(
137         java.lang.String uuid)
138         throws com.liferay.portal.kernel.exception.SystemException {
139         return getPersistence().findByUuid(uuid);
140     }
141 
142     public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findByUuid(
143         java.lang.String uuid, int start, int end)
144         throws com.liferay.portal.kernel.exception.SystemException {
145         return getPersistence().findByUuid(uuid, start, end);
146     }
147 
148     public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findByUuid(
149         java.lang.String uuid, int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException {
152         return getPersistence().findByUuid(uuid, start, end, orderByComparator);
153     }
154 
155     public static com.liferay.portlet.wiki.model.WikiPageResource findByUuid_First(
156         java.lang.String uuid,
157         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158         throws com.liferay.portal.kernel.exception.SystemException,
159             com.liferay.portlet.wiki.NoSuchPageResourceException {
160         return getPersistence().findByUuid_First(uuid, orderByComparator);
161     }
162 
163     public static com.liferay.portlet.wiki.model.WikiPageResource findByUuid_Last(
164         java.lang.String uuid,
165         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166         throws com.liferay.portal.kernel.exception.SystemException,
167             com.liferay.portlet.wiki.NoSuchPageResourceException {
168         return getPersistence().findByUuid_Last(uuid, orderByComparator);
169     }
170 
171     public static com.liferay.portlet.wiki.model.WikiPageResource[] findByUuid_PrevAndNext(
172         long resourcePrimKey, java.lang.String uuid,
173         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174         throws com.liferay.portal.kernel.exception.SystemException,
175             com.liferay.portlet.wiki.NoSuchPageResourceException {
176         return getPersistence()
177                    .findByUuid_PrevAndNext(resourcePrimKey, uuid,
178             orderByComparator);
179     }
180 
181     public static com.liferay.portlet.wiki.model.WikiPageResource findByN_T(
182         long nodeId, java.lang.String title)
183         throws com.liferay.portal.kernel.exception.SystemException,
184             com.liferay.portlet.wiki.NoSuchPageResourceException {
185         return getPersistence().findByN_T(nodeId, title);
186     }
187 
188     public static com.liferay.portlet.wiki.model.WikiPageResource fetchByN_T(
189         long nodeId, java.lang.String title)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return getPersistence().fetchByN_T(nodeId, title);
192     }
193 
194     public static com.liferay.portlet.wiki.model.WikiPageResource fetchByN_T(
195         long nodeId, java.lang.String title, boolean retrieveFromCache)
196         throws com.liferay.portal.kernel.exception.SystemException {
197         return getPersistence().fetchByN_T(nodeId, title, retrieveFromCache);
198     }
199 
200     public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll()
201         throws com.liferay.portal.kernel.exception.SystemException {
202         return getPersistence().findAll();
203     }
204 
205     public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll(
206         int start, int end)
207         throws com.liferay.portal.kernel.exception.SystemException {
208         return getPersistence().findAll(start, end);
209     }
210 
211     public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll(
212         int start, int end,
213         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214         throws com.liferay.portal.kernel.exception.SystemException {
215         return getPersistence().findAll(start, end, orderByComparator);
216     }
217 
218     public static void removeByUuid(java.lang.String uuid)
219         throws com.liferay.portal.kernel.exception.SystemException {
220         getPersistence().removeByUuid(uuid);
221     }
222 
223     public static void removeByN_T(long nodeId, java.lang.String title)
224         throws com.liferay.portal.kernel.exception.SystemException,
225             com.liferay.portlet.wiki.NoSuchPageResourceException {
226         getPersistence().removeByN_T(nodeId, title);
227     }
228 
229     public static void removeAll()
230         throws com.liferay.portal.kernel.exception.SystemException {
231         getPersistence().removeAll();
232     }
233 
234     public static int countByUuid(java.lang.String uuid)
235         throws com.liferay.portal.kernel.exception.SystemException {
236         return getPersistence().countByUuid(uuid);
237     }
238 
239     public static int countByN_T(long nodeId, java.lang.String title)
240         throws com.liferay.portal.kernel.exception.SystemException {
241         return getPersistence().countByN_T(nodeId, title);
242     }
243 
244     public static int countAll()
245         throws com.liferay.portal.kernel.exception.SystemException {
246         return getPersistence().countAll();
247     }
248 
249     public static WikiPageResourcePersistence getPersistence() {
250         if (_persistence == null) {
251             _persistence = (WikiPageResourcePersistence)PortalBeanLocatorUtil.locate(WikiPageResourcePersistence.class.getName());
252         }
253 
254         return _persistence;
255     }
256 
257     public void setPersistence(WikiPageResourcePersistence persistence) {
258         _persistence = persistence;
259     }
260 
261     private static WikiPageResourcePersistence _persistence;
262 }