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.JournalTemplate;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="JournalTemplateUtil.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       JournalTemplatePersistence
35   * @see       JournalTemplatePersistenceImpl
36   * @generated
37   */
38  public class JournalTemplateUtil {
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 JournalTemplate remove(JournalTemplate journalTemplate)
66          throws SystemException {
67          return getPersistence().remove(journalTemplate);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static JournalTemplate update(JournalTemplate journalTemplate,
74          boolean merge) throws SystemException {
75          return getPersistence().update(journalTemplate, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.journal.model.JournalTemplate journalTemplate) {
80          getPersistence().cacheResult(journalTemplate);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.journal.model.JournalTemplate> journalTemplates) {
85          getPersistence().cacheResult(journalTemplates);
86      }
87  
88      public static com.liferay.portlet.journal.model.JournalTemplate create(
89          long id) {
90          return getPersistence().create(id);
91      }
92  
93      public static com.liferay.portlet.journal.model.JournalTemplate remove(
94          long id)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.journal.NoSuchTemplateException {
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.JournalTemplate update(
104         com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
105         throws com.liferay.portal.SystemException {
106         return getPersistence().update(journalTemplate);
107     }
108 
109     public static com.liferay.portlet.journal.model.JournalTemplate updateImpl(
110         com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
111         boolean merge) throws com.liferay.portal.SystemException {
112         return getPersistence().updateImpl(journalTemplate, merge);
113     }
114 
115     public static com.liferay.portlet.journal.model.JournalTemplate findByPrimaryKey(
116         long id)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.journal.NoSuchTemplateException {
119         return getPersistence().findByPrimaryKey(id);
120     }
121 
122     public static com.liferay.portlet.journal.model.JournalTemplate 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.JournalTemplate> 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.JournalTemplate> 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.JournalTemplate> 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.JournalTemplate 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.NoSuchTemplateException {
150         return getPersistence().findByUuid_First(uuid, orderByComparator);
151     }
152 
153     public static com.liferay.portlet.journal.model.JournalTemplate 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.NoSuchTemplateException {
158         return getPersistence().findByUuid_Last(uuid, orderByComparator);
159     }
160 
161     public static com.liferay.portlet.journal.model.JournalTemplate[] 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.NoSuchTemplateException {
166         return getPersistence()
167                    .findByUuid_PrevAndNext(id, uuid, orderByComparator);
168     }
169 
170     public static com.liferay.portlet.journal.model.JournalTemplate findByUUID_G(
171         java.lang.String uuid, long groupId)
172         throws com.liferay.portal.SystemException,
173             com.liferay.portlet.journal.NoSuchTemplateException {
174         return getPersistence().findByUUID_G(uuid, groupId);
175     }
176 
177     public static com.liferay.portlet.journal.model.JournalTemplate 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.JournalTemplate 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.JournalTemplate> 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.JournalTemplate> 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.JournalTemplate> 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.JournalTemplate findByGroupId_First(
209         long groupId,
210         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211         throws com.liferay.portal.SystemException,
212             com.liferay.portlet.journal.NoSuchTemplateException {
213         return getPersistence().findByGroupId_First(groupId, orderByComparator);
214     }
215 
216     public static com.liferay.portlet.journal.model.JournalTemplate findByGroupId_Last(
217         long groupId,
218         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219         throws com.liferay.portal.SystemException,
220             com.liferay.portlet.journal.NoSuchTemplateException {
221         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
222     }
223 
224     public static com.liferay.portlet.journal.model.JournalTemplate[] 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.NoSuchTemplateException {
229         return getPersistence()
230                    .findByGroupId_PrevAndNext(id, groupId, orderByComparator);
231     }
232 
233     public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
234         java.lang.String templateId) throws com.liferay.portal.SystemException {
235         return getPersistence().findByTemplateId(templateId);
236     }
237 
238     public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
239         java.lang.String templateId, int start, int end)
240         throws com.liferay.portal.SystemException {
241         return getPersistence().findByTemplateId(templateId, start, end);
242     }
243 
244     public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
245         java.lang.String templateId, int start, int end,
246         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
247         throws com.liferay.portal.SystemException {
248         return getPersistence()
249                    .findByTemplateId(templateId, start, end, orderByComparator);
250     }
251 
252     public static com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_First(
253         java.lang.String templateId,
254         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255         throws com.liferay.portal.SystemException,
256             com.liferay.portlet.journal.NoSuchTemplateException {
257         return getPersistence()
258                    .findByTemplateId_First(templateId, orderByComparator);
259     }
260 
261     public static com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_Last(
262         java.lang.String templateId,
263         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264         throws com.liferay.portal.SystemException,
265             com.liferay.portlet.journal.NoSuchTemplateException {
266         return getPersistence()
267                    .findByTemplateId_Last(templateId, orderByComparator);
268     }
269 
270     public static com.liferay.portlet.journal.model.JournalTemplate[] findByTemplateId_PrevAndNext(
271         long id, java.lang.String templateId,
272         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273         throws com.liferay.portal.SystemException,
274             com.liferay.portlet.journal.NoSuchTemplateException {
275         return getPersistence()
276                    .findByTemplateId_PrevAndNext(id, templateId,
277             orderByComparator);
278     }
279 
280     public static com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId(
281         long smallImageId)
282         throws com.liferay.portal.SystemException,
283             com.liferay.portlet.journal.NoSuchTemplateException {
284         return getPersistence().findBySmallImageId(smallImageId);
285     }
286 
287     public static com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
288         long smallImageId) throws com.liferay.portal.SystemException {
289         return getPersistence().fetchBySmallImageId(smallImageId);
290     }
291 
292     public static com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
293         long smallImageId, boolean retrieveFromCache)
294         throws com.liferay.portal.SystemException {
295         return getPersistence()
296                    .fetchBySmallImageId(smallImageId, retrieveFromCache);
297     }
298 
299     public static com.liferay.portlet.journal.model.JournalTemplate findByG_T(
300         long groupId, java.lang.String templateId)
301         throws com.liferay.portal.SystemException,
302             com.liferay.portlet.journal.NoSuchTemplateException {
303         return getPersistence().findByG_T(groupId, templateId);
304     }
305 
306     public static com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
307         long groupId, java.lang.String templateId)
308         throws com.liferay.portal.SystemException {
309         return getPersistence().fetchByG_T(groupId, templateId);
310     }
311 
312     public static com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
313         long groupId, java.lang.String templateId, boolean retrieveFromCache)
314         throws com.liferay.portal.SystemException {
315         return getPersistence()
316                    .fetchByG_T(groupId, templateId, retrieveFromCache);
317     }
318 
319     public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
320         long groupId, java.lang.String structureId)
321         throws com.liferay.portal.SystemException {
322         return getPersistence().findByG_S(groupId, structureId);
323     }
324 
325     public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
326         long groupId, java.lang.String structureId, int start, int end)
327         throws com.liferay.portal.SystemException {
328         return getPersistence().findByG_S(groupId, structureId, start, end);
329     }
330 
331     public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
332         long groupId, java.lang.String structureId, int start, int end,
333         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
334         throws com.liferay.portal.SystemException {
335         return getPersistence()
336                    .findByG_S(groupId, structureId, start, end,
337             orderByComparator);
338     }
339 
340     public static com.liferay.portlet.journal.model.JournalTemplate findByG_S_First(
341         long groupId, java.lang.String structureId,
342         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
343         throws com.liferay.portal.SystemException,
344             com.liferay.portlet.journal.NoSuchTemplateException {
345         return getPersistence()
346                    .findByG_S_First(groupId, structureId, orderByComparator);
347     }
348 
349     public static com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last(
350         long groupId, java.lang.String structureId,
351         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
352         throws com.liferay.portal.SystemException,
353             com.liferay.portlet.journal.NoSuchTemplateException {
354         return getPersistence()
355                    .findByG_S_Last(groupId, structureId, orderByComparator);
356     }
357 
358     public static com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext(
359         long id, long groupId, java.lang.String structureId,
360         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
361         throws com.liferay.portal.SystemException,
362             com.liferay.portlet.journal.NoSuchTemplateException {
363         return getPersistence()
364                    .findByG_S_PrevAndNext(id, groupId, structureId,
365             orderByComparator);
366     }
367 
368     public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll()
369         throws com.liferay.portal.SystemException {
370         return getPersistence().findAll();
371     }
372 
373     public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
374         int start, int end) throws com.liferay.portal.SystemException {
375         return getPersistence().findAll(start, end);
376     }
377 
378     public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
379         int start, int end,
380         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381         throws com.liferay.portal.SystemException {
382         return getPersistence().findAll(start, end, orderByComparator);
383     }
384 
385     public static void removeByUuid(java.lang.String uuid)
386         throws com.liferay.portal.SystemException {
387         getPersistence().removeByUuid(uuid);
388     }
389 
390     public static void removeByUUID_G(java.lang.String uuid, long groupId)
391         throws com.liferay.portal.SystemException,
392             com.liferay.portlet.journal.NoSuchTemplateException {
393         getPersistence().removeByUUID_G(uuid, groupId);
394     }
395 
396     public static void removeByGroupId(long groupId)
397         throws com.liferay.portal.SystemException {
398         getPersistence().removeByGroupId(groupId);
399     }
400 
401     public static void removeByTemplateId(java.lang.String templateId)
402         throws com.liferay.portal.SystemException {
403         getPersistence().removeByTemplateId(templateId);
404     }
405 
406     public static void removeBySmallImageId(long smallImageId)
407         throws com.liferay.portal.SystemException,
408             com.liferay.portlet.journal.NoSuchTemplateException {
409         getPersistence().removeBySmallImageId(smallImageId);
410     }
411 
412     public static void removeByG_T(long groupId, java.lang.String templateId)
413         throws com.liferay.portal.SystemException,
414             com.liferay.portlet.journal.NoSuchTemplateException {
415         getPersistence().removeByG_T(groupId, templateId);
416     }
417 
418     public static void removeByG_S(long groupId, java.lang.String structureId)
419         throws com.liferay.portal.SystemException {
420         getPersistence().removeByG_S(groupId, structureId);
421     }
422 
423     public static void removeAll() throws com.liferay.portal.SystemException {
424         getPersistence().removeAll();
425     }
426 
427     public static int countByUuid(java.lang.String uuid)
428         throws com.liferay.portal.SystemException {
429         return getPersistence().countByUuid(uuid);
430     }
431 
432     public static int countByUUID_G(java.lang.String uuid, long groupId)
433         throws com.liferay.portal.SystemException {
434         return getPersistence().countByUUID_G(uuid, groupId);
435     }
436 
437     public static int countByGroupId(long groupId)
438         throws com.liferay.portal.SystemException {
439         return getPersistence().countByGroupId(groupId);
440     }
441 
442     public static int countByTemplateId(java.lang.String templateId)
443         throws com.liferay.portal.SystemException {
444         return getPersistence().countByTemplateId(templateId);
445     }
446 
447     public static int countBySmallImageId(long smallImageId)
448         throws com.liferay.portal.SystemException {
449         return getPersistence().countBySmallImageId(smallImageId);
450     }
451 
452     public static int countByG_T(long groupId, java.lang.String templateId)
453         throws com.liferay.portal.SystemException {
454         return getPersistence().countByG_T(groupId, templateId);
455     }
456 
457     public static int countByG_S(long groupId, java.lang.String structureId)
458         throws com.liferay.portal.SystemException {
459         return getPersistence().countByG_S(groupId, structureId);
460     }
461 
462     public static int countAll() throws com.liferay.portal.SystemException {
463         return getPersistence().countAll();
464     }
465 
466     public static JournalTemplatePersistence getPersistence() {
467         if (_persistence == null) {
468             _persistence = (JournalTemplatePersistence)PortalBeanLocatorUtil.locate(JournalTemplatePersistence.class.getName());
469         }
470 
471         return _persistence;
472     }
473 
474     public void setPersistence(JournalTemplatePersistence persistence) {
475         _persistence = persistence;
476     }
477 
478     private static JournalTemplatePersistence _persistence;
479 }