001    /**
002     * Copyright (c) 2000-2012 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            * <p>
155            * 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.
156            * </p>
157            *
158            * @param uuid the uuid
159            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
160            * @return the first matching journal template
161            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
162            * @throws SystemException if a system exception occurred
163            */
164            public com.liferay.portlet.journal.model.JournalTemplate findByUuid_First(
165                    java.lang.String uuid,
166                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167                    throws com.liferay.portal.kernel.exception.SystemException,
168                            com.liferay.portlet.journal.NoSuchTemplateException;
169    
170            /**
171            * Returns the last journal template in the ordered set where uuid = &#63;.
172            *
173            * <p>
174            * 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.
175            * </p>
176            *
177            * @param uuid the uuid
178            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
179            * @return the last matching journal template
180            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
181            * @throws SystemException if a system exception occurred
182            */
183            public com.liferay.portlet.journal.model.JournalTemplate findByUuid_Last(
184                    java.lang.String uuid,
185                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186                    throws com.liferay.portal.kernel.exception.SystemException,
187                            com.liferay.portlet.journal.NoSuchTemplateException;
188    
189            /**
190            * Returns the journal templates before and after the current journal template in the ordered set where uuid = &#63;.
191            *
192            * <p>
193            * 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.
194            * </p>
195            *
196            * @param id the primary key of the current journal template
197            * @param uuid the uuid
198            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
199            * @return the previous, current, and next journal template
200            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
201            * @throws SystemException if a system exception occurred
202            */
203            public com.liferay.portlet.journal.model.JournalTemplate[] findByUuid_PrevAndNext(
204                    long id, java.lang.String uuid,
205                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
206                    throws com.liferay.portal.kernel.exception.SystemException,
207                            com.liferay.portlet.journal.NoSuchTemplateException;
208    
209            /**
210            * 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.
211            *
212            * @param uuid the uuid
213            * @param groupId the group ID
214            * @return the matching journal template
215            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portlet.journal.model.JournalTemplate findByUUID_G(
219                    java.lang.String uuid, long groupId)
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 returns <code>null</code> if it could not be found. Uses the finder cache.
225            *
226            * @param uuid the uuid
227            * @param groupId the group ID
228            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
229            * @throws SystemException if a system exception occurred
230            */
231            public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
232                    java.lang.String uuid, long groupId)
233                    throws com.liferay.portal.kernel.exception.SystemException;
234    
235            /**
236            * 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.
237            *
238            * @param uuid the uuid
239            * @param groupId the group ID
240            * @param retrieveFromCache whether to use the finder cache
241            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
242            * @throws SystemException if a system exception occurred
243            */
244            public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
245                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
246                    throws com.liferay.portal.kernel.exception.SystemException;
247    
248            /**
249            * Returns all the journal templates where groupId = &#63;.
250            *
251            * @param groupId the group ID
252            * @return the matching journal templates
253            * @throws SystemException if a system exception occurred
254            */
255            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
256                    long groupId)
257                    throws com.liferay.portal.kernel.exception.SystemException;
258    
259            /**
260            * Returns a range of all the journal templates where groupId = &#63;.
261            *
262            * <p>
263            * 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.
264            * </p>
265            *
266            * @param groupId the group ID
267            * @param start the lower bound of the range of journal templates
268            * @param end the upper bound of the range of journal templates (not inclusive)
269            * @return the range of matching journal templates
270            * @throws SystemException if a system exception occurred
271            */
272            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
273                    long groupId, int start, int end)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            /**
277            * Returns an ordered range of all the journal templates where groupId = &#63;.
278            *
279            * <p>
280            * 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.
281            * </p>
282            *
283            * @param groupId the group ID
284            * @param start the lower bound of the range of journal templates
285            * @param end the upper bound of the range of journal templates (not inclusive)
286            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
287            * @return the ordered range of matching journal templates
288            * @throws SystemException if a system exception occurred
289            */
290            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
291                    long groupId, int start, int end,
292                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293                    throws com.liferay.portal.kernel.exception.SystemException;
294    
295            /**
296            * Returns the first journal template in the ordered set where groupId = &#63;.
297            *
298            * <p>
299            * 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.
300            * </p>
301            *
302            * @param groupId the group ID
303            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
304            * @return the first matching journal template
305            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
306            * @throws SystemException if a system exception occurred
307            */
308            public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_First(
309                    long groupId,
310                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311                    throws com.liferay.portal.kernel.exception.SystemException,
312                            com.liferay.portlet.journal.NoSuchTemplateException;
313    
314            /**
315            * Returns the last journal template in the ordered set where groupId = &#63;.
316            *
317            * <p>
318            * 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.
319            * </p>
320            *
321            * @param groupId the group ID
322            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
323            * @return the last matching journal template
324            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
325            * @throws SystemException if a system exception occurred
326            */
327            public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_Last(
328                    long groupId,
329                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
330                    throws com.liferay.portal.kernel.exception.SystemException,
331                            com.liferay.portlet.journal.NoSuchTemplateException;
332    
333            /**
334            * Returns the journal templates before and after the current journal template in the ordered set where groupId = &#63;.
335            *
336            * <p>
337            * 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.
338            * </p>
339            *
340            * @param id the primary key of the current journal template
341            * @param groupId the group ID
342            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
343            * @return the previous, current, and next journal template
344            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
345            * @throws SystemException if a system exception occurred
346            */
347            public com.liferay.portlet.journal.model.JournalTemplate[] findByGroupId_PrevAndNext(
348                    long id, long groupId,
349                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
350                    throws com.liferay.portal.kernel.exception.SystemException,
351                            com.liferay.portlet.journal.NoSuchTemplateException;
352    
353            /**
354            * Returns all the journal templates that the user has permission to view where groupId = &#63;.
355            *
356            * @param groupId the group ID
357            * @return the matching journal templates that the user has permission to view
358            * @throws SystemException if a system exception occurred
359            */
360            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId(
361                    long groupId)
362                    throws com.liferay.portal.kernel.exception.SystemException;
363    
364            /**
365            * Returns a range of all the journal templates that the user has permission to view where groupId = &#63;.
366            *
367            * <p>
368            * 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.
369            * </p>
370            *
371            * @param groupId the group ID
372            * @param start the lower bound of the range of journal templates
373            * @param end the upper bound of the range of journal templates (not inclusive)
374            * @return the range of matching journal templates that the user has permission to view
375            * @throws SystemException if a system exception occurred
376            */
377            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId(
378                    long groupId, int start, int end)
379                    throws com.liferay.portal.kernel.exception.SystemException;
380    
381            /**
382            * Returns an ordered range of all the journal templates that the user has permissions to view where groupId = &#63;.
383            *
384            * <p>
385            * 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.
386            * </p>
387            *
388            * @param groupId the group ID
389            * @param start the lower bound of the range of journal templates
390            * @param end the upper bound of the range of journal templates (not inclusive)
391            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
392            * @return the ordered range of matching journal templates that the user has permission to view
393            * @throws SystemException if a system exception occurred
394            */
395            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId(
396                    long groupId, int start, int end,
397                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
398                    throws com.liferay.portal.kernel.exception.SystemException;
399    
400            /**
401            * 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;.
402            *
403            * @param id the primary key of the current journal template
404            * @param groupId the group ID
405            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
406            * @return the previous, current, and next journal template
407            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
408            * @throws SystemException if a system exception occurred
409            */
410            public com.liferay.portlet.journal.model.JournalTemplate[] filterFindByGroupId_PrevAndNext(
411                    long id, long groupId,
412                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
413                    throws com.liferay.portal.kernel.exception.SystemException,
414                            com.liferay.portlet.journal.NoSuchTemplateException;
415    
416            /**
417            * Returns all the journal templates where templateId = &#63;.
418            *
419            * @param templateId the template ID
420            * @return the matching journal templates
421            * @throws SystemException if a system exception occurred
422            */
423            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
424                    java.lang.String templateId)
425                    throws com.liferay.portal.kernel.exception.SystemException;
426    
427            /**
428            * Returns a range of all the journal templates where templateId = &#63;.
429            *
430            * <p>
431            * 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.
432            * </p>
433            *
434            * @param templateId the template ID
435            * @param start the lower bound of the range of journal templates
436            * @param end the upper bound of the range of journal templates (not inclusive)
437            * @return the range of matching journal templates
438            * @throws SystemException if a system exception occurred
439            */
440            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
441                    java.lang.String templateId, int start, int end)
442                    throws com.liferay.portal.kernel.exception.SystemException;
443    
444            /**
445            * Returns an ordered range of all the journal templates where templateId = &#63;.
446            *
447            * <p>
448            * 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.
449            * </p>
450            *
451            * @param templateId the template ID
452            * @param start the lower bound of the range of journal templates
453            * @param end the upper bound of the range of journal templates (not inclusive)
454            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
455            * @return the ordered range of matching journal templates
456            * @throws SystemException if a system exception occurred
457            */
458            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
459                    java.lang.String templateId, int start, int end,
460                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
461                    throws com.liferay.portal.kernel.exception.SystemException;
462    
463            /**
464            * Returns the first journal template in the ordered set where templateId = &#63;.
465            *
466            * <p>
467            * 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.
468            * </p>
469            *
470            * @param templateId the template ID
471            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
472            * @return the first matching journal template
473            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
474            * @throws SystemException if a system exception occurred
475            */
476            public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_First(
477                    java.lang.String templateId,
478                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
479                    throws com.liferay.portal.kernel.exception.SystemException,
480                            com.liferay.portlet.journal.NoSuchTemplateException;
481    
482            /**
483            * Returns the last journal template in the ordered set where templateId = &#63;.
484            *
485            * <p>
486            * 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.
487            * </p>
488            *
489            * @param templateId the template ID
490            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
491            * @return the last matching journal template
492            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
493            * @throws SystemException if a system exception occurred
494            */
495            public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_Last(
496                    java.lang.String templateId,
497                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
498                    throws com.liferay.portal.kernel.exception.SystemException,
499                            com.liferay.portlet.journal.NoSuchTemplateException;
500    
501            /**
502            * Returns the journal templates before and after the current journal template in the ordered set where templateId = &#63;.
503            *
504            * <p>
505            * 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.
506            * </p>
507            *
508            * @param id the primary key of the current journal template
509            * @param templateId the template ID
510            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
511            * @return the previous, current, and next journal template
512            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
513            * @throws SystemException if a system exception occurred
514            */
515            public com.liferay.portlet.journal.model.JournalTemplate[] findByTemplateId_PrevAndNext(
516                    long id, java.lang.String templateId,
517                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
518                    throws com.liferay.portal.kernel.exception.SystemException,
519                            com.liferay.portlet.journal.NoSuchTemplateException;
520    
521            /**
522            * Returns all the journal templates where structureId = &#63;.
523            *
524            * @param structureId the structure ID
525            * @return the matching journal templates
526            * @throws SystemException if a system exception occurred
527            */
528            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByStructureId(
529                    java.lang.String structureId)
530                    throws com.liferay.portal.kernel.exception.SystemException;
531    
532            /**
533            * Returns a range of all the journal templates where structureId = &#63;.
534            *
535            * <p>
536            * 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.
537            * </p>
538            *
539            * @param structureId the structure ID
540            * @param start the lower bound of the range of journal templates
541            * @param end the upper bound of the range of journal templates (not inclusive)
542            * @return the range of matching journal templates
543            * @throws SystemException if a system exception occurred
544            */
545            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByStructureId(
546                    java.lang.String structureId, int start, int end)
547                    throws com.liferay.portal.kernel.exception.SystemException;
548    
549            /**
550            * Returns an ordered range of all the journal templates where structureId = &#63;.
551            *
552            * <p>
553            * 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.
554            * </p>
555            *
556            * @param structureId the structure ID
557            * @param start the lower bound of the range of journal templates
558            * @param end the upper bound of the range of journal templates (not inclusive)
559            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
560            * @return the ordered range of matching journal templates
561            * @throws SystemException if a system exception occurred
562            */
563            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByStructureId(
564                    java.lang.String structureId, int start, int end,
565                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
566                    throws com.liferay.portal.kernel.exception.SystemException;
567    
568            /**
569            * Returns the first journal template in the ordered set where structureId = &#63;.
570            *
571            * <p>
572            * 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.
573            * </p>
574            *
575            * @param structureId the structure ID
576            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
577            * @return the first matching journal template
578            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
579            * @throws SystemException if a system exception occurred
580            */
581            public com.liferay.portlet.journal.model.JournalTemplate findByStructureId_First(
582                    java.lang.String structureId,
583                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
584                    throws com.liferay.portal.kernel.exception.SystemException,
585                            com.liferay.portlet.journal.NoSuchTemplateException;
586    
587            /**
588            * Returns the last journal template in the ordered set where structureId = &#63;.
589            *
590            * <p>
591            * 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.
592            * </p>
593            *
594            * @param structureId the structure ID
595            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
596            * @return the last matching journal template
597            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
598            * @throws SystemException if a system exception occurred
599            */
600            public com.liferay.portlet.journal.model.JournalTemplate findByStructureId_Last(
601                    java.lang.String structureId,
602                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
603                    throws com.liferay.portal.kernel.exception.SystemException,
604                            com.liferay.portlet.journal.NoSuchTemplateException;
605    
606            /**
607            * Returns the journal templates before and after the current journal template in the ordered set where structureId = &#63;.
608            *
609            * <p>
610            * 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.
611            * </p>
612            *
613            * @param id the primary key of the current journal template
614            * @param structureId the structure ID
615            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
616            * @return the previous, current, and next journal template
617            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
618            * @throws SystemException if a system exception occurred
619            */
620            public com.liferay.portlet.journal.model.JournalTemplate[] findByStructureId_PrevAndNext(
621                    long id, java.lang.String structureId,
622                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
623                    throws com.liferay.portal.kernel.exception.SystemException,
624                            com.liferay.portlet.journal.NoSuchTemplateException;
625    
626            /**
627            * Returns the journal template where smallImageId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found.
628            *
629            * @param smallImageId the small image ID
630            * @return the matching journal template
631            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
632            * @throws SystemException if a system exception occurred
633            */
634            public com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId(
635                    long smallImageId)
636                    throws com.liferay.portal.kernel.exception.SystemException,
637                            com.liferay.portlet.journal.NoSuchTemplateException;
638    
639            /**
640            * Returns the journal template where smallImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
641            *
642            * @param smallImageId the small image ID
643            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
644            * @throws SystemException if a system exception occurred
645            */
646            public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
647                    long smallImageId)
648                    throws com.liferay.portal.kernel.exception.SystemException;
649    
650            /**
651            * Returns the journal template where smallImageId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
652            *
653            * @param smallImageId the small image ID
654            * @param retrieveFromCache whether to use the finder cache
655            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
656            * @throws SystemException if a system exception occurred
657            */
658            public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
659                    long smallImageId, boolean retrieveFromCache)
660                    throws com.liferay.portal.kernel.exception.SystemException;
661    
662            /**
663            * 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.
664            *
665            * @param groupId the group ID
666            * @param templateId the template ID
667            * @return the matching journal template
668            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
669            * @throws SystemException if a system exception occurred
670            */
671            public com.liferay.portlet.journal.model.JournalTemplate findByG_T(
672                    long groupId, java.lang.String templateId)
673                    throws com.liferay.portal.kernel.exception.SystemException,
674                            com.liferay.portlet.journal.NoSuchTemplateException;
675    
676            /**
677            * 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.
678            *
679            * @param groupId the group ID
680            * @param templateId the template ID
681            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
682            * @throws SystemException if a system exception occurred
683            */
684            public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
685                    long groupId, java.lang.String templateId)
686                    throws com.liferay.portal.kernel.exception.SystemException;
687    
688            /**
689            * 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.
690            *
691            * @param groupId the group ID
692            * @param templateId the template ID
693            * @param retrieveFromCache whether to use the finder cache
694            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
695            * @throws SystemException if a system exception occurred
696            */
697            public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
698                    long groupId, java.lang.String templateId, boolean retrieveFromCache)
699                    throws com.liferay.portal.kernel.exception.SystemException;
700    
701            /**
702            * Returns all the journal templates where groupId = &#63; and structureId = &#63;.
703            *
704            * @param groupId the group ID
705            * @param structureId the structure ID
706            * @return the matching journal templates
707            * @throws SystemException if a system exception occurred
708            */
709            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
710                    long groupId, java.lang.String structureId)
711                    throws com.liferay.portal.kernel.exception.SystemException;
712    
713            /**
714            * Returns a range of all the journal templates where groupId = &#63; and structureId = &#63;.
715            *
716            * <p>
717            * 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.
718            * </p>
719            *
720            * @param groupId the group ID
721            * @param structureId the structure ID
722            * @param start the lower bound of the range of journal templates
723            * @param end the upper bound of the range of journal templates (not inclusive)
724            * @return the range of matching journal templates
725            * @throws SystemException if a system exception occurred
726            */
727            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
728                    long groupId, java.lang.String structureId, int start, int end)
729                    throws com.liferay.portal.kernel.exception.SystemException;
730    
731            /**
732            * Returns an ordered range of all the journal templates where groupId = &#63; and structureId = &#63;.
733            *
734            * <p>
735            * 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.
736            * </p>
737            *
738            * @param groupId the group ID
739            * @param structureId the structure ID
740            * @param start the lower bound of the range of journal templates
741            * @param end the upper bound of the range of journal templates (not inclusive)
742            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
743            * @return the ordered range of matching journal templates
744            * @throws SystemException if a system exception occurred
745            */
746            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
747                    long groupId, java.lang.String structureId, int start, int end,
748                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
749                    throws com.liferay.portal.kernel.exception.SystemException;
750    
751            /**
752            * Returns the first journal template in the ordered set where groupId = &#63; and structureId = &#63;.
753            *
754            * <p>
755            * 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.
756            * </p>
757            *
758            * @param groupId the group ID
759            * @param structureId the structure ID
760            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
761            * @return the first matching journal template
762            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
763            * @throws SystemException if a system exception occurred
764            */
765            public com.liferay.portlet.journal.model.JournalTemplate findByG_S_First(
766                    long groupId, java.lang.String structureId,
767                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
768                    throws com.liferay.portal.kernel.exception.SystemException,
769                            com.liferay.portlet.journal.NoSuchTemplateException;
770    
771            /**
772            * Returns the last journal template in the ordered set where groupId = &#63; and structureId = &#63;.
773            *
774            * <p>
775            * 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.
776            * </p>
777            *
778            * @param groupId the group ID
779            * @param structureId the structure ID
780            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
781            * @return the last matching journal template
782            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
783            * @throws SystemException if a system exception occurred
784            */
785            public com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last(
786                    long groupId, java.lang.String structureId,
787                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
788                    throws com.liferay.portal.kernel.exception.SystemException,
789                            com.liferay.portlet.journal.NoSuchTemplateException;
790    
791            /**
792            * Returns the journal templates before and after the current journal template in the ordered set where groupId = &#63; and structureId = &#63;.
793            *
794            * <p>
795            * 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.
796            * </p>
797            *
798            * @param id the primary key of the current journal template
799            * @param groupId the group ID
800            * @param structureId the structure ID
801            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
802            * @return the previous, current, and next journal template
803            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
804            * @throws SystemException if a system exception occurred
805            */
806            public com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext(
807                    long id, long groupId, java.lang.String structureId,
808                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
809                    throws com.liferay.portal.kernel.exception.SystemException,
810                            com.liferay.portlet.journal.NoSuchTemplateException;
811    
812            /**
813            * Returns all the journal templates that the user has permission to view where groupId = &#63; and structureId = &#63;.
814            *
815            * @param groupId the group ID
816            * @param structureId the structure ID
817            * @return the matching journal templates that the user has permission to view
818            * @throws SystemException if a system exception occurred
819            */
820            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
821                    long groupId, java.lang.String structureId)
822                    throws com.liferay.portal.kernel.exception.SystemException;
823    
824            /**
825            * Returns a range of all the journal templates that the user has permission to view where groupId = &#63; and structureId = &#63;.
826            *
827            * <p>
828            * 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.
829            * </p>
830            *
831            * @param groupId the group ID
832            * @param structureId the structure ID
833            * @param start the lower bound of the range of journal templates
834            * @param end the upper bound of the range of journal templates (not inclusive)
835            * @return the range of matching journal templates that the user has permission to view
836            * @throws SystemException if a system exception occurred
837            */
838            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
839                    long groupId, java.lang.String structureId, int start, int end)
840                    throws com.liferay.portal.kernel.exception.SystemException;
841    
842            /**
843            * Returns an ordered range of all the journal templates that the user has permissions to view where groupId = &#63; and structureId = &#63;.
844            *
845            * <p>
846            * 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.
847            * </p>
848            *
849            * @param groupId the group ID
850            * @param structureId the structure ID
851            * @param start the lower bound of the range of journal templates
852            * @param end the upper bound of the range of journal templates (not inclusive)
853            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
854            * @return the ordered range of matching journal templates that the user has permission to view
855            * @throws SystemException if a system exception occurred
856            */
857            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
858                    long groupId, java.lang.String structureId, int start, int end,
859                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
860                    throws com.liferay.portal.kernel.exception.SystemException;
861    
862            /**
863            * 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;.
864            *
865            * @param id the primary key of the current journal template
866            * @param groupId the group ID
867            * @param structureId the structure ID
868            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
869            * @return the previous, current, and next journal template
870            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
871            * @throws SystemException if a system exception occurred
872            */
873            public com.liferay.portlet.journal.model.JournalTemplate[] filterFindByG_S_PrevAndNext(
874                    long id, long groupId, java.lang.String structureId,
875                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
876                    throws com.liferay.portal.kernel.exception.SystemException,
877                            com.liferay.portlet.journal.NoSuchTemplateException;
878    
879            /**
880            * Returns all the journal templates.
881            *
882            * @return the journal templates
883            * @throws SystemException if a system exception occurred
884            */
885            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll()
886                    throws com.liferay.portal.kernel.exception.SystemException;
887    
888            /**
889            * Returns a range of all the journal templates.
890            *
891            * <p>
892            * 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.
893            * </p>
894            *
895            * @param start the lower bound of the range of journal templates
896            * @param end the upper bound of the range of journal templates (not inclusive)
897            * @return the range of journal templates
898            * @throws SystemException if a system exception occurred
899            */
900            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
901                    int start, int end)
902                    throws com.liferay.portal.kernel.exception.SystemException;
903    
904            /**
905            * Returns an ordered range of all the journal templates.
906            *
907            * <p>
908            * 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.
909            * </p>
910            *
911            * @param start the lower bound of the range of journal templates
912            * @param end the upper bound of the range of journal templates (not inclusive)
913            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
914            * @return the ordered range of journal templates
915            * @throws SystemException if a system exception occurred
916            */
917            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
918                    int start, int end,
919                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
920                    throws com.liferay.portal.kernel.exception.SystemException;
921    
922            /**
923            * Removes all the journal templates where uuid = &#63; from the database.
924            *
925            * @param uuid the uuid
926            * @throws SystemException if a system exception occurred
927            */
928            public void removeByUuid(java.lang.String uuid)
929                    throws com.liferay.portal.kernel.exception.SystemException;
930    
931            /**
932            * Removes the journal template where uuid = &#63; and groupId = &#63; from the database.
933            *
934            * @param uuid the uuid
935            * @param groupId the group ID
936            * @throws SystemException if a system exception occurred
937            */
938            public void removeByUUID_G(java.lang.String uuid, long groupId)
939                    throws com.liferay.portal.kernel.exception.SystemException,
940                            com.liferay.portlet.journal.NoSuchTemplateException;
941    
942            /**
943            * Removes all the journal templates where groupId = &#63; from the database.
944            *
945            * @param groupId the group ID
946            * @throws SystemException if a system exception occurred
947            */
948            public void removeByGroupId(long groupId)
949                    throws com.liferay.portal.kernel.exception.SystemException;
950    
951            /**
952            * Removes all the journal templates where templateId = &#63; from the database.
953            *
954            * @param templateId the template ID
955            * @throws SystemException if a system exception occurred
956            */
957            public void removeByTemplateId(java.lang.String templateId)
958                    throws com.liferay.portal.kernel.exception.SystemException;
959    
960            /**
961            * Removes all the journal templates where structureId = &#63; from the database.
962            *
963            * @param structureId the structure ID
964            * @throws SystemException if a system exception occurred
965            */
966            public void removeByStructureId(java.lang.String structureId)
967                    throws com.liferay.portal.kernel.exception.SystemException;
968    
969            /**
970            * Removes the journal template where smallImageId = &#63; from the database.
971            *
972            * @param smallImageId the small image ID
973            * @throws SystemException if a system exception occurred
974            */
975            public void removeBySmallImageId(long smallImageId)
976                    throws com.liferay.portal.kernel.exception.SystemException,
977                            com.liferay.portlet.journal.NoSuchTemplateException;
978    
979            /**
980            * Removes the journal template where groupId = &#63; and templateId = &#63; from the database.
981            *
982            * @param groupId the group ID
983            * @param templateId the template ID
984            * @throws SystemException if a system exception occurred
985            */
986            public void removeByG_T(long groupId, java.lang.String templateId)
987                    throws com.liferay.portal.kernel.exception.SystemException,
988                            com.liferay.portlet.journal.NoSuchTemplateException;
989    
990            /**
991            * Removes all the journal templates where groupId = &#63; and structureId = &#63; from the database.
992            *
993            * @param groupId the group ID
994            * @param structureId the structure ID
995            * @throws SystemException if a system exception occurred
996            */
997            public void removeByG_S(long groupId, java.lang.String structureId)
998                    throws com.liferay.portal.kernel.exception.SystemException;
999    
1000            /**
1001            * Removes all the journal templates from the database.
1002            *
1003            * @throws SystemException if a system exception occurred
1004            */
1005            public void removeAll()
1006                    throws com.liferay.portal.kernel.exception.SystemException;
1007    
1008            /**
1009            * Returns the number of journal templates where uuid = &#63;.
1010            *
1011            * @param uuid the uuid
1012            * @return the number of matching journal templates
1013            * @throws SystemException if a system exception occurred
1014            */
1015            public int countByUuid(java.lang.String uuid)
1016                    throws com.liferay.portal.kernel.exception.SystemException;
1017    
1018            /**
1019            * Returns the number of journal templates where uuid = &#63; and groupId = &#63;.
1020            *
1021            * @param uuid the uuid
1022            * @param groupId the group ID
1023            * @return the number of matching journal templates
1024            * @throws SystemException if a system exception occurred
1025            */
1026            public int countByUUID_G(java.lang.String uuid, long groupId)
1027                    throws com.liferay.portal.kernel.exception.SystemException;
1028    
1029            /**
1030            * Returns the number of journal templates where groupId = &#63;.
1031            *
1032            * @param groupId the group ID
1033            * @return the number of matching journal templates
1034            * @throws SystemException if a system exception occurred
1035            */
1036            public int countByGroupId(long groupId)
1037                    throws com.liferay.portal.kernel.exception.SystemException;
1038    
1039            /**
1040            * Returns the number of journal templates that the user has permission to view where groupId = &#63;.
1041            *
1042            * @param groupId the group ID
1043            * @return the number of matching journal templates that the user has permission to view
1044            * @throws SystemException if a system exception occurred
1045            */
1046            public int filterCountByGroupId(long groupId)
1047                    throws com.liferay.portal.kernel.exception.SystemException;
1048    
1049            /**
1050            * Returns the number of journal templates where templateId = &#63;.
1051            *
1052            * @param templateId the template ID
1053            * @return the number of matching journal templates
1054            * @throws SystemException if a system exception occurred
1055            */
1056            public int countByTemplateId(java.lang.String templateId)
1057                    throws com.liferay.portal.kernel.exception.SystemException;
1058    
1059            /**
1060            * Returns the number of journal templates where structureId = &#63;.
1061            *
1062            * @param structureId the structure ID
1063            * @return the number of matching journal templates
1064            * @throws SystemException if a system exception occurred
1065            */
1066            public int countByStructureId(java.lang.String structureId)
1067                    throws com.liferay.portal.kernel.exception.SystemException;
1068    
1069            /**
1070            * Returns the number of journal templates where smallImageId = &#63;.
1071            *
1072            * @param smallImageId the small image ID
1073            * @return the number of matching journal templates
1074            * @throws SystemException if a system exception occurred
1075            */
1076            public int countBySmallImageId(long smallImageId)
1077                    throws com.liferay.portal.kernel.exception.SystemException;
1078    
1079            /**
1080            * Returns the number of journal templates where groupId = &#63; and templateId = &#63;.
1081            *
1082            * @param groupId the group ID
1083            * @param templateId the template ID
1084            * @return the number of matching journal templates
1085            * @throws SystemException if a system exception occurred
1086            */
1087            public int countByG_T(long groupId, java.lang.String templateId)
1088                    throws com.liferay.portal.kernel.exception.SystemException;
1089    
1090            /**
1091            * Returns the number of journal templates where groupId = &#63; and structureId = &#63;.
1092            *
1093            * @param groupId the group ID
1094            * @param structureId the structure ID
1095            * @return the number of matching journal templates
1096            * @throws SystemException if a system exception occurred
1097            */
1098            public int countByG_S(long groupId, java.lang.String structureId)
1099                    throws com.liferay.portal.kernel.exception.SystemException;
1100    
1101            /**
1102            * Returns the number of journal templates that the user has permission to view where groupId = &#63; and structureId = &#63;.
1103            *
1104            * @param groupId the group ID
1105            * @param structureId the structure ID
1106            * @return the number of matching journal templates that the user has permission to view
1107            * @throws SystemException if a system exception occurred
1108            */
1109            public int filterCountByG_S(long groupId, java.lang.String structureId)
1110                    throws com.liferay.portal.kernel.exception.SystemException;
1111    
1112            /**
1113            * Returns the number of journal templates.
1114            *
1115            * @return the number of journal templates
1116            * @throws SystemException if a system exception occurred
1117            */
1118            public int countAll()
1119                    throws com.liferay.portal.kernel.exception.SystemException;
1120    }