001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.service.ServiceContext;
022    
023    import com.liferay.portlet.journal.model.JournalTemplate;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       JournalTemplatePersistence
030     * @see       JournalTemplatePersistenceImpl
031     * @generated
032     */
033    public class JournalTemplateUtil {
034            /**
035             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
036             */
037            public static void clearCache() {
038                    getPersistence().clearCache();
039            }
040    
041            /**
042             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
043             */
044            public static void clearCache(JournalTemplate journalTemplate) {
045                    getPersistence().clearCache(journalTemplate);
046            }
047    
048            /**
049             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
050             */
051            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052                    throws SystemException {
053                    return getPersistence().countWithDynamicQuery(dynamicQuery);
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
058             */
059            public static List<JournalTemplate> findWithDynamicQuery(
060                    DynamicQuery dynamicQuery) throws SystemException {
061                    return getPersistence().findWithDynamicQuery(dynamicQuery);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
066             */
067            public static List<JournalTemplate> findWithDynamicQuery(
068                    DynamicQuery dynamicQuery, int start, int end)
069                    throws SystemException {
070                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071            }
072    
073            /**
074             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
075             */
076            public static List<JournalTemplate> findWithDynamicQuery(
077                    DynamicQuery dynamicQuery, int start, int end,
078                    OrderByComparator orderByComparator) throws SystemException {
079                    return getPersistence()
080                                       .findWithDynamicQuery(dynamicQuery, start, end,
081                            orderByComparator);
082            }
083    
084            /**
085             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
086             */
087            public static JournalTemplate remove(JournalTemplate journalTemplate)
088                    throws SystemException {
089                    return getPersistence().remove(journalTemplate);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static JournalTemplate update(JournalTemplate journalTemplate,
096                    boolean merge) throws SystemException {
097                    return getPersistence().update(journalTemplate, merge);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
102             */
103            public static JournalTemplate update(JournalTemplate journalTemplate,
104                    boolean merge, ServiceContext serviceContext) throws SystemException {
105                    return getPersistence().update(journalTemplate, merge, serviceContext);
106            }
107    
108            public static void cacheResult(
109                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate) {
110                    getPersistence().cacheResult(journalTemplate);
111            }
112    
113            public static void cacheResult(
114                    java.util.List<com.liferay.portlet.journal.model.JournalTemplate> journalTemplates) {
115                    getPersistence().cacheResult(journalTemplates);
116            }
117    
118            public static com.liferay.portlet.journal.model.JournalTemplate create(
119                    long id) {
120                    return getPersistence().create(id);
121            }
122    
123            public static com.liferay.portlet.journal.model.JournalTemplate remove(
124                    long id)
125                    throws com.liferay.portal.kernel.exception.SystemException,
126                            com.liferay.portlet.journal.NoSuchTemplateException {
127                    return getPersistence().remove(id);
128            }
129    
130            public static com.liferay.portlet.journal.model.JournalTemplate updateImpl(
131                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
132                    boolean merge)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return getPersistence().updateImpl(journalTemplate, merge);
135            }
136    
137            public static com.liferay.portlet.journal.model.JournalTemplate findByPrimaryKey(
138                    long id)
139                    throws com.liferay.portal.kernel.exception.SystemException,
140                            com.liferay.portlet.journal.NoSuchTemplateException {
141                    return getPersistence().findByPrimaryKey(id);
142            }
143    
144            public static com.liferay.portlet.journal.model.JournalTemplate fetchByPrimaryKey(
145                    long id) throws com.liferay.portal.kernel.exception.SystemException {
146                    return getPersistence().fetchByPrimaryKey(id);
147            }
148    
149            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
150                    java.lang.String uuid)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return getPersistence().findByUuid(uuid);
153            }
154    
155            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
156                    java.lang.String uuid, int start, int end)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return getPersistence().findByUuid(uuid, start, end);
159            }
160    
161            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
162                    java.lang.String uuid, int start, int end,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
166            }
167    
168            public static com.liferay.portlet.journal.model.JournalTemplate findByUuid_First(
169                    java.lang.String uuid,
170                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171                    throws com.liferay.portal.kernel.exception.SystemException,
172                            com.liferay.portlet.journal.NoSuchTemplateException {
173                    return getPersistence().findByUuid_First(uuid, orderByComparator);
174            }
175    
176            public static com.liferay.portlet.journal.model.JournalTemplate findByUuid_Last(
177                    java.lang.String uuid,
178                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179                    throws com.liferay.portal.kernel.exception.SystemException,
180                            com.liferay.portlet.journal.NoSuchTemplateException {
181                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
182            }
183    
184            public static com.liferay.portlet.journal.model.JournalTemplate[] findByUuid_PrevAndNext(
185                    long id, java.lang.String uuid,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.kernel.exception.SystemException,
188                            com.liferay.portlet.journal.NoSuchTemplateException {
189                    return getPersistence()
190                                       .findByUuid_PrevAndNext(id, uuid, orderByComparator);
191            }
192    
193            public static com.liferay.portlet.journal.model.JournalTemplate findByUUID_G(
194                    java.lang.String uuid, long groupId)
195                    throws com.liferay.portal.kernel.exception.SystemException,
196                            com.liferay.portlet.journal.NoSuchTemplateException {
197                    return getPersistence().findByUUID_G(uuid, groupId);
198            }
199    
200            public static com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
201                    java.lang.String uuid, long groupId)
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return getPersistence().fetchByUUID_G(uuid, groupId);
204            }
205    
206            public static com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
207                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
210            }
211    
212            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
213                    long groupId)
214                    throws com.liferay.portal.kernel.exception.SystemException {
215                    return getPersistence().findByGroupId(groupId);
216            }
217    
218            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
219                    long groupId, int start, int end)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return getPersistence().findByGroupId(groupId, start, end);
222            }
223    
224            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
225                    long groupId, int start, int end,
226                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227                    throws com.liferay.portal.kernel.exception.SystemException {
228                    return getPersistence()
229                                       .findByGroupId(groupId, start, end, orderByComparator);
230            }
231    
232            public static com.liferay.portlet.journal.model.JournalTemplate findByGroupId_First(
233                    long groupId,
234                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
235                    throws com.liferay.portal.kernel.exception.SystemException,
236                            com.liferay.portlet.journal.NoSuchTemplateException {
237                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
238            }
239    
240            public static com.liferay.portlet.journal.model.JournalTemplate findByGroupId_Last(
241                    long groupId,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.kernel.exception.SystemException,
244                            com.liferay.portlet.journal.NoSuchTemplateException {
245                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
246            }
247    
248            public static com.liferay.portlet.journal.model.JournalTemplate[] findByGroupId_PrevAndNext(
249                    long id, long groupId,
250                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251                    throws com.liferay.portal.kernel.exception.SystemException,
252                            com.liferay.portlet.journal.NoSuchTemplateException {
253                    return getPersistence()
254                                       .findByGroupId_PrevAndNext(id, groupId, orderByComparator);
255            }
256    
257            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId(
258                    long groupId)
259                    throws com.liferay.portal.kernel.exception.SystemException {
260                    return getPersistence().filterFindByGroupId(groupId);
261            }
262    
263            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId(
264                    long groupId, int start, int end)
265                    throws com.liferay.portal.kernel.exception.SystemException {
266                    return getPersistence().filterFindByGroupId(groupId, start, end);
267            }
268    
269            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId(
270                    long groupId, int start, int end,
271                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
272                    throws com.liferay.portal.kernel.exception.SystemException {
273                    return getPersistence()
274                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
275            }
276    
277            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
278                    java.lang.String templateId)
279                    throws com.liferay.portal.kernel.exception.SystemException {
280                    return getPersistence().findByTemplateId(templateId);
281            }
282    
283            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
284                    java.lang.String templateId, int start, int end)
285                    throws com.liferay.portal.kernel.exception.SystemException {
286                    return getPersistence().findByTemplateId(templateId, start, end);
287            }
288    
289            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
290                    java.lang.String templateId, int start, int end,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.kernel.exception.SystemException {
293                    return getPersistence()
294                                       .findByTemplateId(templateId, start, end, orderByComparator);
295            }
296    
297            public static com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_First(
298                    java.lang.String templateId,
299                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
300                    throws com.liferay.portal.kernel.exception.SystemException,
301                            com.liferay.portlet.journal.NoSuchTemplateException {
302                    return getPersistence()
303                                       .findByTemplateId_First(templateId, orderByComparator);
304            }
305    
306            public static com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_Last(
307                    java.lang.String templateId,
308                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309                    throws com.liferay.portal.kernel.exception.SystemException,
310                            com.liferay.portlet.journal.NoSuchTemplateException {
311                    return getPersistence()
312                                       .findByTemplateId_Last(templateId, orderByComparator);
313            }
314    
315            public static com.liferay.portlet.journal.model.JournalTemplate[] findByTemplateId_PrevAndNext(
316                    long id, java.lang.String templateId,
317                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318                    throws com.liferay.portal.kernel.exception.SystemException,
319                            com.liferay.portlet.journal.NoSuchTemplateException {
320                    return getPersistence()
321                                       .findByTemplateId_PrevAndNext(id, templateId,
322                            orderByComparator);
323            }
324    
325            public static com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId(
326                    long smallImageId)
327                    throws com.liferay.portal.kernel.exception.SystemException,
328                            com.liferay.portlet.journal.NoSuchTemplateException {
329                    return getPersistence().findBySmallImageId(smallImageId);
330            }
331    
332            public static com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
333                    long smallImageId)
334                    throws com.liferay.portal.kernel.exception.SystemException {
335                    return getPersistence().fetchBySmallImageId(smallImageId);
336            }
337    
338            public static com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
339                    long smallImageId, boolean retrieveFromCache)
340                    throws com.liferay.portal.kernel.exception.SystemException {
341                    return getPersistence()
342                                       .fetchBySmallImageId(smallImageId, retrieveFromCache);
343            }
344    
345            public static com.liferay.portlet.journal.model.JournalTemplate findByG_T(
346                    long groupId, java.lang.String templateId)
347                    throws com.liferay.portal.kernel.exception.SystemException,
348                            com.liferay.portlet.journal.NoSuchTemplateException {
349                    return getPersistence().findByG_T(groupId, templateId);
350            }
351    
352            public static com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
353                    long groupId, java.lang.String templateId)
354                    throws com.liferay.portal.kernel.exception.SystemException {
355                    return getPersistence().fetchByG_T(groupId, templateId);
356            }
357    
358            public static com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
359                    long groupId, java.lang.String templateId, boolean retrieveFromCache)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return getPersistence()
362                                       .fetchByG_T(groupId, templateId, retrieveFromCache);
363            }
364    
365            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
366                    long groupId, java.lang.String structureId)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return getPersistence().findByG_S(groupId, structureId);
369            }
370    
371            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
372                    long groupId, java.lang.String structureId, int start, int end)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return getPersistence().findByG_S(groupId, structureId, start, end);
375            }
376    
377            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
378                    long groupId, java.lang.String structureId, int start, int end,
379                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
380                    throws com.liferay.portal.kernel.exception.SystemException {
381                    return getPersistence()
382                                       .findByG_S(groupId, structureId, start, end,
383                            orderByComparator);
384            }
385    
386            public static com.liferay.portlet.journal.model.JournalTemplate findByG_S_First(
387                    long groupId, java.lang.String structureId,
388                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
389                    throws com.liferay.portal.kernel.exception.SystemException,
390                            com.liferay.portlet.journal.NoSuchTemplateException {
391                    return getPersistence()
392                                       .findByG_S_First(groupId, structureId, orderByComparator);
393            }
394    
395            public static com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last(
396                    long groupId, java.lang.String structureId,
397                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
398                    throws com.liferay.portal.kernel.exception.SystemException,
399                            com.liferay.portlet.journal.NoSuchTemplateException {
400                    return getPersistence()
401                                       .findByG_S_Last(groupId, structureId, orderByComparator);
402            }
403    
404            public static com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext(
405                    long id, long groupId, java.lang.String structureId,
406                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
407                    throws com.liferay.portal.kernel.exception.SystemException,
408                            com.liferay.portlet.journal.NoSuchTemplateException {
409                    return getPersistence()
410                                       .findByG_S_PrevAndNext(id, groupId, structureId,
411                            orderByComparator);
412            }
413    
414            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
415                    long groupId, java.lang.String structureId)
416                    throws com.liferay.portal.kernel.exception.SystemException {
417                    return getPersistence().filterFindByG_S(groupId, structureId);
418            }
419    
420            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
421                    long groupId, java.lang.String structureId, int start, int end)
422                    throws com.liferay.portal.kernel.exception.SystemException {
423                    return getPersistence().filterFindByG_S(groupId, structureId, start, end);
424            }
425    
426            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
427                    long groupId, java.lang.String structureId, int start, int end,
428                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
429                    throws com.liferay.portal.kernel.exception.SystemException {
430                    return getPersistence()
431                                       .filterFindByG_S(groupId, structureId, start, end,
432                            orderByComparator);
433            }
434    
435            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll()
436                    throws com.liferay.portal.kernel.exception.SystemException {
437                    return getPersistence().findAll();
438            }
439    
440            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
441                    int start, int end)
442                    throws com.liferay.portal.kernel.exception.SystemException {
443                    return getPersistence().findAll(start, end);
444            }
445    
446            public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
447                    int start, int end,
448                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
449                    throws com.liferay.portal.kernel.exception.SystemException {
450                    return getPersistence().findAll(start, end, orderByComparator);
451            }
452    
453            public static void removeByUuid(java.lang.String uuid)
454                    throws com.liferay.portal.kernel.exception.SystemException {
455                    getPersistence().removeByUuid(uuid);
456            }
457    
458            public static void removeByUUID_G(java.lang.String uuid, long groupId)
459                    throws com.liferay.portal.kernel.exception.SystemException,
460                            com.liferay.portlet.journal.NoSuchTemplateException {
461                    getPersistence().removeByUUID_G(uuid, groupId);
462            }
463    
464            public static void removeByGroupId(long groupId)
465                    throws com.liferay.portal.kernel.exception.SystemException {
466                    getPersistence().removeByGroupId(groupId);
467            }
468    
469            public static void removeByTemplateId(java.lang.String templateId)
470                    throws com.liferay.portal.kernel.exception.SystemException {
471                    getPersistence().removeByTemplateId(templateId);
472            }
473    
474            public static void removeBySmallImageId(long smallImageId)
475                    throws com.liferay.portal.kernel.exception.SystemException,
476                            com.liferay.portlet.journal.NoSuchTemplateException {
477                    getPersistence().removeBySmallImageId(smallImageId);
478            }
479    
480            public static void removeByG_T(long groupId, java.lang.String templateId)
481                    throws com.liferay.portal.kernel.exception.SystemException,
482                            com.liferay.portlet.journal.NoSuchTemplateException {
483                    getPersistence().removeByG_T(groupId, templateId);
484            }
485    
486            public static void removeByG_S(long groupId, java.lang.String structureId)
487                    throws com.liferay.portal.kernel.exception.SystemException {
488                    getPersistence().removeByG_S(groupId, structureId);
489            }
490    
491            public static void removeAll()
492                    throws com.liferay.portal.kernel.exception.SystemException {
493                    getPersistence().removeAll();
494            }
495    
496            public static int countByUuid(java.lang.String uuid)
497                    throws com.liferay.portal.kernel.exception.SystemException {
498                    return getPersistence().countByUuid(uuid);
499            }
500    
501            public static int countByUUID_G(java.lang.String uuid, long groupId)
502                    throws com.liferay.portal.kernel.exception.SystemException {
503                    return getPersistence().countByUUID_G(uuid, groupId);
504            }
505    
506            public static int countByGroupId(long groupId)
507                    throws com.liferay.portal.kernel.exception.SystemException {
508                    return getPersistence().countByGroupId(groupId);
509            }
510    
511            public static int filterCountByGroupId(long groupId)
512                    throws com.liferay.portal.kernel.exception.SystemException {
513                    return getPersistence().filterCountByGroupId(groupId);
514            }
515    
516            public static int countByTemplateId(java.lang.String templateId)
517                    throws com.liferay.portal.kernel.exception.SystemException {
518                    return getPersistence().countByTemplateId(templateId);
519            }
520    
521            public static int countBySmallImageId(long smallImageId)
522                    throws com.liferay.portal.kernel.exception.SystemException {
523                    return getPersistence().countBySmallImageId(smallImageId);
524            }
525    
526            public static int countByG_T(long groupId, java.lang.String templateId)
527                    throws com.liferay.portal.kernel.exception.SystemException {
528                    return getPersistence().countByG_T(groupId, templateId);
529            }
530    
531            public static int filterCountByG_T(long groupId, java.lang.String templateId)
532                    throws com.liferay.portal.kernel.exception.SystemException {
533                    return getPersistence().filterCountByG_T(groupId, templateId);
534            }
535    
536            public static int countByG_S(long groupId, java.lang.String structureId)
537                    throws com.liferay.portal.kernel.exception.SystemException {
538                    return getPersistence().countByG_S(groupId, structureId);
539            }
540    
541            public static int filterCountByG_S(long groupId,
542                    java.lang.String structureId)
543                    throws com.liferay.portal.kernel.exception.SystemException {
544                    return getPersistence().filterCountByG_S(groupId, structureId);
545            }
546    
547            public static int countAll()
548                    throws com.liferay.portal.kernel.exception.SystemException {
549                    return getPersistence().countAll();
550            }
551    
552            public static JournalTemplatePersistence getPersistence() {
553                    if (_persistence == null) {
554                            _persistence = (JournalTemplatePersistence)PortalBeanLocatorUtil.locate(JournalTemplatePersistence.class.getName());
555                    }
556    
557                    return _persistence;
558            }
559    
560            public void setPersistence(JournalTemplatePersistence persistence) {
561                    _persistence = persistence;
562            }
563    
564            private static JournalTemplatePersistence _persistence;
565    }