1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.service.persistence;
24  
25  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Propagation;
28  import com.liferay.portal.kernel.annotation.Transactional;
29  import com.liferay.portal.service.persistence.BasePersistence;
30  
31  /**
32   * <a href="JournalArticlePersistence.java.html"><b><i>View Source</i></b></a>
33   *
34   * @author Brian Wing Shun Chan
35   *
36   */
37  @Transactional(rollbackFor =  {
38      PortalException.class, SystemException.class})
39  public interface JournalArticlePersistence extends BasePersistence {
40      public com.liferay.portlet.journal.model.JournalArticle create(long id);
41  
42      public com.liferay.portlet.journal.model.JournalArticle remove(long id)
43          throws com.liferay.portal.SystemException,
44              com.liferay.portlet.journal.NoSuchArticleException;
45  
46      public com.liferay.portlet.journal.model.JournalArticle remove(
47          com.liferay.portlet.journal.model.JournalArticle journalArticle)
48          throws com.liferay.portal.SystemException;
49  
50      /**
51       * @deprecated Use <code>update(JournalArticle journalArticle, boolean merge)</code>.
52       */
53      public com.liferay.portlet.journal.model.JournalArticle update(
54          com.liferay.portlet.journal.model.JournalArticle journalArticle)
55          throws com.liferay.portal.SystemException;
56  
57      /**
58       * Add, update, or merge, the entity. This method also calls the model
59       * listeners to trigger the proper events associated with adding, deleting,
60       * or updating an entity.
61       *
62       * @param        journalArticle the entity to add, update, or merge
63       * @param        merge boolean value for whether to merge the entity. The
64       *                default value is false. Setting merge to true is more
65       *                expensive and should only be true when journalArticle is
66       *                transient. See LEP-5473 for a detailed discussion of this
67       *                method.
68       * @return        true if the portlet can be displayed via Ajax
69       */
70      public com.liferay.portlet.journal.model.JournalArticle update(
71          com.liferay.portlet.journal.model.JournalArticle journalArticle,
72          boolean merge) throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portlet.journal.model.JournalArticle updateImpl(
75          com.liferay.portlet.journal.model.JournalArticle journalArticle,
76          boolean merge) throws com.liferay.portal.SystemException;
77  
78      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79      public com.liferay.portlet.journal.model.JournalArticle findByPrimaryKey(
80          long id)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portlet.journal.NoSuchArticleException;
83  
84      public com.liferay.portlet.journal.model.JournalArticle fetchByPrimaryKey(
85          long id) throws com.liferay.portal.SystemException;
86  
87      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
89          java.lang.String uuid) throws com.liferay.portal.SystemException;
90  
91      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
93          java.lang.String uuid, int start, int end)
94          throws com.liferay.portal.SystemException;
95  
96      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
97      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
98          java.lang.String uuid, int start, int end,
99          com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.SystemException;
101 
102     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103     public com.liferay.portlet.journal.model.JournalArticle findByUuid_First(
104         java.lang.String uuid,
105         com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException,
107             com.liferay.portlet.journal.NoSuchArticleException;
108 
109     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110     public com.liferay.portlet.journal.model.JournalArticle findByUuid_Last(
111         java.lang.String uuid,
112         com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.SystemException,
114             com.liferay.portlet.journal.NoSuchArticleException;
115 
116     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117     public com.liferay.portlet.journal.model.JournalArticle[] findByUuid_PrevAndNext(
118         long id, java.lang.String uuid,
119         com.liferay.portal.kernel.util.OrderByComparator obc)
120         throws com.liferay.portal.SystemException,
121             com.liferay.portlet.journal.NoSuchArticleException;
122 
123     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124     public com.liferay.portlet.journal.model.JournalArticle findByUUID_G(
125         java.lang.String uuid, long groupId)
126         throws com.liferay.portal.SystemException,
127             com.liferay.portlet.journal.NoSuchArticleException;
128 
129     public com.liferay.portlet.journal.model.JournalArticle fetchByUUID_G(
130         java.lang.String uuid, long groupId)
131         throws com.liferay.portal.SystemException;
132 
133     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
135         long groupId) throws com.liferay.portal.SystemException;
136 
137     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
139         long groupId, int start, int end)
140         throws com.liferay.portal.SystemException;
141 
142     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
144         long groupId, int start, int end,
145         com.liferay.portal.kernel.util.OrderByComparator obc)
146         throws com.liferay.portal.SystemException;
147 
148     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149     public com.liferay.portlet.journal.model.JournalArticle findByGroupId_First(
150         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException,
152             com.liferay.portlet.journal.NoSuchArticleException;
153 
154     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155     public com.liferay.portlet.journal.model.JournalArticle findByGroupId_Last(
156         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.journal.NoSuchArticleException;
159 
160     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161     public com.liferay.portlet.journal.model.JournalArticle[] findByGroupId_PrevAndNext(
162         long id, long groupId,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.journal.NoSuchArticleException;
166 
167     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
169         long companyId) throws com.liferay.portal.SystemException;
170 
171     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
173         long companyId, int start, int end)
174         throws com.liferay.portal.SystemException;
175 
176     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
178         long companyId, int start, int end,
179         com.liferay.portal.kernel.util.OrderByComparator obc)
180         throws com.liferay.portal.SystemException;
181 
182     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183     public com.liferay.portlet.journal.model.JournalArticle findByCompanyId_First(
184         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
185         throws com.liferay.portal.SystemException,
186             com.liferay.portlet.journal.NoSuchArticleException;
187 
188     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189     public com.liferay.portlet.journal.model.JournalArticle findByCompanyId_Last(
190         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.SystemException,
192             com.liferay.portlet.journal.NoSuchArticleException;
193 
194     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195     public com.liferay.portlet.journal.model.JournalArticle[] findByCompanyId_PrevAndNext(
196         long id, long companyId,
197         com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.SystemException,
199             com.liferay.portlet.journal.NoSuchArticleException;
200 
201     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
203         long smallImageId) throws com.liferay.portal.SystemException;
204 
205     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
207         long smallImageId, int start, int end)
208         throws com.liferay.portal.SystemException;
209 
210     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
212         long smallImageId, int start, int end,
213         com.liferay.portal.kernel.util.OrderByComparator obc)
214         throws com.liferay.portal.SystemException;
215 
216     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217     public com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_First(
218         long smallImageId, com.liferay.portal.kernel.util.OrderByComparator obc)
219         throws com.liferay.portal.SystemException,
220             com.liferay.portlet.journal.NoSuchArticleException;
221 
222     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223     public com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_Last(
224         long smallImageId, com.liferay.portal.kernel.util.OrderByComparator obc)
225         throws com.liferay.portal.SystemException,
226             com.liferay.portlet.journal.NoSuchArticleException;
227 
228     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229     public com.liferay.portlet.journal.model.JournalArticle[] findBySmallImageId_PrevAndNext(
230         long id, long smallImageId,
231         com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.SystemException,
233             com.liferay.portlet.journal.NoSuchArticleException;
234 
235     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByR_A(
237         long resourcePrimKey, boolean approved)
238         throws com.liferay.portal.SystemException;
239 
240     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByR_A(
242         long resourcePrimKey, boolean approved, int start, int end)
243         throws com.liferay.portal.SystemException;
244 
245     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByR_A(
247         long resourcePrimKey, boolean approved, int start, int end,
248         com.liferay.portal.kernel.util.OrderByComparator obc)
249         throws com.liferay.portal.SystemException;
250 
251     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252     public com.liferay.portlet.journal.model.JournalArticle findByR_A_First(
253         long resourcePrimKey, boolean approved,
254         com.liferay.portal.kernel.util.OrderByComparator obc)
255         throws com.liferay.portal.SystemException,
256             com.liferay.portlet.journal.NoSuchArticleException;
257 
258     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259     public com.liferay.portlet.journal.model.JournalArticle findByR_A_Last(
260         long resourcePrimKey, boolean approved,
261         com.liferay.portal.kernel.util.OrderByComparator obc)
262         throws com.liferay.portal.SystemException,
263             com.liferay.portlet.journal.NoSuchArticleException;
264 
265     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266     public com.liferay.portlet.journal.model.JournalArticle[] findByR_A_PrevAndNext(
267         long id, long resourcePrimKey, boolean approved,
268         com.liferay.portal.kernel.util.OrderByComparator obc)
269         throws com.liferay.portal.SystemException,
270             com.liferay.portlet.journal.NoSuchArticleException;
271 
272     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
274         long groupId, java.lang.String articleId)
275         throws com.liferay.portal.SystemException;
276 
277     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
279         long groupId, java.lang.String articleId, int start, int end)
280         throws com.liferay.portal.SystemException;
281 
282     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
284         long groupId, java.lang.String articleId, int start, int end,
285         com.liferay.portal.kernel.util.OrderByComparator obc)
286         throws com.liferay.portal.SystemException;
287 
288     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289     public com.liferay.portlet.journal.model.JournalArticle findByG_A_First(
290         long groupId, java.lang.String articleId,
291         com.liferay.portal.kernel.util.OrderByComparator obc)
292         throws com.liferay.portal.SystemException,
293             com.liferay.portlet.journal.NoSuchArticleException;
294 
295     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296     public com.liferay.portlet.journal.model.JournalArticle findByG_A_Last(
297         long groupId, java.lang.String articleId,
298         com.liferay.portal.kernel.util.OrderByComparator obc)
299         throws com.liferay.portal.SystemException,
300             com.liferay.portlet.journal.NoSuchArticleException;
301 
302     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303     public com.liferay.portlet.journal.model.JournalArticle[] findByG_A_PrevAndNext(
304         long id, long groupId, java.lang.String articleId,
305         com.liferay.portal.kernel.util.OrderByComparator obc)
306         throws com.liferay.portal.SystemException,
307             com.liferay.portlet.journal.NoSuchArticleException;
308 
309     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
311         long groupId, java.lang.String structureId)
312         throws com.liferay.portal.SystemException;
313 
314     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
316         long groupId, java.lang.String structureId, int start, int end)
317         throws com.liferay.portal.SystemException;
318 
319     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
321         long groupId, java.lang.String structureId, int start, int end,
322         com.liferay.portal.kernel.util.OrderByComparator obc)
323         throws com.liferay.portal.SystemException;
324 
325     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326     public com.liferay.portlet.journal.model.JournalArticle findByG_S_First(
327         long groupId, java.lang.String structureId,
328         com.liferay.portal.kernel.util.OrderByComparator obc)
329         throws com.liferay.portal.SystemException,
330             com.liferay.portlet.journal.NoSuchArticleException;
331 
332     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333     public com.liferay.portlet.journal.model.JournalArticle findByG_S_Last(
334         long groupId, java.lang.String structureId,
335         com.liferay.portal.kernel.util.OrderByComparator obc)
336         throws com.liferay.portal.SystemException,
337             com.liferay.portlet.journal.NoSuchArticleException;
338 
339     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
340     public com.liferay.portlet.journal.model.JournalArticle[] findByG_S_PrevAndNext(
341         long id, long groupId, java.lang.String structureId,
342         com.liferay.portal.kernel.util.OrderByComparator obc)
343         throws com.liferay.portal.SystemException,
344             com.liferay.portlet.journal.NoSuchArticleException;
345 
346     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
348         long groupId, java.lang.String templateId)
349         throws com.liferay.portal.SystemException;
350 
351     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
352     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
353         long groupId, java.lang.String templateId, int start, int end)
354         throws com.liferay.portal.SystemException;
355 
356     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
357     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
358         long groupId, java.lang.String templateId, int start, int end,
359         com.liferay.portal.kernel.util.OrderByComparator obc)
360         throws com.liferay.portal.SystemException;
361 
362     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
363     public com.liferay.portlet.journal.model.JournalArticle findByG_T_First(
364         long groupId, java.lang.String templateId,
365         com.liferay.portal.kernel.util.OrderByComparator obc)
366         throws com.liferay.portal.SystemException,
367             com.liferay.portlet.journal.NoSuchArticleException;
368 
369     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370     public com.liferay.portlet.journal.model.JournalArticle findByG_T_Last(
371         long groupId, java.lang.String templateId,
372         com.liferay.portal.kernel.util.OrderByComparator obc)
373         throws com.liferay.portal.SystemException,
374             com.liferay.portlet.journal.NoSuchArticleException;
375 
376     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
377     public com.liferay.portlet.journal.model.JournalArticle[] findByG_T_PrevAndNext(
378         long id, long groupId, java.lang.String templateId,
379         com.liferay.portal.kernel.util.OrderByComparator obc)
380         throws com.liferay.portal.SystemException,
381             com.liferay.portlet.journal.NoSuchArticleException;
382 
383     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384     public com.liferay.portlet.journal.model.JournalArticle findByG_A_V(
385         long groupId, java.lang.String articleId, double version)
386         throws com.liferay.portal.SystemException,
387             com.liferay.portlet.journal.NoSuchArticleException;
388 
389     public com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
390         long groupId, java.lang.String articleId, double version)
391         throws com.liferay.portal.SystemException;
392 
393     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
395         long groupId, java.lang.String articleId, boolean approved)
396         throws com.liferay.portal.SystemException;
397 
398     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
399     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
400         long groupId, java.lang.String articleId, boolean approved, int start,
401         int end) throws com.liferay.portal.SystemException;
402 
403     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
404     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
405         long groupId, java.lang.String articleId, boolean approved, int start,
406         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
407         throws com.liferay.portal.SystemException;
408 
409     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
410     public com.liferay.portlet.journal.model.JournalArticle findByG_A_A_First(
411         long groupId, java.lang.String articleId, boolean approved,
412         com.liferay.portal.kernel.util.OrderByComparator obc)
413         throws com.liferay.portal.SystemException,
414             com.liferay.portlet.journal.NoSuchArticleException;
415 
416     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
417     public com.liferay.portlet.journal.model.JournalArticle findByG_A_A_Last(
418         long groupId, java.lang.String articleId, boolean approved,
419         com.liferay.portal.kernel.util.OrderByComparator obc)
420         throws com.liferay.portal.SystemException,
421             com.liferay.portlet.journal.NoSuchArticleException;
422 
423     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
424     public com.liferay.portlet.journal.model.JournalArticle[] findByG_A_A_PrevAndNext(
425         long id, long groupId, java.lang.String articleId, boolean approved,
426         com.liferay.portal.kernel.util.OrderByComparator obc)
427         throws com.liferay.portal.SystemException,
428             com.liferay.portlet.journal.NoSuchArticleException;
429 
430     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
431     public java.util.List<Object> findWithDynamicQuery(
432         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
433         throws com.liferay.portal.SystemException;
434 
435     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
436     public java.util.List<Object> findWithDynamicQuery(
437         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
438         int end) throws com.liferay.portal.SystemException;
439 
440     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
441     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll()
442         throws com.liferay.portal.SystemException;
443 
444     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
445     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll(
446         int start, int end) throws com.liferay.portal.SystemException;
447 
448     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
449     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll(
450         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
451         throws com.liferay.portal.SystemException;
452 
453     public void removeByUuid(java.lang.String uuid)
454         throws com.liferay.portal.SystemException;
455 
456     public void removeByUUID_G(java.lang.String uuid, long groupId)
457         throws com.liferay.portal.SystemException,
458             com.liferay.portlet.journal.NoSuchArticleException;
459 
460     public void removeByGroupId(long groupId)
461         throws com.liferay.portal.SystemException;
462 
463     public void removeByCompanyId(long companyId)
464         throws com.liferay.portal.SystemException;
465 
466     public void removeBySmallImageId(long smallImageId)
467         throws com.liferay.portal.SystemException;
468 
469     public void removeByR_A(long resourcePrimKey, boolean approved)
470         throws com.liferay.portal.SystemException;
471 
472     public void removeByG_A(long groupId, java.lang.String articleId)
473         throws com.liferay.portal.SystemException;
474 
475     public void removeByG_S(long groupId, java.lang.String structureId)
476         throws com.liferay.portal.SystemException;
477 
478     public void removeByG_T(long groupId, java.lang.String templateId)
479         throws com.liferay.portal.SystemException;
480 
481     public void removeByG_A_V(long groupId, java.lang.String articleId,
482         double version)
483         throws com.liferay.portal.SystemException,
484             com.liferay.portlet.journal.NoSuchArticleException;
485 
486     public void removeByG_A_A(long groupId, java.lang.String articleId,
487         boolean approved) throws com.liferay.portal.SystemException;
488 
489     public void removeAll() throws com.liferay.portal.SystemException;
490 
491     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
492     public int countByUuid(java.lang.String uuid)
493         throws com.liferay.portal.SystemException;
494 
495     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
496     public int countByUUID_G(java.lang.String uuid, long groupId)
497         throws com.liferay.portal.SystemException;
498 
499     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
500     public int countByGroupId(long groupId)
501         throws com.liferay.portal.SystemException;
502 
503     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
504     public int countByCompanyId(long companyId)
505         throws com.liferay.portal.SystemException;
506 
507     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
508     public int countBySmallImageId(long smallImageId)
509         throws com.liferay.portal.SystemException;
510 
511     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
512     public int countByR_A(long resourcePrimKey, boolean approved)
513         throws com.liferay.portal.SystemException;
514 
515     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
516     public int countByG_A(long groupId, java.lang.String articleId)
517         throws com.liferay.portal.SystemException;
518 
519     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
520     public int countByG_S(long groupId, java.lang.String structureId)
521         throws com.liferay.portal.SystemException;
522 
523     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
524     public int countByG_T(long groupId, java.lang.String templateId)
525         throws com.liferay.portal.SystemException;
526 
527     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
528     public int countByG_A_V(long groupId, java.lang.String articleId,
529         double version) throws com.liferay.portal.SystemException;
530 
531     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
532     public int countByG_A_A(long groupId, java.lang.String articleId,
533         boolean approved) throws com.liferay.portal.SystemException;
534 
535     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
536     public int countAll() throws com.liferay.portal.SystemException;
537 }