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