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