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