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.portal.service.persistence;
022:
023: /**
024: * <a href="ActivityTrackerUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class ActivityTrackerUtil {
030: public static com.liferay.portal.model.ActivityTracker create(
031: long activityTrackerId) {
032: return getPersistence().create(activityTrackerId);
033: }
034:
035: public static com.liferay.portal.model.ActivityTracker remove(
036: long activityTrackerId)
037: throws com.liferay.portal.SystemException,
038: com.liferay.portal.NoSuchActivityTrackerException {
039: return getPersistence().remove(activityTrackerId);
040: }
041:
042: public static com.liferay.portal.model.ActivityTracker remove(
043: com.liferay.portal.model.ActivityTracker activityTracker)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(activityTracker);
046: }
047:
048: public static com.liferay.portal.model.ActivityTracker update(
049: com.liferay.portal.model.ActivityTracker activityTracker)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(activityTracker);
052: }
053:
054: public static com.liferay.portal.model.ActivityTracker update(
055: com.liferay.portal.model.ActivityTracker activityTracker,
056: boolean merge) throws com.liferay.portal.SystemException {
057: return getPersistence().update(activityTracker, merge);
058: }
059:
060: public static com.liferay.portal.model.ActivityTracker updateImpl(
061: com.liferay.portal.model.ActivityTracker activityTracker,
062: boolean merge) throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(activityTracker, merge);
064: }
065:
066: public static com.liferay.portal.model.ActivityTracker findByPrimaryKey(
067: long activityTrackerId)
068: throws com.liferay.portal.SystemException,
069: com.liferay.portal.NoSuchActivityTrackerException {
070: return getPersistence().findByPrimaryKey(activityTrackerId);
071: }
072:
073: public static com.liferay.portal.model.ActivityTracker fetchByPrimaryKey(
074: long activityTrackerId)
075: throws com.liferay.portal.SystemException {
076: return getPersistence().fetchByPrimaryKey(activityTrackerId);
077: }
078:
079: public static java.util.List findByGroupId(long groupId)
080: throws com.liferay.portal.SystemException {
081: return getPersistence().findByGroupId(groupId);
082: }
083:
084: public static java.util.List findByGroupId(long groupId, int begin,
085: int end) throws com.liferay.portal.SystemException {
086: return getPersistence().findByGroupId(groupId, begin, end);
087: }
088:
089: public static java.util.List findByGroupId(long groupId, int begin,
090: int end,
091: com.liferay.portal.kernel.util.OrderByComparator obc)
092: throws com.liferay.portal.SystemException {
093: return getPersistence().findByGroupId(groupId, begin, end, obc);
094: }
095:
096: public static com.liferay.portal.model.ActivityTracker findByGroupId_First(
097: long groupId,
098: com.liferay.portal.kernel.util.OrderByComparator obc)
099: throws com.liferay.portal.SystemException,
100: com.liferay.portal.NoSuchActivityTrackerException {
101: return getPersistence().findByGroupId_First(groupId, obc);
102: }
103:
104: public static com.liferay.portal.model.ActivityTracker findByGroupId_Last(
105: long groupId,
106: com.liferay.portal.kernel.util.OrderByComparator obc)
107: throws com.liferay.portal.SystemException,
108: com.liferay.portal.NoSuchActivityTrackerException {
109: return getPersistence().findByGroupId_Last(groupId, obc);
110: }
111:
112: public static com.liferay.portal.model.ActivityTracker[] findByGroupId_PrevAndNext(
113: long activityTrackerId, long groupId,
114: com.liferay.portal.kernel.util.OrderByComparator obc)
115: throws com.liferay.portal.SystemException,
116: com.liferay.portal.NoSuchActivityTrackerException {
117: return getPersistence().findByGroupId_PrevAndNext(
118: activityTrackerId, groupId, obc);
119: }
120:
121: public static java.util.List findByCompanyId(long companyId)
122: throws com.liferay.portal.SystemException {
123: return getPersistence().findByCompanyId(companyId);
124: }
125:
126: public static java.util.List findByCompanyId(long companyId,
127: int begin, int end)
128: throws com.liferay.portal.SystemException {
129: return getPersistence().findByCompanyId(companyId, begin, end);
130: }
131:
132: public static java.util.List findByCompanyId(long companyId,
133: int begin, int end,
134: com.liferay.portal.kernel.util.OrderByComparator obc)
135: throws com.liferay.portal.SystemException {
136: return getPersistence().findByCompanyId(companyId, begin, end,
137: obc);
138: }
139:
140: public static com.liferay.portal.model.ActivityTracker findByCompanyId_First(
141: long companyId,
142: com.liferay.portal.kernel.util.OrderByComparator obc)
143: throws com.liferay.portal.SystemException,
144: com.liferay.portal.NoSuchActivityTrackerException {
145: return getPersistence().findByCompanyId_First(companyId, obc);
146: }
147:
148: public static com.liferay.portal.model.ActivityTracker findByCompanyId_Last(
149: long companyId,
150: com.liferay.portal.kernel.util.OrderByComparator obc)
151: throws com.liferay.portal.SystemException,
152: com.liferay.portal.NoSuchActivityTrackerException {
153: return getPersistence().findByCompanyId_Last(companyId, obc);
154: }
155:
156: public static com.liferay.portal.model.ActivityTracker[] findByCompanyId_PrevAndNext(
157: long activityTrackerId, long companyId,
158: com.liferay.portal.kernel.util.OrderByComparator obc)
159: throws com.liferay.portal.SystemException,
160: com.liferay.portal.NoSuchActivityTrackerException {
161: return getPersistence().findByCompanyId_PrevAndNext(
162: activityTrackerId, companyId, obc);
163: }
164:
165: public static java.util.List findByUserId(long userId)
166: throws com.liferay.portal.SystemException {
167: return getPersistence().findByUserId(userId);
168: }
169:
170: public static java.util.List findByUserId(long userId, int begin,
171: int end) throws com.liferay.portal.SystemException {
172: return getPersistence().findByUserId(userId, begin, end);
173: }
174:
175: public static java.util.List findByUserId(long userId, int begin,
176: int end,
177: com.liferay.portal.kernel.util.OrderByComparator obc)
178: throws com.liferay.portal.SystemException {
179: return getPersistence().findByUserId(userId, begin, end, obc);
180: }
181:
182: public static com.liferay.portal.model.ActivityTracker findByUserId_First(
183: long userId,
184: com.liferay.portal.kernel.util.OrderByComparator obc)
185: throws com.liferay.portal.SystemException,
186: com.liferay.portal.NoSuchActivityTrackerException {
187: return getPersistence().findByUserId_First(userId, obc);
188: }
189:
190: public static com.liferay.portal.model.ActivityTracker findByUserId_Last(
191: long userId,
192: com.liferay.portal.kernel.util.OrderByComparator obc)
193: throws com.liferay.portal.SystemException,
194: com.liferay.portal.NoSuchActivityTrackerException {
195: return getPersistence().findByUserId_Last(userId, obc);
196: }
197:
198: public static com.liferay.portal.model.ActivityTracker[] findByUserId_PrevAndNext(
199: long activityTrackerId, long userId,
200: com.liferay.portal.kernel.util.OrderByComparator obc)
201: throws com.liferay.portal.SystemException,
202: com.liferay.portal.NoSuchActivityTrackerException {
203: return getPersistence().findByUserId_PrevAndNext(
204: activityTrackerId, userId, obc);
205: }
206:
207: public static java.util.List findByReceiverUserId(
208: long receiverUserId)
209: throws com.liferay.portal.SystemException {
210: return getPersistence().findByReceiverUserId(receiverUserId);
211: }
212:
213: public static java.util.List findByReceiverUserId(
214: long receiverUserId, int begin, int end)
215: throws com.liferay.portal.SystemException {
216: return getPersistence().findByReceiverUserId(receiverUserId,
217: begin, end);
218: }
219:
220: public static java.util.List findByReceiverUserId(
221: long receiverUserId, int begin, int end,
222: com.liferay.portal.kernel.util.OrderByComparator obc)
223: throws com.liferay.portal.SystemException {
224: return getPersistence().findByReceiverUserId(receiverUserId,
225: begin, end, obc);
226: }
227:
228: public static com.liferay.portal.model.ActivityTracker findByReceiverUserId_First(
229: long receiverUserId,
230: com.liferay.portal.kernel.util.OrderByComparator obc)
231: throws com.liferay.portal.SystemException,
232: com.liferay.portal.NoSuchActivityTrackerException {
233: return getPersistence().findByReceiverUserId_First(
234: receiverUserId, obc);
235: }
236:
237: public static com.liferay.portal.model.ActivityTracker findByReceiverUserId_Last(
238: long receiverUserId,
239: com.liferay.portal.kernel.util.OrderByComparator obc)
240: throws com.liferay.portal.SystemException,
241: com.liferay.portal.NoSuchActivityTrackerException {
242: return getPersistence().findByReceiverUserId_Last(
243: receiverUserId, obc);
244: }
245:
246: public static com.liferay.portal.model.ActivityTracker[] findByReceiverUserId_PrevAndNext(
247: long activityTrackerId, long receiverUserId,
248: com.liferay.portal.kernel.util.OrderByComparator obc)
249: throws com.liferay.portal.SystemException,
250: com.liferay.portal.NoSuchActivityTrackerException {
251: return getPersistence().findByReceiverUserId_PrevAndNext(
252: activityTrackerId, receiverUserId, obc);
253: }
254:
255: public static java.util.List findByC_C(long classNameId,
256: long classPK) throws com.liferay.portal.SystemException {
257: return getPersistence().findByC_C(classNameId, classPK);
258: }
259:
260: public static java.util.List findByC_C(long classNameId,
261: long classPK, int begin, int end)
262: throws com.liferay.portal.SystemException {
263: return getPersistence().findByC_C(classNameId, classPK, begin,
264: end);
265: }
266:
267: public static java.util.List findByC_C(long classNameId,
268: long classPK, int begin, int end,
269: com.liferay.portal.kernel.util.OrderByComparator obc)
270: throws com.liferay.portal.SystemException {
271: return getPersistence().findByC_C(classNameId, classPK, begin,
272: end, obc);
273: }
274:
275: public static com.liferay.portal.model.ActivityTracker findByC_C_First(
276: long classNameId, long classPK,
277: com.liferay.portal.kernel.util.OrderByComparator obc)
278: throws com.liferay.portal.SystemException,
279: com.liferay.portal.NoSuchActivityTrackerException {
280: return getPersistence().findByC_C_First(classNameId, classPK,
281: obc);
282: }
283:
284: public static com.liferay.portal.model.ActivityTracker findByC_C_Last(
285: long classNameId, long classPK,
286: com.liferay.portal.kernel.util.OrderByComparator obc)
287: throws com.liferay.portal.SystemException,
288: com.liferay.portal.NoSuchActivityTrackerException {
289: return getPersistence().findByC_C_Last(classNameId, classPK,
290: obc);
291: }
292:
293: public static com.liferay.portal.model.ActivityTracker[] findByC_C_PrevAndNext(
294: long activityTrackerId, long classNameId, long classPK,
295: com.liferay.portal.kernel.util.OrderByComparator obc)
296: throws com.liferay.portal.SystemException,
297: com.liferay.portal.NoSuchActivityTrackerException {
298: return getPersistence().findByC_C_PrevAndNext(
299: activityTrackerId, classNameId, classPK, obc);
300: }
301:
302: public static java.util.List findWithDynamicQuery(
303: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
304: throws com.liferay.portal.SystemException {
305: return getPersistence().findWithDynamicQuery(queryInitializer);
306: }
307:
308: public static java.util.List findWithDynamicQuery(
309: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
310: int begin, int end)
311: throws com.liferay.portal.SystemException {
312: return getPersistence().findWithDynamicQuery(queryInitializer,
313: begin, end);
314: }
315:
316: public static java.util.List findAll()
317: throws com.liferay.portal.SystemException {
318: return getPersistence().findAll();
319: }
320:
321: public static java.util.List findAll(int begin, int end)
322: throws com.liferay.portal.SystemException {
323: return getPersistence().findAll(begin, end);
324: }
325:
326: public static java.util.List findAll(int begin, int end,
327: com.liferay.portal.kernel.util.OrderByComparator obc)
328: throws com.liferay.portal.SystemException {
329: return getPersistence().findAll(begin, end, obc);
330: }
331:
332: public static void removeByGroupId(long groupId)
333: throws com.liferay.portal.SystemException {
334: getPersistence().removeByGroupId(groupId);
335: }
336:
337: public static void removeByCompanyId(long companyId)
338: throws com.liferay.portal.SystemException {
339: getPersistence().removeByCompanyId(companyId);
340: }
341:
342: public static void removeByUserId(long userId)
343: throws com.liferay.portal.SystemException {
344: getPersistence().removeByUserId(userId);
345: }
346:
347: public static void removeByReceiverUserId(long receiverUserId)
348: throws com.liferay.portal.SystemException {
349: getPersistence().removeByReceiverUserId(receiverUserId);
350: }
351:
352: public static void removeByC_C(long classNameId, long classPK)
353: throws com.liferay.portal.SystemException {
354: getPersistence().removeByC_C(classNameId, classPK);
355: }
356:
357: public static void removeAll()
358: throws com.liferay.portal.SystemException {
359: getPersistence().removeAll();
360: }
361:
362: public static int countByGroupId(long groupId)
363: throws com.liferay.portal.SystemException {
364: return getPersistence().countByGroupId(groupId);
365: }
366:
367: public static int countByCompanyId(long companyId)
368: throws com.liferay.portal.SystemException {
369: return getPersistence().countByCompanyId(companyId);
370: }
371:
372: public static int countByUserId(long userId)
373: throws com.liferay.portal.SystemException {
374: return getPersistence().countByUserId(userId);
375: }
376:
377: public static int countByReceiverUserId(long receiverUserId)
378: throws com.liferay.portal.SystemException {
379: return getPersistence().countByReceiverUserId(receiverUserId);
380: }
381:
382: public static int countByC_C(long classNameId, long classPK)
383: throws com.liferay.portal.SystemException {
384: return getPersistence().countByC_C(classNameId, classPK);
385: }
386:
387: public static int countAll()
388: throws com.liferay.portal.SystemException {
389: return getPersistence().countAll();
390: }
391:
392: public static ActivityTrackerPersistence getPersistence() {
393: return _getUtil()._persistence;
394: }
395:
396: public void setPersistence(ActivityTrackerPersistence persistence) {
397: _persistence = persistence;
398: }
399:
400: private static ActivityTrackerUtil _getUtil() {
401: if (_util == null) {
402: _util = (ActivityTrackerUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
403: .locate(_UTIL);
404: }
405:
406: return _util;
407: }
408:
409: private static final String _UTIL = ActivityTrackerUtil.class
410: .getName();
411: private static ActivityTrackerUtil _util;
412: private ActivityTrackerPersistence _persistence;
413: }
|