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