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.MBStatsUser;
024
025 import java.util.List;
026
027
033 public class MBStatsUserUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(MBStatsUser mbStatsUser) {
045 getPersistence().clearCache(mbStatsUser);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<MBStatsUser> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<MBStatsUser> 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<MBStatsUser> 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 MBStatsUser remove(MBStatsUser mbStatsUser)
088 throws SystemException {
089 return getPersistence().remove(mbStatsUser);
090 }
091
092
095 public static MBStatsUser update(MBStatsUser mbStatsUser, boolean merge)
096 throws SystemException {
097 return getPersistence().update(mbStatsUser, merge);
098 }
099
100
103 public static MBStatsUser update(MBStatsUser mbStatsUser, boolean merge,
104 ServiceContext serviceContext) throws SystemException {
105 return getPersistence().update(mbStatsUser, merge, serviceContext);
106 }
107
108 public static void cacheResult(
109 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser) {
110 getPersistence().cacheResult(mbStatsUser);
111 }
112
113 public static void cacheResult(
114 java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> mbStatsUsers) {
115 getPersistence().cacheResult(mbStatsUsers);
116 }
117
118 public static com.liferay.portlet.messageboards.model.MBStatsUser create(
119 long statsUserId) {
120 return getPersistence().create(statsUserId);
121 }
122
123 public static com.liferay.portlet.messageboards.model.MBStatsUser remove(
124 long statsUserId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.messageboards.NoSuchStatsUserException {
127 return getPersistence().remove(statsUserId);
128 }
129
130 public static com.liferay.portlet.messageboards.model.MBStatsUser updateImpl(
131 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser,
132 boolean merge)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().updateImpl(mbStatsUser, merge);
135 }
136
137 public static com.liferay.portlet.messageboards.model.MBStatsUser findByPrimaryKey(
138 long statsUserId)
139 throws com.liferay.portal.kernel.exception.SystemException,
140 com.liferay.portlet.messageboards.NoSuchStatsUserException {
141 return getPersistence().findByPrimaryKey(statsUserId);
142 }
143
144 public static com.liferay.portlet.messageboards.model.MBStatsUser fetchByPrimaryKey(
145 long statsUserId)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence().fetchByPrimaryKey(statsUserId);
148 }
149
150 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
151 long groupId)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getPersistence().findByGroupId(groupId);
154 }
155
156 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
157 long groupId, int start, int end)
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return getPersistence().findByGroupId(groupId, start, end);
160 }
161
162 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId(
163 long groupId, int start, int end,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getPersistence()
167 .findByGroupId(groupId, start, end, orderByComparator);
168 }
169
170 public static com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_First(
171 long groupId,
172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173 throws com.liferay.portal.kernel.exception.SystemException,
174 com.liferay.portlet.messageboards.NoSuchStatsUserException {
175 return getPersistence().findByGroupId_First(groupId, orderByComparator);
176 }
177
178 public static com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_Last(
179 long groupId,
180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181 throws com.liferay.portal.kernel.exception.SystemException,
182 com.liferay.portlet.messageboards.NoSuchStatsUserException {
183 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
184 }
185
186 public static com.liferay.portlet.messageboards.model.MBStatsUser[] findByGroupId_PrevAndNext(
187 long statsUserId, long groupId,
188 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189 throws com.liferay.portal.kernel.exception.SystemException,
190 com.liferay.portlet.messageboards.NoSuchStatsUserException {
191 return getPersistence()
192 .findByGroupId_PrevAndNext(statsUserId, groupId,
193 orderByComparator);
194 }
195
196 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
197 long userId) throws com.liferay.portal.kernel.exception.SystemException {
198 return getPersistence().findByUserId(userId);
199 }
200
201 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
202 long userId, int start, int end)
203 throws com.liferay.portal.kernel.exception.SystemException {
204 return getPersistence().findByUserId(userId, start, end);
205 }
206
207 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId(
208 long userId, int start, int end,
209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210 throws com.liferay.portal.kernel.exception.SystemException {
211 return getPersistence()
212 .findByUserId(userId, start, end, orderByComparator);
213 }
214
215 public static com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_First(
216 long userId,
217 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
218 throws com.liferay.portal.kernel.exception.SystemException,
219 com.liferay.portlet.messageboards.NoSuchStatsUserException {
220 return getPersistence().findByUserId_First(userId, orderByComparator);
221 }
222
223 public static com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_Last(
224 long userId,
225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226 throws com.liferay.portal.kernel.exception.SystemException,
227 com.liferay.portlet.messageboards.NoSuchStatsUserException {
228 return getPersistence().findByUserId_Last(userId, orderByComparator);
229 }
230
231 public static com.liferay.portlet.messageboards.model.MBStatsUser[] findByUserId_PrevAndNext(
232 long statsUserId, long userId,
233 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234 throws com.liferay.portal.kernel.exception.SystemException,
235 com.liferay.portlet.messageboards.NoSuchStatsUserException {
236 return getPersistence()
237 .findByUserId_PrevAndNext(statsUserId, userId,
238 orderByComparator);
239 }
240
241 public static com.liferay.portlet.messageboards.model.MBStatsUser findByG_U(
242 long groupId, long userId)
243 throws com.liferay.portal.kernel.exception.SystemException,
244 com.liferay.portlet.messageboards.NoSuchStatsUserException {
245 return getPersistence().findByG_U(groupId, userId);
246 }
247
248 public static com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
249 long groupId, long userId)
250 throws com.liferay.portal.kernel.exception.SystemException {
251 return getPersistence().fetchByG_U(groupId, userId);
252 }
253
254 public static com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U(
255 long groupId, long userId, boolean retrieveFromCache)
256 throws com.liferay.portal.kernel.exception.SystemException {
257 return getPersistence().fetchByG_U(groupId, userId, retrieveFromCache);
258 }
259
260 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotM(
261 long groupId, int messageCount)
262 throws com.liferay.portal.kernel.exception.SystemException {
263 return getPersistence().findByG_NotM(groupId, messageCount);
264 }
265
266 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotM(
267 long groupId, int messageCount, int start, int end)
268 throws com.liferay.portal.kernel.exception.SystemException {
269 return getPersistence().findByG_NotM(groupId, messageCount, start, end);
270 }
271
272 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotM(
273 long groupId, int messageCount, int start, int end,
274 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275 throws com.liferay.portal.kernel.exception.SystemException {
276 return getPersistence()
277 .findByG_NotM(groupId, messageCount, start, end,
278 orderByComparator);
279 }
280
281 public static com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotM_First(
282 long groupId, int messageCount,
283 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284 throws com.liferay.portal.kernel.exception.SystemException,
285 com.liferay.portlet.messageboards.NoSuchStatsUserException {
286 return getPersistence()
287 .findByG_NotM_First(groupId, messageCount, orderByComparator);
288 }
289
290 public static com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotM_Last(
291 long groupId, int messageCount,
292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293 throws com.liferay.portal.kernel.exception.SystemException,
294 com.liferay.portlet.messageboards.NoSuchStatsUserException {
295 return getPersistence()
296 .findByG_NotM_Last(groupId, messageCount, orderByComparator);
297 }
298
299 public static com.liferay.portlet.messageboards.model.MBStatsUser[] findByG_NotM_PrevAndNext(
300 long statsUserId, long groupId, int messageCount,
301 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
302 throws com.liferay.portal.kernel.exception.SystemException,
303 com.liferay.portlet.messageboards.NoSuchStatsUserException {
304 return getPersistence()
305 .findByG_NotM_PrevAndNext(statsUserId, groupId,
306 messageCount, orderByComparator);
307 }
308
309 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll()
310 throws com.liferay.portal.kernel.exception.SystemException {
311 return getPersistence().findAll();
312 }
313
314 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
315 int start, int end)
316 throws com.liferay.portal.kernel.exception.SystemException {
317 return getPersistence().findAll(start, end);
318 }
319
320 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll(
321 int start, int end,
322 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
323 throws com.liferay.portal.kernel.exception.SystemException {
324 return getPersistence().findAll(start, end, orderByComparator);
325 }
326
327 public static void removeByGroupId(long groupId)
328 throws com.liferay.portal.kernel.exception.SystemException {
329 getPersistence().removeByGroupId(groupId);
330 }
331
332 public static void removeByUserId(long userId)
333 throws com.liferay.portal.kernel.exception.SystemException {
334 getPersistence().removeByUserId(userId);
335 }
336
337 public static void removeByG_U(long groupId, long userId)
338 throws com.liferay.portal.kernel.exception.SystemException,
339 com.liferay.portlet.messageboards.NoSuchStatsUserException {
340 getPersistence().removeByG_U(groupId, userId);
341 }
342
343 public static void removeByG_NotM(long groupId, int messageCount)
344 throws com.liferay.portal.kernel.exception.SystemException {
345 getPersistence().removeByG_NotM(groupId, messageCount);
346 }
347
348 public static void removeAll()
349 throws com.liferay.portal.kernel.exception.SystemException {
350 getPersistence().removeAll();
351 }
352
353 public static int countByGroupId(long groupId)
354 throws com.liferay.portal.kernel.exception.SystemException {
355 return getPersistence().countByGroupId(groupId);
356 }
357
358 public static int countByUserId(long userId)
359 throws com.liferay.portal.kernel.exception.SystemException {
360 return getPersistence().countByUserId(userId);
361 }
362
363 public static int countByG_U(long groupId, long userId)
364 throws com.liferay.portal.kernel.exception.SystemException {
365 return getPersistence().countByG_U(groupId, userId);
366 }
367
368 public static int countByG_NotM(long groupId, int messageCount)
369 throws com.liferay.portal.kernel.exception.SystemException {
370 return getPersistence().countByG_NotM(groupId, messageCount);
371 }
372
373 public static int countAll()
374 throws com.liferay.portal.kernel.exception.SystemException {
375 return getPersistence().countAll();
376 }
377
378 public static MBStatsUserPersistence getPersistence() {
379 if (_persistence == null) {
380 _persistence = (MBStatsUserPersistence)PortalBeanLocatorUtil.locate(MBStatsUserPersistence.class.getName());
381 }
382
383 return _persistence;
384 }
385
386 public void setPersistence(MBStatsUserPersistence persistence) {
387 _persistence = persistence;
388 }
389
390 private static MBStatsUserPersistence _persistence;
391 }