1
19
20 package com.liferay.portal.service.persistence;
21
22
28 public class LayoutUtil {
29 public static void cacheResult(com.liferay.portal.model.Layout layout) {
30 getPersistence().cacheResult(layout);
31 }
32
33 public static void cacheResult(
34 java.util.List<com.liferay.portal.model.Layout> layouts) {
35 getPersistence().cacheResult(layouts);
36 }
37
38 public static void clearCache() {
39 getPersistence().clearCache();
40 }
41
42 public static com.liferay.portal.model.Layout create(long plid) {
43 return getPersistence().create(plid);
44 }
45
46 public static com.liferay.portal.model.Layout remove(long plid)
47 throws com.liferay.portal.NoSuchLayoutException,
48 com.liferay.portal.SystemException {
49 return getPersistence().remove(plid);
50 }
51
52 public static com.liferay.portal.model.Layout remove(
53 com.liferay.portal.model.Layout layout)
54 throws com.liferay.portal.SystemException {
55 return getPersistence().remove(layout);
56 }
57
58
61 public static com.liferay.portal.model.Layout update(
62 com.liferay.portal.model.Layout layout)
63 throws com.liferay.portal.SystemException {
64 return getPersistence().update(layout);
65 }
66
67
80 public static com.liferay.portal.model.Layout update(
81 com.liferay.portal.model.Layout layout, boolean merge)
82 throws com.liferay.portal.SystemException {
83 return getPersistence().update(layout, merge);
84 }
85
86 public static com.liferay.portal.model.Layout updateImpl(
87 com.liferay.portal.model.Layout layout, boolean merge)
88 throws com.liferay.portal.SystemException {
89 return getPersistence().updateImpl(layout, merge);
90 }
91
92 public static com.liferay.portal.model.Layout findByPrimaryKey(long plid)
93 throws com.liferay.portal.NoSuchLayoutException,
94 com.liferay.portal.SystemException {
95 return getPersistence().findByPrimaryKey(plid);
96 }
97
98 public static com.liferay.portal.model.Layout fetchByPrimaryKey(long plid)
99 throws com.liferay.portal.SystemException {
100 return getPersistence().fetchByPrimaryKey(plid);
101 }
102
103 public static java.util.List<com.liferay.portal.model.Layout> findByGroupId(
104 long groupId) throws com.liferay.portal.SystemException {
105 return getPersistence().findByGroupId(groupId);
106 }
107
108 public static java.util.List<com.liferay.portal.model.Layout> findByGroupId(
109 long groupId, int start, int end)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByGroupId(groupId, start, end);
112 }
113
114 public static java.util.List<com.liferay.portal.model.Layout> findByGroupId(
115 long groupId, int start, int end,
116 com.liferay.portal.kernel.util.OrderByComparator obc)
117 throws com.liferay.portal.SystemException {
118 return getPersistence().findByGroupId(groupId, start, end, obc);
119 }
120
121 public static com.liferay.portal.model.Layout findByGroupId_First(
122 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
123 throws com.liferay.portal.NoSuchLayoutException,
124 com.liferay.portal.SystemException {
125 return getPersistence().findByGroupId_First(groupId, obc);
126 }
127
128 public static com.liferay.portal.model.Layout findByGroupId_Last(
129 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
130 throws com.liferay.portal.NoSuchLayoutException,
131 com.liferay.portal.SystemException {
132 return getPersistence().findByGroupId_Last(groupId, obc);
133 }
134
135 public static com.liferay.portal.model.Layout[] findByGroupId_PrevAndNext(
136 long plid, long groupId,
137 com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.NoSuchLayoutException,
139 com.liferay.portal.SystemException {
140 return getPersistence().findByGroupId_PrevAndNext(plid, groupId, obc);
141 }
142
143 public static java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
144 long companyId) throws com.liferay.portal.SystemException {
145 return getPersistence().findByCompanyId(companyId);
146 }
147
148 public static java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
149 long companyId, int start, int end)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findByCompanyId(companyId, start, end);
152 }
153
154 public static java.util.List<com.liferay.portal.model.Layout> findByCompanyId(
155 long companyId, int start, int end,
156 com.liferay.portal.kernel.util.OrderByComparator obc)
157 throws com.liferay.portal.SystemException {
158 return getPersistence().findByCompanyId(companyId, start, end, obc);
159 }
160
161 public static com.liferay.portal.model.Layout findByCompanyId_First(
162 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
163 throws com.liferay.portal.NoSuchLayoutException,
164 com.liferay.portal.SystemException {
165 return getPersistence().findByCompanyId_First(companyId, obc);
166 }
167
168 public static com.liferay.portal.model.Layout findByCompanyId_Last(
169 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
170 throws com.liferay.portal.NoSuchLayoutException,
171 com.liferay.portal.SystemException {
172 return getPersistence().findByCompanyId_Last(companyId, obc);
173 }
174
175 public static com.liferay.portal.model.Layout[] findByCompanyId_PrevAndNext(
176 long plid, long companyId,
177 com.liferay.portal.kernel.util.OrderByComparator obc)
178 throws com.liferay.portal.NoSuchLayoutException,
179 com.liferay.portal.SystemException {
180 return getPersistence().findByCompanyId_PrevAndNext(plid, companyId, obc);
181 }
182
183 public static com.liferay.portal.model.Layout findByDLFolderId(
184 long dlFolderId)
185 throws com.liferay.portal.NoSuchLayoutException,
186 com.liferay.portal.SystemException {
187 return getPersistence().findByDLFolderId(dlFolderId);
188 }
189
190 public static com.liferay.portal.model.Layout fetchByDLFolderId(
191 long dlFolderId) throws com.liferay.portal.SystemException {
192 return getPersistence().fetchByDLFolderId(dlFolderId);
193 }
194
195 public static com.liferay.portal.model.Layout fetchByDLFolderId(
196 long dlFolderId, boolean retrieveFromCache)
197 throws com.liferay.portal.SystemException {
198 return getPersistence().fetchByDLFolderId(dlFolderId, retrieveFromCache);
199 }
200
201 public static com.liferay.portal.model.Layout findByIconImageId(
202 long iconImageId)
203 throws com.liferay.portal.NoSuchLayoutException,
204 com.liferay.portal.SystemException {
205 return getPersistence().findByIconImageId(iconImageId);
206 }
207
208 public static com.liferay.portal.model.Layout fetchByIconImageId(
209 long iconImageId) throws com.liferay.portal.SystemException {
210 return getPersistence().fetchByIconImageId(iconImageId);
211 }
212
213 public static com.liferay.portal.model.Layout fetchByIconImageId(
214 long iconImageId, boolean retrieveFromCache)
215 throws com.liferay.portal.SystemException {
216 return getPersistence()
217 .fetchByIconImageId(iconImageId, retrieveFromCache);
218 }
219
220 public static java.util.List<com.liferay.portal.model.Layout> findByG_P(
221 long groupId, boolean privateLayout)
222 throws com.liferay.portal.SystemException {
223 return getPersistence().findByG_P(groupId, privateLayout);
224 }
225
226 public static java.util.List<com.liferay.portal.model.Layout> findByG_P(
227 long groupId, boolean privateLayout, int start, int end)
228 throws com.liferay.portal.SystemException {
229 return getPersistence().findByG_P(groupId, privateLayout, start, end);
230 }
231
232 public static java.util.List<com.liferay.portal.model.Layout> findByG_P(
233 long groupId, boolean privateLayout, int start, int end,
234 com.liferay.portal.kernel.util.OrderByComparator obc)
235 throws com.liferay.portal.SystemException {
236 return getPersistence()
237 .findByG_P(groupId, privateLayout, start, end, obc);
238 }
239
240 public static com.liferay.portal.model.Layout findByG_P_First(
241 long groupId, boolean privateLayout,
242 com.liferay.portal.kernel.util.OrderByComparator obc)
243 throws com.liferay.portal.NoSuchLayoutException,
244 com.liferay.portal.SystemException {
245 return getPersistence().findByG_P_First(groupId, privateLayout, obc);
246 }
247
248 public static com.liferay.portal.model.Layout findByG_P_Last(long groupId,
249 boolean privateLayout,
250 com.liferay.portal.kernel.util.OrderByComparator obc)
251 throws com.liferay.portal.NoSuchLayoutException,
252 com.liferay.portal.SystemException {
253 return getPersistence().findByG_P_Last(groupId, privateLayout, obc);
254 }
255
256 public static com.liferay.portal.model.Layout[] findByG_P_PrevAndNext(
257 long plid, long groupId, boolean privateLayout,
258 com.liferay.portal.kernel.util.OrderByComparator obc)
259 throws com.liferay.portal.NoSuchLayoutException,
260 com.liferay.portal.SystemException {
261 return getPersistence()
262 .findByG_P_PrevAndNext(plid, groupId, privateLayout, obc);
263 }
264
265 public static com.liferay.portal.model.Layout findByG_P_L(long groupId,
266 boolean privateLayout, long layoutId)
267 throws com.liferay.portal.NoSuchLayoutException,
268 com.liferay.portal.SystemException {
269 return getPersistence().findByG_P_L(groupId, privateLayout, layoutId);
270 }
271
272 public static com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
273 boolean privateLayout, long layoutId)
274 throws com.liferay.portal.SystemException {
275 return getPersistence().fetchByG_P_L(groupId, privateLayout, layoutId);
276 }
277
278 public static com.liferay.portal.model.Layout fetchByG_P_L(long groupId,
279 boolean privateLayout, long layoutId, boolean retrieveFromCache)
280 throws com.liferay.portal.SystemException {
281 return getPersistence()
282 .fetchByG_P_L(groupId, privateLayout, layoutId,
283 retrieveFromCache);
284 }
285
286 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
287 long groupId, boolean privateLayout, long parentLayoutId)
288 throws com.liferay.portal.SystemException {
289 return getPersistence()
290 .findByG_P_P(groupId, privateLayout, parentLayoutId);
291 }
292
293 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
294 long groupId, boolean privateLayout, long parentLayoutId, int start,
295 int end) throws com.liferay.portal.SystemException {
296 return getPersistence()
297 .findByG_P_P(groupId, privateLayout, parentLayoutId, start,
298 end);
299 }
300
301 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_P(
302 long groupId, boolean privateLayout, long parentLayoutId, int start,
303 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
304 throws com.liferay.portal.SystemException {
305 return getPersistence()
306 .findByG_P_P(groupId, privateLayout, parentLayoutId, start,
307 end, obc);
308 }
309
310 public static com.liferay.portal.model.Layout findByG_P_P_First(
311 long groupId, boolean privateLayout, long parentLayoutId,
312 com.liferay.portal.kernel.util.OrderByComparator obc)
313 throws com.liferay.portal.NoSuchLayoutException,
314 com.liferay.portal.SystemException {
315 return getPersistence()
316 .findByG_P_P_First(groupId, privateLayout, parentLayoutId,
317 obc);
318 }
319
320 public static com.liferay.portal.model.Layout findByG_P_P_Last(
321 long groupId, boolean privateLayout, long parentLayoutId,
322 com.liferay.portal.kernel.util.OrderByComparator obc)
323 throws com.liferay.portal.NoSuchLayoutException,
324 com.liferay.portal.SystemException {
325 return getPersistence()
326 .findByG_P_P_Last(groupId, privateLayout, parentLayoutId, obc);
327 }
328
329 public static com.liferay.portal.model.Layout[] findByG_P_P_PrevAndNext(
330 long plid, long groupId, boolean privateLayout, long parentLayoutId,
331 com.liferay.portal.kernel.util.OrderByComparator obc)
332 throws com.liferay.portal.NoSuchLayoutException,
333 com.liferay.portal.SystemException {
334 return getPersistence()
335 .findByG_P_P_PrevAndNext(plid, groupId, privateLayout,
336 parentLayoutId, obc);
337 }
338
339 public static com.liferay.portal.model.Layout findByG_P_F(long groupId,
340 boolean privateLayout, java.lang.String friendlyURL)
341 throws com.liferay.portal.NoSuchLayoutException,
342 com.liferay.portal.SystemException {
343 return getPersistence().findByG_P_F(groupId, privateLayout, friendlyURL);
344 }
345
346 public static com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
347 boolean privateLayout, java.lang.String friendlyURL)
348 throws com.liferay.portal.SystemException {
349 return getPersistence().fetchByG_P_F(groupId, privateLayout, friendlyURL);
350 }
351
352 public static com.liferay.portal.model.Layout fetchByG_P_F(long groupId,
353 boolean privateLayout, java.lang.String friendlyURL,
354 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
355 return getPersistence()
356 .fetchByG_P_F(groupId, privateLayout, friendlyURL,
357 retrieveFromCache);
358 }
359
360 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
361 long groupId, boolean privateLayout, java.lang.String type)
362 throws com.liferay.portal.SystemException {
363 return getPersistence().findByG_P_T(groupId, privateLayout, type);
364 }
365
366 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
367 long groupId, boolean privateLayout, java.lang.String type, int start,
368 int end) throws com.liferay.portal.SystemException {
369 return getPersistence()
370 .findByG_P_T(groupId, privateLayout, type, start, end);
371 }
372
373 public static java.util.List<com.liferay.portal.model.Layout> findByG_P_T(
374 long groupId, boolean privateLayout, java.lang.String type, int start,
375 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
376 throws com.liferay.portal.SystemException {
377 return getPersistence()
378 .findByG_P_T(groupId, privateLayout, type, start, end, obc);
379 }
380
381 public static com.liferay.portal.model.Layout findByG_P_T_First(
382 long groupId, boolean privateLayout, java.lang.String type,
383 com.liferay.portal.kernel.util.OrderByComparator obc)
384 throws com.liferay.portal.NoSuchLayoutException,
385 com.liferay.portal.SystemException {
386 return getPersistence()
387 .findByG_P_T_First(groupId, privateLayout, type, obc);
388 }
389
390 public static com.liferay.portal.model.Layout findByG_P_T_Last(
391 long groupId, boolean privateLayout, java.lang.String type,
392 com.liferay.portal.kernel.util.OrderByComparator obc)
393 throws com.liferay.portal.NoSuchLayoutException,
394 com.liferay.portal.SystemException {
395 return getPersistence()
396 .findByG_P_T_Last(groupId, privateLayout, type, obc);
397 }
398
399 public static com.liferay.portal.model.Layout[] findByG_P_T_PrevAndNext(
400 long plid, long groupId, boolean privateLayout, java.lang.String type,
401 com.liferay.portal.kernel.util.OrderByComparator obc)
402 throws com.liferay.portal.NoSuchLayoutException,
403 com.liferay.portal.SystemException {
404 return getPersistence()
405 .findByG_P_T_PrevAndNext(plid, groupId, privateLayout, type,
406 obc);
407 }
408
409 public static java.util.List<Object> findWithDynamicQuery(
410 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
411 throws com.liferay.portal.SystemException {
412 return getPersistence().findWithDynamicQuery(dynamicQuery);
413 }
414
415 public static java.util.List<Object> findWithDynamicQuery(
416 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
417 int end) throws com.liferay.portal.SystemException {
418 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
419 }
420
421 public static java.util.List<com.liferay.portal.model.Layout> findAll()
422 throws com.liferay.portal.SystemException {
423 return getPersistence().findAll();
424 }
425
426 public static java.util.List<com.liferay.portal.model.Layout> findAll(
427 int start, int end) throws com.liferay.portal.SystemException {
428 return getPersistence().findAll(start, end);
429 }
430
431 public static java.util.List<com.liferay.portal.model.Layout> findAll(
432 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
433 throws com.liferay.portal.SystemException {
434 return getPersistence().findAll(start, end, obc);
435 }
436
437 public static void removeByGroupId(long groupId)
438 throws com.liferay.portal.SystemException {
439 getPersistence().removeByGroupId(groupId);
440 }
441
442 public static void removeByCompanyId(long companyId)
443 throws com.liferay.portal.SystemException {
444 getPersistence().removeByCompanyId(companyId);
445 }
446
447 public static void removeByDLFolderId(long dlFolderId)
448 throws com.liferay.portal.NoSuchLayoutException,
449 com.liferay.portal.SystemException {
450 getPersistence().removeByDLFolderId(dlFolderId);
451 }
452
453 public static void removeByIconImageId(long iconImageId)
454 throws com.liferay.portal.NoSuchLayoutException,
455 com.liferay.portal.SystemException {
456 getPersistence().removeByIconImageId(iconImageId);
457 }
458
459 public static void removeByG_P(long groupId, boolean privateLayout)
460 throws com.liferay.portal.SystemException {
461 getPersistence().removeByG_P(groupId, privateLayout);
462 }
463
464 public static void removeByG_P_L(long groupId, boolean privateLayout,
465 long layoutId)
466 throws com.liferay.portal.NoSuchLayoutException,
467 com.liferay.portal.SystemException {
468 getPersistence().removeByG_P_L(groupId, privateLayout, layoutId);
469 }
470
471 public static void removeByG_P_P(long groupId, boolean privateLayout,
472 long parentLayoutId) throws com.liferay.portal.SystemException {
473 getPersistence().removeByG_P_P(groupId, privateLayout, parentLayoutId);
474 }
475
476 public static void removeByG_P_F(long groupId, boolean privateLayout,
477 java.lang.String friendlyURL)
478 throws com.liferay.portal.NoSuchLayoutException,
479 com.liferay.portal.SystemException {
480 getPersistence().removeByG_P_F(groupId, privateLayout, friendlyURL);
481 }
482
483 public static void removeByG_P_T(long groupId, boolean privateLayout,
484 java.lang.String type) throws com.liferay.portal.SystemException {
485 getPersistence().removeByG_P_T(groupId, privateLayout, type);
486 }
487
488 public static void removeAll() throws com.liferay.portal.SystemException {
489 getPersistence().removeAll();
490 }
491
492 public static int countByGroupId(long groupId)
493 throws com.liferay.portal.SystemException {
494 return getPersistence().countByGroupId(groupId);
495 }
496
497 public static int countByCompanyId(long companyId)
498 throws com.liferay.portal.SystemException {
499 return getPersistence().countByCompanyId(companyId);
500 }
501
502 public static int countByDLFolderId(long dlFolderId)
503 throws com.liferay.portal.SystemException {
504 return getPersistence().countByDLFolderId(dlFolderId);
505 }
506
507 public static int countByIconImageId(long iconImageId)
508 throws com.liferay.portal.SystemException {
509 return getPersistence().countByIconImageId(iconImageId);
510 }
511
512 public static int countByG_P(long groupId, boolean privateLayout)
513 throws com.liferay.portal.SystemException {
514 return getPersistence().countByG_P(groupId, privateLayout);
515 }
516
517 public static int countByG_P_L(long groupId, boolean privateLayout,
518 long layoutId) throws com.liferay.portal.SystemException {
519 return getPersistence().countByG_P_L(groupId, privateLayout, layoutId);
520 }
521
522 public static int countByG_P_P(long groupId, boolean privateLayout,
523 long parentLayoutId) throws com.liferay.portal.SystemException {
524 return getPersistence()
525 .countByG_P_P(groupId, privateLayout, parentLayoutId);
526 }
527
528 public static int countByG_P_F(long groupId, boolean privateLayout,
529 java.lang.String friendlyURL) throws com.liferay.portal.SystemException {
530 return getPersistence().countByG_P_F(groupId, privateLayout, friendlyURL);
531 }
532
533 public static int countByG_P_T(long groupId, boolean privateLayout,
534 java.lang.String type) throws com.liferay.portal.SystemException {
535 return getPersistence().countByG_P_T(groupId, privateLayout, type);
536 }
537
538 public static int countAll() throws com.liferay.portal.SystemException {
539 return getPersistence().countAll();
540 }
541
542 public static LayoutPersistence getPersistence() {
543 return _persistence;
544 }
545
546 public void setPersistence(LayoutPersistence persistence) {
547 _persistence = persistence;
548 }
549
550 private static LayoutPersistence _persistence;
551 }