1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.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  import com.liferay.portal.model.UserTracker;
21  
22  import java.util.List;
23  
24  /**
25   * <a href="UserTrackerUtil.java.html"><b><i>View Source</i></b></a>
26   *
27   * <p>
28   * ServiceBuilder generated this class. Modifications in this class will be
29   * overwritten the next time is generated.
30   * </p>
31   *
32   * @author    Brian Wing Shun Chan
33   * @see       UserTrackerPersistence
34   * @see       UserTrackerPersistenceImpl
35   * @generated
36   */
37  public class UserTrackerUtil {
38      /**
39       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
40       */
41      public static void clearCache() {
42          getPersistence().clearCache();
43      }
44  
45      /**
46       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
47       */
48      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49          throws SystemException {
50          return getPersistence().findWithDynamicQuery(dynamicQuery);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
55       */
56      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
57          int start, int end) throws SystemException {
58          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
63       */
64      public static UserTracker remove(UserTracker userTracker)
65          throws SystemException {
66          return getPersistence().remove(userTracker);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
71       */
72      public static UserTracker update(UserTracker userTracker, boolean merge)
73          throws SystemException {
74          return getPersistence().update(userTracker, merge);
75      }
76  
77      public static void cacheResult(
78          com.liferay.portal.model.UserTracker userTracker) {
79          getPersistence().cacheResult(userTracker);
80      }
81  
82      public static void cacheResult(
83          java.util.List<com.liferay.portal.model.UserTracker> userTrackers) {
84          getPersistence().cacheResult(userTrackers);
85      }
86  
87      public static com.liferay.portal.model.UserTracker create(
88          long userTrackerId) {
89          return getPersistence().create(userTrackerId);
90      }
91  
92      public static com.liferay.portal.model.UserTracker remove(
93          long userTrackerId)
94          throws com.liferay.portal.NoSuchUserTrackerException,
95              com.liferay.portal.kernel.exception.SystemException {
96          return getPersistence().remove(userTrackerId);
97      }
98  
99      public static com.liferay.portal.model.UserTracker updateImpl(
100         com.liferay.portal.model.UserTracker userTracker, boolean merge)
101         throws com.liferay.portal.kernel.exception.SystemException {
102         return getPersistence().updateImpl(userTracker, merge);
103     }
104 
105     public static com.liferay.portal.model.UserTracker findByPrimaryKey(
106         long userTrackerId)
107         throws com.liferay.portal.NoSuchUserTrackerException,
108             com.liferay.portal.kernel.exception.SystemException {
109         return getPersistence().findByPrimaryKey(userTrackerId);
110     }
111 
112     public static com.liferay.portal.model.UserTracker fetchByPrimaryKey(
113         long userTrackerId)
114         throws com.liferay.portal.kernel.exception.SystemException {
115         return getPersistence().fetchByPrimaryKey(userTrackerId);
116     }
117 
118     public static java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
119         long companyId)
120         throws com.liferay.portal.kernel.exception.SystemException {
121         return getPersistence().findByCompanyId(companyId);
122     }
123 
124     public static java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
125         long companyId, int start, int end)
126         throws com.liferay.portal.kernel.exception.SystemException {
127         return getPersistence().findByCompanyId(companyId, start, end);
128     }
129 
130     public static java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
131         long companyId, int start, int end,
132         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133         throws com.liferay.portal.kernel.exception.SystemException {
134         return getPersistence()
135                    .findByCompanyId(companyId, start, end, orderByComparator);
136     }
137 
138     public static com.liferay.portal.model.UserTracker findByCompanyId_First(
139         long companyId,
140         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141         throws com.liferay.portal.NoSuchUserTrackerException,
142             com.liferay.portal.kernel.exception.SystemException {
143         return getPersistence()
144                    .findByCompanyId_First(companyId, orderByComparator);
145     }
146 
147     public static com.liferay.portal.model.UserTracker findByCompanyId_Last(
148         long companyId,
149         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150         throws com.liferay.portal.NoSuchUserTrackerException,
151             com.liferay.portal.kernel.exception.SystemException {
152         return getPersistence()
153                    .findByCompanyId_Last(companyId, orderByComparator);
154     }
155 
156     public static com.liferay.portal.model.UserTracker[] findByCompanyId_PrevAndNext(
157         long userTrackerId, long companyId,
158         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159         throws com.liferay.portal.NoSuchUserTrackerException,
160             com.liferay.portal.kernel.exception.SystemException {
161         return getPersistence()
162                    .findByCompanyId_PrevAndNext(userTrackerId, companyId,
163             orderByComparator);
164     }
165 
166     public static java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
167         long userId) throws com.liferay.portal.kernel.exception.SystemException {
168         return getPersistence().findByUserId(userId);
169     }
170 
171     public static java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
172         long userId, int start, int end)
173         throws com.liferay.portal.kernel.exception.SystemException {
174         return getPersistence().findByUserId(userId, start, end);
175     }
176 
177     public static java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
178         long userId, int start, int end,
179         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180         throws com.liferay.portal.kernel.exception.SystemException {
181         return getPersistence()
182                    .findByUserId(userId, start, end, orderByComparator);
183     }
184 
185     public static com.liferay.portal.model.UserTracker findByUserId_First(
186         long userId,
187         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188         throws com.liferay.portal.NoSuchUserTrackerException,
189             com.liferay.portal.kernel.exception.SystemException {
190         return getPersistence().findByUserId_First(userId, orderByComparator);
191     }
192 
193     public static com.liferay.portal.model.UserTracker findByUserId_Last(
194         long userId,
195         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196         throws com.liferay.portal.NoSuchUserTrackerException,
197             com.liferay.portal.kernel.exception.SystemException {
198         return getPersistence().findByUserId_Last(userId, orderByComparator);
199     }
200 
201     public static com.liferay.portal.model.UserTracker[] findByUserId_PrevAndNext(
202         long userTrackerId, long userId,
203         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204         throws com.liferay.portal.NoSuchUserTrackerException,
205             com.liferay.portal.kernel.exception.SystemException {
206         return getPersistence()
207                    .findByUserId_PrevAndNext(userTrackerId, userId,
208             orderByComparator);
209     }
210 
211     public static java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
212         java.lang.String sessionId)
213         throws com.liferay.portal.kernel.exception.SystemException {
214         return getPersistence().findBySessionId(sessionId);
215     }
216 
217     public static java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
218         java.lang.String sessionId, int start, int end)
219         throws com.liferay.portal.kernel.exception.SystemException {
220         return getPersistence().findBySessionId(sessionId, start, end);
221     }
222 
223     public static java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
224         java.lang.String sessionId, int start, int end,
225         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226         throws com.liferay.portal.kernel.exception.SystemException {
227         return getPersistence()
228                    .findBySessionId(sessionId, start, end, orderByComparator);
229     }
230 
231     public static com.liferay.portal.model.UserTracker findBySessionId_First(
232         java.lang.String sessionId,
233         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234         throws com.liferay.portal.NoSuchUserTrackerException,
235             com.liferay.portal.kernel.exception.SystemException {
236         return getPersistence()
237                    .findBySessionId_First(sessionId, orderByComparator);
238     }
239 
240     public static com.liferay.portal.model.UserTracker findBySessionId_Last(
241         java.lang.String sessionId,
242         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243         throws com.liferay.portal.NoSuchUserTrackerException,
244             com.liferay.portal.kernel.exception.SystemException {
245         return getPersistence()
246                    .findBySessionId_Last(sessionId, orderByComparator);
247     }
248 
249     public static com.liferay.portal.model.UserTracker[] findBySessionId_PrevAndNext(
250         long userTrackerId, java.lang.String sessionId,
251         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252         throws com.liferay.portal.NoSuchUserTrackerException,
253             com.liferay.portal.kernel.exception.SystemException {
254         return getPersistence()
255                    .findBySessionId_PrevAndNext(userTrackerId, sessionId,
256             orderByComparator);
257     }
258 
259     public static java.util.List<com.liferay.portal.model.UserTracker> findAll()
260         throws com.liferay.portal.kernel.exception.SystemException {
261         return getPersistence().findAll();
262     }
263 
264     public static java.util.List<com.liferay.portal.model.UserTracker> findAll(
265         int start, int end)
266         throws com.liferay.portal.kernel.exception.SystemException {
267         return getPersistence().findAll(start, end);
268     }
269 
270     public static java.util.List<com.liferay.portal.model.UserTracker> findAll(
271         int start, int end,
272         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273         throws com.liferay.portal.kernel.exception.SystemException {
274         return getPersistence().findAll(start, end, orderByComparator);
275     }
276 
277     public static void removeByCompanyId(long companyId)
278         throws com.liferay.portal.kernel.exception.SystemException {
279         getPersistence().removeByCompanyId(companyId);
280     }
281 
282     public static void removeByUserId(long userId)
283         throws com.liferay.portal.kernel.exception.SystemException {
284         getPersistence().removeByUserId(userId);
285     }
286 
287     public static void removeBySessionId(java.lang.String sessionId)
288         throws com.liferay.portal.kernel.exception.SystemException {
289         getPersistence().removeBySessionId(sessionId);
290     }
291 
292     public static void removeAll()
293         throws com.liferay.portal.kernel.exception.SystemException {
294         getPersistence().removeAll();
295     }
296 
297     public static int countByCompanyId(long companyId)
298         throws com.liferay.portal.kernel.exception.SystemException {
299         return getPersistence().countByCompanyId(companyId);
300     }
301 
302     public static int countByUserId(long userId)
303         throws com.liferay.portal.kernel.exception.SystemException {
304         return getPersistence().countByUserId(userId);
305     }
306 
307     public static int countBySessionId(java.lang.String sessionId)
308         throws com.liferay.portal.kernel.exception.SystemException {
309         return getPersistence().countBySessionId(sessionId);
310     }
311 
312     public static int countAll()
313         throws com.liferay.portal.kernel.exception.SystemException {
314         return getPersistence().countAll();
315     }
316 
317     public static UserTrackerPersistence getPersistence() {
318         if (_persistence == null) {
319             _persistence = (UserTrackerPersistence)PortalBeanLocatorUtil.locate(UserTrackerPersistence.class.getName());
320         }
321 
322         return _persistence;
323     }
324 
325     public void setPersistence(UserTrackerPersistence persistence) {
326         _persistence = persistence;
327     }
328 
329     private static UserTrackerPersistence _persistence;
330 }