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.journal.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.journal.model.JournalStructure;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="JournalStructureUtil.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       JournalStructurePersistence
35   * @see       JournalStructurePersistenceImpl
36   * @generated
37   */
38  public class JournalStructureUtil {
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#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58          int start, int end) throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static JournalStructure remove(JournalStructure journalStructure)
66          throws SystemException {
67          return getPersistence().remove(journalStructure);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static JournalStructure update(JournalStructure journalStructure,
74          boolean merge) throws SystemException {
75          return getPersistence().update(journalStructure, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.journal.model.JournalStructure journalStructure) {
80          getPersistence().cacheResult(journalStructure);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.journal.model.JournalStructure> journalStructures) {
85          getPersistence().cacheResult(journalStructures);
86      }
87  
88      public static com.liferay.portlet.journal.model.JournalStructure create(
89          long id) {
90          return getPersistence().create(id);
91      }
92  
93      public static com.liferay.portlet.journal.model.JournalStructure remove(
94          long id)
95          throws com.liferay.portal.kernel.exception.SystemException,
96              com.liferay.portlet.journal.NoSuchStructureException {
97          return getPersistence().remove(id);
98      }
99  
100     public static com.liferay.portlet.journal.model.JournalStructure updateImpl(
101         com.liferay.portlet.journal.model.JournalStructure journalStructure,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(journalStructure, merge);
105     }
106 
107     public static com.liferay.portlet.journal.model.JournalStructure findByPrimaryKey(
108         long id)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.journal.NoSuchStructureException {
111         return getPersistence().findByPrimaryKey(id);
112     }
113 
114     public static com.liferay.portlet.journal.model.JournalStructure fetchByPrimaryKey(
115         long id) throws com.liferay.portal.kernel.exception.SystemException {
116         return getPersistence().fetchByPrimaryKey(id);
117     }
118 
119     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
120         java.lang.String uuid)
121         throws com.liferay.portal.kernel.exception.SystemException {
122         return getPersistence().findByUuid(uuid);
123     }
124 
125     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
126         java.lang.String uuid, int start, int end)
127         throws com.liferay.portal.kernel.exception.SystemException {
128         return getPersistence().findByUuid(uuid, start, end);
129     }
130 
131     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
132         java.lang.String uuid, int start, int end,
133         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134         throws com.liferay.portal.kernel.exception.SystemException {
135         return getPersistence().findByUuid(uuid, start, end, orderByComparator);
136     }
137 
138     public static com.liferay.portlet.journal.model.JournalStructure findByUuid_First(
139         java.lang.String uuid,
140         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141         throws com.liferay.portal.kernel.exception.SystemException,
142             com.liferay.portlet.journal.NoSuchStructureException {
143         return getPersistence().findByUuid_First(uuid, orderByComparator);
144     }
145 
146     public static com.liferay.portlet.journal.model.JournalStructure findByUuid_Last(
147         java.lang.String uuid,
148         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149         throws com.liferay.portal.kernel.exception.SystemException,
150             com.liferay.portlet.journal.NoSuchStructureException {
151         return getPersistence().findByUuid_Last(uuid, orderByComparator);
152     }
153 
154     public static com.liferay.portlet.journal.model.JournalStructure[] findByUuid_PrevAndNext(
155         long id, java.lang.String uuid,
156         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157         throws com.liferay.portal.kernel.exception.SystemException,
158             com.liferay.portlet.journal.NoSuchStructureException {
159         return getPersistence()
160                    .findByUuid_PrevAndNext(id, uuid, orderByComparator);
161     }
162 
163     public static com.liferay.portlet.journal.model.JournalStructure findByUUID_G(
164         java.lang.String uuid, long groupId)
165         throws com.liferay.portal.kernel.exception.SystemException,
166             com.liferay.portlet.journal.NoSuchStructureException {
167         return getPersistence().findByUUID_G(uuid, groupId);
168     }
169 
170     public static com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
171         java.lang.String uuid, long groupId)
172         throws com.liferay.portal.kernel.exception.SystemException {
173         return getPersistence().fetchByUUID_G(uuid, groupId);
174     }
175 
176     public static com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
177         java.lang.String uuid, long groupId, boolean retrieveFromCache)
178         throws com.liferay.portal.kernel.exception.SystemException {
179         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
180     }
181 
182     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
183         long groupId)
184         throws com.liferay.portal.kernel.exception.SystemException {
185         return getPersistence().findByGroupId(groupId);
186     }
187 
188     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
189         long groupId, int start, int end)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return getPersistence().findByGroupId(groupId, start, end);
192     }
193 
194     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
195         long groupId, int start, int end,
196         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197         throws com.liferay.portal.kernel.exception.SystemException {
198         return getPersistence()
199                    .findByGroupId(groupId, start, end, orderByComparator);
200     }
201 
202     public static com.liferay.portlet.journal.model.JournalStructure findByGroupId_First(
203         long groupId,
204         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205         throws com.liferay.portal.kernel.exception.SystemException,
206             com.liferay.portlet.journal.NoSuchStructureException {
207         return getPersistence().findByGroupId_First(groupId, orderByComparator);
208     }
209 
210     public static com.liferay.portlet.journal.model.JournalStructure findByGroupId_Last(
211         long groupId,
212         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
213         throws com.liferay.portal.kernel.exception.SystemException,
214             com.liferay.portlet.journal.NoSuchStructureException {
215         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
216     }
217 
218     public static com.liferay.portlet.journal.model.JournalStructure[] findByGroupId_PrevAndNext(
219         long id, long groupId,
220         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221         throws com.liferay.portal.kernel.exception.SystemException,
222             com.liferay.portlet.journal.NoSuchStructureException {
223         return getPersistence()
224                    .findByGroupId_PrevAndNext(id, groupId, orderByComparator);
225     }
226 
227     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
228         java.lang.String structureId)
229         throws com.liferay.portal.kernel.exception.SystemException {
230         return getPersistence().findByStructureId(structureId);
231     }
232 
233     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
234         java.lang.String structureId, int start, int end)
235         throws com.liferay.portal.kernel.exception.SystemException {
236         return getPersistence().findByStructureId(structureId, start, end);
237     }
238 
239     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
240         java.lang.String structureId, int start, int end,
241         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242         throws com.liferay.portal.kernel.exception.SystemException {
243         return getPersistence()
244                    .findByStructureId(structureId, start, end, orderByComparator);
245     }
246 
247     public static com.liferay.portlet.journal.model.JournalStructure findByStructureId_First(
248         java.lang.String structureId,
249         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
250         throws com.liferay.portal.kernel.exception.SystemException,
251             com.liferay.portlet.journal.NoSuchStructureException {
252         return getPersistence()
253                    .findByStructureId_First(structureId, orderByComparator);
254     }
255 
256     public static com.liferay.portlet.journal.model.JournalStructure findByStructureId_Last(
257         java.lang.String structureId,
258         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259         throws com.liferay.portal.kernel.exception.SystemException,
260             com.liferay.portlet.journal.NoSuchStructureException {
261         return getPersistence()
262                    .findByStructureId_Last(structureId, orderByComparator);
263     }
264 
265     public static com.liferay.portlet.journal.model.JournalStructure[] findByStructureId_PrevAndNext(
266         long id, java.lang.String structureId,
267         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
268         throws com.liferay.portal.kernel.exception.SystemException,
269             com.liferay.portlet.journal.NoSuchStructureException {
270         return getPersistence()
271                    .findByStructureId_PrevAndNext(id, structureId,
272             orderByComparator);
273     }
274 
275     public static com.liferay.portlet.journal.model.JournalStructure findByG_S(
276         long groupId, java.lang.String structureId)
277         throws com.liferay.portal.kernel.exception.SystemException,
278             com.liferay.portlet.journal.NoSuchStructureException {
279         return getPersistence().findByG_S(groupId, structureId);
280     }
281 
282     public static com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
283         long groupId, java.lang.String structureId)
284         throws com.liferay.portal.kernel.exception.SystemException {
285         return getPersistence().fetchByG_S(groupId, structureId);
286     }
287 
288     public static com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
289         long groupId, java.lang.String structureId, boolean retrieveFromCache)
290         throws com.liferay.portal.kernel.exception.SystemException {
291         return getPersistence()
292                    .fetchByG_S(groupId, structureId, retrieveFromCache);
293     }
294 
295     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
296         long groupId, java.lang.String parentStructureId)
297         throws com.liferay.portal.kernel.exception.SystemException {
298         return getPersistence().findByG_P(groupId, parentStructureId);
299     }
300 
301     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
302         long groupId, java.lang.String parentStructureId, int start, int end)
303         throws com.liferay.portal.kernel.exception.SystemException {
304         return getPersistence().findByG_P(groupId, parentStructureId, start, end);
305     }
306 
307     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
308         long groupId, java.lang.String parentStructureId, int start, int end,
309         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
310         throws com.liferay.portal.kernel.exception.SystemException {
311         return getPersistence()
312                    .findByG_P(groupId, parentStructureId, start, end,
313             orderByComparator);
314     }
315 
316     public static com.liferay.portlet.journal.model.JournalStructure findByG_P_First(
317         long groupId, java.lang.String parentStructureId,
318         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
319         throws com.liferay.portal.kernel.exception.SystemException,
320             com.liferay.portlet.journal.NoSuchStructureException {
321         return getPersistence()
322                    .findByG_P_First(groupId, parentStructureId,
323             orderByComparator);
324     }
325 
326     public static com.liferay.portlet.journal.model.JournalStructure findByG_P_Last(
327         long groupId, java.lang.String parentStructureId,
328         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
329         throws com.liferay.portal.kernel.exception.SystemException,
330             com.liferay.portlet.journal.NoSuchStructureException {
331         return getPersistence()
332                    .findByG_P_Last(groupId, parentStructureId, orderByComparator);
333     }
334 
335     public static com.liferay.portlet.journal.model.JournalStructure[] findByG_P_PrevAndNext(
336         long id, long groupId, java.lang.String parentStructureId,
337         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
338         throws com.liferay.portal.kernel.exception.SystemException,
339             com.liferay.portlet.journal.NoSuchStructureException {
340         return getPersistence()
341                    .findByG_P_PrevAndNext(id, groupId, parentStructureId,
342             orderByComparator);
343     }
344 
345     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll()
346         throws com.liferay.portal.kernel.exception.SystemException {
347         return getPersistence().findAll();
348     }
349 
350     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
351         int start, int end)
352         throws com.liferay.portal.kernel.exception.SystemException {
353         return getPersistence().findAll(start, end);
354     }
355 
356     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
357         int start, int end,
358         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
359         throws com.liferay.portal.kernel.exception.SystemException {
360         return getPersistence().findAll(start, end, orderByComparator);
361     }
362 
363     public static void removeByUuid(java.lang.String uuid)
364         throws com.liferay.portal.kernel.exception.SystemException {
365         getPersistence().removeByUuid(uuid);
366     }
367 
368     public static void removeByUUID_G(java.lang.String uuid, long groupId)
369         throws com.liferay.portal.kernel.exception.SystemException,
370             com.liferay.portlet.journal.NoSuchStructureException {
371         getPersistence().removeByUUID_G(uuid, groupId);
372     }
373 
374     public static void removeByGroupId(long groupId)
375         throws com.liferay.portal.kernel.exception.SystemException {
376         getPersistence().removeByGroupId(groupId);
377     }
378 
379     public static void removeByStructureId(java.lang.String structureId)
380         throws com.liferay.portal.kernel.exception.SystemException {
381         getPersistence().removeByStructureId(structureId);
382     }
383 
384     public static void removeByG_S(long groupId, java.lang.String structureId)
385         throws com.liferay.portal.kernel.exception.SystemException,
386             com.liferay.portlet.journal.NoSuchStructureException {
387         getPersistence().removeByG_S(groupId, structureId);
388     }
389 
390     public static void removeByG_P(long groupId,
391         java.lang.String parentStructureId)
392         throws com.liferay.portal.kernel.exception.SystemException {
393         getPersistence().removeByG_P(groupId, parentStructureId);
394     }
395 
396     public static void removeAll()
397         throws com.liferay.portal.kernel.exception.SystemException {
398         getPersistence().removeAll();
399     }
400 
401     public static int countByUuid(java.lang.String uuid)
402         throws com.liferay.portal.kernel.exception.SystemException {
403         return getPersistence().countByUuid(uuid);
404     }
405 
406     public static int countByUUID_G(java.lang.String uuid, long groupId)
407         throws com.liferay.portal.kernel.exception.SystemException {
408         return getPersistence().countByUUID_G(uuid, groupId);
409     }
410 
411     public static int countByGroupId(long groupId)
412         throws com.liferay.portal.kernel.exception.SystemException {
413         return getPersistence().countByGroupId(groupId);
414     }
415 
416     public static int countByStructureId(java.lang.String structureId)
417         throws com.liferay.portal.kernel.exception.SystemException {
418         return getPersistence().countByStructureId(structureId);
419     }
420 
421     public static int countByG_S(long groupId, java.lang.String structureId)
422         throws com.liferay.portal.kernel.exception.SystemException {
423         return getPersistence().countByG_S(groupId, structureId);
424     }
425 
426     public static int countByG_P(long groupId,
427         java.lang.String parentStructureId)
428         throws com.liferay.portal.kernel.exception.SystemException {
429         return getPersistence().countByG_P(groupId, parentStructureId);
430     }
431 
432     public static int countAll()
433         throws com.liferay.portal.kernel.exception.SystemException {
434         return getPersistence().countAll();
435     }
436 
437     public static JournalStructurePersistence getPersistence() {
438         if (_persistence == null) {
439             _persistence = (JournalStructurePersistence)PortalBeanLocatorUtil.locate(JournalStructurePersistence.class.getName());
440         }
441 
442         return _persistence;
443     }
444 
445     public void setPersistence(JournalStructurePersistence persistence) {
446         _persistence = persistence;
447     }
448 
449     private static JournalStructurePersistence _persistence;
450 }