1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.journal.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
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.SystemException,
96              com.liferay.portlet.journal.NoSuchStructureException {
97          return getPersistence().remove(id);
98      }
99  
100     /**
101      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
102      */
103     public static com.liferay.portlet.journal.model.JournalStructure update(
104         com.liferay.portlet.journal.model.JournalStructure journalStructure)
105         throws com.liferay.portal.SystemException {
106         return getPersistence().update(journalStructure);
107     }
108 
109     public static com.liferay.portlet.journal.model.JournalStructure updateImpl(
110         com.liferay.portlet.journal.model.JournalStructure journalStructure,
111         boolean merge) throws com.liferay.portal.SystemException {
112         return getPersistence().updateImpl(journalStructure, merge);
113     }
114 
115     public static com.liferay.portlet.journal.model.JournalStructure findByPrimaryKey(
116         long id)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.journal.NoSuchStructureException {
119         return getPersistence().findByPrimaryKey(id);
120     }
121 
122     public static com.liferay.portlet.journal.model.JournalStructure fetchByPrimaryKey(
123         long id) throws com.liferay.portal.SystemException {
124         return getPersistence().fetchByPrimaryKey(id);
125     }
126 
127     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
128         java.lang.String uuid) throws com.liferay.portal.SystemException {
129         return getPersistence().findByUuid(uuid);
130     }
131 
132     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
133         java.lang.String uuid, int start, int end)
134         throws com.liferay.portal.SystemException {
135         return getPersistence().findByUuid(uuid, start, end);
136     }
137 
138     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
139         java.lang.String uuid, int start, int end,
140         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findByUuid(uuid, start, end, orderByComparator);
143     }
144 
145     public static com.liferay.portlet.journal.model.JournalStructure findByUuid_First(
146         java.lang.String uuid,
147         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148         throws com.liferay.portal.SystemException,
149             com.liferay.portlet.journal.NoSuchStructureException {
150         return getPersistence().findByUuid_First(uuid, orderByComparator);
151     }
152 
153     public static com.liferay.portlet.journal.model.JournalStructure findByUuid_Last(
154         java.lang.String uuid,
155         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.journal.NoSuchStructureException {
158         return getPersistence().findByUuid_Last(uuid, orderByComparator);
159     }
160 
161     public static com.liferay.portlet.journal.model.JournalStructure[] findByUuid_PrevAndNext(
162         long id, java.lang.String uuid,
163         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.journal.NoSuchStructureException {
166         return getPersistence()
167                    .findByUuid_PrevAndNext(id, uuid, orderByComparator);
168     }
169 
170     public static com.liferay.portlet.journal.model.JournalStructure findByUUID_G(
171         java.lang.String uuid, long groupId)
172         throws com.liferay.portal.SystemException,
173             com.liferay.portlet.journal.NoSuchStructureException {
174         return getPersistence().findByUUID_G(uuid, groupId);
175     }
176 
177     public static com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
178         java.lang.String uuid, long groupId)
179         throws com.liferay.portal.SystemException {
180         return getPersistence().fetchByUUID_G(uuid, groupId);
181     }
182 
183     public static com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
184         java.lang.String uuid, long groupId, boolean retrieveFromCache)
185         throws com.liferay.portal.SystemException {
186         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
187     }
188 
189     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
190         long groupId) throws com.liferay.portal.SystemException {
191         return getPersistence().findByGroupId(groupId);
192     }
193 
194     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
195         long groupId, int start, int end)
196         throws com.liferay.portal.SystemException {
197         return getPersistence().findByGroupId(groupId, start, end);
198     }
199 
200     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
201         long groupId, int start, int end,
202         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203         throws com.liferay.portal.SystemException {
204         return getPersistence()
205                    .findByGroupId(groupId, start, end, orderByComparator);
206     }
207 
208     public static com.liferay.portlet.journal.model.JournalStructure findByGroupId_First(
209         long groupId,
210         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211         throws com.liferay.portal.SystemException,
212             com.liferay.portlet.journal.NoSuchStructureException {
213         return getPersistence().findByGroupId_First(groupId, orderByComparator);
214     }
215 
216     public static com.liferay.portlet.journal.model.JournalStructure findByGroupId_Last(
217         long groupId,
218         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219         throws com.liferay.portal.SystemException,
220             com.liferay.portlet.journal.NoSuchStructureException {
221         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
222     }
223 
224     public static com.liferay.portlet.journal.model.JournalStructure[] findByGroupId_PrevAndNext(
225         long id, long groupId,
226         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227         throws com.liferay.portal.SystemException,
228             com.liferay.portlet.journal.NoSuchStructureException {
229         return getPersistence()
230                    .findByGroupId_PrevAndNext(id, groupId, orderByComparator);
231     }
232 
233     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
234         java.lang.String structureId) throws com.liferay.portal.SystemException {
235         return getPersistence().findByStructureId(structureId);
236     }
237 
238     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
239         java.lang.String structureId, int start, int end)
240         throws com.liferay.portal.SystemException {
241         return getPersistence().findByStructureId(structureId, start, end);
242     }
243 
244     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
245         java.lang.String structureId, int start, int end,
246         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
247         throws com.liferay.portal.SystemException {
248         return getPersistence()
249                    .findByStructureId(structureId, start, end, orderByComparator);
250     }
251 
252     public static com.liferay.portlet.journal.model.JournalStructure findByStructureId_First(
253         java.lang.String structureId,
254         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255         throws com.liferay.portal.SystemException,
256             com.liferay.portlet.journal.NoSuchStructureException {
257         return getPersistence()
258                    .findByStructureId_First(structureId, orderByComparator);
259     }
260 
261     public static com.liferay.portlet.journal.model.JournalStructure findByStructureId_Last(
262         java.lang.String structureId,
263         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264         throws com.liferay.portal.SystemException,
265             com.liferay.portlet.journal.NoSuchStructureException {
266         return getPersistence()
267                    .findByStructureId_Last(structureId, orderByComparator);
268     }
269 
270     public static com.liferay.portlet.journal.model.JournalStructure[] findByStructureId_PrevAndNext(
271         long id, java.lang.String structureId,
272         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273         throws com.liferay.portal.SystemException,
274             com.liferay.portlet.journal.NoSuchStructureException {
275         return getPersistence()
276                    .findByStructureId_PrevAndNext(id, structureId,
277             orderByComparator);
278     }
279 
280     public static com.liferay.portlet.journal.model.JournalStructure findByG_S(
281         long groupId, java.lang.String structureId)
282         throws com.liferay.portal.SystemException,
283             com.liferay.portlet.journal.NoSuchStructureException {
284         return getPersistence().findByG_S(groupId, structureId);
285     }
286 
287     public static com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
288         long groupId, java.lang.String structureId)
289         throws com.liferay.portal.SystemException {
290         return getPersistence().fetchByG_S(groupId, structureId);
291     }
292 
293     public static com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
294         long groupId, java.lang.String structureId, boolean retrieveFromCache)
295         throws com.liferay.portal.SystemException {
296         return getPersistence()
297                    .fetchByG_S(groupId, structureId, retrieveFromCache);
298     }
299 
300     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
301         long groupId, java.lang.String parentStructureId)
302         throws com.liferay.portal.SystemException {
303         return getPersistence().findByG_P(groupId, parentStructureId);
304     }
305 
306     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
307         long groupId, java.lang.String parentStructureId, int start, int end)
308         throws com.liferay.portal.SystemException {
309         return getPersistence().findByG_P(groupId, parentStructureId, start, end);
310     }
311 
312     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
313         long groupId, java.lang.String parentStructureId, int start, int end,
314         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
315         throws com.liferay.portal.SystemException {
316         return getPersistence()
317                    .findByG_P(groupId, parentStructureId, start, end,
318             orderByComparator);
319     }
320 
321     public static com.liferay.portlet.journal.model.JournalStructure findByG_P_First(
322         long groupId, java.lang.String parentStructureId,
323         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324         throws com.liferay.portal.SystemException,
325             com.liferay.portlet.journal.NoSuchStructureException {
326         return getPersistence()
327                    .findByG_P_First(groupId, parentStructureId,
328             orderByComparator);
329     }
330 
331     public static com.liferay.portlet.journal.model.JournalStructure findByG_P_Last(
332         long groupId, java.lang.String parentStructureId,
333         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
334         throws com.liferay.portal.SystemException,
335             com.liferay.portlet.journal.NoSuchStructureException {
336         return getPersistence()
337                    .findByG_P_Last(groupId, parentStructureId, orderByComparator);
338     }
339 
340     public static com.liferay.portlet.journal.model.JournalStructure[] findByG_P_PrevAndNext(
341         long id, long groupId, java.lang.String parentStructureId,
342         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
343         throws com.liferay.portal.SystemException,
344             com.liferay.portlet.journal.NoSuchStructureException {
345         return getPersistence()
346                    .findByG_P_PrevAndNext(id, groupId, parentStructureId,
347             orderByComparator);
348     }
349 
350     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll()
351         throws com.liferay.portal.SystemException {
352         return getPersistence().findAll();
353     }
354 
355     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
356         int start, int end) throws com.liferay.portal.SystemException {
357         return getPersistence().findAll(start, end);
358     }
359 
360     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
361         int start, int end,
362         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
363         throws com.liferay.portal.SystemException {
364         return getPersistence().findAll(start, end, orderByComparator);
365     }
366 
367     public static void removeByUuid(java.lang.String uuid)
368         throws com.liferay.portal.SystemException {
369         getPersistence().removeByUuid(uuid);
370     }
371 
372     public static void removeByUUID_G(java.lang.String uuid, long groupId)
373         throws com.liferay.portal.SystemException,
374             com.liferay.portlet.journal.NoSuchStructureException {
375         getPersistence().removeByUUID_G(uuid, groupId);
376     }
377 
378     public static void removeByGroupId(long groupId)
379         throws com.liferay.portal.SystemException {
380         getPersistence().removeByGroupId(groupId);
381     }
382 
383     public static void removeByStructureId(java.lang.String structureId)
384         throws com.liferay.portal.SystemException {
385         getPersistence().removeByStructureId(structureId);
386     }
387 
388     public static void removeByG_S(long groupId, java.lang.String structureId)
389         throws com.liferay.portal.SystemException,
390             com.liferay.portlet.journal.NoSuchStructureException {
391         getPersistence().removeByG_S(groupId, structureId);
392     }
393 
394     public static void removeByG_P(long groupId,
395         java.lang.String parentStructureId)
396         throws com.liferay.portal.SystemException {
397         getPersistence().removeByG_P(groupId, parentStructureId);
398     }
399 
400     public static void removeAll() throws com.liferay.portal.SystemException {
401         getPersistence().removeAll();
402     }
403 
404     public static int countByUuid(java.lang.String uuid)
405         throws com.liferay.portal.SystemException {
406         return getPersistence().countByUuid(uuid);
407     }
408 
409     public static int countByUUID_G(java.lang.String uuid, long groupId)
410         throws com.liferay.portal.SystemException {
411         return getPersistence().countByUUID_G(uuid, groupId);
412     }
413 
414     public static int countByGroupId(long groupId)
415         throws com.liferay.portal.SystemException {
416         return getPersistence().countByGroupId(groupId);
417     }
418 
419     public static int countByStructureId(java.lang.String structureId)
420         throws com.liferay.portal.SystemException {
421         return getPersistence().countByStructureId(structureId);
422     }
423 
424     public static int countByG_S(long groupId, java.lang.String structureId)
425         throws com.liferay.portal.SystemException {
426         return getPersistence().countByG_S(groupId, structureId);
427     }
428 
429     public static int countByG_P(long groupId,
430         java.lang.String parentStructureId)
431         throws com.liferay.portal.SystemException {
432         return getPersistence().countByG_P(groupId, parentStructureId);
433     }
434 
435     public static int countAll() throws com.liferay.portal.SystemException {
436         return getPersistence().countAll();
437     }
438 
439     public static JournalStructurePersistence getPersistence() {
440         if (_persistence == null) {
441             _persistence = (JournalStructurePersistence)PortalBeanLocatorUtil.locate(JournalStructurePersistence.class.getName());
442         }
443 
444         return _persistence;
445     }
446 
447     public void setPersistence(JournalStructurePersistence persistence) {
448         _persistence = persistence;
449     }
450 
451     private static JournalStructurePersistence _persistence;
452 }