1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  /**
26   * <a href="ActivityTrackerUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class ActivityTrackerUtil {
32      public static com.liferay.portal.model.ActivityTracker create(
33          long activityTrackerId) {
34          return getPersistence().create(activityTrackerId);
35      }
36  
37      public static com.liferay.portal.model.ActivityTracker remove(
38          long activityTrackerId)
39          throws com.liferay.portal.SystemException, 
40              com.liferay.portal.NoSuchActivityTrackerException {
41          return getPersistence().remove(activityTrackerId);
42      }
43  
44      public static com.liferay.portal.model.ActivityTracker remove(
45          com.liferay.portal.model.ActivityTracker activityTracker)
46          throws com.liferay.portal.SystemException {
47          return getPersistence().remove(activityTracker);
48      }
49  
50      public static com.liferay.portal.model.ActivityTracker update(
51          com.liferay.portal.model.ActivityTracker activityTracker)
52          throws com.liferay.portal.SystemException {
53          return getPersistence().update(activityTracker);
54      }
55  
56      public static com.liferay.portal.model.ActivityTracker update(
57          com.liferay.portal.model.ActivityTracker activityTracker, boolean merge)
58          throws com.liferay.portal.SystemException {
59          return getPersistence().update(activityTracker, merge);
60      }
61  
62      public static com.liferay.portal.model.ActivityTracker updateImpl(
63          com.liferay.portal.model.ActivityTracker activityTracker, boolean merge)
64          throws com.liferay.portal.SystemException {
65          return getPersistence().updateImpl(activityTracker, merge);
66      }
67  
68      public static com.liferay.portal.model.ActivityTracker findByPrimaryKey(
69          long activityTrackerId)
70          throws com.liferay.portal.SystemException, 
71              com.liferay.portal.NoSuchActivityTrackerException {
72          return getPersistence().findByPrimaryKey(activityTrackerId);
73      }
74  
75      public static com.liferay.portal.model.ActivityTracker fetchByPrimaryKey(
76          long activityTrackerId) throws com.liferay.portal.SystemException {
77          return getPersistence().fetchByPrimaryKey(activityTrackerId);
78      }
79  
80      public static java.util.List findByGroupId(long groupId)
81          throws com.liferay.portal.SystemException {
82          return getPersistence().findByGroupId(groupId);
83      }
84  
85      public static java.util.List findByGroupId(long groupId, int begin, int end)
86          throws com.liferay.portal.SystemException {
87          return getPersistence().findByGroupId(groupId, begin, end);
88      }
89  
90      public static java.util.List findByGroupId(long groupId, int begin,
91          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.SystemException {
93          return getPersistence().findByGroupId(groupId, begin, end, obc);
94      }
95  
96      public static com.liferay.portal.model.ActivityTracker findByGroupId_First(
97          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
98          throws com.liferay.portal.SystemException, 
99              com.liferay.portal.NoSuchActivityTrackerException {
100         return getPersistence().findByGroupId_First(groupId, obc);
101     }
102 
103     public static com.liferay.portal.model.ActivityTracker findByGroupId_Last(
104         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.SystemException, 
106             com.liferay.portal.NoSuchActivityTrackerException {
107         return getPersistence().findByGroupId_Last(groupId, obc);
108     }
109 
110     public static com.liferay.portal.model.ActivityTracker[] findByGroupId_PrevAndNext(
111         long activityTrackerId, long groupId,
112         com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.SystemException, 
114             com.liferay.portal.NoSuchActivityTrackerException {
115         return getPersistence().findByGroupId_PrevAndNext(activityTrackerId,
116             groupId, obc);
117     }
118 
119     public static java.util.List findByCompanyId(long companyId)
120         throws com.liferay.portal.SystemException {
121         return getPersistence().findByCompanyId(companyId);
122     }
123 
124     public static java.util.List findByCompanyId(long companyId, int begin,
125         int end) throws com.liferay.portal.SystemException {
126         return getPersistence().findByCompanyId(companyId, begin, end);
127     }
128 
129     public static java.util.List findByCompanyId(long companyId, int begin,
130         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException {
132         return getPersistence().findByCompanyId(companyId, begin, end, obc);
133     }
134 
135     public static com.liferay.portal.model.ActivityTracker findByCompanyId_First(
136         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.SystemException, 
138             com.liferay.portal.NoSuchActivityTrackerException {
139         return getPersistence().findByCompanyId_First(companyId, obc);
140     }
141 
142     public static com.liferay.portal.model.ActivityTracker findByCompanyId_Last(
143         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.SystemException, 
145             com.liferay.portal.NoSuchActivityTrackerException {
146         return getPersistence().findByCompanyId_Last(companyId, obc);
147     }
148 
149     public static com.liferay.portal.model.ActivityTracker[] findByCompanyId_PrevAndNext(
150         long activityTrackerId, long companyId,
151         com.liferay.portal.kernel.util.OrderByComparator obc)
152         throws com.liferay.portal.SystemException, 
153             com.liferay.portal.NoSuchActivityTrackerException {
154         return getPersistence().findByCompanyId_PrevAndNext(activityTrackerId,
155             companyId, obc);
156     }
157 
158     public static java.util.List findByUserId(long userId)
159         throws com.liferay.portal.SystemException {
160         return getPersistence().findByUserId(userId);
161     }
162 
163     public static java.util.List findByUserId(long userId, int begin, int end)
164         throws com.liferay.portal.SystemException {
165         return getPersistence().findByUserId(userId, begin, end);
166     }
167 
168     public static java.util.List findByUserId(long userId, int begin, int end,
169         com.liferay.portal.kernel.util.OrderByComparator obc)
170         throws com.liferay.portal.SystemException {
171         return getPersistence().findByUserId(userId, begin, end, obc);
172     }
173 
174     public static com.liferay.portal.model.ActivityTracker findByUserId_First(
175         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
176         throws com.liferay.portal.SystemException, 
177             com.liferay.portal.NoSuchActivityTrackerException {
178         return getPersistence().findByUserId_First(userId, obc);
179     }
180 
181     public static com.liferay.portal.model.ActivityTracker findByUserId_Last(
182         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.SystemException, 
184             com.liferay.portal.NoSuchActivityTrackerException {
185         return getPersistence().findByUserId_Last(userId, obc);
186     }
187 
188     public static com.liferay.portal.model.ActivityTracker[] findByUserId_PrevAndNext(
189         long activityTrackerId, long userId,
190         com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.SystemException, 
192             com.liferay.portal.NoSuchActivityTrackerException {
193         return getPersistence().findByUserId_PrevAndNext(activityTrackerId,
194             userId, obc);
195     }
196 
197     public static java.util.List findByReceiverUserId(long receiverUserId)
198         throws com.liferay.portal.SystemException {
199         return getPersistence().findByReceiverUserId(receiverUserId);
200     }
201 
202     public static java.util.List findByReceiverUserId(long receiverUserId,
203         int begin, int end) throws com.liferay.portal.SystemException {
204         return getPersistence().findByReceiverUserId(receiverUserId, begin, end);
205     }
206 
207     public static java.util.List findByReceiverUserId(long receiverUserId,
208         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
209         throws com.liferay.portal.SystemException {
210         return getPersistence().findByReceiverUserId(receiverUserId, begin,
211             end, obc);
212     }
213 
214     public static com.liferay.portal.model.ActivityTracker findByReceiverUserId_First(
215         long receiverUserId,
216         com.liferay.portal.kernel.util.OrderByComparator obc)
217         throws com.liferay.portal.SystemException, 
218             com.liferay.portal.NoSuchActivityTrackerException {
219         return getPersistence().findByReceiverUserId_First(receiverUserId, obc);
220     }
221 
222     public static com.liferay.portal.model.ActivityTracker findByReceiverUserId_Last(
223         long receiverUserId,
224         com.liferay.portal.kernel.util.OrderByComparator obc)
225         throws com.liferay.portal.SystemException, 
226             com.liferay.portal.NoSuchActivityTrackerException {
227         return getPersistence().findByReceiverUserId_Last(receiverUserId, obc);
228     }
229 
230     public static com.liferay.portal.model.ActivityTracker[] findByReceiverUserId_PrevAndNext(
231         long activityTrackerId, long receiverUserId,
232         com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.SystemException, 
234             com.liferay.portal.NoSuchActivityTrackerException {
235         return getPersistence().findByReceiverUserId_PrevAndNext(activityTrackerId,
236             receiverUserId, obc);
237     }
238 
239     public static java.util.List findByC_C(long classNameId, long classPK)
240         throws com.liferay.portal.SystemException {
241         return getPersistence().findByC_C(classNameId, classPK);
242     }
243 
244     public static java.util.List findByC_C(long classNameId, long classPK,
245         int begin, int end) throws com.liferay.portal.SystemException {
246         return getPersistence().findByC_C(classNameId, classPK, begin, end);
247     }
248 
249     public static java.util.List findByC_C(long classNameId, long classPK,
250         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
251         throws com.liferay.portal.SystemException {
252         return getPersistence().findByC_C(classNameId, classPK, begin, end, obc);
253     }
254 
255     public static com.liferay.portal.model.ActivityTracker findByC_C_First(
256         long classNameId, long classPK,
257         com.liferay.portal.kernel.util.OrderByComparator obc)
258         throws com.liferay.portal.SystemException, 
259             com.liferay.portal.NoSuchActivityTrackerException {
260         return getPersistence().findByC_C_First(classNameId, classPK, obc);
261     }
262 
263     public static com.liferay.portal.model.ActivityTracker findByC_C_Last(
264         long classNameId, long classPK,
265         com.liferay.portal.kernel.util.OrderByComparator obc)
266         throws com.liferay.portal.SystemException, 
267             com.liferay.portal.NoSuchActivityTrackerException {
268         return getPersistence().findByC_C_Last(classNameId, classPK, obc);
269     }
270 
271     public static com.liferay.portal.model.ActivityTracker[] findByC_C_PrevAndNext(
272         long activityTrackerId, long classNameId, long classPK,
273         com.liferay.portal.kernel.util.OrderByComparator obc)
274         throws com.liferay.portal.SystemException, 
275             com.liferay.portal.NoSuchActivityTrackerException {
276         return getPersistence().findByC_C_PrevAndNext(activityTrackerId,
277             classNameId, classPK, obc);
278     }
279 
280     public static java.util.List findWithDynamicQuery(
281         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
282         throws com.liferay.portal.SystemException {
283         return getPersistence().findWithDynamicQuery(queryInitializer);
284     }
285 
286     public static java.util.List findWithDynamicQuery(
287         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
288         int begin, int end) throws com.liferay.portal.SystemException {
289         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
290             end);
291     }
292 
293     public static java.util.List findAll()
294         throws com.liferay.portal.SystemException {
295         return getPersistence().findAll();
296     }
297 
298     public static java.util.List findAll(int begin, int end)
299         throws com.liferay.portal.SystemException {
300         return getPersistence().findAll(begin, end);
301     }
302 
303     public static java.util.List findAll(int begin, int end,
304         com.liferay.portal.kernel.util.OrderByComparator obc)
305         throws com.liferay.portal.SystemException {
306         return getPersistence().findAll(begin, end, obc);
307     }
308 
309     public static void removeByGroupId(long groupId)
310         throws com.liferay.portal.SystemException {
311         getPersistence().removeByGroupId(groupId);
312     }
313 
314     public static void removeByCompanyId(long companyId)
315         throws com.liferay.portal.SystemException {
316         getPersistence().removeByCompanyId(companyId);
317     }
318 
319     public static void removeByUserId(long userId)
320         throws com.liferay.portal.SystemException {
321         getPersistence().removeByUserId(userId);
322     }
323 
324     public static void removeByReceiverUserId(long receiverUserId)
325         throws com.liferay.portal.SystemException {
326         getPersistence().removeByReceiverUserId(receiverUserId);
327     }
328 
329     public static void removeByC_C(long classNameId, long classPK)
330         throws com.liferay.portal.SystemException {
331         getPersistence().removeByC_C(classNameId, classPK);
332     }
333 
334     public static void removeAll() throws com.liferay.portal.SystemException {
335         getPersistence().removeAll();
336     }
337 
338     public static int countByGroupId(long groupId)
339         throws com.liferay.portal.SystemException {
340         return getPersistence().countByGroupId(groupId);
341     }
342 
343     public static int countByCompanyId(long companyId)
344         throws com.liferay.portal.SystemException {
345         return getPersistence().countByCompanyId(companyId);
346     }
347 
348     public static int countByUserId(long userId)
349         throws com.liferay.portal.SystemException {
350         return getPersistence().countByUserId(userId);
351     }
352 
353     public static int countByReceiverUserId(long receiverUserId)
354         throws com.liferay.portal.SystemException {
355         return getPersistence().countByReceiverUserId(receiverUserId);
356     }
357 
358     public static int countByC_C(long classNameId, long classPK)
359         throws com.liferay.portal.SystemException {
360         return getPersistence().countByC_C(classNameId, classPK);
361     }
362 
363     public static int countAll() throws com.liferay.portal.SystemException {
364         return getPersistence().countAll();
365     }
366 
367     public static ActivityTrackerPersistence getPersistence() {
368         return _getUtil()._persistence;
369     }
370 
371     public void setPersistence(ActivityTrackerPersistence persistence) {
372         _persistence = persistence;
373     }
374 
375     private static ActivityTrackerUtil _getUtil() {
376         if (_util == null) {
377             _util = (ActivityTrackerUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
378         }
379 
380         return _util;
381     }
382 
383     private static final String _UTIL = ActivityTrackerUtil.class.getName();
384     private static ActivityTrackerUtil _util;
385     private ActivityTrackerPersistence _persistence;
386 }