1
19
20 package com.liferay.portlet.messageboards.service.persistence;
21
22
28 public class MBMailingListUtil {
29 public static void cacheResult(
30 com.liferay.portlet.messageboards.model.MBMailingList mbMailingList) {
31 getPersistence().cacheResult(mbMailingList);
32 }
33
34 public static void cacheResult(
35 java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> mbMailingLists) {
36 getPersistence().cacheResult(mbMailingLists);
37 }
38
39 public static void clearCache() {
40 getPersistence().clearCache();
41 }
42
43 public static com.liferay.portlet.messageboards.model.MBMailingList create(
44 long mailingListId) {
45 return getPersistence().create(mailingListId);
46 }
47
48 public static com.liferay.portlet.messageboards.model.MBMailingList remove(
49 long mailingListId)
50 throws com.liferay.portal.SystemException,
51 com.liferay.portlet.messageboards.NoSuchMailingListException {
52 return getPersistence().remove(mailingListId);
53 }
54
55 public static com.liferay.portlet.messageboards.model.MBMailingList remove(
56 com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
57 throws com.liferay.portal.SystemException {
58 return getPersistence().remove(mbMailingList);
59 }
60
61
64 public static com.liferay.portlet.messageboards.model.MBMailingList update(
65 com.liferay.portlet.messageboards.model.MBMailingList mbMailingList)
66 throws com.liferay.portal.SystemException {
67 return getPersistence().update(mbMailingList);
68 }
69
70
83 public static com.liferay.portlet.messageboards.model.MBMailingList update(
84 com.liferay.portlet.messageboards.model.MBMailingList mbMailingList,
85 boolean merge) throws com.liferay.portal.SystemException {
86 return getPersistence().update(mbMailingList, merge);
87 }
88
89 public static com.liferay.portlet.messageboards.model.MBMailingList updateImpl(
90 com.liferay.portlet.messageboards.model.MBMailingList mbMailingList,
91 boolean merge) throws com.liferay.portal.SystemException {
92 return getPersistence().updateImpl(mbMailingList, merge);
93 }
94
95 public static com.liferay.portlet.messageboards.model.MBMailingList findByPrimaryKey(
96 long mailingListId)
97 throws com.liferay.portal.SystemException,
98 com.liferay.portlet.messageboards.NoSuchMailingListException {
99 return getPersistence().findByPrimaryKey(mailingListId);
100 }
101
102 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByPrimaryKey(
103 long mailingListId) throws com.liferay.portal.SystemException {
104 return getPersistence().fetchByPrimaryKey(mailingListId);
105 }
106
107 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
108 java.lang.String uuid) throws com.liferay.portal.SystemException {
109 return getPersistence().findByUuid(uuid);
110 }
111
112 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
113 java.lang.String uuid, int start, int end)
114 throws com.liferay.portal.SystemException {
115 return getPersistence().findByUuid(uuid, start, end);
116 }
117
118 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByUuid(
119 java.lang.String uuid, int start, int end,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().findByUuid(uuid, start, end, obc);
123 }
124
125 public static com.liferay.portlet.messageboards.model.MBMailingList findByUuid_First(
126 java.lang.String uuid,
127 com.liferay.portal.kernel.util.OrderByComparator obc)
128 throws com.liferay.portal.SystemException,
129 com.liferay.portlet.messageboards.NoSuchMailingListException {
130 return getPersistence().findByUuid_First(uuid, obc);
131 }
132
133 public static com.liferay.portlet.messageboards.model.MBMailingList findByUuid_Last(
134 java.lang.String uuid,
135 com.liferay.portal.kernel.util.OrderByComparator obc)
136 throws com.liferay.portal.SystemException,
137 com.liferay.portlet.messageboards.NoSuchMailingListException {
138 return getPersistence().findByUuid_Last(uuid, obc);
139 }
140
141 public static com.liferay.portlet.messageboards.model.MBMailingList[] findByUuid_PrevAndNext(
142 long mailingListId, java.lang.String uuid,
143 com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.SystemException,
145 com.liferay.portlet.messageboards.NoSuchMailingListException {
146 return getPersistence().findByUuid_PrevAndNext(mailingListId, uuid, obc);
147 }
148
149 public static com.liferay.portlet.messageboards.model.MBMailingList findByUUID_G(
150 java.lang.String uuid, long groupId)
151 throws com.liferay.portal.SystemException,
152 com.liferay.portlet.messageboards.NoSuchMailingListException {
153 return getPersistence().findByUUID_G(uuid, groupId);
154 }
155
156 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
157 java.lang.String uuid, long groupId)
158 throws com.liferay.portal.SystemException {
159 return getPersistence().fetchByUUID_G(uuid, groupId);
160 }
161
162 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByUUID_G(
163 java.lang.String uuid, long groupId, boolean retrieveFromCache)
164 throws com.liferay.portal.SystemException {
165 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
166 }
167
168 public static com.liferay.portlet.messageboards.model.MBMailingList findByCategoryId(
169 long categoryId)
170 throws com.liferay.portal.SystemException,
171 com.liferay.portlet.messageboards.NoSuchMailingListException {
172 return getPersistence().findByCategoryId(categoryId);
173 }
174
175 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByCategoryId(
176 long categoryId) throws com.liferay.portal.SystemException {
177 return getPersistence().fetchByCategoryId(categoryId);
178 }
179
180 public static com.liferay.portlet.messageboards.model.MBMailingList fetchByCategoryId(
181 long categoryId, boolean retrieveFromCache)
182 throws com.liferay.portal.SystemException {
183 return getPersistence().fetchByCategoryId(categoryId, retrieveFromCache);
184 }
185
186 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
187 boolean active) throws com.liferay.portal.SystemException {
188 return getPersistence().findByActive(active);
189 }
190
191 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
192 boolean active, int start, int end)
193 throws com.liferay.portal.SystemException {
194 return getPersistence().findByActive(active, start, end);
195 }
196
197 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findByActive(
198 boolean active, int start, int end,
199 com.liferay.portal.kernel.util.OrderByComparator obc)
200 throws com.liferay.portal.SystemException {
201 return getPersistence().findByActive(active, start, end, obc);
202 }
203
204 public static com.liferay.portlet.messageboards.model.MBMailingList findByActive_First(
205 boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
206 throws com.liferay.portal.SystemException,
207 com.liferay.portlet.messageboards.NoSuchMailingListException {
208 return getPersistence().findByActive_First(active, obc);
209 }
210
211 public static com.liferay.portlet.messageboards.model.MBMailingList findByActive_Last(
212 boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
213 throws com.liferay.portal.SystemException,
214 com.liferay.portlet.messageboards.NoSuchMailingListException {
215 return getPersistence().findByActive_Last(active, obc);
216 }
217
218 public static com.liferay.portlet.messageboards.model.MBMailingList[] findByActive_PrevAndNext(
219 long mailingListId, boolean active,
220 com.liferay.portal.kernel.util.OrderByComparator obc)
221 throws com.liferay.portal.SystemException,
222 com.liferay.portlet.messageboards.NoSuchMailingListException {
223 return getPersistence()
224 .findByActive_PrevAndNext(mailingListId, active, obc);
225 }
226
227 public static java.util.List<Object> findWithDynamicQuery(
228 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
229 throws com.liferay.portal.SystemException {
230 return getPersistence().findWithDynamicQuery(dynamicQuery);
231 }
232
233 public static java.util.List<Object> findWithDynamicQuery(
234 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
235 int end) throws com.liferay.portal.SystemException {
236 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
237 }
238
239 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll()
240 throws com.liferay.portal.SystemException {
241 return getPersistence().findAll();
242 }
243
244 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
245 int start, int end) throws com.liferay.portal.SystemException {
246 return getPersistence().findAll(start, end);
247 }
248
249 public static java.util.List<com.liferay.portlet.messageboards.model.MBMailingList> findAll(
250 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
251 throws com.liferay.portal.SystemException {
252 return getPersistence().findAll(start, end, obc);
253 }
254
255 public static void removeByUuid(java.lang.String uuid)
256 throws com.liferay.portal.SystemException {
257 getPersistence().removeByUuid(uuid);
258 }
259
260 public static void removeByUUID_G(java.lang.String uuid, long groupId)
261 throws com.liferay.portal.SystemException,
262 com.liferay.portlet.messageboards.NoSuchMailingListException {
263 getPersistence().removeByUUID_G(uuid, groupId);
264 }
265
266 public static void removeByCategoryId(long categoryId)
267 throws com.liferay.portal.SystemException,
268 com.liferay.portlet.messageboards.NoSuchMailingListException {
269 getPersistence().removeByCategoryId(categoryId);
270 }
271
272 public static void removeByActive(boolean active)
273 throws com.liferay.portal.SystemException {
274 getPersistence().removeByActive(active);
275 }
276
277 public static void removeAll() throws com.liferay.portal.SystemException {
278 getPersistence().removeAll();
279 }
280
281 public static int countByUuid(java.lang.String uuid)
282 throws com.liferay.portal.SystemException {
283 return getPersistence().countByUuid(uuid);
284 }
285
286 public static int countByUUID_G(java.lang.String uuid, long groupId)
287 throws com.liferay.portal.SystemException {
288 return getPersistence().countByUUID_G(uuid, groupId);
289 }
290
291 public static int countByCategoryId(long categoryId)
292 throws com.liferay.portal.SystemException {
293 return getPersistence().countByCategoryId(categoryId);
294 }
295
296 public static int countByActive(boolean active)
297 throws com.liferay.portal.SystemException {
298 return getPersistence().countByActive(active);
299 }
300
301 public static int countAll() throws com.liferay.portal.SystemException {
302 return getPersistence().countAll();
303 }
304
305 public static MBMailingListPersistence getPersistence() {
306 return _persistence;
307 }
308
309 public void setPersistence(MBMailingListPersistence persistence) {
310 _persistence = persistence;
311 }
312
313 private static MBMailingListPersistence _persistence;
314 }