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