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 obc)
134         throws com.liferay.portal.kernel.exception.SystemException {
135         return getPersistence().findByUuid(uuid, start, end, obc);
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 obc)
141         throws com.liferay.portal.kernel.exception.SystemException,
142             com.liferay.portlet.journal.NoSuchStructureException {
143         return getPersistence().findByUuid_First(uuid, obc);
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 obc)
149         throws com.liferay.portal.kernel.exception.SystemException,
150             com.liferay.portlet.journal.NoSuchStructureException {
151         return getPersistence().findByUuid_Last(uuid, obc);
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 obc)
157         throws com.liferay.portal.kernel.exception.SystemException,
158             com.liferay.portlet.journal.NoSuchStructureException {
159         return getPersistence().findByUuid_PrevAndNext(id, uuid, obc);
160     }
161 
162     public static com.liferay.portlet.journal.model.JournalStructure findByUUID_G(
163         java.lang.String uuid, long groupId)
164         throws com.liferay.portal.kernel.exception.SystemException,
165             com.liferay.portlet.journal.NoSuchStructureException {
166         return getPersistence().findByUUID_G(uuid, groupId);
167     }
168 
169     public static com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
170         java.lang.String uuid, long groupId)
171         throws com.liferay.portal.kernel.exception.SystemException {
172         return getPersistence().fetchByUUID_G(uuid, groupId);
173     }
174 
175     public static com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
176         java.lang.String uuid, long groupId, boolean retrieveFromCache)
177         throws com.liferay.portal.kernel.exception.SystemException {
178         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
179     }
180 
181     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
182         long groupId)
183         throws com.liferay.portal.kernel.exception.SystemException {
184         return getPersistence().findByGroupId(groupId);
185     }
186 
187     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
188         long groupId, int start, int end)
189         throws com.liferay.portal.kernel.exception.SystemException {
190         return getPersistence().findByGroupId(groupId, start, end);
191     }
192 
193     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
194         long groupId, int start, int end,
195         com.liferay.portal.kernel.util.OrderByComparator obc)
196         throws com.liferay.portal.kernel.exception.SystemException {
197         return getPersistence().findByGroupId(groupId, start, end, obc);
198     }
199 
200     public static com.liferay.portlet.journal.model.JournalStructure findByGroupId_First(
201         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
202         throws com.liferay.portal.kernel.exception.SystemException,
203             com.liferay.portlet.journal.NoSuchStructureException {
204         return getPersistence().findByGroupId_First(groupId, obc);
205     }
206 
207     public static com.liferay.portlet.journal.model.JournalStructure findByGroupId_Last(
208         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
209         throws com.liferay.portal.kernel.exception.SystemException,
210             com.liferay.portlet.journal.NoSuchStructureException {
211         return getPersistence().findByGroupId_Last(groupId, obc);
212     }
213 
214     public static com.liferay.portlet.journal.model.JournalStructure[] findByGroupId_PrevAndNext(
215         long id, long groupId,
216         com.liferay.portal.kernel.util.OrderByComparator obc)
217         throws com.liferay.portal.kernel.exception.SystemException,
218             com.liferay.portlet.journal.NoSuchStructureException {
219         return getPersistence().findByGroupId_PrevAndNext(id, groupId, obc);
220     }
221 
222     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
223         java.lang.String structureId)
224         throws com.liferay.portal.kernel.exception.SystemException {
225         return getPersistence().findByStructureId(structureId);
226     }
227 
228     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
229         java.lang.String structureId, int start, int end)
230         throws com.liferay.portal.kernel.exception.SystemException {
231         return getPersistence().findByStructureId(structureId, start, end);
232     }
233 
234     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
235         java.lang.String structureId, int start, int end,
236         com.liferay.portal.kernel.util.OrderByComparator obc)
237         throws com.liferay.portal.kernel.exception.SystemException {
238         return getPersistence().findByStructureId(structureId, start, end, obc);
239     }
240 
241     public static com.liferay.portlet.journal.model.JournalStructure findByStructureId_First(
242         java.lang.String structureId,
243         com.liferay.portal.kernel.util.OrderByComparator obc)
244         throws com.liferay.portal.kernel.exception.SystemException,
245             com.liferay.portlet.journal.NoSuchStructureException {
246         return getPersistence().findByStructureId_First(structureId, obc);
247     }
248 
249     public static com.liferay.portlet.journal.model.JournalStructure findByStructureId_Last(
250         java.lang.String structureId,
251         com.liferay.portal.kernel.util.OrderByComparator obc)
252         throws com.liferay.portal.kernel.exception.SystemException,
253             com.liferay.portlet.journal.NoSuchStructureException {
254         return getPersistence().findByStructureId_Last(structureId, obc);
255     }
256 
257     public static com.liferay.portlet.journal.model.JournalStructure[] findByStructureId_PrevAndNext(
258         long id, java.lang.String structureId,
259         com.liferay.portal.kernel.util.OrderByComparator obc)
260         throws com.liferay.portal.kernel.exception.SystemException,
261             com.liferay.portlet.journal.NoSuchStructureException {
262         return getPersistence()
263                    .findByStructureId_PrevAndNext(id, structureId, obc);
264     }
265 
266     public static com.liferay.portlet.journal.model.JournalStructure findByG_S(
267         long groupId, java.lang.String structureId)
268         throws com.liferay.portal.kernel.exception.SystemException,
269             com.liferay.portlet.journal.NoSuchStructureException {
270         return getPersistence().findByG_S(groupId, structureId);
271     }
272 
273     public static com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
274         long groupId, java.lang.String structureId)
275         throws com.liferay.portal.kernel.exception.SystemException {
276         return getPersistence().fetchByG_S(groupId, structureId);
277     }
278 
279     public static com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
280         long groupId, java.lang.String structureId, boolean retrieveFromCache)
281         throws com.liferay.portal.kernel.exception.SystemException {
282         return getPersistence()
283                    .fetchByG_S(groupId, structureId, retrieveFromCache);
284     }
285 
286     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
287         long groupId, java.lang.String parentStructureId)
288         throws com.liferay.portal.kernel.exception.SystemException {
289         return getPersistence().findByG_P(groupId, parentStructureId);
290     }
291 
292     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
293         long groupId, java.lang.String parentStructureId, int start, int end)
294         throws com.liferay.portal.kernel.exception.SystemException {
295         return getPersistence().findByG_P(groupId, parentStructureId, start, end);
296     }
297 
298     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
299         long groupId, java.lang.String parentStructureId, int start, int end,
300         com.liferay.portal.kernel.util.OrderByComparator obc)
301         throws com.liferay.portal.kernel.exception.SystemException {
302         return getPersistence()
303                    .findByG_P(groupId, parentStructureId, start, end, obc);
304     }
305 
306     public static com.liferay.portlet.journal.model.JournalStructure findByG_P_First(
307         long groupId, java.lang.String parentStructureId,
308         com.liferay.portal.kernel.util.OrderByComparator obc)
309         throws com.liferay.portal.kernel.exception.SystemException,
310             com.liferay.portlet.journal.NoSuchStructureException {
311         return getPersistence().findByG_P_First(groupId, parentStructureId, obc);
312     }
313 
314     public static com.liferay.portlet.journal.model.JournalStructure findByG_P_Last(
315         long groupId, java.lang.String parentStructureId,
316         com.liferay.portal.kernel.util.OrderByComparator obc)
317         throws com.liferay.portal.kernel.exception.SystemException,
318             com.liferay.portlet.journal.NoSuchStructureException {
319         return getPersistence().findByG_P_Last(groupId, parentStructureId, obc);
320     }
321 
322     public static com.liferay.portlet.journal.model.JournalStructure[] findByG_P_PrevAndNext(
323         long id, long groupId, java.lang.String parentStructureId,
324         com.liferay.portal.kernel.util.OrderByComparator obc)
325         throws com.liferay.portal.kernel.exception.SystemException,
326             com.liferay.portlet.journal.NoSuchStructureException {
327         return getPersistence()
328                    .findByG_P_PrevAndNext(id, groupId, parentStructureId, obc);
329     }
330 
331     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll()
332         throws com.liferay.portal.kernel.exception.SystemException {
333         return getPersistence().findAll();
334     }
335 
336     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
337         int start, int end)
338         throws com.liferay.portal.kernel.exception.SystemException {
339         return getPersistence().findAll(start, end);
340     }
341 
342     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
343         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
344         throws com.liferay.portal.kernel.exception.SystemException {
345         return getPersistence().findAll(start, end, obc);
346     }
347 
348     public static void removeByUuid(java.lang.String uuid)
349         throws com.liferay.portal.kernel.exception.SystemException {
350         getPersistence().removeByUuid(uuid);
351     }
352 
353     public static void removeByUUID_G(java.lang.String uuid, long groupId)
354         throws com.liferay.portal.kernel.exception.SystemException,
355             com.liferay.portlet.journal.NoSuchStructureException {
356         getPersistence().removeByUUID_G(uuid, groupId);
357     }
358 
359     public static void removeByGroupId(long groupId)
360         throws com.liferay.portal.kernel.exception.SystemException {
361         getPersistence().removeByGroupId(groupId);
362     }
363 
364     public static void removeByStructureId(java.lang.String structureId)
365         throws com.liferay.portal.kernel.exception.SystemException {
366         getPersistence().removeByStructureId(structureId);
367     }
368 
369     public static void removeByG_S(long groupId, java.lang.String structureId)
370         throws com.liferay.portal.kernel.exception.SystemException,
371             com.liferay.portlet.journal.NoSuchStructureException {
372         getPersistence().removeByG_S(groupId, structureId);
373     }
374 
375     public static void removeByG_P(long groupId,
376         java.lang.String parentStructureId)
377         throws com.liferay.portal.kernel.exception.SystemException {
378         getPersistence().removeByG_P(groupId, parentStructureId);
379     }
380 
381     public static void removeAll()
382         throws com.liferay.portal.kernel.exception.SystemException {
383         getPersistence().removeAll();
384     }
385 
386     public static int countByUuid(java.lang.String uuid)
387         throws com.liferay.portal.kernel.exception.SystemException {
388         return getPersistence().countByUuid(uuid);
389     }
390 
391     public static int countByUUID_G(java.lang.String uuid, long groupId)
392         throws com.liferay.portal.kernel.exception.SystemException {
393         return getPersistence().countByUUID_G(uuid, groupId);
394     }
395 
396     public static int countByGroupId(long groupId)
397         throws com.liferay.portal.kernel.exception.SystemException {
398         return getPersistence().countByGroupId(groupId);
399     }
400 
401     public static int countByStructureId(java.lang.String structureId)
402         throws com.liferay.portal.kernel.exception.SystemException {
403         return getPersistence().countByStructureId(structureId);
404     }
405 
406     public static int countByG_S(long groupId, java.lang.String structureId)
407         throws com.liferay.portal.kernel.exception.SystemException {
408         return getPersistence().countByG_S(groupId, structureId);
409     }
410 
411     public static int countByG_P(long groupId,
412         java.lang.String parentStructureId)
413         throws com.liferay.portal.kernel.exception.SystemException {
414         return getPersistence().countByG_P(groupId, parentStructureId);
415     }
416 
417     public static int countAll()
418         throws com.liferay.portal.kernel.exception.SystemException {
419         return getPersistence().countAll();
420     }
421 
422     public static JournalStructurePersistence getPersistence() {
423         if (_persistence == null) {
424             _persistence = (JournalStructurePersistence)PortalBeanLocatorUtil.locate(JournalStructurePersistence.class.getName());
425         }
426 
427         return _persistence;
428     }
429 
430     public void setPersistence(JournalStructurePersistence persistence) {
431         _persistence = persistence;
432     }
433 
434     private static JournalStructurePersistence _persistence;
435 }