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 obc)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findByUuid(uuid, start, end, obc);
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 obc)
148         throws com.liferay.portal.SystemException,
149             com.liferay.portlet.journal.NoSuchStructureException {
150         return getPersistence().findByUuid_First(uuid, obc);
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 obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.journal.NoSuchStructureException {
158         return getPersistence().findByUuid_Last(uuid, obc);
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 obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.journal.NoSuchStructureException {
166         return getPersistence().findByUuid_PrevAndNext(id, uuid, obc);
167     }
168 
169     public static com.liferay.portlet.journal.model.JournalStructure findByUUID_G(
170         java.lang.String uuid, long groupId)
171         throws com.liferay.portal.SystemException,
172             com.liferay.portlet.journal.NoSuchStructureException {
173         return getPersistence().findByUUID_G(uuid, groupId);
174     }
175 
176     public static com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
177         java.lang.String uuid, long groupId)
178         throws com.liferay.portal.SystemException {
179         return getPersistence().fetchByUUID_G(uuid, groupId);
180     }
181 
182     public static com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
183         java.lang.String uuid, long groupId, boolean retrieveFromCache)
184         throws com.liferay.portal.SystemException {
185         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
186     }
187 
188     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
189         long groupId) throws com.liferay.portal.SystemException {
190         return getPersistence().findByGroupId(groupId);
191     }
192 
193     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
194         long groupId, int start, int end)
195         throws com.liferay.portal.SystemException {
196         return getPersistence().findByGroupId(groupId, start, end);
197     }
198 
199     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
200         long groupId, int start, int end,
201         com.liferay.portal.kernel.util.OrderByComparator obc)
202         throws com.liferay.portal.SystemException {
203         return getPersistence().findByGroupId(groupId, start, end, obc);
204     }
205 
206     public static com.liferay.portlet.journal.model.JournalStructure findByGroupId_First(
207         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
208         throws com.liferay.portal.SystemException,
209             com.liferay.portlet.journal.NoSuchStructureException {
210         return getPersistence().findByGroupId_First(groupId, obc);
211     }
212 
213     public static com.liferay.portlet.journal.model.JournalStructure findByGroupId_Last(
214         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
215         throws com.liferay.portal.SystemException,
216             com.liferay.portlet.journal.NoSuchStructureException {
217         return getPersistence().findByGroupId_Last(groupId, obc);
218     }
219 
220     public static com.liferay.portlet.journal.model.JournalStructure[] findByGroupId_PrevAndNext(
221         long id, long groupId,
222         com.liferay.portal.kernel.util.OrderByComparator obc)
223         throws com.liferay.portal.SystemException,
224             com.liferay.portlet.journal.NoSuchStructureException {
225         return getPersistence().findByGroupId_PrevAndNext(id, groupId, obc);
226     }
227 
228     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
229         java.lang.String structureId) throws com.liferay.portal.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.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 obc)
242         throws com.liferay.portal.SystemException {
243         return getPersistence().findByStructureId(structureId, start, end, obc);
244     }
245 
246     public static com.liferay.portlet.journal.model.JournalStructure findByStructureId_First(
247         java.lang.String structureId,
248         com.liferay.portal.kernel.util.OrderByComparator obc)
249         throws com.liferay.portal.SystemException,
250             com.liferay.portlet.journal.NoSuchStructureException {
251         return getPersistence().findByStructureId_First(structureId, obc);
252     }
253 
254     public static com.liferay.portlet.journal.model.JournalStructure findByStructureId_Last(
255         java.lang.String structureId,
256         com.liferay.portal.kernel.util.OrderByComparator obc)
257         throws com.liferay.portal.SystemException,
258             com.liferay.portlet.journal.NoSuchStructureException {
259         return getPersistence().findByStructureId_Last(structureId, obc);
260     }
261 
262     public static com.liferay.portlet.journal.model.JournalStructure[] findByStructureId_PrevAndNext(
263         long id, java.lang.String structureId,
264         com.liferay.portal.kernel.util.OrderByComparator obc)
265         throws com.liferay.portal.SystemException,
266             com.liferay.portlet.journal.NoSuchStructureException {
267         return getPersistence()
268                    .findByStructureId_PrevAndNext(id, structureId, obc);
269     }
270 
271     public static com.liferay.portlet.journal.model.JournalStructure findByG_S(
272         long groupId, java.lang.String structureId)
273         throws com.liferay.portal.SystemException,
274             com.liferay.portlet.journal.NoSuchStructureException {
275         return getPersistence().findByG_S(groupId, structureId);
276     }
277 
278     public static com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
279         long groupId, java.lang.String structureId)
280         throws com.liferay.portal.SystemException {
281         return getPersistence().fetchByG_S(groupId, structureId);
282     }
283 
284     public static com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
285         long groupId, java.lang.String structureId, boolean retrieveFromCache)
286         throws com.liferay.portal.SystemException {
287         return getPersistence()
288                    .fetchByG_S(groupId, structureId, retrieveFromCache);
289     }
290 
291     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll()
292         throws com.liferay.portal.SystemException {
293         return getPersistence().findAll();
294     }
295 
296     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
297         int start, int end) throws com.liferay.portal.SystemException {
298         return getPersistence().findAll(start, end);
299     }
300 
301     public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
302         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
303         throws com.liferay.portal.SystemException {
304         return getPersistence().findAll(start, end, obc);
305     }
306 
307     public static void removeByUuid(java.lang.String uuid)
308         throws com.liferay.portal.SystemException {
309         getPersistence().removeByUuid(uuid);
310     }
311 
312     public static void removeByUUID_G(java.lang.String uuid, long groupId)
313         throws com.liferay.portal.SystemException,
314             com.liferay.portlet.journal.NoSuchStructureException {
315         getPersistence().removeByUUID_G(uuid, groupId);
316     }
317 
318     public static void removeByGroupId(long groupId)
319         throws com.liferay.portal.SystemException {
320         getPersistence().removeByGroupId(groupId);
321     }
322 
323     public static void removeByStructureId(java.lang.String structureId)
324         throws com.liferay.portal.SystemException {
325         getPersistence().removeByStructureId(structureId);
326     }
327 
328     public static void removeByG_S(long groupId, java.lang.String structureId)
329         throws com.liferay.portal.SystemException,
330             com.liferay.portlet.journal.NoSuchStructureException {
331         getPersistence().removeByG_S(groupId, structureId);
332     }
333 
334     public static void removeAll() throws com.liferay.portal.SystemException {
335         getPersistence().removeAll();
336     }
337 
338     public static int countByUuid(java.lang.String uuid)
339         throws com.liferay.portal.SystemException {
340         return getPersistence().countByUuid(uuid);
341     }
342 
343     public static int countByUUID_G(java.lang.String uuid, long groupId)
344         throws com.liferay.portal.SystemException {
345         return getPersistence().countByUUID_G(uuid, groupId);
346     }
347 
348     public static int countByGroupId(long groupId)
349         throws com.liferay.portal.SystemException {
350         return getPersistence().countByGroupId(groupId);
351     }
352 
353     public static int countByStructureId(java.lang.String structureId)
354         throws com.liferay.portal.SystemException {
355         return getPersistence().countByStructureId(structureId);
356     }
357 
358     public static int countByG_S(long groupId, java.lang.String structureId)
359         throws com.liferay.portal.SystemException {
360         return getPersistence().countByG_S(groupId, structureId);
361     }
362 
363     public static int countAll() throws com.liferay.portal.SystemException {
364         return getPersistence().countAll();
365     }
366 
367     public static JournalStructurePersistence getPersistence() {
368         if (_persistence == null) {
369             _persistence = (JournalStructurePersistence)PortalBeanLocatorUtil.locate(JournalStructurePersistence.class.getName());
370         }
371 
372         return _persistence;
373     }
374 
375     public void setPersistence(JournalStructurePersistence persistence) {
376         _persistence = persistence;
377     }
378 
379     private static JournalStructurePersistence _persistence;
380 }