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