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