1
14
15 package com.liferay.portlet.messageboards.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20
21 import com.liferay.portlet.messageboards.model.MBCategory;
22
23 import java.util.List;
24
25
38 public class MBCategoryUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50 throws SystemException {
51 return getPersistence().findWithDynamicQuery(dynamicQuery);
52 }
53
54
57 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58 int start, int end) throws SystemException {
59 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60 }
61
62
65 public static MBCategory remove(MBCategory mbCategory)
66 throws SystemException {
67 return getPersistence().remove(mbCategory);
68 }
69
70
73 public static MBCategory update(MBCategory mbCategory, boolean merge)
74 throws SystemException {
75 return getPersistence().update(mbCategory, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portlet.messageboards.model.MBCategory mbCategory) {
80 getPersistence().cacheResult(mbCategory);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portlet.messageboards.model.MBCategory> mbCategories) {
85 getPersistence().cacheResult(mbCategories);
86 }
87
88 public static com.liferay.portlet.messageboards.model.MBCategory create(
89 long categoryId) {
90 return getPersistence().create(categoryId);
91 }
92
93 public static com.liferay.portlet.messageboards.model.MBCategory remove(
94 long categoryId)
95 throws com.liferay.portal.kernel.exception.SystemException,
96 com.liferay.portlet.messageboards.NoSuchCategoryException {
97 return getPersistence().remove(categoryId);
98 }
99
100 public static com.liferay.portlet.messageboards.model.MBCategory updateImpl(
101 com.liferay.portlet.messageboards.model.MBCategory mbCategory,
102 boolean merge)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getPersistence().updateImpl(mbCategory, merge);
105 }
106
107 public static com.liferay.portlet.messageboards.model.MBCategory findByPrimaryKey(
108 long categoryId)
109 throws com.liferay.portal.kernel.exception.SystemException,
110 com.liferay.portlet.messageboards.NoSuchCategoryException {
111 return getPersistence().findByPrimaryKey(categoryId);
112 }
113
114 public static com.liferay.portlet.messageboards.model.MBCategory fetchByPrimaryKey(
115 long categoryId)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getPersistence().fetchByPrimaryKey(categoryId);
118 }
119
120 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
121 java.lang.String uuid)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return getPersistence().findByUuid(uuid);
124 }
125
126 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
127 java.lang.String uuid, int start, int end)
128 throws com.liferay.portal.kernel.exception.SystemException {
129 return getPersistence().findByUuid(uuid, start, end);
130 }
131
132 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByUuid(
133 java.lang.String uuid, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence().findByUuid(uuid, start, end, obc);
137 }
138
139 public static com.liferay.portlet.messageboards.model.MBCategory findByUuid_First(
140 java.lang.String uuid,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.kernel.exception.SystemException,
143 com.liferay.portlet.messageboards.NoSuchCategoryException {
144 return getPersistence().findByUuid_First(uuid, obc);
145 }
146
147 public static com.liferay.portlet.messageboards.model.MBCategory findByUuid_Last(
148 java.lang.String uuid,
149 com.liferay.portal.kernel.util.OrderByComparator obc)
150 throws com.liferay.portal.kernel.exception.SystemException,
151 com.liferay.portlet.messageboards.NoSuchCategoryException {
152 return getPersistence().findByUuid_Last(uuid, obc);
153 }
154
155 public static com.liferay.portlet.messageboards.model.MBCategory[] findByUuid_PrevAndNext(
156 long categoryId, java.lang.String uuid,
157 com.liferay.portal.kernel.util.OrderByComparator obc)
158 throws com.liferay.portal.kernel.exception.SystemException,
159 com.liferay.portlet.messageboards.NoSuchCategoryException {
160 return getPersistence().findByUuid_PrevAndNext(categoryId, uuid, obc);
161 }
162
163 public static com.liferay.portlet.messageboards.model.MBCategory findByUUID_G(
164 java.lang.String uuid, long groupId)
165 throws com.liferay.portal.kernel.exception.SystemException,
166 com.liferay.portlet.messageboards.NoSuchCategoryException {
167 return getPersistence().findByUUID_G(uuid, groupId);
168 }
169
170 public static com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G(
171 java.lang.String uuid, long groupId)
172 throws com.liferay.portal.kernel.exception.SystemException {
173 return getPersistence().fetchByUUID_G(uuid, groupId);
174 }
175
176 public static com.liferay.portlet.messageboards.model.MBCategory fetchByUUID_G(
177 java.lang.String uuid, long groupId, boolean retrieveFromCache)
178 throws com.liferay.portal.kernel.exception.SystemException {
179 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
180 }
181
182 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
183 long groupId)
184 throws com.liferay.portal.kernel.exception.SystemException {
185 return getPersistence().findByGroupId(groupId);
186 }
187
188 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
189 long groupId, int start, int end)
190 throws com.liferay.portal.kernel.exception.SystemException {
191 return getPersistence().findByGroupId(groupId, start, end);
192 }
193
194 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByGroupId(
195 long groupId, int start, int end,
196 com.liferay.portal.kernel.util.OrderByComparator obc)
197 throws com.liferay.portal.kernel.exception.SystemException {
198 return getPersistence().findByGroupId(groupId, start, end, obc);
199 }
200
201 public static com.liferay.portlet.messageboards.model.MBCategory findByGroupId_First(
202 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
203 throws com.liferay.portal.kernel.exception.SystemException,
204 com.liferay.portlet.messageboards.NoSuchCategoryException {
205 return getPersistence().findByGroupId_First(groupId, obc);
206 }
207
208 public static com.liferay.portlet.messageboards.model.MBCategory findByGroupId_Last(
209 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
210 throws com.liferay.portal.kernel.exception.SystemException,
211 com.liferay.portlet.messageboards.NoSuchCategoryException {
212 return getPersistence().findByGroupId_Last(groupId, obc);
213 }
214
215 public static com.liferay.portlet.messageboards.model.MBCategory[] findByGroupId_PrevAndNext(
216 long categoryId, long groupId,
217 com.liferay.portal.kernel.util.OrderByComparator obc)
218 throws com.liferay.portal.kernel.exception.SystemException,
219 com.liferay.portlet.messageboards.NoSuchCategoryException {
220 return getPersistence()
221 .findByGroupId_PrevAndNext(categoryId, groupId, obc);
222 }
223
224 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
225 long companyId)
226 throws com.liferay.portal.kernel.exception.SystemException {
227 return getPersistence().findByCompanyId(companyId);
228 }
229
230 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
231 long companyId, int start, int end)
232 throws com.liferay.portal.kernel.exception.SystemException {
233 return getPersistence().findByCompanyId(companyId, start, end);
234 }
235
236 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByCompanyId(
237 long companyId, int start, int end,
238 com.liferay.portal.kernel.util.OrderByComparator obc)
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getPersistence().findByCompanyId(companyId, start, end, obc);
241 }
242
243 public static com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_First(
244 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
245 throws com.liferay.portal.kernel.exception.SystemException,
246 com.liferay.portlet.messageboards.NoSuchCategoryException {
247 return getPersistence().findByCompanyId_First(companyId, obc);
248 }
249
250 public static com.liferay.portlet.messageboards.model.MBCategory findByCompanyId_Last(
251 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
252 throws com.liferay.portal.kernel.exception.SystemException,
253 com.liferay.portlet.messageboards.NoSuchCategoryException {
254 return getPersistence().findByCompanyId_Last(companyId, obc);
255 }
256
257 public static com.liferay.portlet.messageboards.model.MBCategory[] findByCompanyId_PrevAndNext(
258 long categoryId, long companyId,
259 com.liferay.portal.kernel.util.OrderByComparator obc)
260 throws com.liferay.portal.kernel.exception.SystemException,
261 com.liferay.portlet.messageboards.NoSuchCategoryException {
262 return getPersistence()
263 .findByCompanyId_PrevAndNext(categoryId, companyId, obc);
264 }
265
266 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
267 long groupId, long parentCategoryId)
268 throws com.liferay.portal.kernel.exception.SystemException {
269 return getPersistence().findByG_P(groupId, parentCategoryId);
270 }
271
272 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
273 long groupId, long parentCategoryId, int start, int end)
274 throws com.liferay.portal.kernel.exception.SystemException {
275 return getPersistence().findByG_P(groupId, parentCategoryId, start, end);
276 }
277
278 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByG_P(
279 long groupId, long parentCategoryId, int start, int end,
280 com.liferay.portal.kernel.util.OrderByComparator obc)
281 throws com.liferay.portal.kernel.exception.SystemException {
282 return getPersistence()
283 .findByG_P(groupId, parentCategoryId, start, end, obc);
284 }
285
286 public static com.liferay.portlet.messageboards.model.MBCategory findByG_P_First(
287 long groupId, long parentCategoryId,
288 com.liferay.portal.kernel.util.OrderByComparator obc)
289 throws com.liferay.portal.kernel.exception.SystemException,
290 com.liferay.portlet.messageboards.NoSuchCategoryException {
291 return getPersistence().findByG_P_First(groupId, parentCategoryId, obc);
292 }
293
294 public static com.liferay.portlet.messageboards.model.MBCategory findByG_P_Last(
295 long groupId, long parentCategoryId,
296 com.liferay.portal.kernel.util.OrderByComparator obc)
297 throws com.liferay.portal.kernel.exception.SystemException,
298 com.liferay.portlet.messageboards.NoSuchCategoryException {
299 return getPersistence().findByG_P_Last(groupId, parentCategoryId, obc);
300 }
301
302 public static com.liferay.portlet.messageboards.model.MBCategory[] findByG_P_PrevAndNext(
303 long categoryId, long groupId, long parentCategoryId,
304 com.liferay.portal.kernel.util.OrderByComparator obc)
305 throws com.liferay.portal.kernel.exception.SystemException,
306 com.liferay.portlet.messageboards.NoSuchCategoryException {
307 return getPersistence()
308 .findByG_P_PrevAndNext(categoryId, groupId,
309 parentCategoryId, obc);
310 }
311
312 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll()
313 throws com.liferay.portal.kernel.exception.SystemException {
314 return getPersistence().findAll();
315 }
316
317 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll(
318 int start, int end)
319 throws com.liferay.portal.kernel.exception.SystemException {
320 return getPersistence().findAll(start, end);
321 }
322
323 public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findAll(
324 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
325 throws com.liferay.portal.kernel.exception.SystemException {
326 return getPersistence().findAll(start, end, obc);
327 }
328
329 public static void removeByUuid(java.lang.String uuid)
330 throws com.liferay.portal.kernel.exception.SystemException {
331 getPersistence().removeByUuid(uuid);
332 }
333
334 public static void removeByUUID_G(java.lang.String uuid, long groupId)
335 throws com.liferay.portal.kernel.exception.SystemException,
336 com.liferay.portlet.messageboards.NoSuchCategoryException {
337 getPersistence().removeByUUID_G(uuid, groupId);
338 }
339
340 public static void removeByGroupId(long groupId)
341 throws com.liferay.portal.kernel.exception.SystemException {
342 getPersistence().removeByGroupId(groupId);
343 }
344
345 public static void removeByCompanyId(long companyId)
346 throws com.liferay.portal.kernel.exception.SystemException {
347 getPersistence().removeByCompanyId(companyId);
348 }
349
350 public static void removeByG_P(long groupId, long parentCategoryId)
351 throws com.liferay.portal.kernel.exception.SystemException {
352 getPersistence().removeByG_P(groupId, parentCategoryId);
353 }
354
355 public static void removeAll()
356 throws com.liferay.portal.kernel.exception.SystemException {
357 getPersistence().removeAll();
358 }
359
360 public static int countByUuid(java.lang.String uuid)
361 throws com.liferay.portal.kernel.exception.SystemException {
362 return getPersistence().countByUuid(uuid);
363 }
364
365 public static int countByUUID_G(java.lang.String uuid, long groupId)
366 throws com.liferay.portal.kernel.exception.SystemException {
367 return getPersistence().countByUUID_G(uuid, groupId);
368 }
369
370 public static int countByGroupId(long groupId)
371 throws com.liferay.portal.kernel.exception.SystemException {
372 return getPersistence().countByGroupId(groupId);
373 }
374
375 public static int countByCompanyId(long companyId)
376 throws com.liferay.portal.kernel.exception.SystemException {
377 return getPersistence().countByCompanyId(companyId);
378 }
379
380 public static int countByG_P(long groupId, long parentCategoryId)
381 throws com.liferay.portal.kernel.exception.SystemException {
382 return getPersistence().countByG_P(groupId, parentCategoryId);
383 }
384
385 public static int countAll()
386 throws com.liferay.portal.kernel.exception.SystemException {
387 return getPersistence().countAll();
388 }
389
390 public static MBCategoryPersistence getPersistence() {
391 if (_persistence == null) {
392 _persistence = (MBCategoryPersistence)PortalBeanLocatorUtil.locate(MBCategoryPersistence.class.getName());
393 }
394
395 return _persistence;
396 }
397
398 public void setPersistence(MBCategoryPersistence persistence) {
399 _persistence = persistence;
400 }
401
402 private static MBCategoryPersistence _persistence;
403 }