1
22
23 package com.liferay.portlet.journal.service.persistence;
24
25
31 public interface JournalArticlePersistence {
32 public com.liferay.portlet.journal.model.JournalArticle create(long id);
33
34 public com.liferay.portlet.journal.model.JournalArticle remove(long id)
35 throws com.liferay.portal.SystemException,
36 com.liferay.portlet.journal.NoSuchArticleException;
37
38 public com.liferay.portlet.journal.model.JournalArticle remove(
39 com.liferay.portlet.journal.model.JournalArticle journalArticle)
40 throws com.liferay.portal.SystemException;
41
42 public com.liferay.portlet.journal.model.JournalArticle update(
43 com.liferay.portlet.journal.model.JournalArticle journalArticle)
44 throws com.liferay.portal.SystemException;
45
46 public com.liferay.portlet.journal.model.JournalArticle update(
47 com.liferay.portlet.journal.model.JournalArticle journalArticle,
48 boolean merge) throws com.liferay.portal.SystemException;
49
50 public com.liferay.portlet.journal.model.JournalArticle updateImpl(
51 com.liferay.portlet.journal.model.JournalArticle journalArticle,
52 boolean merge) throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.journal.model.JournalArticle findByPrimaryKey(
55 long id)
56 throws com.liferay.portal.SystemException,
57 com.liferay.portlet.journal.NoSuchArticleException;
58
59 public com.liferay.portlet.journal.model.JournalArticle fetchByPrimaryKey(
60 long id) throws com.liferay.portal.SystemException;
61
62 public java.util.List findByUuid(java.lang.String uuid)
63 throws com.liferay.portal.SystemException;
64
65 public java.util.List findByUuid(java.lang.String uuid, int begin, int end)
66 throws com.liferay.portal.SystemException;
67
68 public java.util.List findByUuid(java.lang.String uuid, int begin, int end,
69 com.liferay.portal.kernel.util.OrderByComparator obc)
70 throws com.liferay.portal.SystemException;
71
72 public com.liferay.portlet.journal.model.JournalArticle findByUuid_First(
73 java.lang.String uuid,
74 com.liferay.portal.kernel.util.OrderByComparator obc)
75 throws com.liferay.portal.SystemException,
76 com.liferay.portlet.journal.NoSuchArticleException;
77
78 public com.liferay.portlet.journal.model.JournalArticle findByUuid_Last(
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_PrevAndNext(
85 long id, 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_G(
91 java.lang.String uuid, long groupId)
92 throws com.liferay.portal.SystemException,
93 com.liferay.portlet.journal.NoSuchArticleException;
94
95 public com.liferay.portlet.journal.model.JournalArticle fetchByUUID_G(
96 java.lang.String uuid, long groupId)
97 throws com.liferay.portal.SystemException;
98
99 public java.util.List findByGroupId(long groupId)
100 throws com.liferay.portal.SystemException;
101
102 public java.util.List findByGroupId(long groupId, int begin, int end)
103 throws com.liferay.portal.SystemException;
104
105 public java.util.List findByGroupId(long groupId, int begin, int end,
106 com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException;
108
109 public com.liferay.portlet.journal.model.JournalArticle findByGroupId_First(
110 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
111 throws com.liferay.portal.SystemException,
112 com.liferay.portlet.journal.NoSuchArticleException;
113
114 public com.liferay.portlet.journal.model.JournalArticle findByGroupId_Last(
115 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portlet.journal.NoSuchArticleException;
118
119 public com.liferay.portlet.journal.model.JournalArticle[] findByGroupId_PrevAndNext(
120 long id, long groupId,
121 com.liferay.portal.kernel.util.OrderByComparator obc)
122 throws com.liferay.portal.SystemException,
123 com.liferay.portlet.journal.NoSuchArticleException;
124
125 public java.util.List findByCompanyId(long companyId)
126 throws com.liferay.portal.SystemException;
127
128 public java.util.List findByCompanyId(long companyId, int begin, int end)
129 throws com.liferay.portal.SystemException;
130
131 public java.util.List findByCompanyId(long companyId, int begin, int end,
132 com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.SystemException;
134
135 public com.liferay.portlet.journal.model.JournalArticle findByCompanyId_First(
136 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portlet.journal.NoSuchArticleException;
139
140 public com.liferay.portlet.journal.model.JournalArticle findByCompanyId_Last(
141 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.SystemException,
143 com.liferay.portlet.journal.NoSuchArticleException;
144
145 public com.liferay.portlet.journal.model.JournalArticle[] findByCompanyId_PrevAndNext(
146 long id, long companyId,
147 com.liferay.portal.kernel.util.OrderByComparator obc)
148 throws com.liferay.portal.SystemException,
149 com.liferay.portlet.journal.NoSuchArticleException;
150
151 public java.util.List findBySmallImageId(long smallImageId)
152 throws com.liferay.portal.SystemException;
153
154 public java.util.List findBySmallImageId(long smallImageId, int begin,
155 int end) throws com.liferay.portal.SystemException;
156
157 public java.util.List findBySmallImageId(long smallImageId, int begin,
158 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
159 throws com.liferay.portal.SystemException;
160
161 public com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_First(
162 long smallImageId, com.liferay.portal.kernel.util.OrderByComparator obc)
163 throws com.liferay.portal.SystemException,
164 com.liferay.portlet.journal.NoSuchArticleException;
165
166 public com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_Last(
167 long smallImageId, com.liferay.portal.kernel.util.OrderByComparator obc)
168 throws com.liferay.portal.SystemException,
169 com.liferay.portlet.journal.NoSuchArticleException;
170
171 public com.liferay.portlet.journal.model.JournalArticle[] findBySmallImageId_PrevAndNext(
172 long id, long smallImageId,
173 com.liferay.portal.kernel.util.OrderByComparator obc)
174 throws com.liferay.portal.SystemException,
175 com.liferay.portlet.journal.NoSuchArticleException;
176
177 public java.util.List findByG_A(long groupId, java.lang.String articleId)
178 throws com.liferay.portal.SystemException;
179
180 public java.util.List findByG_A(long groupId, java.lang.String articleId,
181 int begin, int end) throws com.liferay.portal.SystemException;
182
183 public java.util.List findByG_A(long groupId, java.lang.String articleId,
184 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
185 throws com.liferay.portal.SystemException;
186
187 public com.liferay.portlet.journal.model.JournalArticle findByG_A_First(
188 long groupId, java.lang.String articleId,
189 com.liferay.portal.kernel.util.OrderByComparator obc)
190 throws com.liferay.portal.SystemException,
191 com.liferay.portlet.journal.NoSuchArticleException;
192
193 public com.liferay.portlet.journal.model.JournalArticle findByG_A_Last(
194 long groupId, java.lang.String articleId,
195 com.liferay.portal.kernel.util.OrderByComparator obc)
196 throws com.liferay.portal.SystemException,
197 com.liferay.portlet.journal.NoSuchArticleException;
198
199 public com.liferay.portlet.journal.model.JournalArticle[] findByG_A_PrevAndNext(
200 long id, long groupId, java.lang.String articleId,
201 com.liferay.portal.kernel.util.OrderByComparator obc)
202 throws com.liferay.portal.SystemException,
203 com.liferay.portlet.journal.NoSuchArticleException;
204
205 public java.util.List findByG_S(long groupId, java.lang.String structureId)
206 throws com.liferay.portal.SystemException;
207
208 public java.util.List findByG_S(long groupId, java.lang.String structureId,
209 int begin, int end) throws com.liferay.portal.SystemException;
210
211 public java.util.List findByG_S(long groupId, java.lang.String structureId,
212 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
213 throws com.liferay.portal.SystemException;
214
215 public com.liferay.portlet.journal.model.JournalArticle findByG_S_First(
216 long groupId, java.lang.String structureId,
217 com.liferay.portal.kernel.util.OrderByComparator obc)
218 throws com.liferay.portal.SystemException,
219 com.liferay.portlet.journal.NoSuchArticleException;
220
221 public com.liferay.portlet.journal.model.JournalArticle findByG_S_Last(
222 long groupId, java.lang.String structureId,
223 com.liferay.portal.kernel.util.OrderByComparator obc)
224 throws com.liferay.portal.SystemException,
225 com.liferay.portlet.journal.NoSuchArticleException;
226
227 public com.liferay.portlet.journal.model.JournalArticle[] findByG_S_PrevAndNext(
228 long id, long groupId, java.lang.String structureId,
229 com.liferay.portal.kernel.util.OrderByComparator obc)
230 throws com.liferay.portal.SystemException,
231 com.liferay.portlet.journal.NoSuchArticleException;
232
233 public java.util.List findByG_T(long groupId, java.lang.String templateId)
234 throws com.liferay.portal.SystemException;
235
236 public java.util.List findByG_T(long groupId, java.lang.String templateId,
237 int begin, int end) throws com.liferay.portal.SystemException;
238
239 public java.util.List findByG_T(long groupId, java.lang.String templateId,
240 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
241 throws com.liferay.portal.SystemException;
242
243 public com.liferay.portlet.journal.model.JournalArticle findByG_T_First(
244 long groupId, java.lang.String templateId,
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_T_Last(
250 long groupId, java.lang.String templateId,
251 com.liferay.portal.kernel.util.OrderByComparator obc)
252 throws com.liferay.portal.SystemException,
253 com.liferay.portlet.journal.NoSuchArticleException;
254
255 public com.liferay.portlet.journal.model.JournalArticle[] findByG_T_PrevAndNext(
256 long id, long groupId, java.lang.String templateId,
257 com.liferay.portal.kernel.util.OrderByComparator obc)
258 throws com.liferay.portal.SystemException,
259 com.liferay.portlet.journal.NoSuchArticleException;
260
261 public com.liferay.portlet.journal.model.JournalArticle findByG_A_V(
262 long groupId, java.lang.String articleId, double version)
263 throws com.liferay.portal.SystemException,
264 com.liferay.portlet.journal.NoSuchArticleException;
265
266 public com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
267 long groupId, java.lang.String articleId, double version)
268 throws com.liferay.portal.SystemException;
269
270 public java.util.List findByG_A_A(long groupId, java.lang.String articleId,
271 boolean approved) throws com.liferay.portal.SystemException;
272
273 public java.util.List findByG_A_A(long groupId, java.lang.String articleId,
274 boolean approved, int begin, int end)
275 throws com.liferay.portal.SystemException;
276
277 public java.util.List findByG_A_A(long groupId, java.lang.String articleId,
278 boolean approved, int begin, int end,
279 com.liferay.portal.kernel.util.OrderByComparator obc)
280 throws com.liferay.portal.SystemException;
281
282 public com.liferay.portlet.journal.model.JournalArticle findByG_A_A_First(
283 long groupId, java.lang.String articleId, boolean approved,
284 com.liferay.portal.kernel.util.OrderByComparator obc)
285 throws com.liferay.portal.SystemException,
286 com.liferay.portlet.journal.NoSuchArticleException;
287
288 public com.liferay.portlet.journal.model.JournalArticle findByG_A_A_Last(
289 long groupId, java.lang.String articleId, boolean approved,
290 com.liferay.portal.kernel.util.OrderByComparator obc)
291 throws com.liferay.portal.SystemException,
292 com.liferay.portlet.journal.NoSuchArticleException;
293
294 public com.liferay.portlet.journal.model.JournalArticle[] findByG_A_A_PrevAndNext(
295 long id, long groupId, java.lang.String articleId, boolean approved,
296 com.liferay.portal.kernel.util.OrderByComparator obc)
297 throws com.liferay.portal.SystemException,
298 com.liferay.portlet.journal.NoSuchArticleException;
299
300 public java.util.List findWithDynamicQuery(
301 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
302 throws com.liferay.portal.SystemException;
303
304 public java.util.List findWithDynamicQuery(
305 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
306 int begin, int end) throws com.liferay.portal.SystemException;
307
308 public java.util.List findAll() throws com.liferay.portal.SystemException;
309
310 public java.util.List findAll(int begin, int end)
311 throws com.liferay.portal.SystemException;
312
313 public java.util.List findAll(int begin, int end,
314 com.liferay.portal.kernel.util.OrderByComparator obc)
315 throws com.liferay.portal.SystemException;
316
317 public void removeByUuid(java.lang.String uuid)
318 throws com.liferay.portal.SystemException;
319
320 public void removeByUUID_G(java.lang.String uuid, long groupId)
321 throws com.liferay.portal.SystemException,
322 com.liferay.portlet.journal.NoSuchArticleException;
323
324 public void removeByGroupId(long groupId)
325 throws com.liferay.portal.SystemException;
326
327 public void removeByCompanyId(long companyId)
328 throws com.liferay.portal.SystemException;
329
330 public void removeBySmallImageId(long smallImageId)
331 throws com.liferay.portal.SystemException;
332
333 public void removeByG_A(long groupId, java.lang.String articleId)
334 throws com.liferay.portal.SystemException;
335
336 public void removeByG_S(long groupId, java.lang.String structureId)
337 throws com.liferay.portal.SystemException;
338
339 public void removeByG_T(long groupId, java.lang.String templateId)
340 throws com.liferay.portal.SystemException;
341
342 public void removeByG_A_V(long groupId, java.lang.String articleId,
343 double version)
344 throws com.liferay.portal.SystemException,
345 com.liferay.portlet.journal.NoSuchArticleException;
346
347 public void removeByG_A_A(long groupId, java.lang.String articleId,
348 boolean approved) throws com.liferay.portal.SystemException;
349
350 public void removeAll() throws com.liferay.portal.SystemException;
351
352 public int countByUuid(java.lang.String uuid)
353 throws com.liferay.portal.SystemException;
354
355 public int countByUUID_G(java.lang.String uuid, long groupId)
356 throws com.liferay.portal.SystemException;
357
358 public int countByGroupId(long groupId)
359 throws com.liferay.portal.SystemException;
360
361 public int countByCompanyId(long companyId)
362 throws com.liferay.portal.SystemException;
363
364 public int countBySmallImageId(long smallImageId)
365 throws com.liferay.portal.SystemException;
366
367 public int countByG_A(long groupId, java.lang.String articleId)
368 throws com.liferay.portal.SystemException;
369
370 public int countByG_S(long groupId, java.lang.String structureId)
371 throws com.liferay.portal.SystemException;
372
373 public int countByG_T(long groupId, java.lang.String templateId)
374 throws com.liferay.portal.SystemException;
375
376 public int countByG_A_V(long groupId, java.lang.String articleId,
377 double version) throws com.liferay.portal.SystemException;
378
379 public int countByG_A_A(long groupId, java.lang.String articleId,
380 boolean approved) throws com.liferay.portal.SystemException;
381
382 public int countAll() throws com.liferay.portal.SystemException;
383 }