001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.model.Layout;
022 import com.liferay.portal.service.ServiceContext;
023
024 import java.util.List;
025
026
032 public class LayoutUtil {
033
036 public static void clearCache() {
037 getPersistence().clearCache();
038 }
039
040
043 public static void clearCache(Layout layout) {
044 getPersistence().clearCache(layout);
045 }
046
047
050 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
051 throws SystemException {
052 return getPersistence().countWithDynamicQuery(dynamicQuery);
053 }
054
055
058 public static List<Layout> findWithDynamicQuery(DynamicQuery dynamicQuery)
059 throws SystemException {
060 return getPersistence().findWithDynamicQuery(dynamicQuery);
061 }
062
063
066 public static List<Layout> findWithDynamicQuery(DynamicQuery dynamicQuery,
067 int start, int end) throws SystemException {
068 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
069 }
070
071
074 public static List<Layout> findWithDynamicQuery(DynamicQuery dynamicQuery,
075 int start, int end, OrderByComparator orderByComparator)
076 throws SystemException {
077 return getPersistence()
078 .findWithDynamicQuery(dynamicQuery, start, end,
079 orderByComparator);
080 }
081
082
085 public static Layout remove(Layout layout) throws SystemException {
086 return getPersistence().remove(layout);
087 }
088
089
092 public static Layout update(Layout layout, boolean merge)
093 throws SystemException {
094 return getPersistence().update(layout, merge);
095 }
096
097
100 public static Layout update(Layout layout, boolean merge,
101 ServiceContext serviceContext) throws SystemException {
102 return getPersistence().update(layout, merge, serviceContext);
103 }
104
105 public static void cacheResult(com.liferay.portal.model.Layout layout) {
106 getPersistence().cacheResult(layout);
107 }
108
109 public static void cacheResult(
110 java.util.List<com.liferay.portal.model.Layout> layouts) {
111 getPersistence().cacheResult(layouts);
112 }
113
114 public static com.liferay.portal.model.Layout create(long plid) {
115 return getPersistence().create(plid);
116 }
117
118 public static com.liferay.portal.model.Layout remove(long plid)
119 throws com.liferay.portal.NoSuchLayoutException,
120 com.liferay.portal.kernel.exception.SystemException {
121 return getPersistence().remove(plid);
122 }
123
124 public static com.liferay.portal.model.Layout updateImpl(
125 com.liferay.portal.model.Layout layout, boolean merge)
126 throws com.liferay.portal.kernel.exception.SystemException {
127 return getPersistence().updateImpl(layout, merge);
128 }
129
130 public static com.liferay.portal.model.Layout findByPrimaryKey(long plid)
131 throws com.liferay.portal.NoSuchLayoutException,
132 com.liferay.portal.kernel.exception.SystemException {
133 return getPersistence().findByPrimaryKey(plid);
134 }
135
136 public static com.liferay.portal.model.Layout fetchByPrimaryKey(long plid)
137 throws com.liferay.portal.kernel.exception.SystemException {
138 return getPersistence().fetchByPrimaryKey(plid);
139 }
140
141 public static java.util.List<com.liferay.portal.model.Layout> findByUuid(
142 java.lang.String uuid)
143 throws com.liferay.portal.kernel.exception.SystemException {
144 return getPersistence().findByUuid(uuid);
145 }
146
147 public static java.util.List<com.liferay.portal.model.Layout> findByUuid(
148 java.lang.String uuid, int start, int end)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getPersistence().findByUuid(uuid, start, end);
151 }
152
153 public static java.util.List<com.liferay.portal.model.Layout> findByUuid(
154 java.lang.String uuid, int start, int end,
155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156 throws com.liferay.portal.kernel.exception.SystemException {
157 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
158 }
159
160 public static com.liferay.portal.model.Layout findByUuid_First(
161 java.lang.String uuid,
162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163 throws com.liferay.portal.NoSuchLayoutException,
164 com.liferay.portal.kernel.exception.SystemException {
165 return getPersistence().findByUuid_First(uuid, orderByComparator);
166 }
167
168 public static com.liferay.portal.model.Layout findByUuid_Last(
169 java.lang.String uuid,
170 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171 throws com.liferay.portal.NoSuchLayoutException,
172 com.liferay.portal.kernel.exception.SystemException {
173 return getPersistence().findByUuid_Last(uuid, orderByComparator);
174 }
175
176 public static com.liferay.portal.model.Layout[] findByUuid_PrevAndNext(
177 long plid, java.lang.String uuid,
178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179 throws com.liferay.portal.NoSuchLayoutException,
180 com.liferay.portal.kernel.exception.SystemException {
181 return getPersistence()
182 .findByUuid_PrevAndNext(plid, uuid, orderByComparator);
183 }
184
185 public static com.liferay.portal.model.Layout findByUUID_G(
186 java.lang.String uuid, long groupId)
187 throws com.liferay.portal.NoSuchLayoutException,
188 com.liferay.portal.kernel.exception.SystemException {
189 return getPersistence().findByUUID_G(uuid, groupId);
190 }
191
192 public static com.liferay.portal.model.Layout fetchByUUID_G(
193 java.lang.String uuid, long groupId)
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getPersistence().fetchByUUID_G(uuid, groupId);
196 }
197
198 public static com.liferay.portal.model.Layout fetchByUUID_G(
199 java.lang.String uuid, long groupId, boolean retrieveFromCache)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
202 }
203
204 public static java.util.List<com.liferay.portal.model.Layout> findByGroupId(
205 long groupId)
206 throws com.liferay.portal.kernel.exception.SystemException {
207 return getPersistence().findByGroupId(groupId);
208 }
209
210 public static java.util.List<com.liferay.portal.model.Layout> findByGroupId(
211 long groupId, int start, int end)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getPersistence().findByGroupId(groupId, start, end);
214 }
215
216 public static java.util.List<com.liferay.portal.model.Layout> findByGroupId(
217 long groupId, int start, int end,
218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219 throws com.liferay.portal.kernel.exception.SystemException {
220 return getPersistence()
221 .findByGroupId(groupId, start, end, orderByComparator);
222 }
223
224 public static com.liferay.portal.model.Layout findByGroupId_First(
225 long groupId,
226 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227 throws com.liferay.portal.NoSuchLayoutException,
228 com.liferay.portal.kernel.exception.SystemException {
229 return getPersistence().findByGroupId_First(groupId, orderByComparator);
230 }
231
232 public static com.liferay.portal.model.Layout findByGroupId_Last(
233 long groupId,
234 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
235 throws com.liferay.portal.NoSuchLayoutException,
236 com.liferay.portal.kernel.exception.SystemException {
237 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
238 }
239
240 public static com.liferay.portal.model.Layout[] findByGroupId_PrevAndNext(
241 long plid, long groupId,
242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243 throws com.liferay.portal.NoSuchLayoutException,
244 com.liferay.portal.kernel.exception.SystemException {
245 return getPersistence()
246 .findByGroupId_PrevAndNext(plid, groupId, orderByComparator);
247 }
248
249 public static java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
250 long companyId)
251 throws com.liferay.portal.kernel.exception.SystemException {
252 return getPersistence().findByCompanyId(companyId);
253 }
254
255 public static java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
256 long companyId, int start, int end)
257 throws com.liferay.portal.kernel.exception.SystemException {
258 return getPersistence().findByCompanyId(companyId, start, end);
259 }
260
261 public static java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
262 long companyId, int start, int end,
263 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264 throws com.liferay.portal.kernel.exception.SystemException {
265 return getPersistence()
266 .findByCompanyId(companyId, start, end, orderByComparator);
267 }
268
269 public static com.liferay.portal.model.Layout findByCompanyId_First(
270 long companyId,
271 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
272 throws com.liferay.portal.NoSuchLayoutException,
273 com.liferay.portal.kernel.exception.SystemException {
274 return getPersistence()
275 .findByCompanyId_First(companyId, orderByComparator);
276 }
277
278 public static com.liferay.portal.model.Layout findByCompanyId_Last(
279 long companyId,
280 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
281 throws com.liferay.portal.NoSuchLayoutException,
282 com.liferay.portal.kernel.exception.SystemException {
283 return getPersistence()
284 .findByCompanyId_Last(companyId, orderByComparator);
285 }
286
287 public static com.liferay.portal.model.Layout[] findByCompanyId_PrevAndNext(
288 long plid, long companyId,
289 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290 throws com.liferay.portal.NoSuchLayoutException,
291 com.liferay.portal.kernel.exception.SystemException {
292 return getPersistence()
293 .findByCompanyId_PrevAndNext(plid, companyId,
294 orderByComparator);
295 }
296
297 public static com.liferay.portal.model.Layout findByDLFolderId(
298 long dlFolderId)
299 throws com.liferay.portal.NoSuchLayoutException,
300 com.liferay.portal.kernel.exception.SystemException {
301 return getPersistence().findByDLFolderId(dlFolderId);
302 }
303
304 public static com.liferay.portal.model.Layout fetchByDLFolderId(
305 long dlFolderId)
306 throws com.liferay.portal.kernel.exception.SystemException {
307 return getPersistence().fetchByDLFolderId(dlFolderId);
308 }
309
310 public static com.liferay.portal.model.Layout fetchByDLFolderId(
311 long dlFolderId, boolean retrieveFromCache)
312 throws com.liferay.portal.kernel.exception.SystemException {
313 return getPersistence().fetchByDLFolderId(dlFolderId, retrieveFromCache);
314 }
315
316 public static com.liferay.portal.model.Layout findByIconImageId(
317 long iconImageId)
318 throws com.liferay.portal.NoSuchLayoutException,
319 com.liferay.portal.kernel.exception.SystemException {
320 return getPersistence().findByIconImageId(iconImageId);
321 }
322
323 public static com.liferay.portal.model.Layout fetchByIconImageId(
324 long iconImageId)
325 throws com.liferay.portal.kernel.exception.SystemException {
326 return getPersistence().fetchByIconImageId(iconImageId);
327 }
328
329 public static com.liferay.portal.model.Layout fetchByIconImageId(
330 long iconImageId, boolean retrieveFromCache)
331 throws com.liferay.portal.kernel.exception.SystemException {
332 return getPersistence()
333 .fetchByIconImageId(iconImageId, retrieveFromCache);
334 }
335
336 public static java.util.List<com.liferay.portal.model.Layout> findByG_P(
337 long groupId, boolean privateLayout)
338 throws com.liferay.portal.kernel.exception.SystemException {
339 return getPersistence().findByG_P(groupId, privateLayout);
340 }
341
342 public static java.util.List<com.liferay.portal.model.Layout> findByG_P(
343 long groupId, boolean privateLayout, int start, int end)
344 throws com.liferay.portal.kernel.exception.SystemException {
345 return getPersistence().findByG_P(groupId, privateLayout, start, end);
346 }
347
348 public static java.util.List<com.liferay.portal.model.Layout> findByG_P(
349 long groupId, boolean privateLayout, int start, int end,
350 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
351 throws com.liferay.portal.kernel.exception.SystemException {
352 return getPersistence()
353 .findByG_P(groupId, privateLayout, start, end,
354 orderByComparator);
355 }
356
357 public static com.liferay.portal.model.Layout findByG_P_First(
358 long groupId, boolean privateLayout,
359 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
360 throws com.liferay.portal.NoSuchLayoutException,
361 com.liferay.portal.kernel.exception.SystemException {
362 return getPersistence()
363 .findByG_P_First(groupId, privateLayout, orderByComparator);
364 }
365
366 public static com.liferay.portal.model.Layout findByG_P_Last(long groupId,
367 boolean privateLayout,
368 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
369 throws com.liferay.portal.NoSuchLayoutException,
370 com.liferay.portal.kernel.exception.SystemException {
371 return getPersistence()
372 .findByG_P_Last(groupId, privateLayout, orderByComparator);
373 }
374
375 public static com.liferay.portal.model.Layout[] findByG_P_PrevAndNext(
376 long plid, long groupId, boolean privateLayout,
377 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
378 throws com.liferay.portal.NoSuchLayoutException,
379 com.liferay.portal.kernel.exception.SystemException {
380 return getPersistence()
381 .findByG_P_PrevAndNext(plid, groupId, privateLayout,
382 orderByComparator);
383 }
384
385 public static com.liferay.portal.model.Layout findByG_P_L(long groupId,
386 boolean privateLayout, long layoutId)
387 throws com.liferay.portal.NoSuchLayoutException,
388 com.liferay.portal.kernel.exception.SystemException {
389 return getPersistence().findByG_P_L(groupId, privateLayout, layoutId);
390 }
391
392 public static com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
393 boolean privateLayout, long layoutId)
394 throws com.liferay.portal.kernel.exception.SystemException {
395 return getPersistence().fetchByG_P_L(groupId, privateLayout, layoutId);
396 }
397
398 public static com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
399 boolean privateLayout, long layoutId, boolean retrieveFromCache)
400 throws com.liferay.portal.kernel.exception.SystemException {
401 return getPersistence()
402 .fetchByG_P_L(groupId, privateLayout, layoutId,
403 retrieveFromCache);
404 }
405
406 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
407 long groupId, boolean privateLayout, long parentLayoutId)
408 throws com.liferay.portal.kernel.exception.SystemException {
409 return getPersistence()
410 .findByG_P_P(groupId, privateLayout, parentLayoutId);
411 }
412
413 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
414 long groupId, boolean privateLayout, long parentLayoutId, int start,
415 int end) throws com.liferay.portal.kernel.exception.SystemException {
416 return getPersistence()
417 .findByG_P_P(groupId, privateLayout, parentLayoutId, start,
418 end);
419 }
420
421 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
422 long groupId, boolean privateLayout, long parentLayoutId, int start,
423 int end,
424 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
425 throws com.liferay.portal.kernel.exception.SystemException {
426 return getPersistence()
427 .findByG_P_P(groupId, privateLayout, parentLayoutId, start,
428 end, orderByComparator);
429 }
430
431 public static com.liferay.portal.model.Layout findByG_P_P_First(
432 long groupId, boolean privateLayout, long parentLayoutId,
433 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
434 throws com.liferay.portal.NoSuchLayoutException,
435 com.liferay.portal.kernel.exception.SystemException {
436 return getPersistence()
437 .findByG_P_P_First(groupId, privateLayout, parentLayoutId,
438 orderByComparator);
439 }
440
441 public static com.liferay.portal.model.Layout findByG_P_P_Last(
442 long groupId, boolean privateLayout, long parentLayoutId,
443 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
444 throws com.liferay.portal.NoSuchLayoutException,
445 com.liferay.portal.kernel.exception.SystemException {
446 return getPersistence()
447 .findByG_P_P_Last(groupId, privateLayout, parentLayoutId,
448 orderByComparator);
449 }
450
451 public static com.liferay.portal.model.Layout[] findByG_P_P_PrevAndNext(
452 long plid, long groupId, boolean privateLayout, long parentLayoutId,
453 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
454 throws com.liferay.portal.NoSuchLayoutException,
455 com.liferay.portal.kernel.exception.SystemException {
456 return getPersistence()
457 .findByG_P_P_PrevAndNext(plid, groupId, privateLayout,
458 parentLayoutId, orderByComparator);
459 }
460
461 public static com.liferay.portal.model.Layout findByG_P_F(long groupId,
462 boolean privateLayout, java.lang.String friendlyURL)
463 throws com.liferay.portal.NoSuchLayoutException,
464 com.liferay.portal.kernel.exception.SystemException {
465 return getPersistence().findByG_P_F(groupId, privateLayout, friendlyURL);
466 }
467
468 public static com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
469 boolean privateLayout, java.lang.String friendlyURL)
470 throws com.liferay.portal.kernel.exception.SystemException {
471 return getPersistence().fetchByG_P_F(groupId, privateLayout, friendlyURL);
472 }
473
474 public static com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
475 boolean privateLayout, java.lang.String friendlyURL,
476 boolean retrieveFromCache)
477 throws com.liferay.portal.kernel.exception.SystemException {
478 return getPersistence()
479 .fetchByG_P_F(groupId, privateLayout, friendlyURL,
480 retrieveFromCache);
481 }
482
483 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
484 long groupId, boolean privateLayout, java.lang.String type)
485 throws com.liferay.portal.kernel.exception.SystemException {
486 return getPersistence().findByG_P_T(groupId, privateLayout, type);
487 }
488
489 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
490 long groupId, boolean privateLayout, java.lang.String type, int start,
491 int end) throws com.liferay.portal.kernel.exception.SystemException {
492 return getPersistence()
493 .findByG_P_T(groupId, privateLayout, type, start, end);
494 }
495
496 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
497 long groupId, boolean privateLayout, java.lang.String type, int start,
498 int end,
499 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
500 throws com.liferay.portal.kernel.exception.SystemException {
501 return getPersistence()
502 .findByG_P_T(groupId, privateLayout, type, start, end,
503 orderByComparator);
504 }
505
506 public static com.liferay.portal.model.Layout findByG_P_T_First(
507 long groupId, boolean privateLayout, java.lang.String type,
508 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
509 throws com.liferay.portal.NoSuchLayoutException,
510 com.liferay.portal.kernel.exception.SystemException {
511 return getPersistence()
512 .findByG_P_T_First(groupId, privateLayout, type,
513 orderByComparator);
514 }
515
516 public static com.liferay.portal.model.Layout findByG_P_T_Last(
517 long groupId, boolean privateLayout, java.lang.String type,
518 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
519 throws com.liferay.portal.NoSuchLayoutException,
520 com.liferay.portal.kernel.exception.SystemException {
521 return getPersistence()
522 .findByG_P_T_Last(groupId, privateLayout, type,
523 orderByComparator);
524 }
525
526 public static com.liferay.portal.model.Layout[] findByG_P_T_PrevAndNext(
527 long plid, long groupId, boolean privateLayout, java.lang.String type,
528 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
529 throws com.liferay.portal.NoSuchLayoutException,
530 com.liferay.portal.kernel.exception.SystemException {
531 return getPersistence()
532 .findByG_P_T_PrevAndNext(plid, groupId, privateLayout, type,
533 orderByComparator);
534 }
535
536 public static java.util.List<com.liferay.portal.model.Layout> findAll()
537 throws com.liferay.portal.kernel.exception.SystemException {
538 return getPersistence().findAll();
539 }
540
541 public static java.util.List<com.liferay.portal.model.Layout> findAll(
542 int start, int end)
543 throws com.liferay.portal.kernel.exception.SystemException {
544 return getPersistence().findAll(start, end);
545 }
546
547 public static java.util.List<com.liferay.portal.model.Layout> findAll(
548 int start, int end,
549 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
550 throws com.liferay.portal.kernel.exception.SystemException {
551 return getPersistence().findAll(start, end, orderByComparator);
552 }
553
554 public static void removeByUuid(java.lang.String uuid)
555 throws com.liferay.portal.kernel.exception.SystemException {
556 getPersistence().removeByUuid(uuid);
557 }
558
559 public static void removeByUUID_G(java.lang.String uuid, long groupId)
560 throws com.liferay.portal.NoSuchLayoutException,
561 com.liferay.portal.kernel.exception.SystemException {
562 getPersistence().removeByUUID_G(uuid, groupId);
563 }
564
565 public static void removeByGroupId(long groupId)
566 throws com.liferay.portal.kernel.exception.SystemException {
567 getPersistence().removeByGroupId(groupId);
568 }
569
570 public static void removeByCompanyId(long companyId)
571 throws com.liferay.portal.kernel.exception.SystemException {
572 getPersistence().removeByCompanyId(companyId);
573 }
574
575 public static void removeByDLFolderId(long dlFolderId)
576 throws com.liferay.portal.NoSuchLayoutException,
577 com.liferay.portal.kernel.exception.SystemException {
578 getPersistence().removeByDLFolderId(dlFolderId);
579 }
580
581 public static void removeByIconImageId(long iconImageId)
582 throws com.liferay.portal.NoSuchLayoutException,
583 com.liferay.portal.kernel.exception.SystemException {
584 getPersistence().removeByIconImageId(iconImageId);
585 }
586
587 public static void removeByG_P(long groupId, boolean privateLayout)
588 throws com.liferay.portal.kernel.exception.SystemException {
589 getPersistence().removeByG_P(groupId, privateLayout);
590 }
591
592 public static void removeByG_P_L(long groupId, boolean privateLayout,
593 long layoutId)
594 throws com.liferay.portal.NoSuchLayoutException,
595 com.liferay.portal.kernel.exception.SystemException {
596 getPersistence().removeByG_P_L(groupId, privateLayout, layoutId);
597 }
598
599 public static void removeByG_P_P(long groupId, boolean privateLayout,
600 long parentLayoutId)
601 throws com.liferay.portal.kernel.exception.SystemException {
602 getPersistence().removeByG_P_P(groupId, privateLayout, parentLayoutId);
603 }
604
605 public static void removeByG_P_F(long groupId, boolean privateLayout,
606 java.lang.String friendlyURL)
607 throws com.liferay.portal.NoSuchLayoutException,
608 com.liferay.portal.kernel.exception.SystemException {
609 getPersistence().removeByG_P_F(groupId, privateLayout, friendlyURL);
610 }
611
612 public static void removeByG_P_T(long groupId, boolean privateLayout,
613 java.lang.String type)
614 throws com.liferay.portal.kernel.exception.SystemException {
615 getPersistence().removeByG_P_T(groupId, privateLayout, type);
616 }
617
618 public static void removeAll()
619 throws com.liferay.portal.kernel.exception.SystemException {
620 getPersistence().removeAll();
621 }
622
623 public static int countByUuid(java.lang.String uuid)
624 throws com.liferay.portal.kernel.exception.SystemException {
625 return getPersistence().countByUuid(uuid);
626 }
627
628 public static int countByUUID_G(java.lang.String uuid, long groupId)
629 throws com.liferay.portal.kernel.exception.SystemException {
630 return getPersistence().countByUUID_G(uuid, groupId);
631 }
632
633 public static int countByGroupId(long groupId)
634 throws com.liferay.portal.kernel.exception.SystemException {
635 return getPersistence().countByGroupId(groupId);
636 }
637
638 public static int countByCompanyId(long companyId)
639 throws com.liferay.portal.kernel.exception.SystemException {
640 return getPersistence().countByCompanyId(companyId);
641 }
642
643 public static int countByDLFolderId(long dlFolderId)
644 throws com.liferay.portal.kernel.exception.SystemException {
645 return getPersistence().countByDLFolderId(dlFolderId);
646 }
647
648 public static int countByIconImageId(long iconImageId)
649 throws com.liferay.portal.kernel.exception.SystemException {
650 return getPersistence().countByIconImageId(iconImageId);
651 }
652
653 public static int countByG_P(long groupId, boolean privateLayout)
654 throws com.liferay.portal.kernel.exception.SystemException {
655 return getPersistence().countByG_P(groupId, privateLayout);
656 }
657
658 public static int countByG_P_L(long groupId, boolean privateLayout,
659 long layoutId)
660 throws com.liferay.portal.kernel.exception.SystemException {
661 return getPersistence().countByG_P_L(groupId, privateLayout, layoutId);
662 }
663
664 public static int countByG_P_P(long groupId, boolean privateLayout,
665 long parentLayoutId)
666 throws com.liferay.portal.kernel.exception.SystemException {
667 return getPersistence()
668 .countByG_P_P(groupId, privateLayout, parentLayoutId);
669 }
670
671 public static int countByG_P_F(long groupId, boolean privateLayout,
672 java.lang.String friendlyURL)
673 throws com.liferay.portal.kernel.exception.SystemException {
674 return getPersistence().countByG_P_F(groupId, privateLayout, friendlyURL);
675 }
676
677 public static int countByG_P_T(long groupId, boolean privateLayout,
678 java.lang.String type)
679 throws com.liferay.portal.kernel.exception.SystemException {
680 return getPersistence().countByG_P_T(groupId, privateLayout, type);
681 }
682
683 public static int countAll()
684 throws com.liferay.portal.kernel.exception.SystemException {
685 return getPersistence().countAll();
686 }
687
688 public static LayoutPersistence getPersistence() {
689 if (_persistence == null) {
690 _persistence = (LayoutPersistence)PortalBeanLocatorUtil.locate(LayoutPersistence.class.getName());
691 }
692
693 return _persistence;
694 }
695
696 public void setPersistence(LayoutPersistence persistence) {
697 _persistence = persistence;
698 }
699
700 private static LayoutPersistence _persistence;
701 }