1   /**
2    * Copyright (c) 2000-2010 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   *
12   * 
13   */
14  
15  package com.liferay.portlet.journal.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.journal.model.JournalArticle;
20  
21  /**
22   * <a href="JournalArticlePersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       JournalArticlePersistenceImpl
31   * @see       JournalArticleUtil
32   * @generated
33   */
34  public interface JournalArticlePersistence extends BasePersistence<JournalArticle> {
35      public void cacheResult(
36          com.liferay.portlet.journal.model.JournalArticle journalArticle);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.journal.model.JournalArticle> journalArticles);
40  
41      public com.liferay.portlet.journal.model.JournalArticle create(long id);
42  
43      public com.liferay.portlet.journal.model.JournalArticle remove(long id)
44          throws com.liferay.portal.SystemException,
45              com.liferay.portlet.journal.NoSuchArticleException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
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      public com.liferay.portlet.journal.model.JournalArticle updateImpl(
55          com.liferay.portlet.journal.model.JournalArticle journalArticle,
56          boolean merge) throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.journal.model.JournalArticle findByPrimaryKey(
59          long id)
60          throws com.liferay.portal.SystemException,
61              com.liferay.portlet.journal.NoSuchArticleException;
62  
63      public com.liferay.portlet.journal.model.JournalArticle fetchByPrimaryKey(
64          long id) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
67          java.lang.String uuid) throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
70          java.lang.String uuid, int start, int end)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
74          java.lang.String uuid, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.journal.model.JournalArticle findByUuid_First(
79          java.lang.String uuid,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portlet.journal.NoSuchArticleException;
83  
84      public com.liferay.portlet.journal.model.JournalArticle findByUuid_Last(
85          java.lang.String uuid,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.journal.NoSuchArticleException;
89  
90      public com.liferay.portlet.journal.model.JournalArticle[] findByUuid_PrevAndNext(
91          long id, java.lang.String uuid,
92          com.liferay.portal.kernel.util.OrderByComparator obc)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.journal.NoSuchArticleException;
95  
96      public com.liferay.portlet.journal.model.JournalArticle findByUUID_G(
97          java.lang.String uuid, long groupId)
98          throws com.liferay.portal.SystemException,
99              com.liferay.portlet.journal.NoSuchArticleException;
100 
101     public com.liferay.portlet.journal.model.JournalArticle fetchByUUID_G(
102         java.lang.String uuid, long groupId)
103         throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.journal.model.JournalArticle fetchByUUID_G(
106         java.lang.String uuid, long groupId, boolean retrieveFromCache)
107         throws com.liferay.portal.SystemException;
108 
109     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
110         long groupId) throws com.liferay.portal.SystemException;
111 
112     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
113         long groupId, int start, int end)
114         throws com.liferay.portal.SystemException;
115 
116     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
117         long groupId, int start, int end,
118         com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.SystemException;
120 
121     public com.liferay.portlet.journal.model.JournalArticle findByGroupId_First(
122         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.journal.NoSuchArticleException;
125 
126     public com.liferay.portlet.journal.model.JournalArticle findByGroupId_Last(
127         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
128         throws com.liferay.portal.SystemException,
129             com.liferay.portlet.journal.NoSuchArticleException;
130 
131     public com.liferay.portlet.journal.model.JournalArticle[] findByGroupId_PrevAndNext(
132         long id, long groupId,
133         com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.SystemException,
135             com.liferay.portlet.journal.NoSuchArticleException;
136 
137     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
138         long companyId) throws com.liferay.portal.SystemException;
139 
140     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
141         long companyId, int start, int end)
142         throws com.liferay.portal.SystemException;
143 
144     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
145         long companyId, int start, int end,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException;
148 
149     public com.liferay.portlet.journal.model.JournalArticle findByCompanyId_First(
150         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException,
152             com.liferay.portlet.journal.NoSuchArticleException;
153 
154     public com.liferay.portlet.journal.model.JournalArticle findByCompanyId_Last(
155         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.journal.NoSuchArticleException;
158 
159     public com.liferay.portlet.journal.model.JournalArticle[] findByCompanyId_PrevAndNext(
160         long id, long companyId,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.journal.NoSuchArticleException;
164 
165     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
166         long smallImageId) throws com.liferay.portal.SystemException;
167 
168     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
169         long smallImageId, int start, int end)
170         throws com.liferay.portal.SystemException;
171 
172     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
173         long smallImageId, int start, int end,
174         com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.SystemException;
176 
177     public com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_First(
178         long smallImageId, com.liferay.portal.kernel.util.OrderByComparator obc)
179         throws com.liferay.portal.SystemException,
180             com.liferay.portlet.journal.NoSuchArticleException;
181 
182     public com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_Last(
183         long smallImageId, com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.SystemException,
185             com.liferay.portlet.journal.NoSuchArticleException;
186 
187     public com.liferay.portlet.journal.model.JournalArticle[] findBySmallImageId_PrevAndNext(
188         long id, long smallImageId,
189         com.liferay.portal.kernel.util.OrderByComparator obc)
190         throws com.liferay.portal.SystemException,
191             com.liferay.portlet.journal.NoSuchArticleException;
192 
193     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByR_A(
194         long resourcePrimKey, boolean approved)
195         throws com.liferay.portal.SystemException;
196 
197     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByR_A(
198         long resourcePrimKey, boolean approved, int start, int end)
199         throws com.liferay.portal.SystemException;
200 
201     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByR_A(
202         long resourcePrimKey, boolean approved, int start, int end,
203         com.liferay.portal.kernel.util.OrderByComparator obc)
204         throws com.liferay.portal.SystemException;
205 
206     public com.liferay.portlet.journal.model.JournalArticle findByR_A_First(
207         long resourcePrimKey, boolean approved,
208         com.liferay.portal.kernel.util.OrderByComparator obc)
209         throws com.liferay.portal.SystemException,
210             com.liferay.portlet.journal.NoSuchArticleException;
211 
212     public com.liferay.portlet.journal.model.JournalArticle findByR_A_Last(
213         long resourcePrimKey, boolean approved,
214         com.liferay.portal.kernel.util.OrderByComparator obc)
215         throws com.liferay.portal.SystemException,
216             com.liferay.portlet.journal.NoSuchArticleException;
217 
218     public com.liferay.portlet.journal.model.JournalArticle[] findByR_A_PrevAndNext(
219         long id, long resourcePrimKey, boolean approved,
220         com.liferay.portal.kernel.util.OrderByComparator obc)
221         throws com.liferay.portal.SystemException,
222             com.liferay.portlet.journal.NoSuchArticleException;
223 
224     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
225         long groupId, java.lang.String articleId)
226         throws com.liferay.portal.SystemException;
227 
228     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
229         long groupId, java.lang.String articleId, int start, int end)
230         throws com.liferay.portal.SystemException;
231 
232     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
233         long groupId, java.lang.String articleId, int start, int end,
234         com.liferay.portal.kernel.util.OrderByComparator obc)
235         throws com.liferay.portal.SystemException;
236 
237     public com.liferay.portlet.journal.model.JournalArticle findByG_A_First(
238         long groupId, java.lang.String articleId,
239         com.liferay.portal.kernel.util.OrderByComparator obc)
240         throws com.liferay.portal.SystemException,
241             com.liferay.portlet.journal.NoSuchArticleException;
242 
243     public com.liferay.portlet.journal.model.JournalArticle findByG_A_Last(
244         long groupId, java.lang.String articleId,
245         com.liferay.portal.kernel.util.OrderByComparator obc)
246         throws com.liferay.portal.SystemException,
247             com.liferay.portlet.journal.NoSuchArticleException;
248 
249     public com.liferay.portlet.journal.model.JournalArticle[] findByG_A_PrevAndNext(
250         long id, 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     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
256         long groupId, java.lang.String structureId)
257         throws com.liferay.portal.SystemException;
258 
259     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
260         long groupId, java.lang.String structureId, int start, int end)
261         throws com.liferay.portal.SystemException;
262 
263     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
264         long groupId, java.lang.String structureId, int start, int end,
265         com.liferay.portal.kernel.util.OrderByComparator obc)
266         throws com.liferay.portal.SystemException;
267 
268     public com.liferay.portlet.journal.model.JournalArticle findByG_S_First(
269         long groupId, java.lang.String structureId,
270         com.liferay.portal.kernel.util.OrderByComparator obc)
271         throws com.liferay.portal.SystemException,
272             com.liferay.portlet.journal.NoSuchArticleException;
273 
274     public com.liferay.portlet.journal.model.JournalArticle findByG_S_Last(
275         long groupId, java.lang.String structureId,
276         com.liferay.portal.kernel.util.OrderByComparator obc)
277         throws com.liferay.portal.SystemException,
278             com.liferay.portlet.journal.NoSuchArticleException;
279 
280     public com.liferay.portlet.journal.model.JournalArticle[] findByG_S_PrevAndNext(
281         long id, long groupId, java.lang.String structureId,
282         com.liferay.portal.kernel.util.OrderByComparator obc)
283         throws com.liferay.portal.SystemException,
284             com.liferay.portlet.journal.NoSuchArticleException;
285 
286     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
287         long groupId, java.lang.String templateId)
288         throws com.liferay.portal.SystemException;
289 
290     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
291         long groupId, java.lang.String templateId, int start, int end)
292         throws com.liferay.portal.SystemException;
293 
294     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
295         long groupId, java.lang.String templateId, int start, int end,
296         com.liferay.portal.kernel.util.OrderByComparator obc)
297         throws com.liferay.portal.SystemException;
298 
299     public com.liferay.portlet.journal.model.JournalArticle findByG_T_First(
300         long groupId, java.lang.String templateId,
301         com.liferay.portal.kernel.util.OrderByComparator obc)
302         throws com.liferay.portal.SystemException,
303             com.liferay.portlet.journal.NoSuchArticleException;
304 
305     public com.liferay.portlet.journal.model.JournalArticle findByG_T_Last(
306         long groupId, java.lang.String templateId,
307         com.liferay.portal.kernel.util.OrderByComparator obc)
308         throws com.liferay.portal.SystemException,
309             com.liferay.portlet.journal.NoSuchArticleException;
310 
311     public com.liferay.portlet.journal.model.JournalArticle[] findByG_T_PrevAndNext(
312         long id, long groupId, java.lang.String templateId,
313         com.liferay.portal.kernel.util.OrderByComparator obc)
314         throws com.liferay.portal.SystemException,
315             com.liferay.portlet.journal.NoSuchArticleException;
316 
317     public com.liferay.portlet.journal.model.JournalArticle findByG_A_V(
318         long groupId, java.lang.String articleId, double version)
319         throws com.liferay.portal.SystemException,
320             com.liferay.portlet.journal.NoSuchArticleException;
321 
322     public com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
323         long groupId, java.lang.String articleId, double version)
324         throws com.liferay.portal.SystemException;
325 
326     public com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
327         long groupId, java.lang.String articleId, double version,
328         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
329 
330     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
331         long groupId, java.lang.String articleId, boolean approved)
332         throws com.liferay.portal.SystemException;
333 
334     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
335         long groupId, java.lang.String articleId, boolean approved, int start,
336         int end) throws com.liferay.portal.SystemException;
337 
338     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
339         long groupId, java.lang.String articleId, boolean approved, int start,
340         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
341         throws com.liferay.portal.SystemException;
342 
343     public com.liferay.portlet.journal.model.JournalArticle findByG_A_A_First(
344         long groupId, java.lang.String articleId, boolean approved,
345         com.liferay.portal.kernel.util.OrderByComparator obc)
346         throws com.liferay.portal.SystemException,
347             com.liferay.portlet.journal.NoSuchArticleException;
348 
349     public com.liferay.portlet.journal.model.JournalArticle findByG_A_A_Last(
350         long groupId, java.lang.String articleId, boolean approved,
351         com.liferay.portal.kernel.util.OrderByComparator obc)
352         throws com.liferay.portal.SystemException,
353             com.liferay.portlet.journal.NoSuchArticleException;
354 
355     public com.liferay.portlet.journal.model.JournalArticle[] findByG_A_A_PrevAndNext(
356         long id, long groupId, java.lang.String articleId, boolean approved,
357         com.liferay.portal.kernel.util.OrderByComparator obc)
358         throws com.liferay.portal.SystemException,
359             com.liferay.portlet.journal.NoSuchArticleException;
360 
361     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll()
362         throws com.liferay.portal.SystemException;
363 
364     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll(
365         int start, int end) throws com.liferay.portal.SystemException;
366 
367     public java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll(
368         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
369         throws com.liferay.portal.SystemException;
370 
371     public void removeByUuid(java.lang.String uuid)
372         throws com.liferay.portal.SystemException;
373 
374     public void removeByUUID_G(java.lang.String uuid, long groupId)
375         throws com.liferay.portal.SystemException,
376             com.liferay.portlet.journal.NoSuchArticleException;
377 
378     public void removeByGroupId(long groupId)
379         throws com.liferay.portal.SystemException;
380 
381     public void removeByCompanyId(long companyId)
382         throws com.liferay.portal.SystemException;
383 
384     public void removeBySmallImageId(long smallImageId)
385         throws com.liferay.portal.SystemException;
386 
387     public void removeByR_A(long resourcePrimKey, boolean approved)
388         throws com.liferay.portal.SystemException;
389 
390     public void removeByG_A(long groupId, java.lang.String articleId)
391         throws com.liferay.portal.SystemException;
392 
393     public void removeByG_S(long groupId, java.lang.String structureId)
394         throws com.liferay.portal.SystemException;
395 
396     public void removeByG_T(long groupId, java.lang.String templateId)
397         throws com.liferay.portal.SystemException;
398 
399     public void removeByG_A_V(long groupId, java.lang.String articleId,
400         double version)
401         throws com.liferay.portal.SystemException,
402             com.liferay.portlet.journal.NoSuchArticleException;
403 
404     public void removeByG_A_A(long groupId, java.lang.String articleId,
405         boolean approved) throws com.liferay.portal.SystemException;
406 
407     public void removeAll() throws com.liferay.portal.SystemException;
408 
409     public int countByUuid(java.lang.String uuid)
410         throws com.liferay.portal.SystemException;
411 
412     public int countByUUID_G(java.lang.String uuid, long groupId)
413         throws com.liferay.portal.SystemException;
414 
415     public int countByGroupId(long groupId)
416         throws com.liferay.portal.SystemException;
417 
418     public int countByCompanyId(long companyId)
419         throws com.liferay.portal.SystemException;
420 
421     public int countBySmallImageId(long smallImageId)
422         throws com.liferay.portal.SystemException;
423 
424     public int countByR_A(long resourcePrimKey, boolean approved)
425         throws com.liferay.portal.SystemException;
426 
427     public int countByG_A(long groupId, java.lang.String articleId)
428         throws com.liferay.portal.SystemException;
429 
430     public int countByG_S(long groupId, java.lang.String structureId)
431         throws com.liferay.portal.SystemException;
432 
433     public int countByG_T(long groupId, java.lang.String templateId)
434         throws com.liferay.portal.SystemException;
435 
436     public int countByG_A_V(long groupId, java.lang.String articleId,
437         double version) throws com.liferay.portal.SystemException;
438 
439     public int countByG_A_A(long groupId, java.lang.String articleId,
440         boolean approved) throws com.liferay.portal.SystemException;
441 
442     public int countAll() throws com.liferay.portal.SystemException;
443 }