1   /**
2    * Copyright (c) 2000-2008 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  
30  /**
31   * <a href="JournalArticlePersistence.java.html"><b><i>View Source</i></b></a>
32   *
33   * @author Brian Wing Shun Chan
34   *
35   */
36  @Transactional(rollbackFor =  {
37      PortalException.class, SystemException.class})
38  public interface JournalArticlePersistence {
39      public com.liferay.portlet.journal.model.JournalArticle create(long id);
40  
41      public com.liferay.portlet.journal.model.JournalArticle remove(long id)
42          throws com.liferay.portal.SystemException,
43              com.liferay.portlet.journal.NoSuchArticleException;
44  
45      public com.liferay.portlet.journal.model.JournalArticle remove(
46          com.liferay.portlet.journal.model.JournalArticle journalArticle)
47          throws com.liferay.portal.SystemException;
48  
49      /**
50       * @deprecated Use <code>update(JournalArticle journalArticle, boolean merge)</code>.
51       */
52      public com.liferay.portlet.journal.model.JournalArticle update(
53          com.liferay.portlet.journal.model.JournalArticle journalArticle)
54          throws com.liferay.portal.SystemException;
55  
56      /**
57       * Add, update, or merge, the entity. This method also calls the model
58       * listeners to trigger the proper events associated with adding, deleting,
59       * or updating an entity.
60       *
61       * @param        journalArticle the entity to add, update, or merge
62       * @param        merge boolean value for whether to merge the entity. The
63       *                default value is false. Setting merge to true is more
64       *                expensive and should only be true when journalArticle is
65       *                transient. See LEP-5473 for a detailed discussion of this
66       *                method.
67       * @return        true if the portlet can be displayed via Ajax
68       */
69      public com.liferay.portlet.journal.model.JournalArticle update(
70          com.liferay.portlet.journal.model.JournalArticle journalArticle,
71          boolean merge) throws com.liferay.portal.SystemException;
72  
73      public com.liferay.portlet.journal.model.JournalArticle updateImpl(
74          com.liferay.portlet.journal.model.JournalArticle journalArticle,
75          boolean merge) throws com.liferay.portal.SystemException;
76  
77      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78      public com.liferay.portlet.journal.model.JournalArticle findByPrimaryKey(
79          long id)
80          throws com.liferay.portal.SystemException,
81              com.liferay.portlet.journal.NoSuchArticleException;
82  
83      public com.liferay.portlet.journal.model.JournalArticle fetchByPrimaryKey(
84          long id) throws com.liferay.portal.SystemException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
88          java.lang.String uuid) throws com.liferay.portal.SystemException;
89  
90      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
92          java.lang.String uuid, int start, int end)
93          throws com.liferay.portal.SystemException;
94  
95      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
96      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
97          java.lang.String uuid, int start, int end,
98          com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.SystemException;
100 
101     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102     public com.liferay.portlet.journal.model.JournalArticle findByUuid_First(
103         java.lang.String uuid,
104         com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.SystemException,
106             com.liferay.portlet.journal.NoSuchArticleException;
107 
108     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109     public com.liferay.portlet.journal.model.JournalArticle findByUuid_Last(
110         java.lang.String uuid,
111         com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portlet.journal.NoSuchArticleException;
114 
115     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116     public com.liferay.portlet.journal.model.JournalArticle[] findByUuid_PrevAndNext(
117         long id, java.lang.String uuid,
118         com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.SystemException,
120             com.liferay.portlet.journal.NoSuchArticleException;
121 
122     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123     public com.liferay.portlet.journal.model.JournalArticle findByUUID_G(
124         java.lang.String uuid, long groupId)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.journal.NoSuchArticleException;
127 
128     public com.liferay.portlet.journal.model.JournalArticle fetchByUUID_G(
129         java.lang.String uuid, long groupId)
130         throws com.liferay.portal.SystemException;
131 
132     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
134         long groupId) throws com.liferay.portal.SystemException;
135 
136     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
138         long groupId, int start, int end)
139         throws com.liferay.portal.SystemException;
140 
141     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
143         long groupId, int start, int end,
144         com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.SystemException;
146 
147     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148     public com.liferay.portlet.journal.model.JournalArticle findByGroupId_First(
149         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.SystemException,
151             com.liferay.portlet.journal.NoSuchArticleException;
152 
153     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154     public com.liferay.portlet.journal.model.JournalArticle findByGroupId_Last(
155         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.journal.NoSuchArticleException;
158 
159     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160     public com.liferay.portlet.journal.model.JournalArticle[] findByGroupId_PrevAndNext(
161         long id, long groupId,
162         com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.SystemException,
164             com.liferay.portlet.journal.NoSuchArticleException;
165 
166     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
168         long companyId) throws com.liferay.portal.SystemException;
169 
170     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
172         long companyId, int start, int end)
173         throws com.liferay.portal.SystemException;
174 
175     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
177         long companyId, int start, int end,
178         com.liferay.portal.kernel.util.OrderByComparator obc)
179         throws com.liferay.portal.SystemException;
180 
181     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182     public com.liferay.portlet.journal.model.JournalArticle findByCompanyId_First(
183         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.SystemException,
185             com.liferay.portlet.journal.NoSuchArticleException;
186 
187     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188     public com.liferay.portlet.journal.model.JournalArticle findByCompanyId_Last(
189         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
190         throws com.liferay.portal.SystemException,
191             com.liferay.portlet.journal.NoSuchArticleException;
192 
193     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194     public com.liferay.portlet.journal.model.JournalArticle[] findByCompanyId_PrevAndNext(
195         long id, long companyId,
196         com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.SystemException,
198             com.liferay.portlet.journal.NoSuchArticleException;
199 
200     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
202         long smallImageId) throws com.liferay.portal.SystemException;
203 
204     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
206         long smallImageId, int start, int end)
207         throws com.liferay.portal.SystemException;
208 
209     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
211         long smallImageId, int start, int end,
212         com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.SystemException;
214 
215     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216     public com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_First(
217         long smallImageId, com.liferay.portal.kernel.util.OrderByComparator obc)
218         throws com.liferay.portal.SystemException,
219             com.liferay.portlet.journal.NoSuchArticleException;
220 
221     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222     public com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_Last(
223         long smallImageId, com.liferay.portal.kernel.util.OrderByComparator obc)
224         throws com.liferay.portal.SystemException,
225             com.liferay.portlet.journal.NoSuchArticleException;
226 
227     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228     public com.liferay.portlet.journal.model.JournalArticle[] findBySmallImageId_PrevAndNext(
229         long id, long smallImageId,
230         com.liferay.portal.kernel.util.OrderByComparator obc)
231         throws com.liferay.portal.SystemException,
232             com.liferay.portlet.journal.NoSuchArticleException;
233 
234     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
235     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
236         long groupId, java.lang.String articleId)
237         throws com.liferay.portal.SystemException;
238 
239     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
241         long groupId, java.lang.String articleId, int start, int end)
242         throws com.liferay.portal.SystemException;
243 
244     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
246         long groupId, java.lang.String articleId, int start, int end,
247         com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException;
249 
250     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251     public com.liferay.portlet.journal.model.JournalArticle findByG_A_First(
252         long groupId, java.lang.String articleId,
253         com.liferay.portal.kernel.util.OrderByComparator obc)
254         throws com.liferay.portal.SystemException,
255             com.liferay.portlet.journal.NoSuchArticleException;
256 
257     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258     public com.liferay.portlet.journal.model.JournalArticle findByG_A_Last(
259         long groupId, java.lang.String articleId,
260         com.liferay.portal.kernel.util.OrderByComparator obc)
261         throws com.liferay.portal.SystemException,
262             com.liferay.portlet.journal.NoSuchArticleException;
263 
264     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265     public com.liferay.portlet.journal.model.JournalArticle[] findByG_A_PrevAndNext(
266         long id, long groupId, java.lang.String articleId,
267         com.liferay.portal.kernel.util.OrderByComparator obc)
268         throws com.liferay.portal.SystemException,
269             com.liferay.portlet.journal.NoSuchArticleException;
270 
271     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
273         long groupId, java.lang.String structureId)
274         throws com.liferay.portal.SystemException;
275 
276     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
278         long groupId, java.lang.String structureId, int start, int end)
279         throws com.liferay.portal.SystemException;
280 
281     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
283         long groupId, java.lang.String structureId, int start, int end,
284         com.liferay.portal.kernel.util.OrderByComparator obc)
285         throws com.liferay.portal.SystemException;
286 
287     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288     public com.liferay.portlet.journal.model.JournalArticle findByG_S_First(
289         long groupId, java.lang.String structureId,
290         com.liferay.portal.kernel.util.OrderByComparator obc)
291         throws com.liferay.portal.SystemException,
292             com.liferay.portlet.journal.NoSuchArticleException;
293 
294     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295     public com.liferay.portlet.journal.model.JournalArticle findByG_S_Last(
296         long groupId, java.lang.String structureId,
297         com.liferay.portal.kernel.util.OrderByComparator obc)
298         throws com.liferay.portal.SystemException,
299             com.liferay.portlet.journal.NoSuchArticleException;
300 
301     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302     public com.liferay.portlet.journal.model.JournalArticle[] findByG_S_PrevAndNext(
303         long id, long groupId, java.lang.String structureId,
304         com.liferay.portal.kernel.util.OrderByComparator obc)
305         throws com.liferay.portal.SystemException,
306             com.liferay.portlet.journal.NoSuchArticleException;
307 
308     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
310         long groupId, java.lang.String templateId)
311         throws com.liferay.portal.SystemException;
312 
313     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
315         long groupId, java.lang.String templateId, int start, int end)
316         throws com.liferay.portal.SystemException;
317 
318     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
320         long groupId, java.lang.String templateId, int start, int end,
321         com.liferay.portal.kernel.util.OrderByComparator obc)
322         throws com.liferay.portal.SystemException;
323 
324     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325     public com.liferay.portlet.journal.model.JournalArticle findByG_T_First(
326         long groupId, java.lang.String templateId,
327         com.liferay.portal.kernel.util.OrderByComparator obc)
328         throws com.liferay.portal.SystemException,
329             com.liferay.portlet.journal.NoSuchArticleException;
330 
331     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
332     public com.liferay.portlet.journal.model.JournalArticle findByG_T_Last(
333         long groupId, java.lang.String templateId,
334         com.liferay.portal.kernel.util.OrderByComparator obc)
335         throws com.liferay.portal.SystemException,
336             com.liferay.portlet.journal.NoSuchArticleException;
337 
338     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
339     public com.liferay.portlet.journal.model.JournalArticle[] findByG_T_PrevAndNext(
340         long id, long groupId, java.lang.String templateId,
341         com.liferay.portal.kernel.util.OrderByComparator obc)
342         throws com.liferay.portal.SystemException,
343             com.liferay.portlet.journal.NoSuchArticleException;
344 
345     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
346     public com.liferay.portlet.journal.model.JournalArticle findByG_A_V(
347         long groupId, java.lang.String articleId, double version)
348         throws com.liferay.portal.SystemException,
349             com.liferay.portlet.journal.NoSuchArticleException;
350 
351     public com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
352         long groupId, java.lang.String articleId, double version)
353         throws com.liferay.portal.SystemException;
354 
355     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
357         long groupId, java.lang.String articleId, boolean approved)
358         throws com.liferay.portal.SystemException;
359 
360     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
362         long groupId, java.lang.String articleId, boolean approved, int start,
363         int end) throws com.liferay.portal.SystemException;
364 
365     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
367         long groupId, java.lang.String articleId, boolean approved, int start,
368         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
369         throws com.liferay.portal.SystemException;
370 
371     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
372     public com.liferay.portlet.journal.model.JournalArticle findByG_A_A_First(
373         long groupId, java.lang.String articleId, boolean approved,
374         com.liferay.portal.kernel.util.OrderByComparator obc)
375         throws com.liferay.portal.SystemException,
376             com.liferay.portlet.journal.NoSuchArticleException;
377 
378     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
379     public com.liferay.portlet.journal.model.JournalArticle findByG_A_A_Last(
380         long groupId, java.lang.String articleId, boolean approved,
381         com.liferay.portal.kernel.util.OrderByComparator obc)
382         throws com.liferay.portal.SystemException,
383             com.liferay.portlet.journal.NoSuchArticleException;
384 
385     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
386     public com.liferay.portlet.journal.model.JournalArticle[] findByG_A_A_PrevAndNext(
387         long id, long groupId, java.lang.String articleId, boolean approved,
388         com.liferay.portal.kernel.util.OrderByComparator obc)
389         throws com.liferay.portal.SystemException,
390             com.liferay.portlet.journal.NoSuchArticleException;
391 
392     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
393     public java.util.List<Object> findWithDynamicQuery(
394         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
395         throws com.liferay.portal.SystemException;
396 
397     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
398     public java.util.List<Object> findWithDynamicQuery(
399         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
400         int end) throws com.liferay.portal.SystemException;
401 
402     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
403     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll()
404         throws com.liferay.portal.SystemException;
405 
406     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
407     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll(
408         int start, int end) throws com.liferay.portal.SystemException;
409 
410     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
411     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll(
412         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
413         throws com.liferay.portal.SystemException;
414 
415     public void removeByUuid(java.lang.String uuid)
416         throws com.liferay.portal.SystemException;
417 
418     public void removeByUUID_G(java.lang.String uuid, long groupId)
419         throws com.liferay.portal.SystemException,
420             com.liferay.portlet.journal.NoSuchArticleException;
421 
422     public void removeByGroupId(long groupId)
423         throws com.liferay.portal.SystemException;
424 
425     public void removeByCompanyId(long companyId)
426         throws com.liferay.portal.SystemException;
427 
428     public void removeBySmallImageId(long smallImageId)
429         throws com.liferay.portal.SystemException;
430 
431     public void removeByG_A(long groupId, java.lang.String articleId)
432         throws com.liferay.portal.SystemException;
433 
434     public void removeByG_S(long groupId, java.lang.String structureId)
435         throws com.liferay.portal.SystemException;
436 
437     public void removeByG_T(long groupId, java.lang.String templateId)
438         throws com.liferay.portal.SystemException;
439 
440     public void removeByG_A_V(long groupId, java.lang.String articleId,
441         double version)
442         throws com.liferay.portal.SystemException,
443             com.liferay.portlet.journal.NoSuchArticleException;
444 
445     public void removeByG_A_A(long groupId, java.lang.String articleId,
446         boolean approved) throws com.liferay.portal.SystemException;
447 
448     public void removeAll() throws com.liferay.portal.SystemException;
449 
450     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
451     public int countByUuid(java.lang.String uuid)
452         throws com.liferay.portal.SystemException;
453 
454     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
455     public int countByUUID_G(java.lang.String uuid, long groupId)
456         throws com.liferay.portal.SystemException;
457 
458     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
459     public int countByGroupId(long groupId)
460         throws com.liferay.portal.SystemException;
461 
462     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
463     public int countByCompanyId(long companyId)
464         throws com.liferay.portal.SystemException;
465 
466     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
467     public int countBySmallImageId(long smallImageId)
468         throws com.liferay.portal.SystemException;
469 
470     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
471     public int countByG_A(long groupId, java.lang.String articleId)
472         throws com.liferay.portal.SystemException;
473 
474     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
475     public int countByG_S(long groupId, java.lang.String structureId)
476         throws com.liferay.portal.SystemException;
477 
478     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
479     public int countByG_T(long groupId, java.lang.String templateId)
480         throws com.liferay.portal.SystemException;
481 
482     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
483     public int countByG_A_V(long groupId, java.lang.String articleId,
484         double version) throws com.liferay.portal.SystemException;
485 
486     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
487     public int countByG_A_A(long groupId, java.lang.String articleId,
488         boolean approved) throws com.liferay.portal.SystemException;
489 
490     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
491     public int countAll() throws com.liferay.portal.SystemException;
492 
493     public void registerListener(
494         com.liferay.portal.model.ModelListener listener);
495 
496     public void unregisterListener(
497         com.liferay.portal.model.ModelListener listener);
498 }