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