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