1
14
15 package com.liferay.portlet.journal.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20
21 import com.liferay.portlet.journal.model.JournalContentSearch;
22
23 import java.util.List;
24
25
38 public class JournalContentSearchUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50 throws SystemException {
51 return getPersistence().findWithDynamicQuery(dynamicQuery);
52 }
53
54
57 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58 int start, int end) throws SystemException {
59 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60 }
61
62
65 public static JournalContentSearch remove(
66 JournalContentSearch journalContentSearch) throws SystemException {
67 return getPersistence().remove(journalContentSearch);
68 }
69
70
73 public static JournalContentSearch update(
74 JournalContentSearch journalContentSearch, boolean merge)
75 throws SystemException {
76 return getPersistence().update(journalContentSearch, merge);
77 }
78
79 public static void cacheResult(
80 com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch) {
81 getPersistence().cacheResult(journalContentSearch);
82 }
83
84 public static void cacheResult(
85 java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> journalContentSearchs) {
86 getPersistence().cacheResult(journalContentSearchs);
87 }
88
89 public static com.liferay.portlet.journal.model.JournalContentSearch create(
90 long contentSearchId) {
91 return getPersistence().create(contentSearchId);
92 }
93
94 public static com.liferay.portlet.journal.model.JournalContentSearch remove(
95 long contentSearchId)
96 throws com.liferay.portal.kernel.exception.SystemException,
97 com.liferay.portlet.journal.NoSuchContentSearchException {
98 return getPersistence().remove(contentSearchId);
99 }
100
101 public static com.liferay.portlet.journal.model.JournalContentSearch updateImpl(
102 com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
103 boolean merge)
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getPersistence().updateImpl(journalContentSearch, merge);
106 }
107
108 public static com.liferay.portlet.journal.model.JournalContentSearch findByPrimaryKey(
109 long contentSearchId)
110 throws com.liferay.portal.kernel.exception.SystemException,
111 com.liferay.portlet.journal.NoSuchContentSearchException {
112 return getPersistence().findByPrimaryKey(contentSearchId);
113 }
114
115 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByPrimaryKey(
116 long contentSearchId)
117 throws com.liferay.portal.kernel.exception.SystemException {
118 return getPersistence().fetchByPrimaryKey(contentSearchId);
119 }
120
121 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
122 java.lang.String articleId)
123 throws com.liferay.portal.kernel.exception.SystemException {
124 return getPersistence().findByArticleId(articleId);
125 }
126
127 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
128 java.lang.String articleId, int start, int end)
129 throws com.liferay.portal.kernel.exception.SystemException {
130 return getPersistence().findByArticleId(articleId, start, end);
131 }
132
133 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
134 java.lang.String articleId, int start, int end,
135 com.liferay.portal.kernel.util.OrderByComparator obc)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 return getPersistence().findByArticleId(articleId, start, end, obc);
138 }
139
140 public static com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_First(
141 java.lang.String articleId,
142 com.liferay.portal.kernel.util.OrderByComparator obc)
143 throws com.liferay.portal.kernel.exception.SystemException,
144 com.liferay.portlet.journal.NoSuchContentSearchException {
145 return getPersistence().findByArticleId_First(articleId, obc);
146 }
147
148 public static com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_Last(
149 java.lang.String articleId,
150 com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.kernel.exception.SystemException,
152 com.liferay.portlet.journal.NoSuchContentSearchException {
153 return getPersistence().findByArticleId_Last(articleId, obc);
154 }
155
156 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByArticleId_PrevAndNext(
157 long contentSearchId, java.lang.String articleId,
158 com.liferay.portal.kernel.util.OrderByComparator obc)
159 throws com.liferay.portal.kernel.exception.SystemException,
160 com.liferay.portlet.journal.NoSuchContentSearchException {
161 return getPersistence()
162 .findByArticleId_PrevAndNext(contentSearchId, articleId, obc);
163 }
164
165 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
166 long groupId, boolean privateLayout)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getPersistence().findByG_P(groupId, privateLayout);
169 }
170
171 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
172 long groupId, boolean privateLayout, int start, int end)
173 throws com.liferay.portal.kernel.exception.SystemException {
174 return getPersistence().findByG_P(groupId, privateLayout, start, end);
175 }
176
177 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
178 long groupId, boolean privateLayout, int start, int end,
179 com.liferay.portal.kernel.util.OrderByComparator obc)
180 throws com.liferay.portal.kernel.exception.SystemException {
181 return getPersistence()
182 .findByG_P(groupId, privateLayout, start, end, obc);
183 }
184
185 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_First(
186 long groupId, boolean privateLayout,
187 com.liferay.portal.kernel.util.OrderByComparator obc)
188 throws com.liferay.portal.kernel.exception.SystemException,
189 com.liferay.portlet.journal.NoSuchContentSearchException {
190 return getPersistence().findByG_P_First(groupId, privateLayout, obc);
191 }
192
193 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_Last(
194 long groupId, boolean privateLayout,
195 com.liferay.portal.kernel.util.OrderByComparator obc)
196 throws com.liferay.portal.kernel.exception.SystemException,
197 com.liferay.portlet.journal.NoSuchContentSearchException {
198 return getPersistence().findByG_P_Last(groupId, privateLayout, obc);
199 }
200
201 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_PrevAndNext(
202 long contentSearchId, long groupId, boolean privateLayout,
203 com.liferay.portal.kernel.util.OrderByComparator obc)
204 throws com.liferay.portal.kernel.exception.SystemException,
205 com.liferay.portlet.journal.NoSuchContentSearchException {
206 return getPersistence()
207 .findByG_P_PrevAndNext(contentSearchId, groupId,
208 privateLayout, obc);
209 }
210
211 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
212 long groupId, java.lang.String articleId)
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getPersistence().findByG_A(groupId, articleId);
215 }
216
217 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
218 long groupId, java.lang.String articleId, int start, int end)
219 throws com.liferay.portal.kernel.exception.SystemException {
220 return getPersistence().findByG_A(groupId, articleId, start, end);
221 }
222
223 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
224 long groupId, java.lang.String articleId, int start, int end,
225 com.liferay.portal.kernel.util.OrderByComparator obc)
226 throws com.liferay.portal.kernel.exception.SystemException {
227 return getPersistence().findByG_A(groupId, articleId, start, end, obc);
228 }
229
230 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_A_First(
231 long groupId, java.lang.String articleId,
232 com.liferay.portal.kernel.util.OrderByComparator obc)
233 throws com.liferay.portal.kernel.exception.SystemException,
234 com.liferay.portlet.journal.NoSuchContentSearchException {
235 return getPersistence().findByG_A_First(groupId, articleId, obc);
236 }
237
238 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_A_Last(
239 long groupId, java.lang.String articleId,
240 com.liferay.portal.kernel.util.OrderByComparator obc)
241 throws com.liferay.portal.kernel.exception.SystemException,
242 com.liferay.portlet.journal.NoSuchContentSearchException {
243 return getPersistence().findByG_A_Last(groupId, articleId, obc);
244 }
245
246 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_A_PrevAndNext(
247 long contentSearchId, long groupId, java.lang.String articleId,
248 com.liferay.portal.kernel.util.OrderByComparator obc)
249 throws com.liferay.portal.kernel.exception.SystemException,
250 com.liferay.portlet.journal.NoSuchContentSearchException {
251 return getPersistence()
252 .findByG_A_PrevAndNext(contentSearchId, groupId, articleId,
253 obc);
254 }
255
256 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
257 long groupId, boolean privateLayout, long layoutId)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 return getPersistence().findByG_P_L(groupId, privateLayout, layoutId);
260 }
261
262 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
263 long groupId, boolean privateLayout, long layoutId, int start, int end)
264 throws com.liferay.portal.kernel.exception.SystemException {
265 return getPersistence()
266 .findByG_P_L(groupId, privateLayout, layoutId, start, end);
267 }
268
269 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
270 long groupId, boolean privateLayout, long layoutId, int start, int end,
271 com.liferay.portal.kernel.util.OrderByComparator obc)
272 throws com.liferay.portal.kernel.exception.SystemException {
273 return getPersistence()
274 .findByG_P_L(groupId, privateLayout, layoutId, start, end,
275 obc);
276 }
277
278 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_First(
279 long groupId, boolean privateLayout, long layoutId,
280 com.liferay.portal.kernel.util.OrderByComparator obc)
281 throws com.liferay.portal.kernel.exception.SystemException,
282 com.liferay.portlet.journal.NoSuchContentSearchException {
283 return getPersistence()
284 .findByG_P_L_First(groupId, privateLayout, layoutId, obc);
285 }
286
287 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_Last(
288 long groupId, boolean privateLayout, long layoutId,
289 com.liferay.portal.kernel.util.OrderByComparator obc)
290 throws com.liferay.portal.kernel.exception.SystemException,
291 com.liferay.portlet.journal.NoSuchContentSearchException {
292 return getPersistence()
293 .findByG_P_L_Last(groupId, privateLayout, layoutId, obc);
294 }
295
296 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_PrevAndNext(
297 long contentSearchId, long groupId, boolean privateLayout,
298 long layoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
299 throws com.liferay.portal.kernel.exception.SystemException,
300 com.liferay.portlet.journal.NoSuchContentSearchException {
301 return getPersistence()
302 .findByG_P_L_PrevAndNext(contentSearchId, groupId,
303 privateLayout, layoutId, obc);
304 }
305
306 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
307 long groupId, boolean privateLayout, java.lang.String articleId)
308 throws com.liferay.portal.kernel.exception.SystemException {
309 return getPersistence().findByG_P_A(groupId, privateLayout, articleId);
310 }
311
312 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
313 long groupId, boolean privateLayout, java.lang.String articleId,
314 int start, int end)
315 throws com.liferay.portal.kernel.exception.SystemException {
316 return getPersistence()
317 .findByG_P_A(groupId, privateLayout, articleId, start, end);
318 }
319
320 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
321 long groupId, boolean privateLayout, java.lang.String articleId,
322 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
323 throws com.liferay.portal.kernel.exception.SystemException {
324 return getPersistence()
325 .findByG_P_A(groupId, privateLayout, articleId, start, end,
326 obc);
327 }
328
329 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_First(
330 long groupId, boolean privateLayout, java.lang.String articleId,
331 com.liferay.portal.kernel.util.OrderByComparator obc)
332 throws com.liferay.portal.kernel.exception.SystemException,
333 com.liferay.portlet.journal.NoSuchContentSearchException {
334 return getPersistence()
335 .findByG_P_A_First(groupId, privateLayout, articleId, obc);
336 }
337
338 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_Last(
339 long groupId, boolean privateLayout, java.lang.String articleId,
340 com.liferay.portal.kernel.util.OrderByComparator obc)
341 throws com.liferay.portal.kernel.exception.SystemException,
342 com.liferay.portlet.journal.NoSuchContentSearchException {
343 return getPersistence()
344 .findByG_P_A_Last(groupId, privateLayout, articleId, obc);
345 }
346
347 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_A_PrevAndNext(
348 long contentSearchId, long groupId, boolean privateLayout,
349 java.lang.String articleId,
350 com.liferay.portal.kernel.util.OrderByComparator obc)
351 throws com.liferay.portal.kernel.exception.SystemException,
352 com.liferay.portlet.journal.NoSuchContentSearchException {
353 return getPersistence()
354 .findByG_P_A_PrevAndNext(contentSearchId, groupId,
355 privateLayout, articleId, obc);
356 }
357
358 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
359 long groupId, boolean privateLayout, long layoutId,
360 java.lang.String portletId)
361 throws com.liferay.portal.kernel.exception.SystemException {
362 return getPersistence()
363 .findByG_P_L_P(groupId, privateLayout, layoutId, portletId);
364 }
365
366 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
367 long groupId, boolean privateLayout, long layoutId,
368 java.lang.String portletId, int start, int end)
369 throws com.liferay.portal.kernel.exception.SystemException {
370 return getPersistence()
371 .findByG_P_L_P(groupId, privateLayout, layoutId, portletId,
372 start, end);
373 }
374
375 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
376 long groupId, boolean privateLayout, long layoutId,
377 java.lang.String portletId, int start, int end,
378 com.liferay.portal.kernel.util.OrderByComparator obc)
379 throws com.liferay.portal.kernel.exception.SystemException {
380 return getPersistence()
381 .findByG_P_L_P(groupId, privateLayout, layoutId, portletId,
382 start, end, obc);
383 }
384
385 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_First(
386 long groupId, boolean privateLayout, long layoutId,
387 java.lang.String portletId,
388 com.liferay.portal.kernel.util.OrderByComparator obc)
389 throws com.liferay.portal.kernel.exception.SystemException,
390 com.liferay.portlet.journal.NoSuchContentSearchException {
391 return getPersistence()
392 .findByG_P_L_P_First(groupId, privateLayout, layoutId,
393 portletId, obc);
394 }
395
396 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_Last(
397 long groupId, boolean privateLayout, long layoutId,
398 java.lang.String portletId,
399 com.liferay.portal.kernel.util.OrderByComparator obc)
400 throws com.liferay.portal.kernel.exception.SystemException,
401 com.liferay.portlet.journal.NoSuchContentSearchException {
402 return getPersistence()
403 .findByG_P_L_P_Last(groupId, privateLayout, layoutId,
404 portletId, obc);
405 }
406
407 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_P_PrevAndNext(
408 long contentSearchId, long groupId, boolean privateLayout,
409 long layoutId, java.lang.String portletId,
410 com.liferay.portal.kernel.util.OrderByComparator obc)
411 throws com.liferay.portal.kernel.exception.SystemException,
412 com.liferay.portlet.journal.NoSuchContentSearchException {
413 return getPersistence()
414 .findByG_P_L_P_PrevAndNext(contentSearchId, groupId,
415 privateLayout, layoutId, portletId, obc);
416 }
417
418 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_A(
419 long groupId, boolean privateLayout, long layoutId,
420 java.lang.String portletId, java.lang.String articleId)
421 throws com.liferay.portal.kernel.exception.SystemException,
422 com.liferay.portlet.journal.NoSuchContentSearchException {
423 return getPersistence()
424 .findByG_P_L_P_A(groupId, privateLayout, layoutId,
425 portletId, articleId);
426 }
427
428 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
429 long groupId, boolean privateLayout, long layoutId,
430 java.lang.String portletId, java.lang.String articleId)
431 throws com.liferay.portal.kernel.exception.SystemException {
432 return getPersistence()
433 .fetchByG_P_L_P_A(groupId, privateLayout, layoutId,
434 portletId, articleId);
435 }
436
437 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
438 long groupId, boolean privateLayout, long layoutId,
439 java.lang.String portletId, java.lang.String articleId,
440 boolean retrieveFromCache)
441 throws com.liferay.portal.kernel.exception.SystemException {
442 return getPersistence()
443 .fetchByG_P_L_P_A(groupId, privateLayout, layoutId,
444 portletId, articleId, retrieveFromCache);
445 }
446
447 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll()
448 throws com.liferay.portal.kernel.exception.SystemException {
449 return getPersistence().findAll();
450 }
451
452 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
453 int start, int end)
454 throws com.liferay.portal.kernel.exception.SystemException {
455 return getPersistence().findAll(start, end);
456 }
457
458 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
459 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
460 throws com.liferay.portal.kernel.exception.SystemException {
461 return getPersistence().findAll(start, end, obc);
462 }
463
464 public static void removeByArticleId(java.lang.String articleId)
465 throws com.liferay.portal.kernel.exception.SystemException {
466 getPersistence().removeByArticleId(articleId);
467 }
468
469 public static void removeByG_P(long groupId, boolean privateLayout)
470 throws com.liferay.portal.kernel.exception.SystemException {
471 getPersistence().removeByG_P(groupId, privateLayout);
472 }
473
474 public static void removeByG_A(long groupId, java.lang.String articleId)
475 throws com.liferay.portal.kernel.exception.SystemException {
476 getPersistence().removeByG_A(groupId, articleId);
477 }
478
479 public static void removeByG_P_L(long groupId, boolean privateLayout,
480 long layoutId)
481 throws com.liferay.portal.kernel.exception.SystemException {
482 getPersistence().removeByG_P_L(groupId, privateLayout, layoutId);
483 }
484
485 public static void removeByG_P_A(long groupId, boolean privateLayout,
486 java.lang.String articleId)
487 throws com.liferay.portal.kernel.exception.SystemException {
488 getPersistence().removeByG_P_A(groupId, privateLayout, articleId);
489 }
490
491 public static void removeByG_P_L_P(long groupId, boolean privateLayout,
492 long layoutId, java.lang.String portletId)
493 throws com.liferay.portal.kernel.exception.SystemException {
494 getPersistence()
495 .removeByG_P_L_P(groupId, privateLayout, layoutId, portletId);
496 }
497
498 public static void removeByG_P_L_P_A(long groupId, boolean privateLayout,
499 long layoutId, java.lang.String portletId, java.lang.String articleId)
500 throws com.liferay.portal.kernel.exception.SystemException,
501 com.liferay.portlet.journal.NoSuchContentSearchException {
502 getPersistence()
503 .removeByG_P_L_P_A(groupId, privateLayout, layoutId, portletId,
504 articleId);
505 }
506
507 public static void removeAll()
508 throws com.liferay.portal.kernel.exception.SystemException {
509 getPersistence().removeAll();
510 }
511
512 public static int countByArticleId(java.lang.String articleId)
513 throws com.liferay.portal.kernel.exception.SystemException {
514 return getPersistence().countByArticleId(articleId);
515 }
516
517 public static int countByG_P(long groupId, boolean privateLayout)
518 throws com.liferay.portal.kernel.exception.SystemException {
519 return getPersistence().countByG_P(groupId, privateLayout);
520 }
521
522 public static int countByG_A(long groupId, java.lang.String articleId)
523 throws com.liferay.portal.kernel.exception.SystemException {
524 return getPersistence().countByG_A(groupId, articleId);
525 }
526
527 public static int countByG_P_L(long groupId, boolean privateLayout,
528 long layoutId)
529 throws com.liferay.portal.kernel.exception.SystemException {
530 return getPersistence().countByG_P_L(groupId, privateLayout, layoutId);
531 }
532
533 public static int countByG_P_A(long groupId, boolean privateLayout,
534 java.lang.String articleId)
535 throws com.liferay.portal.kernel.exception.SystemException {
536 return getPersistence().countByG_P_A(groupId, privateLayout, articleId);
537 }
538
539 public static int countByG_P_L_P(long groupId, boolean privateLayout,
540 long layoutId, java.lang.String portletId)
541 throws com.liferay.portal.kernel.exception.SystemException {
542 return getPersistence()
543 .countByG_P_L_P(groupId, privateLayout, layoutId, portletId);
544 }
545
546 public static int countByG_P_L_P_A(long groupId, boolean privateLayout,
547 long layoutId, java.lang.String portletId, java.lang.String articleId)
548 throws com.liferay.portal.kernel.exception.SystemException {
549 return getPersistence()
550 .countByG_P_L_P_A(groupId, privateLayout, layoutId,
551 portletId, articleId);
552 }
553
554 public static int countAll()
555 throws com.liferay.portal.kernel.exception.SystemException {
556 return getPersistence().countAll();
557 }
558
559 public static JournalContentSearchPersistence getPersistence() {
560 if (_persistence == null) {
561 _persistence = (JournalContentSearchPersistence)PortalBeanLocatorUtil.locate(JournalContentSearchPersistence.class.getName());
562 }
563
564 return _persistence;
565 }
566
567 public void setPersistence(JournalContentSearchPersistence persistence) {
568 _persistence = persistence;
569 }
570
571 private static JournalContentSearchPersistence _persistence;
572 }