001    /**
002     * Copyright (c) 2000-2013 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.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.journal.model.JournalTemplate;
020    
021    /**
022     * The persistence interface for the journal template service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see JournalTemplatePersistenceImpl
030     * @see JournalTemplateUtil
031     * @generated
032     */
033    public interface JournalTemplatePersistence extends BasePersistence<JournalTemplate> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link JournalTemplateUtil} to access the journal template persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the journal template in the entity cache if it is enabled.
042            *
043            * @param journalTemplate the journal template
044            */
045            public void cacheResult(
046                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate);
047    
048            /**
049            * Caches the journal templates in the entity cache if it is enabled.
050            *
051            * @param journalTemplates the journal templates
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.journal.model.JournalTemplate> journalTemplates);
055    
056            /**
057            * Creates a new journal template with the primary key. Does not add the journal template to the database.
058            *
059            * @param id the primary key for the new journal template
060            * @return the new journal template
061            */
062            public com.liferay.portlet.journal.model.JournalTemplate create(long id);
063    
064            /**
065            * Removes the journal template with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param id the primary key of the journal template
068            * @return the journal template that was removed
069            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public com.liferay.portlet.journal.model.JournalTemplate remove(long id)
073                    throws com.liferay.portal.kernel.exception.SystemException,
074                            com.liferay.portlet.journal.NoSuchTemplateException;
075    
076            public com.liferay.portlet.journal.model.JournalTemplate updateImpl(
077                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
078                    boolean merge)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            /**
082            * Returns the journal template with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found.
083            *
084            * @param id the primary key of the journal template
085            * @return the journal template
086            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
087            * @throws SystemException if a system exception occurred
088            */
089            public com.liferay.portlet.journal.model.JournalTemplate findByPrimaryKey(
090                    long id)
091                    throws com.liferay.portal.kernel.exception.SystemException,
092                            com.liferay.portlet.journal.NoSuchTemplateException;
093    
094            /**
095            * Returns the journal template with the primary key or returns <code>null</code> if it could not be found.
096            *
097            * @param id the primary key of the journal template
098            * @return the journal template, or <code>null</code> if a journal template with the primary key could not be found
099            * @throws SystemException if a system exception occurred
100            */
101            public com.liferay.portlet.journal.model.JournalTemplate fetchByPrimaryKey(
102                    long id) throws com.liferay.portal.kernel.exception.SystemException;
103    
104            /**
105            * Returns all the journal templates where uuid = &#63;.
106            *
107            * @param uuid the uuid
108            * @return the matching journal templates
109            * @throws SystemException if a system exception occurred
110            */
111            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
112                    java.lang.String uuid)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            /**
116            * Returns a range of all the journal templates where uuid = &#63;.
117            *
118            * <p>
119            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
120            * </p>
121            *
122            * @param uuid the uuid
123            * @param start the lower bound of the range of journal templates
124            * @param end the upper bound of the range of journal templates (not inclusive)
125            * @return the range of matching journal templates
126            * @throws SystemException if a system exception occurred
127            */
128            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
129                    java.lang.String uuid, int start, int end)
130                    throws com.liferay.portal.kernel.exception.SystemException;
131    
132            /**
133            * Returns an ordered range of all the journal templates where uuid = &#63;.
134            *
135            * <p>
136            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
137            * </p>
138            *
139            * @param uuid the uuid
140            * @param start the lower bound of the range of journal templates
141            * @param end the upper bound of the range of journal templates (not inclusive)
142            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
143            * @return the ordered range of matching journal templates
144            * @throws SystemException if a system exception occurred
145            */
146            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
147                    java.lang.String uuid, int start, int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            /**
152            * Returns the first journal template in the ordered set where uuid = &#63;.
153            *
154            * @param uuid the uuid
155            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
156            * @return the first matching journal template
157            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portlet.journal.model.JournalTemplate findByUuid_First(
161                    java.lang.String uuid,
162                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163                    throws com.liferay.portal.kernel.exception.SystemException,
164                            com.liferay.portlet.journal.NoSuchTemplateException;
165    
166            /**
167            * Returns the first journal template in the ordered set where uuid = &#63;.
168            *
169            * @param uuid the uuid
170            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
171            * @return the first matching journal template, or <code>null</code> if a matching journal template could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public com.liferay.portlet.journal.model.JournalTemplate fetchByUuid_First(
175                    java.lang.String uuid,
176                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            /**
180            * Returns the last journal template in the ordered set where uuid = &#63;.
181            *
182            * @param uuid the uuid
183            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
184            * @return the last matching journal template
185            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public com.liferay.portlet.journal.model.JournalTemplate findByUuid_Last(
189                    java.lang.String uuid,
190                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191                    throws com.liferay.portal.kernel.exception.SystemException,
192                            com.liferay.portlet.journal.NoSuchTemplateException;
193    
194            /**
195            * Returns the last journal template in the ordered set where uuid = &#63;.
196            *
197            * @param uuid the uuid
198            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
199            * @return the last matching journal template, or <code>null</code> if a matching journal template could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            public com.liferay.portlet.journal.model.JournalTemplate fetchByUuid_Last(
203                    java.lang.String uuid,
204                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            /**
208            * Returns the journal templates before and after the current journal template in the ordered set where uuid = &#63;.
209            *
210            * @param id the primary key of the current journal template
211            * @param uuid the uuid
212            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
213            * @return the previous, current, and next journal template
214            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
215            * @throws SystemException if a system exception occurred
216            */
217            public com.liferay.portlet.journal.model.JournalTemplate[] findByUuid_PrevAndNext(
218                    long id, java.lang.String uuid,
219                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220                    throws com.liferay.portal.kernel.exception.SystemException,
221                            com.liferay.portlet.journal.NoSuchTemplateException;
222    
223            /**
224            * Returns the journal template where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found.
225            *
226            * @param uuid the uuid
227            * @param groupId the group ID
228            * @return the matching journal template
229            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portlet.journal.model.JournalTemplate findByUUID_G(
233                    java.lang.String uuid, long groupId)
234                    throws com.liferay.portal.kernel.exception.SystemException,
235                            com.liferay.portlet.journal.NoSuchTemplateException;
236    
237            /**
238            * Returns the journal template where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
239            *
240            * @param uuid the uuid
241            * @param groupId the group ID
242            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
243            * @throws SystemException if a system exception occurred
244            */
245            public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
246                    java.lang.String uuid, long groupId)
247                    throws com.liferay.portal.kernel.exception.SystemException;
248    
249            /**
250            * Returns the journal template where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
251            *
252            * @param uuid the uuid
253            * @param groupId the group ID
254            * @param retrieveFromCache whether to use the finder cache
255            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
256            * @throws SystemException if a system exception occurred
257            */
258            public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
259                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
260                    throws com.liferay.portal.kernel.exception.SystemException;
261    
262            /**
263            * Returns all the journal templates where groupId = &#63;.
264            *
265            * @param groupId the group ID
266            * @return the matching journal templates
267            * @throws SystemException if a system exception occurred
268            */
269            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
270                    long groupId)
271                    throws com.liferay.portal.kernel.exception.SystemException;
272    
273            /**
274            * Returns a range of all the journal templates where groupId = &#63;.
275            *
276            * <p>
277            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
278            * </p>
279            *
280            * @param groupId the group ID
281            * @param start the lower bound of the range of journal templates
282            * @param end the upper bound of the range of journal templates (not inclusive)
283            * @return the range of matching journal templates
284            * @throws SystemException if a system exception occurred
285            */
286            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
287                    long groupId, int start, int end)
288                    throws com.liferay.portal.kernel.exception.SystemException;
289    
290            /**
291            * Returns an ordered range of all the journal templates where groupId = &#63;.
292            *
293            * <p>
294            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
295            * </p>
296            *
297            * @param groupId the group ID
298            * @param start the lower bound of the range of journal templates
299            * @param end the upper bound of the range of journal templates (not inclusive)
300            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
301            * @return the ordered range of matching journal templates
302            * @throws SystemException if a system exception occurred
303            */
304            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
305                    long groupId, int start, int end,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException;
308    
309            /**
310            * Returns the first journal template in the ordered set where groupId = &#63;.
311            *
312            * @param groupId the group ID
313            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
314            * @return the first matching journal template
315            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
316            * @throws SystemException if a system exception occurred
317            */
318            public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_First(
319                    long groupId,
320                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
321                    throws com.liferay.portal.kernel.exception.SystemException,
322                            com.liferay.portlet.journal.NoSuchTemplateException;
323    
324            /**
325            * Returns the first journal template in the ordered set where groupId = &#63;.
326            *
327            * @param groupId the group ID
328            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
329            * @return the first matching journal template, or <code>null</code> if a matching journal template could not be found
330            * @throws SystemException if a system exception occurred
331            */
332            public com.liferay.portlet.journal.model.JournalTemplate fetchByGroupId_First(
333                    long groupId,
334                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
335                    throws com.liferay.portal.kernel.exception.SystemException;
336    
337            /**
338            * Returns the last journal template in the ordered set where groupId = &#63;.
339            *
340            * @param groupId the group ID
341            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
342            * @return the last matching journal template
343            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
344            * @throws SystemException if a system exception occurred
345            */
346            public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_Last(
347                    long groupId,
348                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
349                    throws com.liferay.portal.kernel.exception.SystemException,
350                            com.liferay.portlet.journal.NoSuchTemplateException;
351    
352            /**
353            * Returns the last journal template in the ordered set where groupId = &#63;.
354            *
355            * @param groupId the group ID
356            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
357            * @return the last matching journal template, or <code>null</code> if a matching journal template could not be found
358            * @throws SystemException if a system exception occurred
359            */
360            public com.liferay.portlet.journal.model.JournalTemplate fetchByGroupId_Last(
361                    long groupId,
362                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
363                    throws com.liferay.portal.kernel.exception.SystemException;
364    
365            /**
366            * Returns the journal templates before and after the current journal template in the ordered set where groupId = &#63;.
367            *
368            * @param id the primary key of the current journal template
369            * @param groupId the group ID
370            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
371            * @return the previous, current, and next journal template
372            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
373            * @throws SystemException if a system exception occurred
374            */
375            public com.liferay.portlet.journal.model.JournalTemplate[] findByGroupId_PrevAndNext(
376                    long id, long groupId,
377                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
378                    throws com.liferay.portal.kernel.exception.SystemException,
379                            com.liferay.portlet.journal.NoSuchTemplateException;
380    
381            /**
382            * Returns all the journal templates that the user has permission to view where groupId = &#63;.
383            *
384            * @param groupId the group ID
385            * @return the matching journal templates that the user has permission to view
386            * @throws SystemException if a system exception occurred
387            */
388            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId(
389                    long groupId)
390                    throws com.liferay.portal.kernel.exception.SystemException;
391    
392            /**
393            * Returns a range of all the journal templates that the user has permission to view where groupId = &#63;.
394            *
395            * <p>
396            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
397            * </p>
398            *
399            * @param groupId the group ID
400            * @param start the lower bound of the range of journal templates
401            * @param end the upper bound of the range of journal templates (not inclusive)
402            * @return the range of matching journal templates that the user has permission to view
403            * @throws SystemException if a system exception occurred
404            */
405            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId(
406                    long groupId, int start, int end)
407                    throws com.liferay.portal.kernel.exception.SystemException;
408    
409            /**
410            * Returns an ordered range of all the journal templates that the user has permissions to view where groupId = &#63;.
411            *
412            * <p>
413            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
414            * </p>
415            *
416            * @param groupId the group ID
417            * @param start the lower bound of the range of journal templates
418            * @param end the upper bound of the range of journal templates (not inclusive)
419            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
420            * @return the ordered range of matching journal templates that the user has permission to view
421            * @throws SystemException if a system exception occurred
422            */
423            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId(
424                    long groupId, int start, int end,
425                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
426                    throws com.liferay.portal.kernel.exception.SystemException;
427    
428            /**
429            * Returns the journal templates before and after the current journal template in the ordered set of journal templates that the user has permission to view where groupId = &#63;.
430            *
431            * @param id the primary key of the current journal template
432            * @param groupId the group ID
433            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
434            * @return the previous, current, and next journal template
435            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
436            * @throws SystemException if a system exception occurred
437            */
438            public com.liferay.portlet.journal.model.JournalTemplate[] filterFindByGroupId_PrevAndNext(
439                    long id, long groupId,
440                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
441                    throws com.liferay.portal.kernel.exception.SystemException,
442                            com.liferay.portlet.journal.NoSuchTemplateException;
443    
444            /**
445            * Returns all the journal templates where templateId = &#63;.
446            *
447            * @param templateId the template ID
448            * @return the matching journal templates
449            * @throws SystemException if a system exception occurred
450            */
451            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
452                    java.lang.String templateId)
453                    throws com.liferay.portal.kernel.exception.SystemException;
454    
455            /**
456            * Returns a range of all the journal templates where templateId = &#63;.
457            *
458            * <p>
459            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
460            * </p>
461            *
462            * @param templateId the template ID
463            * @param start the lower bound of the range of journal templates
464            * @param end the upper bound of the range of journal templates (not inclusive)
465            * @return the range of matching journal templates
466            * @throws SystemException if a system exception occurred
467            */
468            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
469                    java.lang.String templateId, int start, int end)
470                    throws com.liferay.portal.kernel.exception.SystemException;
471    
472            /**
473            * Returns an ordered range of all the journal templates where templateId = &#63;.
474            *
475            * <p>
476            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
477            * </p>
478            *
479            * @param templateId the template ID
480            * @param start the lower bound of the range of journal templates
481            * @param end the upper bound of the range of journal templates (not inclusive)
482            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
483            * @return the ordered range of matching journal templates
484            * @throws SystemException if a system exception occurred
485            */
486            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
487                    java.lang.String templateId, int start, int end,
488                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
489                    throws com.liferay.portal.kernel.exception.SystemException;
490    
491            /**
492            * Returns the first journal template in the ordered set where templateId = &#63;.
493            *
494            * @param templateId the template ID
495            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
496            * @return the first matching journal template
497            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
498            * @throws SystemException if a system exception occurred
499            */
500            public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_First(
501                    java.lang.String templateId,
502                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
503                    throws com.liferay.portal.kernel.exception.SystemException,
504                            com.liferay.portlet.journal.NoSuchTemplateException;
505    
506            /**
507            * Returns the first journal template in the ordered set where templateId = &#63;.
508            *
509            * @param templateId the template ID
510            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
511            * @return the first matching journal template, or <code>null</code> if a matching journal template could not be found
512            * @throws SystemException if a system exception occurred
513            */
514            public com.liferay.portlet.journal.model.JournalTemplate fetchByTemplateId_First(
515                    java.lang.String templateId,
516                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
517                    throws com.liferay.portal.kernel.exception.SystemException;
518    
519            /**
520            * Returns the last journal template in the ordered set where templateId = &#63;.
521            *
522            * @param templateId the template ID
523            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
524            * @return the last matching journal template
525            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
526            * @throws SystemException if a system exception occurred
527            */
528            public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_Last(
529                    java.lang.String templateId,
530                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
531                    throws com.liferay.portal.kernel.exception.SystemException,
532                            com.liferay.portlet.journal.NoSuchTemplateException;
533    
534            /**
535            * Returns the last journal template in the ordered set where templateId = &#63;.
536            *
537            * @param templateId the template ID
538            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
539            * @return the last matching journal template, or <code>null</code> if a matching journal template could not be found
540            * @throws SystemException if a system exception occurred
541            */
542            public com.liferay.portlet.journal.model.JournalTemplate fetchByTemplateId_Last(
543                    java.lang.String templateId,
544                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
545                    throws com.liferay.portal.kernel.exception.SystemException;
546    
547            /**
548            * Returns the journal templates before and after the current journal template in the ordered set where templateId = &#63;.
549            *
550            * @param id the primary key of the current journal template
551            * @param templateId the template ID
552            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
553            * @return the previous, current, and next journal template
554            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
555            * @throws SystemException if a system exception occurred
556            */
557            public com.liferay.portlet.journal.model.JournalTemplate[] findByTemplateId_PrevAndNext(
558                    long id, java.lang.String templateId,
559                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
560                    throws com.liferay.portal.kernel.exception.SystemException,
561                            com.liferay.portlet.journal.NoSuchTemplateException;
562    
563            /**
564            * Returns all the journal templates where structureId = &#63;.
565            *
566            * @param structureId the structure ID
567            * @return the matching journal templates
568            * @throws SystemException if a system exception occurred
569            */
570            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByStructureId(
571                    java.lang.String structureId)
572                    throws com.liferay.portal.kernel.exception.SystemException;
573    
574            /**
575            * Returns a range of all the journal templates where structureId = &#63;.
576            *
577            * <p>
578            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
579            * </p>
580            *
581            * @param structureId the structure ID
582            * @param start the lower bound of the range of journal templates
583            * @param end the upper bound of the range of journal templates (not inclusive)
584            * @return the range of matching journal templates
585            * @throws SystemException if a system exception occurred
586            */
587            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByStructureId(
588                    java.lang.String structureId, int start, int end)
589                    throws com.liferay.portal.kernel.exception.SystemException;
590    
591            /**
592            * Returns an ordered range of all the journal templates where structureId = &#63;.
593            *
594            * <p>
595            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
596            * </p>
597            *
598            * @param structureId the structure ID
599            * @param start the lower bound of the range of journal templates
600            * @param end the upper bound of the range of journal templates (not inclusive)
601            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
602            * @return the ordered range of matching journal templates
603            * @throws SystemException if a system exception occurred
604            */
605            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByStructureId(
606                    java.lang.String structureId, int start, int end,
607                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
608                    throws com.liferay.portal.kernel.exception.SystemException;
609    
610            /**
611            * Returns the first journal template in the ordered set where structureId = &#63;.
612            *
613            * @param structureId the structure ID
614            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
615            * @return the first matching journal template
616            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
617            * @throws SystemException if a system exception occurred
618            */
619            public com.liferay.portlet.journal.model.JournalTemplate findByStructureId_First(
620                    java.lang.String structureId,
621                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
622                    throws com.liferay.portal.kernel.exception.SystemException,
623                            com.liferay.portlet.journal.NoSuchTemplateException;
624    
625            /**
626            * Returns the first journal template in the ordered set where structureId = &#63;.
627            *
628            * @param structureId the structure ID
629            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
630            * @return the first matching journal template, or <code>null</code> if a matching journal template could not be found
631            * @throws SystemException if a system exception occurred
632            */
633            public com.liferay.portlet.journal.model.JournalTemplate fetchByStructureId_First(
634                    java.lang.String structureId,
635                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
636                    throws com.liferay.portal.kernel.exception.SystemException;
637    
638            /**
639            * Returns the last journal template in the ordered set where structureId = &#63;.
640            *
641            * @param structureId the structure ID
642            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
643            * @return the last matching journal template
644            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
645            * @throws SystemException if a system exception occurred
646            */
647            public com.liferay.portlet.journal.model.JournalTemplate findByStructureId_Last(
648                    java.lang.String structureId,
649                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
650                    throws com.liferay.portal.kernel.exception.SystemException,
651                            com.liferay.portlet.journal.NoSuchTemplateException;
652    
653            /**
654            * Returns the last journal template in the ordered set where structureId = &#63;.
655            *
656            * @param structureId the structure ID
657            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
658            * @return the last matching journal template, or <code>null</code> if a matching journal template could not be found
659            * @throws SystemException if a system exception occurred
660            */
661            public com.liferay.portlet.journal.model.JournalTemplate fetchByStructureId_Last(
662                    java.lang.String structureId,
663                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
664                    throws com.liferay.portal.kernel.exception.SystemException;
665    
666            /**
667            * Returns the journal templates before and after the current journal template in the ordered set where structureId = &#63;.
668            *
669            * @param id the primary key of the current journal template
670            * @param structureId the structure ID
671            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
672            * @return the previous, current, and next journal template
673            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
674            * @throws SystemException if a system exception occurred
675            */
676            public com.liferay.portlet.journal.model.JournalTemplate[] findByStructureId_PrevAndNext(
677                    long id, java.lang.String structureId,
678                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
679                    throws com.liferay.portal.kernel.exception.SystemException,
680                            com.liferay.portlet.journal.NoSuchTemplateException;
681    
682            /**
683            * Returns the journal template where smallImageId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found.
684            *
685            * @param smallImageId the small image ID
686            * @return the matching journal template
687            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
688            * @throws SystemException if a system exception occurred
689            */
690            public com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId(
691                    long smallImageId)
692                    throws com.liferay.portal.kernel.exception.SystemException,
693                            com.liferay.portlet.journal.NoSuchTemplateException;
694    
695            /**
696            * Returns the journal template where smallImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
697            *
698            * @param smallImageId the small image ID
699            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
700            * @throws SystemException if a system exception occurred
701            */
702            public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
703                    long smallImageId)
704                    throws com.liferay.portal.kernel.exception.SystemException;
705    
706            /**
707            * Returns the journal template where smallImageId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
708            *
709            * @param smallImageId the small image ID
710            * @param retrieveFromCache whether to use the finder cache
711            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
712            * @throws SystemException if a system exception occurred
713            */
714            public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
715                    long smallImageId, boolean retrieveFromCache)
716                    throws com.liferay.portal.kernel.exception.SystemException;
717    
718            /**
719            * Returns the journal template where groupId = &#63; and templateId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found.
720            *
721            * @param groupId the group ID
722            * @param templateId the template ID
723            * @return the matching journal template
724            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
725            * @throws SystemException if a system exception occurred
726            */
727            public com.liferay.portlet.journal.model.JournalTemplate findByG_T(
728                    long groupId, java.lang.String templateId)
729                    throws com.liferay.portal.kernel.exception.SystemException,
730                            com.liferay.portlet.journal.NoSuchTemplateException;
731    
732            /**
733            * Returns the journal template where groupId = &#63; and templateId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
734            *
735            * @param groupId the group ID
736            * @param templateId the template ID
737            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
738            * @throws SystemException if a system exception occurred
739            */
740            public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
741                    long groupId, java.lang.String templateId)
742                    throws com.liferay.portal.kernel.exception.SystemException;
743    
744            /**
745            * Returns the journal template where groupId = &#63; and templateId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
746            *
747            * @param groupId the group ID
748            * @param templateId the template ID
749            * @param retrieveFromCache whether to use the finder cache
750            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
751            * @throws SystemException if a system exception occurred
752            */
753            public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
754                    long groupId, java.lang.String templateId, boolean retrieveFromCache)
755                    throws com.liferay.portal.kernel.exception.SystemException;
756    
757            /**
758            * Returns all the journal templates where groupId = &#63; and structureId = &#63;.
759            *
760            * @param groupId the group ID
761            * @param structureId the structure ID
762            * @return the matching journal templates
763            * @throws SystemException if a system exception occurred
764            */
765            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
766                    long groupId, java.lang.String structureId)
767                    throws com.liferay.portal.kernel.exception.SystemException;
768    
769            /**
770            * Returns a range of all the journal templates where groupId = &#63; and structureId = &#63;.
771            *
772            * <p>
773            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
774            * </p>
775            *
776            * @param groupId the group ID
777            * @param structureId the structure ID
778            * @param start the lower bound of the range of journal templates
779            * @param end the upper bound of the range of journal templates (not inclusive)
780            * @return the range of matching journal templates
781            * @throws SystemException if a system exception occurred
782            */
783            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
784                    long groupId, java.lang.String structureId, int start, int end)
785                    throws com.liferay.portal.kernel.exception.SystemException;
786    
787            /**
788            * Returns an ordered range of all the journal templates where groupId = &#63; and structureId = &#63;.
789            *
790            * <p>
791            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
792            * </p>
793            *
794            * @param groupId the group ID
795            * @param structureId the structure ID
796            * @param start the lower bound of the range of journal templates
797            * @param end the upper bound of the range of journal templates (not inclusive)
798            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
799            * @return the ordered range of matching journal templates
800            * @throws SystemException if a system exception occurred
801            */
802            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
803                    long groupId, java.lang.String structureId, int start, int end,
804                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
805                    throws com.liferay.portal.kernel.exception.SystemException;
806    
807            /**
808            * Returns the first journal template in the ordered set where groupId = &#63; and structureId = &#63;.
809            *
810            * @param groupId the group ID
811            * @param structureId the structure ID
812            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
813            * @return the first matching journal template
814            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
815            * @throws SystemException if a system exception occurred
816            */
817            public com.liferay.portlet.journal.model.JournalTemplate findByG_S_First(
818                    long groupId, java.lang.String structureId,
819                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
820                    throws com.liferay.portal.kernel.exception.SystemException,
821                            com.liferay.portlet.journal.NoSuchTemplateException;
822    
823            /**
824            * Returns the first journal template in the ordered set where groupId = &#63; and structureId = &#63;.
825            *
826            * @param groupId the group ID
827            * @param structureId the structure ID
828            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
829            * @return the first matching journal template, or <code>null</code> if a matching journal template could not be found
830            * @throws SystemException if a system exception occurred
831            */
832            public com.liferay.portlet.journal.model.JournalTemplate fetchByG_S_First(
833                    long groupId, java.lang.String structureId,
834                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
835                    throws com.liferay.portal.kernel.exception.SystemException;
836    
837            /**
838            * Returns the last journal template in the ordered set where groupId = &#63; and structureId = &#63;.
839            *
840            * @param groupId the group ID
841            * @param structureId the structure ID
842            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
843            * @return the last matching journal template
844            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
845            * @throws SystemException if a system exception occurred
846            */
847            public com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last(
848                    long groupId, java.lang.String structureId,
849                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
850                    throws com.liferay.portal.kernel.exception.SystemException,
851                            com.liferay.portlet.journal.NoSuchTemplateException;
852    
853            /**
854            * Returns the last journal template in the ordered set where groupId = &#63; and structureId = &#63;.
855            *
856            * @param groupId the group ID
857            * @param structureId the structure ID
858            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
859            * @return the last matching journal template, or <code>null</code> if a matching journal template could not be found
860            * @throws SystemException if a system exception occurred
861            */
862            public com.liferay.portlet.journal.model.JournalTemplate fetchByG_S_Last(
863                    long groupId, java.lang.String structureId,
864                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
865                    throws com.liferay.portal.kernel.exception.SystemException;
866    
867            /**
868            * Returns the journal templates before and after the current journal template in the ordered set where groupId = &#63; and structureId = &#63;.
869            *
870            * @param id the primary key of the current journal template
871            * @param groupId the group ID
872            * @param structureId the structure ID
873            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
874            * @return the previous, current, and next journal template
875            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
876            * @throws SystemException if a system exception occurred
877            */
878            public com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext(
879                    long id, long groupId, java.lang.String structureId,
880                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
881                    throws com.liferay.portal.kernel.exception.SystemException,
882                            com.liferay.portlet.journal.NoSuchTemplateException;
883    
884            /**
885            * Returns all the journal templates that the user has permission to view where groupId = &#63; and structureId = &#63;.
886            *
887            * @param groupId the group ID
888            * @param structureId the structure ID
889            * @return the matching journal templates that the user has permission to view
890            * @throws SystemException if a system exception occurred
891            */
892            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
893                    long groupId, java.lang.String structureId)
894                    throws com.liferay.portal.kernel.exception.SystemException;
895    
896            /**
897            * Returns a range of all the journal templates that the user has permission to view where groupId = &#63; and structureId = &#63;.
898            *
899            * <p>
900            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
901            * </p>
902            *
903            * @param groupId the group ID
904            * @param structureId the structure ID
905            * @param start the lower bound of the range of journal templates
906            * @param end the upper bound of the range of journal templates (not inclusive)
907            * @return the range of matching journal templates that the user has permission to view
908            * @throws SystemException if a system exception occurred
909            */
910            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
911                    long groupId, java.lang.String structureId, int start, int end)
912                    throws com.liferay.portal.kernel.exception.SystemException;
913    
914            /**
915            * Returns an ordered range of all the journal templates that the user has permissions to view where groupId = &#63; and structureId = &#63;.
916            *
917            * <p>
918            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
919            * </p>
920            *
921            * @param groupId the group ID
922            * @param structureId the structure ID
923            * @param start the lower bound of the range of journal templates
924            * @param end the upper bound of the range of journal templates (not inclusive)
925            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
926            * @return the ordered range of matching journal templates that the user has permission to view
927            * @throws SystemException if a system exception occurred
928            */
929            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
930                    long groupId, java.lang.String structureId, int start, int end,
931                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
932                    throws com.liferay.portal.kernel.exception.SystemException;
933    
934            /**
935            * Returns the journal templates before and after the current journal template in the ordered set of journal templates that the user has permission to view where groupId = &#63; and structureId = &#63;.
936            *
937            * @param id the primary key of the current journal template
938            * @param groupId the group ID
939            * @param structureId the structure ID
940            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
941            * @return the previous, current, and next journal template
942            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
943            * @throws SystemException if a system exception occurred
944            */
945            public com.liferay.portlet.journal.model.JournalTemplate[] filterFindByG_S_PrevAndNext(
946                    long id, long groupId, java.lang.String structureId,
947                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
948                    throws com.liferay.portal.kernel.exception.SystemException,
949                            com.liferay.portlet.journal.NoSuchTemplateException;
950    
951            /**
952            * Returns all the journal templates.
953            *
954            * @return the journal templates
955            * @throws SystemException if a system exception occurred
956            */
957            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll()
958                    throws com.liferay.portal.kernel.exception.SystemException;
959    
960            /**
961            * Returns a range of all the journal templates.
962            *
963            * <p>
964            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
965            * </p>
966            *
967            * @param start the lower bound of the range of journal templates
968            * @param end the upper bound of the range of journal templates (not inclusive)
969            * @return the range of journal templates
970            * @throws SystemException if a system exception occurred
971            */
972            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
973                    int start, int end)
974                    throws com.liferay.portal.kernel.exception.SystemException;
975    
976            /**
977            * Returns an ordered range of all the journal templates.
978            *
979            * <p>
980            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
981            * </p>
982            *
983            * @param start the lower bound of the range of journal templates
984            * @param end the upper bound of the range of journal templates (not inclusive)
985            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
986            * @return the ordered range of journal templates
987            * @throws SystemException if a system exception occurred
988            */
989            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
990                    int start, int end,
991                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
992                    throws com.liferay.portal.kernel.exception.SystemException;
993    
994            /**
995            * Removes all the journal templates where uuid = &#63; from the database.
996            *
997            * @param uuid the uuid
998            * @throws SystemException if a system exception occurred
999            */
1000            public void removeByUuid(java.lang.String uuid)
1001                    throws com.liferay.portal.kernel.exception.SystemException;
1002    
1003            /**
1004            * Removes the journal template where uuid = &#63; and groupId = &#63; from the database.
1005            *
1006            * @param uuid the uuid
1007            * @param groupId the group ID
1008            * @return the journal template that was removed
1009            * @throws SystemException if a system exception occurred
1010            */
1011            public com.liferay.portlet.journal.model.JournalTemplate removeByUUID_G(
1012                    java.lang.String uuid, long groupId)
1013                    throws com.liferay.portal.kernel.exception.SystemException,
1014                            com.liferay.portlet.journal.NoSuchTemplateException;
1015    
1016            /**
1017            * Removes all the journal templates where groupId = &#63; from the database.
1018            *
1019            * @param groupId the group ID
1020            * @throws SystemException if a system exception occurred
1021            */
1022            public void removeByGroupId(long groupId)
1023                    throws com.liferay.portal.kernel.exception.SystemException;
1024    
1025            /**
1026            * Removes all the journal templates where templateId = &#63; from the database.
1027            *
1028            * @param templateId the template ID
1029            * @throws SystemException if a system exception occurred
1030            */
1031            public void removeByTemplateId(java.lang.String templateId)
1032                    throws com.liferay.portal.kernel.exception.SystemException;
1033    
1034            /**
1035            * Removes all the journal templates where structureId = &#63; from the database.
1036            *
1037            * @param structureId the structure ID
1038            * @throws SystemException if a system exception occurred
1039            */
1040            public void removeByStructureId(java.lang.String structureId)
1041                    throws com.liferay.portal.kernel.exception.SystemException;
1042    
1043            /**
1044            * Removes the journal template where smallImageId = &#63; from the database.
1045            *
1046            * @param smallImageId the small image ID
1047            * @return the journal template that was removed
1048            * @throws SystemException if a system exception occurred
1049            */
1050            public com.liferay.portlet.journal.model.JournalTemplate removeBySmallImageId(
1051                    long smallImageId)
1052                    throws com.liferay.portal.kernel.exception.SystemException,
1053                            com.liferay.portlet.journal.NoSuchTemplateException;
1054    
1055            /**
1056            * Removes the journal template where groupId = &#63; and templateId = &#63; from the database.
1057            *
1058            * @param groupId the group ID
1059            * @param templateId the template ID
1060            * @return the journal template that was removed
1061            * @throws SystemException if a system exception occurred
1062            */
1063            public com.liferay.portlet.journal.model.JournalTemplate removeByG_T(
1064                    long groupId, java.lang.String templateId)
1065                    throws com.liferay.portal.kernel.exception.SystemException,
1066                            com.liferay.portlet.journal.NoSuchTemplateException;
1067    
1068            /**
1069            * Removes all the journal templates where groupId = &#63; and structureId = &#63; from the database.
1070            *
1071            * @param groupId the group ID
1072            * @param structureId the structure ID
1073            * @throws SystemException if a system exception occurred
1074            */
1075            public void removeByG_S(long groupId, java.lang.String structureId)
1076                    throws com.liferay.portal.kernel.exception.SystemException;
1077    
1078            /**
1079            * Removes all the journal templates from the database.
1080            *
1081            * @throws SystemException if a system exception occurred
1082            */
1083            public void removeAll()
1084                    throws com.liferay.portal.kernel.exception.SystemException;
1085    
1086            /**
1087            * Returns the number of journal templates where uuid = &#63;.
1088            *
1089            * @param uuid the uuid
1090            * @return the number of matching journal templates
1091            * @throws SystemException if a system exception occurred
1092            */
1093            public int countByUuid(java.lang.String uuid)
1094                    throws com.liferay.portal.kernel.exception.SystemException;
1095    
1096            /**
1097            * Returns the number of journal templates where uuid = &#63; and groupId = &#63;.
1098            *
1099            * @param uuid the uuid
1100            * @param groupId the group ID
1101            * @return the number of matching journal templates
1102            * @throws SystemException if a system exception occurred
1103            */
1104            public int countByUUID_G(java.lang.String uuid, long groupId)
1105                    throws com.liferay.portal.kernel.exception.SystemException;
1106    
1107            /**
1108            * Returns the number of journal templates where groupId = &#63;.
1109            *
1110            * @param groupId the group ID
1111            * @return the number of matching journal templates
1112            * @throws SystemException if a system exception occurred
1113            */
1114            public int countByGroupId(long groupId)
1115                    throws com.liferay.portal.kernel.exception.SystemException;
1116    
1117            /**
1118            * Returns the number of journal templates that the user has permission to view where groupId = &#63;.
1119            *
1120            * @param groupId the group ID
1121            * @return the number of matching journal templates that the user has permission to view
1122            * @throws SystemException if a system exception occurred
1123            */
1124            public int filterCountByGroupId(long groupId)
1125                    throws com.liferay.portal.kernel.exception.SystemException;
1126    
1127            /**
1128            * Returns the number of journal templates where templateId = &#63;.
1129            *
1130            * @param templateId the template ID
1131            * @return the number of matching journal templates
1132            * @throws SystemException if a system exception occurred
1133            */
1134            public int countByTemplateId(java.lang.String templateId)
1135                    throws com.liferay.portal.kernel.exception.SystemException;
1136    
1137            /**
1138            * Returns the number of journal templates where structureId = &#63;.
1139            *
1140            * @param structureId the structure ID
1141            * @return the number of matching journal templates
1142            * @throws SystemException if a system exception occurred
1143            */
1144            public int countByStructureId(java.lang.String structureId)
1145                    throws com.liferay.portal.kernel.exception.SystemException;
1146    
1147            /**
1148            * Returns the number of journal templates where smallImageId = &#63;.
1149            *
1150            * @param smallImageId the small image ID
1151            * @return the number of matching journal templates
1152            * @throws SystemException if a system exception occurred
1153            */
1154            public int countBySmallImageId(long smallImageId)
1155                    throws com.liferay.portal.kernel.exception.SystemException;
1156    
1157            /**
1158            * Returns the number of journal templates where groupId = &#63; and templateId = &#63;.
1159            *
1160            * @param groupId the group ID
1161            * @param templateId the template ID
1162            * @return the number of matching journal templates
1163            * @throws SystemException if a system exception occurred
1164            */
1165            public int countByG_T(long groupId, java.lang.String templateId)
1166                    throws com.liferay.portal.kernel.exception.SystemException;
1167    
1168            /**
1169            * Returns the number of journal templates where groupId = &#63; and structureId = &#63;.
1170            *
1171            * @param groupId the group ID
1172            * @param structureId the structure ID
1173            * @return the number of matching journal templates
1174            * @throws SystemException if a system exception occurred
1175            */
1176            public int countByG_S(long groupId, java.lang.String structureId)
1177                    throws com.liferay.portal.kernel.exception.SystemException;
1178    
1179            /**
1180            * Returns the number of journal templates that the user has permission to view where groupId = &#63; and structureId = &#63;.
1181            *
1182            * @param groupId the group ID
1183            * @param structureId the structure ID
1184            * @return the number of matching journal templates that the user has permission to view
1185            * @throws SystemException if a system exception occurred
1186            */
1187            public int filterCountByG_S(long groupId, java.lang.String structureId)
1188                    throws com.liferay.portal.kernel.exception.SystemException;
1189    
1190            /**
1191            * Returns the number of journal templates.
1192            *
1193            * @return the number of journal templates
1194            * @throws SystemException if a system exception occurred
1195            */
1196            public int countAll()
1197                    throws com.liferay.portal.kernel.exception.SystemException;
1198    }