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