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