001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.blogs.service.persistence;
022:
023: /**
024: * <a href="BlogsStatsUserUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class BlogsStatsUserUtil {
030: public static com.liferay.portlet.blogs.model.BlogsStatsUser create(
031: long statsUserId) {
032: return getPersistence().create(statsUserId);
033: }
034:
035: public static com.liferay.portlet.blogs.model.BlogsStatsUser remove(
036: long statsUserId)
037: throws com.liferay.portal.SystemException,
038: com.liferay.portlet.blogs.NoSuchStatsUserException {
039: return getPersistence().remove(statsUserId);
040: }
041:
042: public static com.liferay.portlet.blogs.model.BlogsStatsUser remove(
043: com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(blogsStatsUser);
046: }
047:
048: public static com.liferay.portlet.blogs.model.BlogsStatsUser update(
049: com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(blogsStatsUser);
052: }
053:
054: public static com.liferay.portlet.blogs.model.BlogsStatsUser update(
055: com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
056: boolean merge) throws com.liferay.portal.SystemException {
057: return getPersistence().update(blogsStatsUser, merge);
058: }
059:
060: public static com.liferay.portlet.blogs.model.BlogsStatsUser updateImpl(
061: com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
062: boolean merge) throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(blogsStatsUser, merge);
064: }
065:
066: public static com.liferay.portlet.blogs.model.BlogsStatsUser findByPrimaryKey(
067: long statsUserId)
068: throws com.liferay.portal.SystemException,
069: com.liferay.portlet.blogs.NoSuchStatsUserException {
070: return getPersistence().findByPrimaryKey(statsUserId);
071: }
072:
073: public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByPrimaryKey(
074: long statsUserId) throws com.liferay.portal.SystemException {
075: return getPersistence().fetchByPrimaryKey(statsUserId);
076: }
077:
078: public static java.util.List findByGroupId(long groupId)
079: throws com.liferay.portal.SystemException {
080: return getPersistence().findByGroupId(groupId);
081: }
082:
083: public static java.util.List findByGroupId(long groupId, int begin,
084: int end) throws com.liferay.portal.SystemException {
085: return getPersistence().findByGroupId(groupId, begin, end);
086: }
087:
088: public static java.util.List findByGroupId(long groupId, int begin,
089: int end,
090: com.liferay.portal.kernel.util.OrderByComparator obc)
091: throws com.liferay.portal.SystemException {
092: return getPersistence().findByGroupId(groupId, begin, end, obc);
093: }
094:
095: public static com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_First(
096: long groupId,
097: com.liferay.portal.kernel.util.OrderByComparator obc)
098: throws com.liferay.portal.SystemException,
099: com.liferay.portlet.blogs.NoSuchStatsUserException {
100: return getPersistence().findByGroupId_First(groupId, obc);
101: }
102:
103: public static com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_Last(
104: long groupId,
105: com.liferay.portal.kernel.util.OrderByComparator obc)
106: throws com.liferay.portal.SystemException,
107: com.liferay.portlet.blogs.NoSuchStatsUserException {
108: return getPersistence().findByGroupId_Last(groupId, obc);
109: }
110:
111: public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByGroupId_PrevAndNext(
112: long statsUserId, long groupId,
113: com.liferay.portal.kernel.util.OrderByComparator obc)
114: throws com.liferay.portal.SystemException,
115: com.liferay.portlet.blogs.NoSuchStatsUserException {
116: return getPersistence().findByGroupId_PrevAndNext(statsUserId,
117: groupId, obc);
118: }
119:
120: public static java.util.List findByUserId(long userId)
121: throws com.liferay.portal.SystemException {
122: return getPersistence().findByUserId(userId);
123: }
124:
125: public static java.util.List findByUserId(long userId, int begin,
126: int end) throws com.liferay.portal.SystemException {
127: return getPersistence().findByUserId(userId, begin, end);
128: }
129:
130: public static java.util.List findByUserId(long userId, int begin,
131: int end,
132: com.liferay.portal.kernel.util.OrderByComparator obc)
133: throws com.liferay.portal.SystemException {
134: return getPersistence().findByUserId(userId, begin, end, obc);
135: }
136:
137: public static com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_First(
138: long userId,
139: com.liferay.portal.kernel.util.OrderByComparator obc)
140: throws com.liferay.portal.SystemException,
141: com.liferay.portlet.blogs.NoSuchStatsUserException {
142: return getPersistence().findByUserId_First(userId, obc);
143: }
144:
145: public static com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_Last(
146: long userId,
147: com.liferay.portal.kernel.util.OrderByComparator obc)
148: throws com.liferay.portal.SystemException,
149: com.liferay.portlet.blogs.NoSuchStatsUserException {
150: return getPersistence().findByUserId_Last(userId, obc);
151: }
152:
153: public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByUserId_PrevAndNext(
154: long statsUserId, long userId,
155: com.liferay.portal.kernel.util.OrderByComparator obc)
156: throws com.liferay.portal.SystemException,
157: com.liferay.portlet.blogs.NoSuchStatsUserException {
158: return getPersistence().findByUserId_PrevAndNext(statsUserId,
159: userId, obc);
160: }
161:
162: public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_U(
163: long groupId, long userId)
164: throws com.liferay.portal.SystemException,
165: com.liferay.portlet.blogs.NoSuchStatsUserException {
166: return getPersistence().findByG_U(groupId, userId);
167: }
168:
169: public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
170: long groupId, long userId)
171: throws com.liferay.portal.SystemException {
172: return getPersistence().fetchByG_U(groupId, userId);
173: }
174:
175: public static java.util.List findByG_E(long groupId, int entryCount)
176: throws com.liferay.portal.SystemException {
177: return getPersistence().findByG_E(groupId, entryCount);
178: }
179:
180: public static java.util.List findByG_E(long groupId,
181: int entryCount, int begin, int end)
182: throws com.liferay.portal.SystemException {
183: return getPersistence().findByG_E(groupId, entryCount, begin,
184: end);
185: }
186:
187: public static java.util.List findByG_E(long groupId,
188: int entryCount, int begin, int end,
189: com.liferay.portal.kernel.util.OrderByComparator obc)
190: throws com.liferay.portal.SystemException {
191: return getPersistence().findByG_E(groupId, entryCount, begin,
192: end, obc);
193: }
194:
195: public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_First(
196: long groupId, int entryCount,
197: com.liferay.portal.kernel.util.OrderByComparator obc)
198: throws com.liferay.portal.SystemException,
199: com.liferay.portlet.blogs.NoSuchStatsUserException {
200: return getPersistence().findByG_E_First(groupId, entryCount,
201: obc);
202: }
203:
204: public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_Last(
205: long groupId, int entryCount,
206: com.liferay.portal.kernel.util.OrderByComparator obc)
207: throws com.liferay.portal.SystemException,
208: com.liferay.portlet.blogs.NoSuchStatsUserException {
209: return getPersistence()
210: .findByG_E_Last(groupId, entryCount, obc);
211: }
212:
213: public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByG_E_PrevAndNext(
214: long statsUserId, long groupId, int entryCount,
215: com.liferay.portal.kernel.util.OrderByComparator obc)
216: throws com.liferay.portal.SystemException,
217: com.liferay.portlet.blogs.NoSuchStatsUserException {
218: return getPersistence().findByG_E_PrevAndNext(statsUserId,
219: groupId, entryCount, obc);
220: }
221:
222: public static java.util.List findByC_E(long companyId,
223: int entryCount) throws com.liferay.portal.SystemException {
224: return getPersistence().findByC_E(companyId, entryCount);
225: }
226:
227: public static java.util.List findByC_E(long companyId,
228: int entryCount, int begin, int end)
229: throws com.liferay.portal.SystemException {
230: return getPersistence().findByC_E(companyId, entryCount, begin,
231: end);
232: }
233:
234: public static java.util.List findByC_E(long companyId,
235: int entryCount, int begin, int end,
236: com.liferay.portal.kernel.util.OrderByComparator obc)
237: throws com.liferay.portal.SystemException {
238: return getPersistence().findByC_E(companyId, entryCount, begin,
239: end, obc);
240: }
241:
242: public static com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_First(
243: long companyId, int entryCount,
244: com.liferay.portal.kernel.util.OrderByComparator obc)
245: throws com.liferay.portal.SystemException,
246: com.liferay.portlet.blogs.NoSuchStatsUserException {
247: return getPersistence().findByC_E_First(companyId, entryCount,
248: obc);
249: }
250:
251: public static com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_Last(
252: long companyId, int entryCount,
253: com.liferay.portal.kernel.util.OrderByComparator obc)
254: throws com.liferay.portal.SystemException,
255: com.liferay.portlet.blogs.NoSuchStatsUserException {
256: return getPersistence().findByC_E_Last(companyId, entryCount,
257: obc);
258: }
259:
260: public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByC_E_PrevAndNext(
261: long statsUserId, long companyId, int entryCount,
262: com.liferay.portal.kernel.util.OrderByComparator obc)
263: throws com.liferay.portal.SystemException,
264: com.liferay.portlet.blogs.NoSuchStatsUserException {
265: return getPersistence().findByC_E_PrevAndNext(statsUserId,
266: companyId, entryCount, obc);
267: }
268:
269: public static java.util.List findWithDynamicQuery(
270: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
271: throws com.liferay.portal.SystemException {
272: return getPersistence().findWithDynamicQuery(queryInitializer);
273: }
274:
275: public static java.util.List findWithDynamicQuery(
276: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
277: int begin, int end)
278: throws com.liferay.portal.SystemException {
279: return getPersistence().findWithDynamicQuery(queryInitializer,
280: begin, end);
281: }
282:
283: public static java.util.List findAll()
284: throws com.liferay.portal.SystemException {
285: return getPersistence().findAll();
286: }
287:
288: public static java.util.List findAll(int begin, int end)
289: throws com.liferay.portal.SystemException {
290: return getPersistence().findAll(begin, end);
291: }
292:
293: public static java.util.List findAll(int begin, int end,
294: com.liferay.portal.kernel.util.OrderByComparator obc)
295: throws com.liferay.portal.SystemException {
296: return getPersistence().findAll(begin, end, obc);
297: }
298:
299: public static void removeByGroupId(long groupId)
300: throws com.liferay.portal.SystemException {
301: getPersistence().removeByGroupId(groupId);
302: }
303:
304: public static void removeByUserId(long userId)
305: throws com.liferay.portal.SystemException {
306: getPersistence().removeByUserId(userId);
307: }
308:
309: public static void removeByG_U(long groupId, long userId)
310: throws com.liferay.portal.SystemException,
311: com.liferay.portlet.blogs.NoSuchStatsUserException {
312: getPersistence().removeByG_U(groupId, userId);
313: }
314:
315: public static void removeByG_E(long groupId, int entryCount)
316: throws com.liferay.portal.SystemException {
317: getPersistence().removeByG_E(groupId, entryCount);
318: }
319:
320: public static void removeByC_E(long companyId, int entryCount)
321: throws com.liferay.portal.SystemException {
322: getPersistence().removeByC_E(companyId, entryCount);
323: }
324:
325: public static void removeAll()
326: throws com.liferay.portal.SystemException {
327: getPersistence().removeAll();
328: }
329:
330: public static int countByGroupId(long groupId)
331: throws com.liferay.portal.SystemException {
332: return getPersistence().countByGroupId(groupId);
333: }
334:
335: public static int countByUserId(long userId)
336: throws com.liferay.portal.SystemException {
337: return getPersistence().countByUserId(userId);
338: }
339:
340: public static int countByG_U(long groupId, long userId)
341: throws com.liferay.portal.SystemException {
342: return getPersistence().countByG_U(groupId, userId);
343: }
344:
345: public static int countByG_E(long groupId, int entryCount)
346: throws com.liferay.portal.SystemException {
347: return getPersistence().countByG_E(groupId, entryCount);
348: }
349:
350: public static int countByC_E(long companyId, int entryCount)
351: throws com.liferay.portal.SystemException {
352: return getPersistence().countByC_E(companyId, entryCount);
353: }
354:
355: public static int countAll()
356: throws com.liferay.portal.SystemException {
357: return getPersistence().countAll();
358: }
359:
360: public static BlogsStatsUserPersistence getPersistence() {
361: return _getUtil()._persistence;
362: }
363:
364: public void setPersistence(BlogsStatsUserPersistence persistence) {
365: _persistence = persistence;
366: }
367:
368: private static BlogsStatsUserUtil _getUtil() {
369: if (_util == null) {
370: _util = (BlogsStatsUserUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
371: .locate(_UTIL);
372: }
373:
374: return _util;
375: }
376:
377: private static final String _UTIL = BlogsStatsUserUtil.class
378: .getName();
379: private static BlogsStatsUserUtil _util;
380: private BlogsStatsUserPersistence _persistence;
381: }
|