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