001
014
015 package com.liferay.portlet.messageboards.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.service.ServiceContext;
022
023 import com.liferay.portlet.messageboards.model.MBMailingList;
024
025 import java.util.List;
026
027
033 public class MBMailingListUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(MBMailingList mbMailingList) {
045 getPersistence().clearCache(mbMailingList);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<MBMailingList> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<MBMailingList> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<MBMailingList> findWithDynamicQuery(
077 DynamicQuery dynamicQuery, int start, int end,
078 OrderByComparator orderByComparator) throws SystemException {
079 return getPersistence()
080 .findWithDynamicQuery(dynamicQuery, start, end,
081 orderByComparator);
082 }
083
084
087 public static MBMailingList remove(MBMailingList mbMailingList)
088 throws SystemException {
089 return getPersistence().remove(mbMailingList);
090 }
091
092
095 public static MBMailingList update(MBMailingList mbMailingList,
096 boolean merge) throws SystemException {
097 return getPersistence().update(mbMailingList, merge);
098 }
099
100
103 public static MBMailingList update(MBMailingList mbMailingList,
104 boolean merge, ServiceContext serviceContext) throws SystemException {
105 return getPersistence().update(mbMailingList, merge, serviceContext);
106 }
107
108 public static void cacheResult(
109 com.liferay.portlet.messageboards.model.MBMailingList mbMailingList) {
110 getPersistence().cacheResult(mbMailingList);
111 }
112
113 public static void cacheResult(
114 java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> mbMailingLists) {
115 getPersistence().cacheResult(mbMailingLists);
116 }
117
118 public static com.liferay.portlet.messageboards.model.MBMailingList create(
119 long mailingListId) {
120 return getPersistence().create(mailingListId);
121 }
122
123 public static com.liferay.portlet.messageboards.model.MBMailingList remove(
124 long mailingListId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.messageboards.NoSuchMailingListException {
127 return getPersistence().remove(mailingListId);
128 }
129
130 public static com.liferay.portlet.messageboards.model.MBMailingList updateImpl(
131 com.liferay.portlet.messageboards.model.MBMailingList mbMailingList,
132 boolean merge)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().updateImpl(mbMailingList, merge);
135 }
136
137 public static com.liferay.portlet.messageboards.model.MBMailingList findByPrimaryKey(
138 long mailingListId)
139 throws com.liferay.portal.kernel.exception.SystemException,
140 com.liferay.portlet.messageboards.NoSuchMailingListException {
141 return getPersistence().findByPrimaryKey(mailingListId);
142 }
143
144 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByPrimaryKey(
145 long mailingListId)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence().fetchByPrimaryKey(mailingListId);
148 }
149
150 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
151 java.lang.String uuid)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getPersistence().findByUuid(uuid);
154 }
155
156 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
157 java.lang.String uuid, int start, int end)
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return getPersistence().findByUuid(uuid, start, end);
160 }
161
162 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
163 java.lang.String uuid, int start, int end,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
167 }
168
169 public static com.liferay.portlet.messageboards.model.MBMailingList findByUuid_First(
170 java.lang.String uuid,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.kernel.exception.SystemException,
173 com.liferay.portlet.messageboards.NoSuchMailingListException {
174 return getPersistence().findByUuid_First(uuid, orderByComparator);
175 }
176
177 public static com.liferay.portlet.messageboards.model.MBMailingList findByUuid_Last(
178 java.lang.String uuid,
179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180 throws com.liferay.portal.kernel.exception.SystemException,
181 com.liferay.portlet.messageboards.NoSuchMailingListException {
182 return getPersistence().findByUuid_Last(uuid, orderByComparator);
183 }
184
185 public static com.liferay.portlet.messageboards.model.MBMailingList[] findByUuid_PrevAndNext(
186 long mailingListId, java.lang.String uuid,
187 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188 throws com.liferay.portal.kernel.exception.SystemException,
189 com.liferay.portlet.messageboards.NoSuchMailingListException {
190 return getPersistence()
191 .findByUuid_PrevAndNext(mailingListId, uuid,
192 orderByComparator);
193 }
194
195 public static com.liferay.portlet.messageboards.model.MBMailingList findByUUID_G(
196 java.lang.String uuid, long groupId)
197 throws com.liferay.portal.kernel.exception.SystemException,
198 com.liferay.portlet.messageboards.NoSuchMailingListException {
199 return getPersistence().findByUUID_G(uuid, groupId);
200 }
201
202 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
203 java.lang.String uuid, long groupId)
204 throws com.liferay.portal.kernel.exception.SystemException {
205 return getPersistence().fetchByUUID_G(uuid, groupId);
206 }
207
208 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
209 java.lang.String uuid, long groupId, boolean retrieveFromCache)
210 throws com.liferay.portal.kernel.exception.SystemException {
211 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
212 }
213
214 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
215 boolean active)
216 throws com.liferay.portal.kernel.exception.SystemException {
217 return getPersistence().findByActive(active);
218 }
219
220 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
221 boolean active, int start, int end)
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return getPersistence().findByActive(active, start, end);
224 }
225
226 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
227 boolean active, int start, int end,
228 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229 throws com.liferay.portal.kernel.exception.SystemException {
230 return getPersistence()
231 .findByActive(active, start, end, orderByComparator);
232 }
233
234 public static com.liferay.portlet.messageboards.model.MBMailingList findByActive_First(
235 boolean active,
236 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
237 throws com.liferay.portal.kernel.exception.SystemException,
238 com.liferay.portlet.messageboards.NoSuchMailingListException {
239 return getPersistence().findByActive_First(active, orderByComparator);
240 }
241
242 public static com.liferay.portlet.messageboards.model.MBMailingList findByActive_Last(
243 boolean active,
244 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245 throws com.liferay.portal.kernel.exception.SystemException,
246 com.liferay.portlet.messageboards.NoSuchMailingListException {
247 return getPersistence().findByActive_Last(active, orderByComparator);
248 }
249
250 public static com.liferay.portlet.messageboards.model.MBMailingList[] findByActive_PrevAndNext(
251 long mailingListId, boolean active,
252 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
253 throws com.liferay.portal.kernel.exception.SystemException,
254 com.liferay.portlet.messageboards.NoSuchMailingListException {
255 return getPersistence()
256 .findByActive_PrevAndNext(mailingListId, active,
257 orderByComparator);
258 }
259
260 public static com.liferay.portlet.messageboards.model.MBMailingList findByG_C(
261 long groupId, long categoryId)
262 throws com.liferay.portal.kernel.exception.SystemException,
263 com.liferay.portlet.messageboards.NoSuchMailingListException {
264 return getPersistence().findByG_C(groupId, categoryId);
265 }
266
267 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByG_C(
268 long groupId, long categoryId)
269 throws com.liferay.portal.kernel.exception.SystemException {
270 return getPersistence().fetchByG_C(groupId, categoryId);
271 }
272
273 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByG_C(
274 long groupId, long categoryId, boolean retrieveFromCache)
275 throws com.liferay.portal.kernel.exception.SystemException {
276 return getPersistence()
277 .fetchByG_C(groupId, categoryId, retrieveFromCache);
278 }
279
280 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll()
281 throws com.liferay.portal.kernel.exception.SystemException {
282 return getPersistence().findAll();
283 }
284
285 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
286 int start, int end)
287 throws com.liferay.portal.kernel.exception.SystemException {
288 return getPersistence().findAll(start, end);
289 }
290
291 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
292 int start, int end,
293 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294 throws com.liferay.portal.kernel.exception.SystemException {
295 return getPersistence().findAll(start, end, orderByComparator);
296 }
297
298 public static void removeByUuid(java.lang.String uuid)
299 throws com.liferay.portal.kernel.exception.SystemException {
300 getPersistence().removeByUuid(uuid);
301 }
302
303 public static void removeByUUID_G(java.lang.String uuid, long groupId)
304 throws com.liferay.portal.kernel.exception.SystemException,
305 com.liferay.portlet.messageboards.NoSuchMailingListException {
306 getPersistence().removeByUUID_G(uuid, groupId);
307 }
308
309 public static void removeByActive(boolean active)
310 throws com.liferay.portal.kernel.exception.SystemException {
311 getPersistence().removeByActive(active);
312 }
313
314 public static void removeByG_C(long groupId, long categoryId)
315 throws com.liferay.portal.kernel.exception.SystemException,
316 com.liferay.portlet.messageboards.NoSuchMailingListException {
317 getPersistence().removeByG_C(groupId, categoryId);
318 }
319
320 public static void removeAll()
321 throws com.liferay.portal.kernel.exception.SystemException {
322 getPersistence().removeAll();
323 }
324
325 public static int countByUuid(java.lang.String uuid)
326 throws com.liferay.portal.kernel.exception.SystemException {
327 return getPersistence().countByUuid(uuid);
328 }
329
330 public static int countByUUID_G(java.lang.String uuid, long groupId)
331 throws com.liferay.portal.kernel.exception.SystemException {
332 return getPersistence().countByUUID_G(uuid, groupId);
333 }
334
335 public static int countByActive(boolean active)
336 throws com.liferay.portal.kernel.exception.SystemException {
337 return getPersistence().countByActive(active);
338 }
339
340 public static int countByG_C(long groupId, long categoryId)
341 throws com.liferay.portal.kernel.exception.SystemException {
342 return getPersistence().countByG_C(groupId, categoryId);
343 }
344
345 public static int countAll()
346 throws com.liferay.portal.kernel.exception.SystemException {
347 return getPersistence().countAll();
348 }
349
350 public static MBMailingListPersistence getPersistence() {
351 if (_persistence == null) {
352 _persistence = (MBMailingListPersistence)PortalBeanLocatorUtil.locate(MBMailingListPersistence.class.getName());
353 }
354
355 return _persistence;
356 }
357
358 public void setPersistence(MBMailingListPersistence persistence) {
359 _persistence = persistence;
360 }
361
362 private static MBMailingListPersistence _persistence;
363 }