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