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