1
14
15 package com.liferay.portlet.messageboards.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20
21 import com.liferay.portlet.messageboards.model.MBMailingList;
22
23 import java.util.List;
24
25
38 public class MBMailingListUtil {
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 MBMailingList remove(MBMailingList mbMailingList)
66 throws SystemException {
67 return getPersistence().remove(mbMailingList);
68 }
69
70
73 public static MBMailingList update(MBMailingList mbMailingList,
74 boolean merge) throws SystemException {
75 return getPersistence().update(mbMailingList, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portlet.messageboards.model.MBMailingList mbMailingList) {
80 getPersistence().cacheResult(mbMailingList);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> mbMailingLists) {
85 getPersistence().cacheResult(mbMailingLists);
86 }
87
88 public static com.liferay.portlet.messageboards.model.MBMailingList create(
89 long mailingListId) {
90 return getPersistence().create(mailingListId);
91 }
92
93 public static com.liferay.portlet.messageboards.model.MBMailingList remove(
94 long mailingListId)
95 throws com.liferay.portal.kernel.exception.SystemException,
96 com.liferay.portlet.messageboards.NoSuchMailingListException {
97 return getPersistence().remove(mailingListId);
98 }
99
100 public static com.liferay.portlet.messageboards.model.MBMailingList updateImpl(
101 com.liferay.portlet.messageboards.model.MBMailingList mbMailingList,
102 boolean merge)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getPersistence().updateImpl(mbMailingList, merge);
105 }
106
107 public static com.liferay.portlet.messageboards.model.MBMailingList findByPrimaryKey(
108 long mailingListId)
109 throws com.liferay.portal.kernel.exception.SystemException,
110 com.liferay.portlet.messageboards.NoSuchMailingListException {
111 return getPersistence().findByPrimaryKey(mailingListId);
112 }
113
114 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByPrimaryKey(
115 long mailingListId)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getPersistence().fetchByPrimaryKey(mailingListId);
118 }
119
120 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
121 java.lang.String uuid)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return getPersistence().findByUuid(uuid);
124 }
125
126 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
127 java.lang.String uuid, int start, int end)
128 throws com.liferay.portal.kernel.exception.SystemException {
129 return getPersistence().findByUuid(uuid, start, end);
130 }
131
132 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
133 java.lang.String uuid, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
137 }
138
139 public static com.liferay.portlet.messageboards.model.MBMailingList findByUuid_First(
140 java.lang.String uuid,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.kernel.exception.SystemException,
143 com.liferay.portlet.messageboards.NoSuchMailingListException {
144 return getPersistence().findByUuid_First(uuid, orderByComparator);
145 }
146
147 public static com.liferay.portlet.messageboards.model.MBMailingList findByUuid_Last(
148 java.lang.String uuid,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException,
151 com.liferay.portlet.messageboards.NoSuchMailingListException {
152 return getPersistence().findByUuid_Last(uuid, orderByComparator);
153 }
154
155 public static com.liferay.portlet.messageboards.model.MBMailingList[] findByUuid_PrevAndNext(
156 long mailingListId, java.lang.String uuid,
157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158 throws com.liferay.portal.kernel.exception.SystemException,
159 com.liferay.portlet.messageboards.NoSuchMailingListException {
160 return getPersistence()
161 .findByUuid_PrevAndNext(mailingListId, uuid,
162 orderByComparator);
163 }
164
165 public static com.liferay.portlet.messageboards.model.MBMailingList findByUUID_G(
166 java.lang.String uuid, long groupId)
167 throws com.liferay.portal.kernel.exception.SystemException,
168 com.liferay.portlet.messageboards.NoSuchMailingListException {
169 return getPersistence().findByUUID_G(uuid, groupId);
170 }
171
172 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
173 java.lang.String uuid, long groupId)
174 throws com.liferay.portal.kernel.exception.SystemException {
175 return getPersistence().fetchByUUID_G(uuid, groupId);
176 }
177
178 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
179 java.lang.String uuid, long groupId, boolean retrieveFromCache)
180 throws com.liferay.portal.kernel.exception.SystemException {
181 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
182 }
183
184 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
185 boolean active)
186 throws com.liferay.portal.kernel.exception.SystemException {
187 return getPersistence().findByActive(active);
188 }
189
190 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
191 boolean active, int start, int end)
192 throws com.liferay.portal.kernel.exception.SystemException {
193 return getPersistence().findByActive(active, start, end);
194 }
195
196 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
197 boolean active, int start, int end,
198 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getPersistence()
201 .findByActive(active, start, end, orderByComparator);
202 }
203
204 public static com.liferay.portlet.messageboards.model.MBMailingList findByActive_First(
205 boolean active,
206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207 throws com.liferay.portal.kernel.exception.SystemException,
208 com.liferay.portlet.messageboards.NoSuchMailingListException {
209 return getPersistence().findByActive_First(active, orderByComparator);
210 }
211
212 public static com.liferay.portlet.messageboards.model.MBMailingList findByActive_Last(
213 boolean active,
214 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
215 throws com.liferay.portal.kernel.exception.SystemException,
216 com.liferay.portlet.messageboards.NoSuchMailingListException {
217 return getPersistence().findByActive_Last(active, orderByComparator);
218 }
219
220 public static com.liferay.portlet.messageboards.model.MBMailingList[] findByActive_PrevAndNext(
221 long mailingListId, boolean active,
222 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223 throws com.liferay.portal.kernel.exception.SystemException,
224 com.liferay.portlet.messageboards.NoSuchMailingListException {
225 return getPersistence()
226 .findByActive_PrevAndNext(mailingListId, active,
227 orderByComparator);
228 }
229
230 public static com.liferay.portlet.messageboards.model.MBMailingList findByG_C(
231 long groupId, long categoryId)
232 throws com.liferay.portal.kernel.exception.SystemException,
233 com.liferay.portlet.messageboards.NoSuchMailingListException {
234 return getPersistence().findByG_C(groupId, categoryId);
235 }
236
237 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByG_C(
238 long groupId, long categoryId)
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getPersistence().fetchByG_C(groupId, categoryId);
241 }
242
243 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByG_C(
244 long groupId, long categoryId, boolean retrieveFromCache)
245 throws com.liferay.portal.kernel.exception.SystemException {
246 return getPersistence()
247 .fetchByG_C(groupId, categoryId, retrieveFromCache);
248 }
249
250 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll()
251 throws com.liferay.portal.kernel.exception.SystemException {
252 return getPersistence().findAll();
253 }
254
255 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
256 int start, int end)
257 throws com.liferay.portal.kernel.exception.SystemException {
258 return getPersistence().findAll(start, end);
259 }
260
261 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
262 int start, int end,
263 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264 throws com.liferay.portal.kernel.exception.SystemException {
265 return getPersistence().findAll(start, end, orderByComparator);
266 }
267
268 public static void removeByUuid(java.lang.String uuid)
269 throws com.liferay.portal.kernel.exception.SystemException {
270 getPersistence().removeByUuid(uuid);
271 }
272
273 public static void removeByUUID_G(java.lang.String uuid, long groupId)
274 throws com.liferay.portal.kernel.exception.SystemException,
275 com.liferay.portlet.messageboards.NoSuchMailingListException {
276 getPersistence().removeByUUID_G(uuid, groupId);
277 }
278
279 public static void removeByActive(boolean active)
280 throws com.liferay.portal.kernel.exception.SystemException {
281 getPersistence().removeByActive(active);
282 }
283
284 public static void removeByG_C(long groupId, long categoryId)
285 throws com.liferay.portal.kernel.exception.SystemException,
286 com.liferay.portlet.messageboards.NoSuchMailingListException {
287 getPersistence().removeByG_C(groupId, categoryId);
288 }
289
290 public static void removeAll()
291 throws com.liferay.portal.kernel.exception.SystemException {
292 getPersistence().removeAll();
293 }
294
295 public static int countByUuid(java.lang.String uuid)
296 throws com.liferay.portal.kernel.exception.SystemException {
297 return getPersistence().countByUuid(uuid);
298 }
299
300 public static int countByUUID_G(java.lang.String uuid, long groupId)
301 throws com.liferay.portal.kernel.exception.SystemException {
302 return getPersistence().countByUUID_G(uuid, groupId);
303 }
304
305 public static int countByActive(boolean active)
306 throws com.liferay.portal.kernel.exception.SystemException {
307 return getPersistence().countByActive(active);
308 }
309
310 public static int countByG_C(long groupId, long categoryId)
311 throws com.liferay.portal.kernel.exception.SystemException {
312 return getPersistence().countByG_C(groupId, categoryId);
313 }
314
315 public static int countAll()
316 throws com.liferay.portal.kernel.exception.SystemException {
317 return getPersistence().countAll();
318 }
319
320 public static MBMailingListPersistence getPersistence() {
321 if (_persistence == null) {
322 _persistence = (MBMailingListPersistence)PortalBeanLocatorUtil.locate(MBMailingListPersistence.class.getName());
323 }
324
325 return _persistence;
326 }
327
328 public void setPersistence(MBMailingListPersistence persistence) {
329 _persistence = persistence;
330 }
331
332 private static MBMailingListPersistence _persistence;
333 }