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