001
014
015 package com.liferay.portlet.messageboards.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.service.ServiceContext;
022
023 import com.liferay.portlet.messageboards.model.MBCategory;
024
025 import java.util.List;
026
027
033 public class MBCategoryUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(MBCategory mbCategory) {
045 getPersistence().clearCache(mbCategory);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<MBCategory> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<MBCategory> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<MBCategory> findWithDynamicQuery(
077 DynamicQuery dynamicQuery, int start, int end,
078 OrderByComparator orderByComparator) throws SystemException {
079 return getPersistence()
080 .findWithDynamicQuery(dynamicQuery, start, end,
081 orderByComparator);
082 }
083
084
087 public static MBCategory remove(MBCategory mbCategory)
088 throws SystemException {
089 return getPersistence().remove(mbCategory);
090 }
091
092
095 public static MBCategory update(MBCategory mbCategory, boolean merge)
096 throws SystemException {
097 return getPersistence().update(mbCategory, merge);
098 }
099
100
103 public static MBCategory update(MBCategory mbCategory, boolean merge,
104 ServiceContext serviceContext) throws SystemException {
105 return getPersistence().update(mbCategory, merge, serviceContext);
106 }
107
108 public static void cacheResult(
109 com.liferay.portlet.messageboards.model.MBCategory mbCategory) {
110 getPersistence().cacheResult(mbCategory);
111 }
112
113 public static void cacheResult(
114 java.util.List<com.liferay.portlet.messageboards.model.MBCategory> mbCategories) {
115 getPersistence().cacheResult(mbCategories);
116 }
117
118 public static com.liferay.portlet.messageboards.model.MBCategory create(
119 long categoryId) {
120 return getPersistence().create(categoryId);
121 }
122
123 public static com.liferay.portlet.messageboards.model.MBCategory remove(
124 long categoryId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.messageboards.NoSuchCategoryException {
127 return getPersistence().remove(categoryId);
128 }
129
130 public static com.liferay.portlet.messageboards.model.MBCategory updateImpl(
131 com.liferay.portlet.messageboards.model.MBCategory mbCategory,
132 boolean merge)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().updateImpl(mbCategory, merge);
135 }
136
137 public static com.liferay.portlet.messageboards.model.MBCategory findByPrimaryKey(
138 long categoryId)
139 throws com.liferay.portal.kernel.exception.SystemException,
140 com.liferay.portlet.messageboards.NoSuchCategoryException {
141 return getPersistence().findByPrimaryKey(categoryId);
142 }
143
144 public static com.liferay.portlet.messageboards.model.MBCategory fetchByPrimaryKey(
145 long categoryId)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence().fetchByPrimaryKey(categoryId);
148 }
149
150 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
151 java.lang.String uuid)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getPersistence().findByUuid(uuid);
154 }
155
156 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
157 java.lang.String uuid, int start, int end)
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return getPersistence().findByUuid(uuid, start, end);
160 }
161
162 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
163 java.lang.String uuid, int start, int end,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
167 }
168
169 public static com.liferay.portlet.messageboards.model.MBCategory findByUuid_First(
170 java.lang.String uuid,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.kernel.exception.SystemException,
173 com.liferay.portlet.messageboards.NoSuchCategoryException {
174 return getPersistence().findByUuid_First(uuid, orderByComparator);
175 }
176
177 public static com.liferay.portlet.messageboards.model.MBCategory findByUuid_Last(
178 java.lang.String uuid,
179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180 throws com.liferay.portal.kernel.exception.SystemException,
181 com.liferay.portlet.messageboards.NoSuchCategoryException {
182 return getPersistence().findByUuid_Last(uuid, orderByComparator);
183 }
184
185 public static com.liferay.portlet.messageboards.model.MBCategory[] findByUuid_PrevAndNext(
186 long categoryId, java.lang.String uuid,
187 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188 throws com.liferay.portal.kernel.exception.SystemException,
189 com.liferay.portlet.messageboards.NoSuchCategoryException {
190 return getPersistence()
191 .findByUuid_PrevAndNext(categoryId, uuid, orderByComparator);
192 }
193
194 public static com.liferay.portlet.messageboards.model.MBCategory findByUUID_G(
195 java.lang.String uuid, long groupId)
196 throws com.liferay.portal.kernel.exception.SystemException,
197 com.liferay.portlet.messageboards.NoSuchCategoryException {
198 return getPersistence().findByUUID_G(uuid, groupId);
199 }
200
201 public static com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G(
202 java.lang.String uuid, long groupId)
203 throws com.liferay.portal.kernel.exception.SystemException {
204 return getPersistence().fetchByUUID_G(uuid, groupId);
205 }
206
207 public static com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G(
208 java.lang.String uuid, long groupId, boolean retrieveFromCache)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
211 }
212
213 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
214 long groupId)
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return getPersistence().findByGroupId(groupId);
217 }
218
219 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
220 long groupId, int start, int end)
221 throws com.liferay.portal.kernel.exception.SystemException {
222 return getPersistence().findByGroupId(groupId, start, end);
223 }
224
225 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
226 long groupId, int start, int end,
227 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return getPersistence()
230 .findByGroupId(groupId, start, end, orderByComparator);
231 }
232
233 public static com.liferay.portlet.messageboards.model.MBCategory findByGroupId_First(
234 long groupId,
235 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
236 throws com.liferay.portal.kernel.exception.SystemException,
237 com.liferay.portlet.messageboards.NoSuchCategoryException {
238 return getPersistence().findByGroupId_First(groupId, orderByComparator);
239 }
240
241 public static com.liferay.portlet.messageboards.model.MBCategory findByGroupId_Last(
242 long groupId,
243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244 throws com.liferay.portal.kernel.exception.SystemException,
245 com.liferay.portlet.messageboards.NoSuchCategoryException {
246 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
247 }
248
249 public static com.liferay.portlet.messageboards.model.MBCategory[] findByGroupId_PrevAndNext(
250 long categoryId, long groupId,
251 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252 throws com.liferay.portal.kernel.exception.SystemException,
253 com.liferay.portlet.messageboards.NoSuchCategoryException {
254 return getPersistence()
255 .findByGroupId_PrevAndNext(categoryId, groupId,
256 orderByComparator);
257 }
258
259 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId(
260 long groupId)
261 throws com.liferay.portal.kernel.exception.SystemException {
262 return getPersistence().filterFindByGroupId(groupId);
263 }
264
265 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId(
266 long groupId, int start, int end)
267 throws com.liferay.portal.kernel.exception.SystemException {
268 return getPersistence().filterFindByGroupId(groupId, start, end);
269 }
270
271 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByGroupId(
272 long groupId, int start, int end,
273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274 throws com.liferay.portal.kernel.exception.SystemException {
275 return getPersistence()
276 .filterFindByGroupId(groupId, start, end, orderByComparator);
277 }
278
279 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
280 long companyId)
281 throws com.liferay.portal.kernel.exception.SystemException {
282 return getPersistence().findByCompanyId(companyId);
283 }
284
285 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
286 long companyId, int start, int end)
287 throws com.liferay.portal.kernel.exception.SystemException {
288 return getPersistence().findByCompanyId(companyId, start, end);
289 }
290
291 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
292 long companyId, int start, int end,
293 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294 throws com.liferay.portal.kernel.exception.SystemException {
295 return getPersistence()
296 .findByCompanyId(companyId, start, end, orderByComparator);
297 }
298
299 public static com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_First(
300 long companyId,
301 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
302 throws com.liferay.portal.kernel.exception.SystemException,
303 com.liferay.portlet.messageboards.NoSuchCategoryException {
304 return getPersistence()
305 .findByCompanyId_First(companyId, orderByComparator);
306 }
307
308 public static com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_Last(
309 long companyId,
310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311 throws com.liferay.portal.kernel.exception.SystemException,
312 com.liferay.portlet.messageboards.NoSuchCategoryException {
313 return getPersistence()
314 .findByCompanyId_Last(companyId, orderByComparator);
315 }
316
317 public static com.liferay.portlet.messageboards.model.MBCategory[] findByCompanyId_PrevAndNext(
318 long categoryId, long companyId,
319 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
320 throws com.liferay.portal.kernel.exception.SystemException,
321 com.liferay.portlet.messageboards.NoSuchCategoryException {
322 return getPersistence()
323 .findByCompanyId_PrevAndNext(categoryId, companyId,
324 orderByComparator);
325 }
326
327 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
328 long groupId, long parentCategoryId)
329 throws com.liferay.portal.kernel.exception.SystemException {
330 return getPersistence().findByG_P(groupId, parentCategoryId);
331 }
332
333 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
334 long groupId, long parentCategoryId, int start, int end)
335 throws com.liferay.portal.kernel.exception.SystemException {
336 return getPersistence().findByG_P(groupId, parentCategoryId, start, end);
337 }
338
339 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
340 long groupId, long parentCategoryId, int start, int end,
341 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
342 throws com.liferay.portal.kernel.exception.SystemException {
343 return getPersistence()
344 .findByG_P(groupId, parentCategoryId, start, end,
345 orderByComparator);
346 }
347
348 public static com.liferay.portlet.messageboards.model.MBCategory findByG_P_First(
349 long groupId, long parentCategoryId,
350 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
351 throws com.liferay.portal.kernel.exception.SystemException,
352 com.liferay.portlet.messageboards.NoSuchCategoryException {
353 return getPersistence()
354 .findByG_P_First(groupId, parentCategoryId, orderByComparator);
355 }
356
357 public static com.liferay.portlet.messageboards.model.MBCategory findByG_P_Last(
358 long groupId, long parentCategoryId,
359 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
360 throws com.liferay.portal.kernel.exception.SystemException,
361 com.liferay.portlet.messageboards.NoSuchCategoryException {
362 return getPersistence()
363 .findByG_P_Last(groupId, parentCategoryId, orderByComparator);
364 }
365
366 public static com.liferay.portlet.messageboards.model.MBCategory[] findByG_P_PrevAndNext(
367 long categoryId, long groupId, long parentCategoryId,
368 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
369 throws com.liferay.portal.kernel.exception.SystemException,
370 com.liferay.portlet.messageboards.NoSuchCategoryException {
371 return getPersistence()
372 .findByG_P_PrevAndNext(categoryId, groupId,
373 parentCategoryId, orderByComparator);
374 }
375
376 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
377 long groupId, long[] parentCategoryIds)
378 throws com.liferay.portal.kernel.exception.SystemException {
379 return getPersistence().findByG_P(groupId, parentCategoryIds);
380 }
381
382 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
383 long groupId, long[] parentCategoryIds, int start, int end)
384 throws com.liferay.portal.kernel.exception.SystemException {
385 return getPersistence().findByG_P(groupId, parentCategoryIds, start, end);
386 }
387
388 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
389 long groupId, long[] parentCategoryIds, int start, int end,
390 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
391 throws com.liferay.portal.kernel.exception.SystemException {
392 return getPersistence()
393 .findByG_P(groupId, parentCategoryIds, start, end,
394 orderByComparator);
395 }
396
397 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
398 long groupId, long parentCategoryId)
399 throws com.liferay.portal.kernel.exception.SystemException {
400 return getPersistence().filterFindByG_P(groupId, parentCategoryId);
401 }
402
403 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
404 long groupId, long parentCategoryId, int start, int end)
405 throws com.liferay.portal.kernel.exception.SystemException {
406 return getPersistence()
407 .filterFindByG_P(groupId, parentCategoryId, start, end);
408 }
409
410 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
411 long groupId, long parentCategoryId, int start, int end,
412 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
413 throws com.liferay.portal.kernel.exception.SystemException {
414 return getPersistence()
415 .filterFindByG_P(groupId, parentCategoryId, start, end,
416 orderByComparator);
417 }
418
419 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
420 long groupId, long[] parentCategoryIds)
421 throws com.liferay.portal.kernel.exception.SystemException {
422 return getPersistence().filterFindByG_P(groupId, parentCategoryIds);
423 }
424
425 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
426 long groupId, long[] parentCategoryIds, int start, int end)
427 throws com.liferay.portal.kernel.exception.SystemException {
428 return getPersistence()
429 .filterFindByG_P(groupId, parentCategoryIds, start, end);
430 }
431
432 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByG_P(
433 long groupId, long[] parentCategoryIds, int start, int end,
434 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435 throws com.liferay.portal.kernel.exception.SystemException {
436 return getPersistence()
437 .filterFindByG_P(groupId, parentCategoryIds, start, end,
438 orderByComparator);
439 }
440
441 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll()
442 throws com.liferay.portal.kernel.exception.SystemException {
443 return getPersistence().findAll();
444 }
445
446 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll(
447 int start, int end)
448 throws com.liferay.portal.kernel.exception.SystemException {
449 return getPersistence().findAll(start, end);
450 }
451
452 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll(
453 int start, int end,
454 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
455 throws com.liferay.portal.kernel.exception.SystemException {
456 return getPersistence().findAll(start, end, orderByComparator);
457 }
458
459 public static void removeByUuid(java.lang.String uuid)
460 throws com.liferay.portal.kernel.exception.SystemException {
461 getPersistence().removeByUuid(uuid);
462 }
463
464 public static void removeByUUID_G(java.lang.String uuid, long groupId)
465 throws com.liferay.portal.kernel.exception.SystemException,
466 com.liferay.portlet.messageboards.NoSuchCategoryException {
467 getPersistence().removeByUUID_G(uuid, groupId);
468 }
469
470 public static void removeByGroupId(long groupId)
471 throws com.liferay.portal.kernel.exception.SystemException {
472 getPersistence().removeByGroupId(groupId);
473 }
474
475 public static void removeByCompanyId(long companyId)
476 throws com.liferay.portal.kernel.exception.SystemException {
477 getPersistence().removeByCompanyId(companyId);
478 }
479
480 public static void removeByG_P(long groupId, long parentCategoryId)
481 throws com.liferay.portal.kernel.exception.SystemException {
482 getPersistence().removeByG_P(groupId, parentCategoryId);
483 }
484
485 public static void removeAll()
486 throws com.liferay.portal.kernel.exception.SystemException {
487 getPersistence().removeAll();
488 }
489
490 public static int countByUuid(java.lang.String uuid)
491 throws com.liferay.portal.kernel.exception.SystemException {
492 return getPersistence().countByUuid(uuid);
493 }
494
495 public static int countByUUID_G(java.lang.String uuid, long groupId)
496 throws com.liferay.portal.kernel.exception.SystemException {
497 return getPersistence().countByUUID_G(uuid, groupId);
498 }
499
500 public static int countByGroupId(long groupId)
501 throws com.liferay.portal.kernel.exception.SystemException {
502 return getPersistence().countByGroupId(groupId);
503 }
504
505 public static int filterCountByGroupId(long groupId)
506 throws com.liferay.portal.kernel.exception.SystemException {
507 return getPersistence().filterCountByGroupId(groupId);
508 }
509
510 public static int countByCompanyId(long companyId)
511 throws com.liferay.portal.kernel.exception.SystemException {
512 return getPersistence().countByCompanyId(companyId);
513 }
514
515 public static int countByG_P(long groupId, long parentCategoryId)
516 throws com.liferay.portal.kernel.exception.SystemException {
517 return getPersistence().countByG_P(groupId, parentCategoryId);
518 }
519
520 public static int countByG_P(long groupId, long[] parentCategoryIds)
521 throws com.liferay.portal.kernel.exception.SystemException {
522 return getPersistence().countByG_P(groupId, parentCategoryIds);
523 }
524
525 public static int filterCountByG_P(long groupId, long parentCategoryId)
526 throws com.liferay.portal.kernel.exception.SystemException {
527 return getPersistence().filterCountByG_P(groupId, parentCategoryId);
528 }
529
530 public static int filterCountByG_P(long groupId, long[] parentCategoryIds)
531 throws com.liferay.portal.kernel.exception.SystemException {
532 return getPersistence().filterCountByG_P(groupId, parentCategoryIds);
533 }
534
535 public static int countAll()
536 throws com.liferay.portal.kernel.exception.SystemException {
537 return getPersistence().countAll();
538 }
539
540 public static MBCategoryPersistence getPersistence() {
541 if (_persistence == null) {
542 _persistence = (MBCategoryPersistence)PortalBeanLocatorUtil.locate(MBCategoryPersistence.class.getName());
543 }
544
545 return _persistence;
546 }
547
548 public void setPersistence(MBCategoryPersistence persistence) {
549 _persistence = persistence;
550 }
551
552 private static MBCategoryPersistence _persistence;
553 }