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