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 the journal template where smallImageId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found.
523            *
524            * @param smallImageId the small image ID
525            * @return the matching journal template
526            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
527            * @throws SystemException if a system exception occurred
528            */
529            public com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId(
530                    long smallImageId)
531                    throws com.liferay.portal.kernel.exception.SystemException,
532                            com.liferay.portlet.journal.NoSuchTemplateException;
533    
534            /**
535            * Returns the journal template where smallImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
536            *
537            * @param smallImageId the small image ID
538            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
539            * @throws SystemException if a system exception occurred
540            */
541            public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
542                    long smallImageId)
543                    throws com.liferay.portal.kernel.exception.SystemException;
544    
545            /**
546            * Returns the journal template where smallImageId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
547            *
548            * @param smallImageId the small image ID
549            * @param retrieveFromCache whether to use the finder cache
550            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
551            * @throws SystemException if a system exception occurred
552            */
553            public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
554                    long smallImageId, boolean retrieveFromCache)
555                    throws com.liferay.portal.kernel.exception.SystemException;
556    
557            /**
558            * 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.
559            *
560            * @param groupId the group ID
561            * @param templateId the template ID
562            * @return the matching journal template
563            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
564            * @throws SystemException if a system exception occurred
565            */
566            public com.liferay.portlet.journal.model.JournalTemplate findByG_T(
567                    long groupId, java.lang.String templateId)
568                    throws com.liferay.portal.kernel.exception.SystemException,
569                            com.liferay.portlet.journal.NoSuchTemplateException;
570    
571            /**
572            * 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.
573            *
574            * @param groupId the group ID
575            * @param templateId the template ID
576            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
577            * @throws SystemException if a system exception occurred
578            */
579            public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
580                    long groupId, java.lang.String templateId)
581                    throws com.liferay.portal.kernel.exception.SystemException;
582    
583            /**
584            * 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.
585            *
586            * @param groupId the group ID
587            * @param templateId the template ID
588            * @param retrieveFromCache whether to use the finder cache
589            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
590            * @throws SystemException if a system exception occurred
591            */
592            public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
593                    long groupId, java.lang.String templateId, boolean retrieveFromCache)
594                    throws com.liferay.portal.kernel.exception.SystemException;
595    
596            /**
597            * Returns all the journal templates where groupId = &#63; and structureId = &#63;.
598            *
599            * @param groupId the group ID
600            * @param structureId the structure ID
601            * @return the matching journal templates
602            * @throws SystemException if a system exception occurred
603            */
604            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
605                    long groupId, java.lang.String structureId)
606                    throws com.liferay.portal.kernel.exception.SystemException;
607    
608            /**
609            * Returns a range of all the journal templates where groupId = &#63; and structureId = &#63;.
610            *
611            * <p>
612            * 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.
613            * </p>
614            *
615            * @param groupId the group ID
616            * @param structureId the structure ID
617            * @param start the lower bound of the range of journal templates
618            * @param end the upper bound of the range of journal templates (not inclusive)
619            * @return the range of matching journal templates
620            * @throws SystemException if a system exception occurred
621            */
622            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
623                    long groupId, java.lang.String structureId, int start, int end)
624                    throws com.liferay.portal.kernel.exception.SystemException;
625    
626            /**
627            * Returns an ordered range of all the journal templates where groupId = &#63; and structureId = &#63;.
628            *
629            * <p>
630            * 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.
631            * </p>
632            *
633            * @param groupId the group ID
634            * @param structureId the structure ID
635            * @param start the lower bound of the range of journal templates
636            * @param end the upper bound of the range of journal templates (not inclusive)
637            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
638            * @return the ordered range of matching journal templates
639            * @throws SystemException if a system exception occurred
640            */
641            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
642                    long groupId, java.lang.String structureId, int start, int end,
643                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
644                    throws com.liferay.portal.kernel.exception.SystemException;
645    
646            /**
647            * Returns the first journal template in the ordered set where groupId = &#63; and structureId = &#63;.
648            *
649            * <p>
650            * 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.
651            * </p>
652            *
653            * @param groupId the group ID
654            * @param structureId the structure ID
655            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
656            * @return the first matching journal template
657            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
658            * @throws SystemException if a system exception occurred
659            */
660            public com.liferay.portlet.journal.model.JournalTemplate findByG_S_First(
661                    long groupId, java.lang.String structureId,
662                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
663                    throws com.liferay.portal.kernel.exception.SystemException,
664                            com.liferay.portlet.journal.NoSuchTemplateException;
665    
666            /**
667            * Returns the last journal template in the ordered set where groupId = &#63; and structureId = &#63;.
668            *
669            * <p>
670            * 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.
671            * </p>
672            *
673            * @param groupId the group ID
674            * @param structureId the structure ID
675            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
676            * @return the last matching journal template
677            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
678            * @throws SystemException if a system exception occurred
679            */
680            public com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last(
681                    long groupId, java.lang.String structureId,
682                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
683                    throws com.liferay.portal.kernel.exception.SystemException,
684                            com.liferay.portlet.journal.NoSuchTemplateException;
685    
686            /**
687            * Returns the journal templates before and after the current journal template in the ordered set where groupId = &#63; and structureId = &#63;.
688            *
689            * <p>
690            * 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.
691            * </p>
692            *
693            * @param id the primary key of the current journal template
694            * @param groupId the group ID
695            * @param structureId the structure ID
696            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
697            * @return the previous, current, and next journal template
698            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
699            * @throws SystemException if a system exception occurred
700            */
701            public com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext(
702                    long id, long groupId, java.lang.String structureId,
703                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
704                    throws com.liferay.portal.kernel.exception.SystemException,
705                            com.liferay.portlet.journal.NoSuchTemplateException;
706    
707            /**
708            * Returns all the journal templates that the user has permission to view where groupId = &#63; and structureId = &#63;.
709            *
710            * @param groupId the group ID
711            * @param structureId the structure ID
712            * @return the matching journal templates that the user has permission to view
713            * @throws SystemException if a system exception occurred
714            */
715            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
716                    long groupId, java.lang.String structureId)
717                    throws com.liferay.portal.kernel.exception.SystemException;
718    
719            /**
720            * Returns a range of all the journal templates that the user has permission to view where groupId = &#63; and structureId = &#63;.
721            *
722            * <p>
723            * 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.
724            * </p>
725            *
726            * @param groupId the group ID
727            * @param structureId the structure ID
728            * @param start the lower bound of the range of journal templates
729            * @param end the upper bound of the range of journal templates (not inclusive)
730            * @return the range of matching journal templates that the user has permission to view
731            * @throws SystemException if a system exception occurred
732            */
733            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
734                    long groupId, java.lang.String structureId, int start, int end)
735                    throws com.liferay.portal.kernel.exception.SystemException;
736    
737            /**
738            * Returns an ordered range of all the journal templates that the user has permissions to view where groupId = &#63; and structureId = &#63;.
739            *
740            * <p>
741            * 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.
742            * </p>
743            *
744            * @param groupId the group ID
745            * @param structureId the structure ID
746            * @param start the lower bound of the range of journal templates
747            * @param end the upper bound of the range of journal templates (not inclusive)
748            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
749            * @return the ordered range of matching journal templates that the user has permission to view
750            * @throws SystemException if a system exception occurred
751            */
752            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
753                    long groupId, java.lang.String structureId, int start, int end,
754                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
755                    throws com.liferay.portal.kernel.exception.SystemException;
756    
757            /**
758            * 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;.
759            *
760            * @param id the primary key of the current journal template
761            * @param groupId the group ID
762            * @param structureId the structure ID
763            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
764            * @return the previous, current, and next journal template
765            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
766            * @throws SystemException if a system exception occurred
767            */
768            public com.liferay.portlet.journal.model.JournalTemplate[] filterFindByG_S_PrevAndNext(
769                    long id, long groupId, java.lang.String structureId,
770                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
771                    throws com.liferay.portal.kernel.exception.SystemException,
772                            com.liferay.portlet.journal.NoSuchTemplateException;
773    
774            /**
775            * Returns all the journal templates.
776            *
777            * @return the journal templates
778            * @throws SystemException if a system exception occurred
779            */
780            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll()
781                    throws com.liferay.portal.kernel.exception.SystemException;
782    
783            /**
784            * Returns a range of all the journal templates.
785            *
786            * <p>
787            * 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.
788            * </p>
789            *
790            * @param start the lower bound of the range of journal templates
791            * @param end the upper bound of the range of journal templates (not inclusive)
792            * @return the range of journal templates
793            * @throws SystemException if a system exception occurred
794            */
795            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
796                    int start, int end)
797                    throws com.liferay.portal.kernel.exception.SystemException;
798    
799            /**
800            * Returns an ordered range of all the journal templates.
801            *
802            * <p>
803            * 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.
804            * </p>
805            *
806            * @param start the lower bound of the range of journal templates
807            * @param end the upper bound of the range of journal templates (not inclusive)
808            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
809            * @return the ordered range of journal templates
810            * @throws SystemException if a system exception occurred
811            */
812            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
813                    int start, int end,
814                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
815                    throws com.liferay.portal.kernel.exception.SystemException;
816    
817            /**
818            * Removes all the journal templates where uuid = &#63; from the database.
819            *
820            * @param uuid the uuid
821            * @throws SystemException if a system exception occurred
822            */
823            public void removeByUuid(java.lang.String uuid)
824                    throws com.liferay.portal.kernel.exception.SystemException;
825    
826            /**
827            * Removes the journal template where uuid = &#63; and groupId = &#63; from the database.
828            *
829            * @param uuid the uuid
830            * @param groupId the group ID
831            * @throws SystemException if a system exception occurred
832            */
833            public void removeByUUID_G(java.lang.String uuid, long groupId)
834                    throws com.liferay.portal.kernel.exception.SystemException,
835                            com.liferay.portlet.journal.NoSuchTemplateException;
836    
837            /**
838            * Removes all the journal templates where groupId = &#63; from the database.
839            *
840            * @param groupId the group ID
841            * @throws SystemException if a system exception occurred
842            */
843            public void removeByGroupId(long groupId)
844                    throws com.liferay.portal.kernel.exception.SystemException;
845    
846            /**
847            * Removes all the journal templates where templateId = &#63; from the database.
848            *
849            * @param templateId the template ID
850            * @throws SystemException if a system exception occurred
851            */
852            public void removeByTemplateId(java.lang.String templateId)
853                    throws com.liferay.portal.kernel.exception.SystemException;
854    
855            /**
856            * Removes the journal template where smallImageId = &#63; from the database.
857            *
858            * @param smallImageId the small image ID
859            * @throws SystemException if a system exception occurred
860            */
861            public void removeBySmallImageId(long smallImageId)
862                    throws com.liferay.portal.kernel.exception.SystemException,
863                            com.liferay.portlet.journal.NoSuchTemplateException;
864    
865            /**
866            * Removes the journal template where groupId = &#63; and templateId = &#63; from the database.
867            *
868            * @param groupId the group ID
869            * @param templateId the template ID
870            * @throws SystemException if a system exception occurred
871            */
872            public void removeByG_T(long groupId, java.lang.String templateId)
873                    throws com.liferay.portal.kernel.exception.SystemException,
874                            com.liferay.portlet.journal.NoSuchTemplateException;
875    
876            /**
877            * Removes all the journal templates where groupId = &#63; and structureId = &#63; from the database.
878            *
879            * @param groupId the group ID
880            * @param structureId the structure ID
881            * @throws SystemException if a system exception occurred
882            */
883            public void removeByG_S(long groupId, java.lang.String structureId)
884                    throws com.liferay.portal.kernel.exception.SystemException;
885    
886            /**
887            * Removes all the journal templates from the database.
888            *
889            * @throws SystemException if a system exception occurred
890            */
891            public void removeAll()
892                    throws com.liferay.portal.kernel.exception.SystemException;
893    
894            /**
895            * Returns the number of journal templates where uuid = &#63;.
896            *
897            * @param uuid the uuid
898            * @return the number of matching journal templates
899            * @throws SystemException if a system exception occurred
900            */
901            public int countByUuid(java.lang.String uuid)
902                    throws com.liferay.portal.kernel.exception.SystemException;
903    
904            /**
905            * Returns the number of journal templates where uuid = &#63; and groupId = &#63;.
906            *
907            * @param uuid the uuid
908            * @param groupId the group ID
909            * @return the number of matching journal templates
910            * @throws SystemException if a system exception occurred
911            */
912            public int countByUUID_G(java.lang.String uuid, long groupId)
913                    throws com.liferay.portal.kernel.exception.SystemException;
914    
915            /**
916            * Returns the number of journal templates where groupId = &#63;.
917            *
918            * @param groupId the group ID
919            * @return the number of matching journal templates
920            * @throws SystemException if a system exception occurred
921            */
922            public int countByGroupId(long groupId)
923                    throws com.liferay.portal.kernel.exception.SystemException;
924    
925            /**
926            * Returns the number of journal templates that the user has permission to view where groupId = &#63;.
927            *
928            * @param groupId the group ID
929            * @return the number of matching journal templates that the user has permission to view
930            * @throws SystemException if a system exception occurred
931            */
932            public int filterCountByGroupId(long groupId)
933                    throws com.liferay.portal.kernel.exception.SystemException;
934    
935            /**
936            * Returns the number of journal templates where templateId = &#63;.
937            *
938            * @param templateId the template ID
939            * @return the number of matching journal templates
940            * @throws SystemException if a system exception occurred
941            */
942            public int countByTemplateId(java.lang.String templateId)
943                    throws com.liferay.portal.kernel.exception.SystemException;
944    
945            /**
946            * Returns the number of journal templates where smallImageId = &#63;.
947            *
948            * @param smallImageId the small image ID
949            * @return the number of matching journal templates
950            * @throws SystemException if a system exception occurred
951            */
952            public int countBySmallImageId(long smallImageId)
953                    throws com.liferay.portal.kernel.exception.SystemException;
954    
955            /**
956            * Returns the number of journal templates where groupId = &#63; and templateId = &#63;.
957            *
958            * @param groupId the group ID
959            * @param templateId the template ID
960            * @return the number of matching journal templates
961            * @throws SystemException if a system exception occurred
962            */
963            public int countByG_T(long groupId, java.lang.String templateId)
964                    throws com.liferay.portal.kernel.exception.SystemException;
965    
966            /**
967            * Returns the number of journal templates where groupId = &#63; and structureId = &#63;.
968            *
969            * @param groupId the group ID
970            * @param structureId the structure ID
971            * @return the number of matching journal templates
972            * @throws SystemException if a system exception occurred
973            */
974            public int countByG_S(long groupId, java.lang.String structureId)
975                    throws com.liferay.portal.kernel.exception.SystemException;
976    
977            /**
978            * Returns the number of journal templates that the user has permission to view where groupId = &#63; and structureId = &#63;.
979            *
980            * @param groupId the group ID
981            * @param structureId the structure ID
982            * @return the number of matching journal templates that the user has permission to view
983            * @throws SystemException if a system exception occurred
984            */
985            public int filterCountByG_S(long groupId, java.lang.String structureId)
986                    throws com.liferay.portal.kernel.exception.SystemException;
987    
988            /**
989            * Returns the number of journal templates.
990            *
991            * @return the number of journal templates
992            * @throws SystemException if a system exception occurred
993            */
994            public int countAll()
995                    throws com.liferay.portal.kernel.exception.SystemException;
996    }