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 obc)
133         throws com.liferay.portal.kernel.exception.SystemException {
134         return getPersistence().findByCompanyId(companyId, start, end, obc);
135     }
136 
137     public static com.liferay.portal.model.UserTracker findByCompanyId_First(
138         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
139         throws com.liferay.portal.NoSuchUserTrackerException,
140             com.liferay.portal.kernel.exception.SystemException {
141         return getPersistence().findByCompanyId_First(companyId, obc);
142     }
143 
144     public static com.liferay.portal.model.UserTracker findByCompanyId_Last(
145         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
146         throws com.liferay.portal.NoSuchUserTrackerException,
147             com.liferay.portal.kernel.exception.SystemException {
148         return getPersistence().findByCompanyId_Last(companyId, obc);
149     }
150 
151     public static com.liferay.portal.model.UserTracker[] findByCompanyId_PrevAndNext(
152         long userTrackerId, long companyId,
153         com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.NoSuchUserTrackerException,
155             com.liferay.portal.kernel.exception.SystemException {
156         return getPersistence()
157                    .findByCompanyId_PrevAndNext(userTrackerId, companyId, obc);
158     }
159 
160     public static java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
161         long userId) throws com.liferay.portal.kernel.exception.SystemException {
162         return getPersistence().findByUserId(userId);
163     }
164 
165     public static java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
166         long userId, int start, int end)
167         throws com.liferay.portal.kernel.exception.SystemException {
168         return getPersistence().findByUserId(userId, start, end);
169     }
170 
171     public static java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
172         long userId, int start, int end,
173         com.liferay.portal.kernel.util.OrderByComparator obc)
174         throws com.liferay.portal.kernel.exception.SystemException {
175         return getPersistence().findByUserId(userId, start, end, obc);
176     }
177 
178     public static com.liferay.portal.model.UserTracker findByUserId_First(
179         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
180         throws com.liferay.portal.NoSuchUserTrackerException,
181             com.liferay.portal.kernel.exception.SystemException {
182         return getPersistence().findByUserId_First(userId, obc);
183     }
184 
185     public static com.liferay.portal.model.UserTracker findByUserId_Last(
186         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
187         throws com.liferay.portal.NoSuchUserTrackerException,
188             com.liferay.portal.kernel.exception.SystemException {
189         return getPersistence().findByUserId_Last(userId, obc);
190     }
191 
192     public static com.liferay.portal.model.UserTracker[] findByUserId_PrevAndNext(
193         long userTrackerId, long userId,
194         com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.NoSuchUserTrackerException,
196             com.liferay.portal.kernel.exception.SystemException {
197         return getPersistence()
198                    .findByUserId_PrevAndNext(userTrackerId, userId, obc);
199     }
200 
201     public static java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
202         java.lang.String sessionId)
203         throws com.liferay.portal.kernel.exception.SystemException {
204         return getPersistence().findBySessionId(sessionId);
205     }
206 
207     public static java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
208         java.lang.String sessionId, int start, int end)
209         throws com.liferay.portal.kernel.exception.SystemException {
210         return getPersistence().findBySessionId(sessionId, start, end);
211     }
212 
213     public static java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
214         java.lang.String sessionId, int start, int end,
215         com.liferay.portal.kernel.util.OrderByComparator obc)
216         throws com.liferay.portal.kernel.exception.SystemException {
217         return getPersistence().findBySessionId(sessionId, start, end, obc);
218     }
219 
220     public static com.liferay.portal.model.UserTracker findBySessionId_First(
221         java.lang.String sessionId,
222         com.liferay.portal.kernel.util.OrderByComparator obc)
223         throws com.liferay.portal.NoSuchUserTrackerException,
224             com.liferay.portal.kernel.exception.SystemException {
225         return getPersistence().findBySessionId_First(sessionId, obc);
226     }
227 
228     public static com.liferay.portal.model.UserTracker findBySessionId_Last(
229         java.lang.String sessionId,
230         com.liferay.portal.kernel.util.OrderByComparator obc)
231         throws com.liferay.portal.NoSuchUserTrackerException,
232             com.liferay.portal.kernel.exception.SystemException {
233         return getPersistence().findBySessionId_Last(sessionId, obc);
234     }
235 
236     public static com.liferay.portal.model.UserTracker[] findBySessionId_PrevAndNext(
237         long userTrackerId, java.lang.String sessionId,
238         com.liferay.portal.kernel.util.OrderByComparator obc)
239         throws com.liferay.portal.NoSuchUserTrackerException,
240             com.liferay.portal.kernel.exception.SystemException {
241         return getPersistence()
242                    .findBySessionId_PrevAndNext(userTrackerId, sessionId, obc);
243     }
244 
245     public static java.util.List<com.liferay.portal.model.UserTracker> findAll()
246         throws com.liferay.portal.kernel.exception.SystemException {
247         return getPersistence().findAll();
248     }
249 
250     public static java.util.List<com.liferay.portal.model.UserTracker> findAll(
251         int start, int end)
252         throws com.liferay.portal.kernel.exception.SystemException {
253         return getPersistence().findAll(start, end);
254     }
255 
256     public static java.util.List<com.liferay.portal.model.UserTracker> findAll(
257         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
258         throws com.liferay.portal.kernel.exception.SystemException {
259         return getPersistence().findAll(start, end, obc);
260     }
261 
262     public static void removeByCompanyId(long companyId)
263         throws com.liferay.portal.kernel.exception.SystemException {
264         getPersistence().removeByCompanyId(companyId);
265     }
266 
267     public static void removeByUserId(long userId)
268         throws com.liferay.portal.kernel.exception.SystemException {
269         getPersistence().removeByUserId(userId);
270     }
271 
272     public static void removeBySessionId(java.lang.String sessionId)
273         throws com.liferay.portal.kernel.exception.SystemException {
274         getPersistence().removeBySessionId(sessionId);
275     }
276 
277     public static void removeAll()
278         throws com.liferay.portal.kernel.exception.SystemException {
279         getPersistence().removeAll();
280     }
281 
282     public static int countByCompanyId(long companyId)
283         throws com.liferay.portal.kernel.exception.SystemException {
284         return getPersistence().countByCompanyId(companyId);
285     }
286 
287     public static int countByUserId(long userId)
288         throws com.liferay.portal.kernel.exception.SystemException {
289         return getPersistence().countByUserId(userId);
290     }
291 
292     public static int countBySessionId(java.lang.String sessionId)
293         throws com.liferay.portal.kernel.exception.SystemException {
294         return getPersistence().countBySessionId(sessionId);
295     }
296 
297     public static int countAll()
298         throws com.liferay.portal.kernel.exception.SystemException {
299         return getPersistence().countAll();
300     }
301 
302     public static UserTrackerPersistence getPersistence() {
303         if (_persistence == null) {
304             _persistence = (UserTrackerPersistence)PortalBeanLocatorUtil.locate(UserTrackerPersistence.class.getName());
305         }
306 
307         return _persistence;
308     }
309 
310     public void setPersistence(UserTrackerPersistence persistence) {
311         _persistence = persistence;
312     }
313 
314     private static UserTrackerPersistence _persistence;
315 }