1
14
15 package com.liferay.portlet.blogs.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20
21 import com.liferay.portlet.blogs.model.BlogsStatsUser;
22
23 import java.util.List;
24
25
38 public class BlogsStatsUserUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(BlogsStatsUser blogsStatsUser) {
50 getPersistence().clearCache(blogsStatsUser);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<BlogsStatsUser> findWithDynamicQuery(
65 DynamicQuery dynamicQuery) throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<BlogsStatsUser> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static BlogsStatsUser remove(BlogsStatsUser blogsStatsUser)
82 throws SystemException {
83 return getPersistence().remove(blogsStatsUser);
84 }
85
86
89 public static BlogsStatsUser update(BlogsStatsUser blogsStatsUser,
90 boolean merge) throws SystemException {
91 return getPersistence().update(blogsStatsUser, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser) {
96 getPersistence().cacheResult(blogsStatsUser);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> blogsStatsUsers) {
101 getPersistence().cacheResult(blogsStatsUsers);
102 }
103
104 public static com.liferay.portlet.blogs.model.BlogsStatsUser create(
105 long statsUserId) {
106 return getPersistence().create(statsUserId);
107 }
108
109 public static com.liferay.portlet.blogs.model.BlogsStatsUser remove(
110 long statsUserId)
111 throws com.liferay.portal.kernel.exception.SystemException,
112 com.liferay.portlet.blogs.NoSuchStatsUserException {
113 return getPersistence().remove(statsUserId);
114 }
115
116 public static com.liferay.portlet.blogs.model.BlogsStatsUser updateImpl(
117 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
118 boolean merge)
119 throws com.liferay.portal.kernel.exception.SystemException {
120 return getPersistence().updateImpl(blogsStatsUser, merge);
121 }
122
123 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByPrimaryKey(
124 long statsUserId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.blogs.NoSuchStatsUserException {
127 return getPersistence().findByPrimaryKey(statsUserId);
128 }
129
130 public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByPrimaryKey(
131 long statsUserId)
132 throws com.liferay.portal.kernel.exception.SystemException {
133 return getPersistence().fetchByPrimaryKey(statsUserId);
134 }
135
136 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
137 long groupId)
138 throws com.liferay.portal.kernel.exception.SystemException {
139 return getPersistence().findByGroupId(groupId);
140 }
141
142 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
143 long groupId, int start, int end)
144 throws com.liferay.portal.kernel.exception.SystemException {
145 return getPersistence().findByGroupId(groupId, start, end);
146 }
147
148 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
149 long groupId, int start, int end,
150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getPersistence()
153 .findByGroupId(groupId, start, end, orderByComparator);
154 }
155
156 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_First(
157 long groupId,
158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159 throws com.liferay.portal.kernel.exception.SystemException,
160 com.liferay.portlet.blogs.NoSuchStatsUserException {
161 return getPersistence().findByGroupId_First(groupId, orderByComparator);
162 }
163
164 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_Last(
165 long groupId,
166 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167 throws com.liferay.portal.kernel.exception.SystemException,
168 com.liferay.portlet.blogs.NoSuchStatsUserException {
169 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
170 }
171
172 public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByGroupId_PrevAndNext(
173 long statsUserId, long groupId,
174 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175 throws com.liferay.portal.kernel.exception.SystemException,
176 com.liferay.portlet.blogs.NoSuchStatsUserException {
177 return getPersistence()
178 .findByGroupId_PrevAndNext(statsUserId, groupId,
179 orderByComparator);
180 }
181
182 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
183 long userId) throws com.liferay.portal.kernel.exception.SystemException {
184 return getPersistence().findByUserId(userId);
185 }
186
187 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
188 long userId, int start, int end)
189 throws com.liferay.portal.kernel.exception.SystemException {
190 return getPersistence().findByUserId(userId, start, end);
191 }
192
193 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
194 long userId, int start, int end,
195 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196 throws com.liferay.portal.kernel.exception.SystemException {
197 return getPersistence()
198 .findByUserId(userId, start, end, orderByComparator);
199 }
200
201 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_First(
202 long userId,
203 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204 throws com.liferay.portal.kernel.exception.SystemException,
205 com.liferay.portlet.blogs.NoSuchStatsUserException {
206 return getPersistence().findByUserId_First(userId, orderByComparator);
207 }
208
209 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_Last(
210 long userId,
211 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212 throws com.liferay.portal.kernel.exception.SystemException,
213 com.liferay.portlet.blogs.NoSuchStatsUserException {
214 return getPersistence().findByUserId_Last(userId, orderByComparator);
215 }
216
217 public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByUserId_PrevAndNext(
218 long statsUserId, long userId,
219 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220 throws com.liferay.portal.kernel.exception.SystemException,
221 com.liferay.portlet.blogs.NoSuchStatsUserException {
222 return getPersistence()
223 .findByUserId_PrevAndNext(statsUserId, userId,
224 orderByComparator);
225 }
226
227 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_U(
228 long groupId, long userId)
229 throws com.liferay.portal.kernel.exception.SystemException,
230 com.liferay.portlet.blogs.NoSuchStatsUserException {
231 return getPersistence().findByG_U(groupId, userId);
232 }
233
234 public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
235 long groupId, long userId)
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getPersistence().fetchByG_U(groupId, userId);
238 }
239
240 public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
241 long groupId, long userId, boolean retrieveFromCache)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 return getPersistence().fetchByG_U(groupId, userId, retrieveFromCache);
244 }
245
246 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
247 long groupId, int entryCount)
248 throws com.liferay.portal.kernel.exception.SystemException {
249 return getPersistence().findByG_E(groupId, entryCount);
250 }
251
252 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
253 long groupId, int entryCount, int start, int end)
254 throws com.liferay.portal.kernel.exception.SystemException {
255 return getPersistence().findByG_E(groupId, entryCount, start, end);
256 }
257
258 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
259 long groupId, int entryCount, int start, int end,
260 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
261 throws com.liferay.portal.kernel.exception.SystemException {
262 return getPersistence()
263 .findByG_E(groupId, entryCount, start, end, orderByComparator);
264 }
265
266 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_First(
267 long groupId, int entryCount,
268 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
269 throws com.liferay.portal.kernel.exception.SystemException,
270 com.liferay.portlet.blogs.NoSuchStatsUserException {
271 return getPersistence()
272 .findByG_E_First(groupId, entryCount, orderByComparator);
273 }
274
275 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_Last(
276 long groupId, int entryCount,
277 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
278 throws com.liferay.portal.kernel.exception.SystemException,
279 com.liferay.portlet.blogs.NoSuchStatsUserException {
280 return getPersistence()
281 .findByG_E_Last(groupId, entryCount, orderByComparator);
282 }
283
284 public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByG_E_PrevAndNext(
285 long statsUserId, long groupId, int entryCount,
286 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
287 throws com.liferay.portal.kernel.exception.SystemException,
288 com.liferay.portlet.blogs.NoSuchStatsUserException {
289 return getPersistence()
290 .findByG_E_PrevAndNext(statsUserId, groupId, entryCount,
291 orderByComparator);
292 }
293
294 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
295 long companyId, int entryCount)
296 throws com.liferay.portal.kernel.exception.SystemException {
297 return getPersistence().findByC_E(companyId, entryCount);
298 }
299
300 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
301 long companyId, int entryCount, int start, int end)
302 throws com.liferay.portal.kernel.exception.SystemException {
303 return getPersistence().findByC_E(companyId, entryCount, start, end);
304 }
305
306 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
307 long companyId, int entryCount, int start, int end,
308 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309 throws com.liferay.portal.kernel.exception.SystemException {
310 return getPersistence()
311 .findByC_E(companyId, entryCount, start, end,
312 orderByComparator);
313 }
314
315 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_First(
316 long companyId, int entryCount,
317 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318 throws com.liferay.portal.kernel.exception.SystemException,
319 com.liferay.portlet.blogs.NoSuchStatsUserException {
320 return getPersistence()
321 .findByC_E_First(companyId, entryCount, orderByComparator);
322 }
323
324 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_Last(
325 long companyId, int entryCount,
326 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327 throws com.liferay.portal.kernel.exception.SystemException,
328 com.liferay.portlet.blogs.NoSuchStatsUserException {
329 return getPersistence()
330 .findByC_E_Last(companyId, entryCount, orderByComparator);
331 }
332
333 public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByC_E_PrevAndNext(
334 long statsUserId, long companyId, int entryCount,
335 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
336 throws com.liferay.portal.kernel.exception.SystemException,
337 com.liferay.portlet.blogs.NoSuchStatsUserException {
338 return getPersistence()
339 .findByC_E_PrevAndNext(statsUserId, companyId, entryCount,
340 orderByComparator);
341 }
342
343 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll()
344 throws com.liferay.portal.kernel.exception.SystemException {
345 return getPersistence().findAll();
346 }
347
348 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
349 int start, int end)
350 throws com.liferay.portal.kernel.exception.SystemException {
351 return getPersistence().findAll(start, end);
352 }
353
354 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
355 int start, int end,
356 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357 throws com.liferay.portal.kernel.exception.SystemException {
358 return getPersistence().findAll(start, end, orderByComparator);
359 }
360
361 public static void removeByGroupId(long groupId)
362 throws com.liferay.portal.kernel.exception.SystemException {
363 getPersistence().removeByGroupId(groupId);
364 }
365
366 public static void removeByUserId(long userId)
367 throws com.liferay.portal.kernel.exception.SystemException {
368 getPersistence().removeByUserId(userId);
369 }
370
371 public static void removeByG_U(long groupId, long userId)
372 throws com.liferay.portal.kernel.exception.SystemException,
373 com.liferay.portlet.blogs.NoSuchStatsUserException {
374 getPersistence().removeByG_U(groupId, userId);
375 }
376
377 public static void removeByG_E(long groupId, int entryCount)
378 throws com.liferay.portal.kernel.exception.SystemException {
379 getPersistence().removeByG_E(groupId, entryCount);
380 }
381
382 public static void removeByC_E(long companyId, int entryCount)
383 throws com.liferay.portal.kernel.exception.SystemException {
384 getPersistence().removeByC_E(companyId, entryCount);
385 }
386
387 public static void removeAll()
388 throws com.liferay.portal.kernel.exception.SystemException {
389 getPersistence().removeAll();
390 }
391
392 public static int countByGroupId(long groupId)
393 throws com.liferay.portal.kernel.exception.SystemException {
394 return getPersistence().countByGroupId(groupId);
395 }
396
397 public static int countByUserId(long userId)
398 throws com.liferay.portal.kernel.exception.SystemException {
399 return getPersistence().countByUserId(userId);
400 }
401
402 public static int countByG_U(long groupId, long userId)
403 throws com.liferay.portal.kernel.exception.SystemException {
404 return getPersistence().countByG_U(groupId, userId);
405 }
406
407 public static int countByG_E(long groupId, int entryCount)
408 throws com.liferay.portal.kernel.exception.SystemException {
409 return getPersistence().countByG_E(groupId, entryCount);
410 }
411
412 public static int countByC_E(long companyId, int entryCount)
413 throws com.liferay.portal.kernel.exception.SystemException {
414 return getPersistence().countByC_E(companyId, entryCount);
415 }
416
417 public static int countAll()
418 throws com.liferay.portal.kernel.exception.SystemException {
419 return getPersistence().countAll();
420 }
421
422 public static BlogsStatsUserPersistence getPersistence() {
423 if (_persistence == null) {
424 _persistence = (BlogsStatsUserPersistence)PortalBeanLocatorUtil.locate(BlogsStatsUserPersistence.class.getName());
425 }
426
427 return _persistence;
428 }
429
430 public void setPersistence(BlogsStatsUserPersistence persistence) {
431 _persistence = persistence;
432 }
433
434 private static BlogsStatsUserPersistence _persistence;
435 }