1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portal.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  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.SystemException {
96          return getPersistence().remove(userTrackerId);
97      }
98  
99      /**
100      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
101      */
102     public static com.liferay.portal.model.UserTracker update(
103         com.liferay.portal.model.UserTracker userTracker)
104         throws com.liferay.portal.SystemException {
105         return getPersistence().update(userTracker);
106     }
107 
108     public static com.liferay.portal.model.UserTracker updateImpl(
109         com.liferay.portal.model.UserTracker userTracker, boolean merge)
110         throws com.liferay.portal.SystemException {
111         return getPersistence().updateImpl(userTracker, merge);
112     }
113 
114     public static com.liferay.portal.model.UserTracker findByPrimaryKey(
115         long userTrackerId)
116         throws com.liferay.portal.NoSuchUserTrackerException,
117             com.liferay.portal.SystemException {
118         return getPersistence().findByPrimaryKey(userTrackerId);
119     }
120 
121     public static com.liferay.portal.model.UserTracker fetchByPrimaryKey(
122         long userTrackerId) throws com.liferay.portal.SystemException {
123         return getPersistence().fetchByPrimaryKey(userTrackerId);
124     }
125 
126     public static java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
127         long companyId) throws com.liferay.portal.SystemException {
128         return getPersistence().findByCompanyId(companyId);
129     }
130 
131     public static java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
132         long companyId, int start, int end)
133         throws com.liferay.portal.SystemException {
134         return getPersistence().findByCompanyId(companyId, start, end);
135     }
136 
137     public static java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
138         long companyId, int start, int end,
139         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140         throws com.liferay.portal.SystemException {
141         return getPersistence()
142                    .findByCompanyId(companyId, start, end, orderByComparator);
143     }
144 
145     public static com.liferay.portal.model.UserTracker findByCompanyId_First(
146         long companyId,
147         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148         throws com.liferay.portal.NoSuchUserTrackerException,
149             com.liferay.portal.SystemException {
150         return getPersistence()
151                    .findByCompanyId_First(companyId, orderByComparator);
152     }
153 
154     public static com.liferay.portal.model.UserTracker findByCompanyId_Last(
155         long companyId,
156         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157         throws com.liferay.portal.NoSuchUserTrackerException,
158             com.liferay.portal.SystemException {
159         return getPersistence()
160                    .findByCompanyId_Last(companyId, orderByComparator);
161     }
162 
163     public static com.liferay.portal.model.UserTracker[] findByCompanyId_PrevAndNext(
164         long userTrackerId, long companyId,
165         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166         throws com.liferay.portal.NoSuchUserTrackerException,
167             com.liferay.portal.SystemException {
168         return getPersistence()
169                    .findByCompanyId_PrevAndNext(userTrackerId, companyId,
170             orderByComparator);
171     }
172 
173     public static java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
174         long userId) throws com.liferay.portal.SystemException {
175         return getPersistence().findByUserId(userId);
176     }
177 
178     public static java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
179         long userId, int start, int end)
180         throws com.liferay.portal.SystemException {
181         return getPersistence().findByUserId(userId, start, end);
182     }
183 
184     public static java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
185         long userId, int start, int end,
186         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187         throws com.liferay.portal.SystemException {
188         return getPersistence()
189                    .findByUserId(userId, start, end, orderByComparator);
190     }
191 
192     public static com.liferay.portal.model.UserTracker findByUserId_First(
193         long userId,
194         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195         throws com.liferay.portal.NoSuchUserTrackerException,
196             com.liferay.portal.SystemException {
197         return getPersistence().findByUserId_First(userId, orderByComparator);
198     }
199 
200     public static com.liferay.portal.model.UserTracker findByUserId_Last(
201         long userId,
202         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203         throws com.liferay.portal.NoSuchUserTrackerException,
204             com.liferay.portal.SystemException {
205         return getPersistence().findByUserId_Last(userId, orderByComparator);
206     }
207 
208     public static com.liferay.portal.model.UserTracker[] findByUserId_PrevAndNext(
209         long userTrackerId, long userId,
210         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211         throws com.liferay.portal.NoSuchUserTrackerException,
212             com.liferay.portal.SystemException {
213         return getPersistence()
214                    .findByUserId_PrevAndNext(userTrackerId, userId,
215             orderByComparator);
216     }
217 
218     public static java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
219         java.lang.String sessionId) throws com.liferay.portal.SystemException {
220         return getPersistence().findBySessionId(sessionId);
221     }
222 
223     public static java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
224         java.lang.String sessionId, int start, int end)
225         throws com.liferay.portal.SystemException {
226         return getPersistence().findBySessionId(sessionId, start, end);
227     }
228 
229     public static java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
230         java.lang.String sessionId, int start, int end,
231         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
232         throws com.liferay.portal.SystemException {
233         return getPersistence()
234                    .findBySessionId(sessionId, start, end, orderByComparator);
235     }
236 
237     public static com.liferay.portal.model.UserTracker findBySessionId_First(
238         java.lang.String sessionId,
239         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
240         throws com.liferay.portal.NoSuchUserTrackerException,
241             com.liferay.portal.SystemException {
242         return getPersistence()
243                    .findBySessionId_First(sessionId, orderByComparator);
244     }
245 
246     public static com.liferay.portal.model.UserTracker findBySessionId_Last(
247         java.lang.String sessionId,
248         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
249         throws com.liferay.portal.NoSuchUserTrackerException,
250             com.liferay.portal.SystemException {
251         return getPersistence()
252                    .findBySessionId_Last(sessionId, orderByComparator);
253     }
254 
255     public static com.liferay.portal.model.UserTracker[] findBySessionId_PrevAndNext(
256         long userTrackerId, java.lang.String sessionId,
257         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258         throws com.liferay.portal.NoSuchUserTrackerException,
259             com.liferay.portal.SystemException {
260         return getPersistence()
261                    .findBySessionId_PrevAndNext(userTrackerId, sessionId,
262             orderByComparator);
263     }
264 
265     public static java.util.List<com.liferay.portal.model.UserTracker> findAll()
266         throws com.liferay.portal.SystemException {
267         return getPersistence().findAll();
268     }
269 
270     public static java.util.List<com.liferay.portal.model.UserTracker> findAll(
271         int start, int end) throws com.liferay.portal.SystemException {
272         return getPersistence().findAll(start, end);
273     }
274 
275     public static java.util.List<com.liferay.portal.model.UserTracker> findAll(
276         int start, int end,
277         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
278         throws com.liferay.portal.SystemException {
279         return getPersistence().findAll(start, end, orderByComparator);
280     }
281 
282     public static void removeByCompanyId(long companyId)
283         throws com.liferay.portal.SystemException {
284         getPersistence().removeByCompanyId(companyId);
285     }
286 
287     public static void removeByUserId(long userId)
288         throws com.liferay.portal.SystemException {
289         getPersistence().removeByUserId(userId);
290     }
291 
292     public static void removeBySessionId(java.lang.String sessionId)
293         throws com.liferay.portal.SystemException {
294         getPersistence().removeBySessionId(sessionId);
295     }
296 
297     public static void removeAll() throws com.liferay.portal.SystemException {
298         getPersistence().removeAll();
299     }
300 
301     public static int countByCompanyId(long companyId)
302         throws com.liferay.portal.SystemException {
303         return getPersistence().countByCompanyId(companyId);
304     }
305 
306     public static int countByUserId(long userId)
307         throws com.liferay.portal.SystemException {
308         return getPersistence().countByUserId(userId);
309     }
310 
311     public static int countBySessionId(java.lang.String sessionId)
312         throws com.liferay.portal.SystemException {
313         return getPersistence().countBySessionId(sessionId);
314     }
315 
316     public static int countAll() throws com.liferay.portal.SystemException {
317         return getPersistence().countAll();
318     }
319 
320     public static UserTrackerPersistence getPersistence() {
321         if (_persistence == null) {
322             _persistence = (UserTrackerPersistence)PortalBeanLocatorUtil.locate(UserTrackerPersistence.class.getName());
323         }
324 
325         return _persistence;
326     }
327 
328     public void setPersistence(UserTrackerPersistence persistence) {
329         _persistence = persistence;
330     }
331 
332     private static UserTrackerPersistence _persistence;
333 }