001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.model.UserTracker;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the user tracker service. This utility wraps {@link UserTrackerPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
029     *
030     * <p>
031     * Caching information and settings can be found in <code>portal.properties</code>
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see UserTrackerPersistence
036     * @see UserTrackerPersistenceImpl
037     * @generated
038     */
039    public class UserTrackerUtil {
040            /*
041             * NOTE FOR DEVELOPERS:
042             *
043             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
044             */
045    
046            /**
047             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
048             */
049            public static void clearCache() {
050                    getPersistence().clearCache();
051            }
052    
053            /**
054             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
055             */
056            public static void clearCache(UserTracker userTracker) {
057                    getPersistence().clearCache(userTracker);
058            }
059    
060            /**
061             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
062             */
063            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
064                    throws SystemException {
065                    return getPersistence().countWithDynamicQuery(dynamicQuery);
066            }
067    
068            /**
069             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
070             */
071            public static List<UserTracker> findWithDynamicQuery(
072                    DynamicQuery dynamicQuery) throws SystemException {
073                    return getPersistence().findWithDynamicQuery(dynamicQuery);
074            }
075    
076            /**
077             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
078             */
079            public static List<UserTracker> findWithDynamicQuery(
080                    DynamicQuery dynamicQuery, int start, int end)
081                    throws SystemException {
082                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
083            }
084    
085            /**
086             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
087             */
088            public static List<UserTracker> findWithDynamicQuery(
089                    DynamicQuery dynamicQuery, int start, int end,
090                    OrderByComparator orderByComparator) throws SystemException {
091                    return getPersistence()
092                                       .findWithDynamicQuery(dynamicQuery, start, end,
093                            orderByComparator);
094            }
095    
096            /**
097             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
098             */
099            public static UserTracker update(UserTracker userTracker)
100                    throws SystemException {
101                    return getPersistence().update(userTracker);
102            }
103    
104            /**
105             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
106             */
107            public static UserTracker update(UserTracker userTracker,
108                    ServiceContext serviceContext) throws SystemException {
109                    return getPersistence().update(userTracker, serviceContext);
110            }
111    
112            /**
113            * Returns all the user trackers where companyId = &#63;.
114            *
115            * @param companyId the company ID
116            * @return the matching user trackers
117            * @throws SystemException if a system exception occurred
118            */
119            public static java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
120                    long companyId)
121                    throws com.liferay.portal.kernel.exception.SystemException {
122                    return getPersistence().findByCompanyId(companyId);
123            }
124    
125            /**
126            * Returns a range of all the user trackers where companyId = &#63;.
127            *
128            * <p>
129            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserTrackerModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
130            * </p>
131            *
132            * @param companyId the company ID
133            * @param start the lower bound of the range of user trackers
134            * @param end the upper bound of the range of user trackers (not inclusive)
135            * @return the range of matching user trackers
136            * @throws SystemException if a system exception occurred
137            */
138            public static java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
139                    long companyId, int start, int end)
140                    throws com.liferay.portal.kernel.exception.SystemException {
141                    return getPersistence().findByCompanyId(companyId, start, end);
142            }
143    
144            /**
145            * Returns an ordered range of all the user trackers where companyId = &#63;.
146            *
147            * <p>
148            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserTrackerModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
149            * </p>
150            *
151            * @param companyId the company ID
152            * @param start the lower bound of the range of user trackers
153            * @param end the upper bound of the range of user trackers (not inclusive)
154            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
155            * @return the ordered range of matching user trackers
156            * @throws SystemException if a system exception occurred
157            */
158            public static java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
159                    long companyId, int start, int end,
160                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence()
163                                       .findByCompanyId(companyId, start, end, orderByComparator);
164            }
165    
166            /**
167            * Returns the first user tracker in the ordered set where companyId = &#63;.
168            *
169            * @param companyId the company ID
170            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
171            * @return the first matching user tracker
172            * @throws com.liferay.portal.NoSuchUserTrackerException if a matching user tracker could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public static com.liferay.portal.model.UserTracker findByCompanyId_First(
176                    long companyId,
177                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178                    throws com.liferay.portal.NoSuchUserTrackerException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return getPersistence()
181                                       .findByCompanyId_First(companyId, orderByComparator);
182            }
183    
184            /**
185            * Returns the first user tracker in the ordered set where companyId = &#63;.
186            *
187            * @param companyId the company ID
188            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
189            * @return the first matching user tracker, or <code>null</code> if a matching user tracker could not be found
190            * @throws SystemException if a system exception occurred
191            */
192            public static com.liferay.portal.model.UserTracker fetchByCompanyId_First(
193                    long companyId,
194                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195                    throws com.liferay.portal.kernel.exception.SystemException {
196                    return getPersistence()
197                                       .fetchByCompanyId_First(companyId, orderByComparator);
198            }
199    
200            /**
201            * Returns the last user tracker in the ordered set where companyId = &#63;.
202            *
203            * @param companyId the company ID
204            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
205            * @return the last matching user tracker
206            * @throws com.liferay.portal.NoSuchUserTrackerException if a matching user tracker could not be found
207            * @throws SystemException if a system exception occurred
208            */
209            public static com.liferay.portal.model.UserTracker findByCompanyId_Last(
210                    long companyId,
211                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212                    throws com.liferay.portal.NoSuchUserTrackerException,
213                            com.liferay.portal.kernel.exception.SystemException {
214                    return getPersistence()
215                                       .findByCompanyId_Last(companyId, orderByComparator);
216            }
217    
218            /**
219            * Returns the last user tracker in the ordered set where companyId = &#63;.
220            *
221            * @param companyId the company ID
222            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
223            * @return the last matching user tracker, or <code>null</code> if a matching user tracker could not be found
224            * @throws SystemException if a system exception occurred
225            */
226            public static com.liferay.portal.model.UserTracker fetchByCompanyId_Last(
227                    long companyId,
228                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return getPersistence()
231                                       .fetchByCompanyId_Last(companyId, orderByComparator);
232            }
233    
234            /**
235            * Returns the user trackers before and after the current user tracker in the ordered set where companyId = &#63;.
236            *
237            * @param userTrackerId the primary key of the current user tracker
238            * @param companyId the company ID
239            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
240            * @return the previous, current, and next user tracker
241            * @throws com.liferay.portal.NoSuchUserTrackerException if a user tracker with the primary key could not be found
242            * @throws SystemException if a system exception occurred
243            */
244            public static com.liferay.portal.model.UserTracker[] findByCompanyId_PrevAndNext(
245                    long userTrackerId, long companyId,
246                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
247                    throws com.liferay.portal.NoSuchUserTrackerException,
248                            com.liferay.portal.kernel.exception.SystemException {
249                    return getPersistence()
250                                       .findByCompanyId_PrevAndNext(userTrackerId, companyId,
251                            orderByComparator);
252            }
253    
254            /**
255            * Removes all the user trackers where companyId = &#63; from the database.
256            *
257            * @param companyId the company ID
258            * @throws SystemException if a system exception occurred
259            */
260            public static void removeByCompanyId(long companyId)
261                    throws com.liferay.portal.kernel.exception.SystemException {
262                    getPersistence().removeByCompanyId(companyId);
263            }
264    
265            /**
266            * Returns the number of user trackers where companyId = &#63;.
267            *
268            * @param companyId the company ID
269            * @return the number of matching user trackers
270            * @throws SystemException if a system exception occurred
271            */
272            public static int countByCompanyId(long companyId)
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    return getPersistence().countByCompanyId(companyId);
275            }
276    
277            /**
278            * Returns all the user trackers where userId = &#63;.
279            *
280            * @param userId the user ID
281            * @return the matching user trackers
282            * @throws SystemException if a system exception occurred
283            */
284            public static java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
285                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
286                    return getPersistence().findByUserId(userId);
287            }
288    
289            /**
290            * Returns a range of all the user trackers where userId = &#63;.
291            *
292            * <p>
293            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserTrackerModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
294            * </p>
295            *
296            * @param userId the user ID
297            * @param start the lower bound of the range of user trackers
298            * @param end the upper bound of the range of user trackers (not inclusive)
299            * @return the range of matching user trackers
300            * @throws SystemException if a system exception occurred
301            */
302            public static java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
303                    long userId, int start, int end)
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    return getPersistence().findByUserId(userId, start, end);
306            }
307    
308            /**
309            * Returns an ordered range of all the user trackers where userId = &#63;.
310            *
311            * <p>
312            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserTrackerModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
313            * </p>
314            *
315            * @param userId the user ID
316            * @param start the lower bound of the range of user trackers
317            * @param end the upper bound of the range of user trackers (not inclusive)
318            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
319            * @return the ordered range of matching user trackers
320            * @throws SystemException if a system exception occurred
321            */
322            public static java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
323                    long userId, int start, int end,
324                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
325                    throws com.liferay.portal.kernel.exception.SystemException {
326                    return getPersistence()
327                                       .findByUserId(userId, start, end, orderByComparator);
328            }
329    
330            /**
331            * Returns the first user tracker in the ordered set where userId = &#63;.
332            *
333            * @param userId the user ID
334            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
335            * @return the first matching user tracker
336            * @throws com.liferay.portal.NoSuchUserTrackerException if a matching user tracker could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public static com.liferay.portal.model.UserTracker findByUserId_First(
340                    long userId,
341                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
342                    throws com.liferay.portal.NoSuchUserTrackerException,
343                            com.liferay.portal.kernel.exception.SystemException {
344                    return getPersistence().findByUserId_First(userId, orderByComparator);
345            }
346    
347            /**
348            * Returns the first user tracker in the ordered set where userId = &#63;.
349            *
350            * @param userId the user ID
351            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
352            * @return the first matching user tracker, or <code>null</code> if a matching user tracker could not be found
353            * @throws SystemException if a system exception occurred
354            */
355            public static com.liferay.portal.model.UserTracker fetchByUserId_First(
356                    long userId,
357                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return getPersistence().fetchByUserId_First(userId, orderByComparator);
360            }
361    
362            /**
363            * Returns the last user tracker in the ordered set where userId = &#63;.
364            *
365            * @param userId the user ID
366            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
367            * @return the last matching user tracker
368            * @throws com.liferay.portal.NoSuchUserTrackerException if a matching user tracker could not be found
369            * @throws SystemException if a system exception occurred
370            */
371            public static com.liferay.portal.model.UserTracker findByUserId_Last(
372                    long userId,
373                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
374                    throws com.liferay.portal.NoSuchUserTrackerException,
375                            com.liferay.portal.kernel.exception.SystemException {
376                    return getPersistence().findByUserId_Last(userId, orderByComparator);
377            }
378    
379            /**
380            * Returns the last user tracker in the ordered set where userId = &#63;.
381            *
382            * @param userId the user ID
383            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
384            * @return the last matching user tracker, or <code>null</code> if a matching user tracker could not be found
385            * @throws SystemException if a system exception occurred
386            */
387            public static com.liferay.portal.model.UserTracker fetchByUserId_Last(
388                    long userId,
389                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
390                    throws com.liferay.portal.kernel.exception.SystemException {
391                    return getPersistence().fetchByUserId_Last(userId, orderByComparator);
392            }
393    
394            /**
395            * Returns the user trackers before and after the current user tracker in the ordered set where userId = &#63;.
396            *
397            * @param userTrackerId the primary key of the current user tracker
398            * @param userId the user ID
399            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
400            * @return the previous, current, and next user tracker
401            * @throws com.liferay.portal.NoSuchUserTrackerException if a user tracker with the primary key could not be found
402            * @throws SystemException if a system exception occurred
403            */
404            public static com.liferay.portal.model.UserTracker[] findByUserId_PrevAndNext(
405                    long userTrackerId, long userId,
406                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
407                    throws com.liferay.portal.NoSuchUserTrackerException,
408                            com.liferay.portal.kernel.exception.SystemException {
409                    return getPersistence()
410                                       .findByUserId_PrevAndNext(userTrackerId, userId,
411                            orderByComparator);
412            }
413    
414            /**
415            * Removes all the user trackers where userId = &#63; from the database.
416            *
417            * @param userId the user ID
418            * @throws SystemException if a system exception occurred
419            */
420            public static void removeByUserId(long userId)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    getPersistence().removeByUserId(userId);
423            }
424    
425            /**
426            * Returns the number of user trackers where userId = &#63;.
427            *
428            * @param userId the user ID
429            * @return the number of matching user trackers
430            * @throws SystemException if a system exception occurred
431            */
432            public static int countByUserId(long userId)
433                    throws com.liferay.portal.kernel.exception.SystemException {
434                    return getPersistence().countByUserId(userId);
435            }
436    
437            /**
438            * Returns all the user trackers where sessionId = &#63;.
439            *
440            * @param sessionId the session ID
441            * @return the matching user trackers
442            * @throws SystemException if a system exception occurred
443            */
444            public static java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
445                    java.lang.String sessionId)
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    return getPersistence().findBySessionId(sessionId);
448            }
449    
450            /**
451            * Returns a range of all the user trackers where sessionId = &#63;.
452            *
453            * <p>
454            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserTrackerModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
455            * </p>
456            *
457            * @param sessionId the session ID
458            * @param start the lower bound of the range of user trackers
459            * @param end the upper bound of the range of user trackers (not inclusive)
460            * @return the range of matching user trackers
461            * @throws SystemException if a system exception occurred
462            */
463            public static java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
464                    java.lang.String sessionId, int start, int end)
465                    throws com.liferay.portal.kernel.exception.SystemException {
466                    return getPersistence().findBySessionId(sessionId, start, end);
467            }
468    
469            /**
470            * Returns an ordered range of all the user trackers where sessionId = &#63;.
471            *
472            * <p>
473            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserTrackerModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
474            * </p>
475            *
476            * @param sessionId the session ID
477            * @param start the lower bound of the range of user trackers
478            * @param end the upper bound of the range of user trackers (not inclusive)
479            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
480            * @return the ordered range of matching user trackers
481            * @throws SystemException if a system exception occurred
482            */
483            public static java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
484                    java.lang.String sessionId, int start, int end,
485                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
486                    throws com.liferay.portal.kernel.exception.SystemException {
487                    return getPersistence()
488                                       .findBySessionId(sessionId, start, end, orderByComparator);
489            }
490    
491            /**
492            * Returns the first user tracker in the ordered set where sessionId = &#63;.
493            *
494            * @param sessionId the session ID
495            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
496            * @return the first matching user tracker
497            * @throws com.liferay.portal.NoSuchUserTrackerException if a matching user tracker could not be found
498            * @throws SystemException if a system exception occurred
499            */
500            public static com.liferay.portal.model.UserTracker findBySessionId_First(
501                    java.lang.String sessionId,
502                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
503                    throws com.liferay.portal.NoSuchUserTrackerException,
504                            com.liferay.portal.kernel.exception.SystemException {
505                    return getPersistence()
506                                       .findBySessionId_First(sessionId, orderByComparator);
507            }
508    
509            /**
510            * Returns the first user tracker in the ordered set where sessionId = &#63;.
511            *
512            * @param sessionId the session ID
513            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
514            * @return the first matching user tracker, or <code>null</code> if a matching user tracker could not be found
515            * @throws SystemException if a system exception occurred
516            */
517            public static com.liferay.portal.model.UserTracker fetchBySessionId_First(
518                    java.lang.String sessionId,
519                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
520                    throws com.liferay.portal.kernel.exception.SystemException {
521                    return getPersistence()
522                                       .fetchBySessionId_First(sessionId, orderByComparator);
523            }
524    
525            /**
526            * Returns the last user tracker in the ordered set where sessionId = &#63;.
527            *
528            * @param sessionId the session ID
529            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
530            * @return the last matching user tracker
531            * @throws com.liferay.portal.NoSuchUserTrackerException if a matching user tracker could not be found
532            * @throws SystemException if a system exception occurred
533            */
534            public static com.liferay.portal.model.UserTracker findBySessionId_Last(
535                    java.lang.String sessionId,
536                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
537                    throws com.liferay.portal.NoSuchUserTrackerException,
538                            com.liferay.portal.kernel.exception.SystemException {
539                    return getPersistence()
540                                       .findBySessionId_Last(sessionId, orderByComparator);
541            }
542    
543            /**
544            * Returns the last user tracker in the ordered set where sessionId = &#63;.
545            *
546            * @param sessionId the session ID
547            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
548            * @return the last matching user tracker, or <code>null</code> if a matching user tracker could not be found
549            * @throws SystemException if a system exception occurred
550            */
551            public static com.liferay.portal.model.UserTracker fetchBySessionId_Last(
552                    java.lang.String sessionId,
553                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
554                    throws com.liferay.portal.kernel.exception.SystemException {
555                    return getPersistence()
556                                       .fetchBySessionId_Last(sessionId, orderByComparator);
557            }
558    
559            /**
560            * Returns the user trackers before and after the current user tracker in the ordered set where sessionId = &#63;.
561            *
562            * @param userTrackerId the primary key of the current user tracker
563            * @param sessionId the session ID
564            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
565            * @return the previous, current, and next user tracker
566            * @throws com.liferay.portal.NoSuchUserTrackerException if a user tracker with the primary key could not be found
567            * @throws SystemException if a system exception occurred
568            */
569            public static com.liferay.portal.model.UserTracker[] findBySessionId_PrevAndNext(
570                    long userTrackerId, java.lang.String sessionId,
571                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
572                    throws com.liferay.portal.NoSuchUserTrackerException,
573                            com.liferay.portal.kernel.exception.SystemException {
574                    return getPersistence()
575                                       .findBySessionId_PrevAndNext(userTrackerId, sessionId,
576                            orderByComparator);
577            }
578    
579            /**
580            * Removes all the user trackers where sessionId = &#63; from the database.
581            *
582            * @param sessionId the session ID
583            * @throws SystemException if a system exception occurred
584            */
585            public static void removeBySessionId(java.lang.String sessionId)
586                    throws com.liferay.portal.kernel.exception.SystemException {
587                    getPersistence().removeBySessionId(sessionId);
588            }
589    
590            /**
591            * Returns the number of user trackers where sessionId = &#63;.
592            *
593            * @param sessionId the session ID
594            * @return the number of matching user trackers
595            * @throws SystemException if a system exception occurred
596            */
597            public static int countBySessionId(java.lang.String sessionId)
598                    throws com.liferay.portal.kernel.exception.SystemException {
599                    return getPersistence().countBySessionId(sessionId);
600            }
601    
602            /**
603            * Caches the user tracker in the entity cache if it is enabled.
604            *
605            * @param userTracker the user tracker
606            */
607            public static void cacheResult(
608                    com.liferay.portal.model.UserTracker userTracker) {
609                    getPersistence().cacheResult(userTracker);
610            }
611    
612            /**
613            * Caches the user trackers in the entity cache if it is enabled.
614            *
615            * @param userTrackers the user trackers
616            */
617            public static void cacheResult(
618                    java.util.List<com.liferay.portal.model.UserTracker> userTrackers) {
619                    getPersistence().cacheResult(userTrackers);
620            }
621    
622            /**
623            * Creates a new user tracker with the primary key. Does not add the user tracker to the database.
624            *
625            * @param userTrackerId the primary key for the new user tracker
626            * @return the new user tracker
627            */
628            public static com.liferay.portal.model.UserTracker create(
629                    long userTrackerId) {
630                    return getPersistence().create(userTrackerId);
631            }
632    
633            /**
634            * Removes the user tracker with the primary key from the database. Also notifies the appropriate model listeners.
635            *
636            * @param userTrackerId the primary key of the user tracker
637            * @return the user tracker that was removed
638            * @throws com.liferay.portal.NoSuchUserTrackerException if a user tracker with the primary key could not be found
639            * @throws SystemException if a system exception occurred
640            */
641            public static com.liferay.portal.model.UserTracker remove(
642                    long userTrackerId)
643                    throws com.liferay.portal.NoSuchUserTrackerException,
644                            com.liferay.portal.kernel.exception.SystemException {
645                    return getPersistence().remove(userTrackerId);
646            }
647    
648            public static com.liferay.portal.model.UserTracker updateImpl(
649                    com.liferay.portal.model.UserTracker userTracker)
650                    throws com.liferay.portal.kernel.exception.SystemException {
651                    return getPersistence().updateImpl(userTracker);
652            }
653    
654            /**
655            * Returns the user tracker with the primary key or throws a {@link com.liferay.portal.NoSuchUserTrackerException} if it could not be found.
656            *
657            * @param userTrackerId the primary key of the user tracker
658            * @return the user tracker
659            * @throws com.liferay.portal.NoSuchUserTrackerException if a user tracker with the primary key could not be found
660            * @throws SystemException if a system exception occurred
661            */
662            public static com.liferay.portal.model.UserTracker findByPrimaryKey(
663                    long userTrackerId)
664                    throws com.liferay.portal.NoSuchUserTrackerException,
665                            com.liferay.portal.kernel.exception.SystemException {
666                    return getPersistence().findByPrimaryKey(userTrackerId);
667            }
668    
669            /**
670            * Returns the user tracker with the primary key or returns <code>null</code> if it could not be found.
671            *
672            * @param userTrackerId the primary key of the user tracker
673            * @return the user tracker, or <code>null</code> if a user tracker with the primary key could not be found
674            * @throws SystemException if a system exception occurred
675            */
676            public static com.liferay.portal.model.UserTracker fetchByPrimaryKey(
677                    long userTrackerId)
678                    throws com.liferay.portal.kernel.exception.SystemException {
679                    return getPersistence().fetchByPrimaryKey(userTrackerId);
680            }
681    
682            /**
683            * Returns all the user trackers.
684            *
685            * @return the user trackers
686            * @throws SystemException if a system exception occurred
687            */
688            public static java.util.List<com.liferay.portal.model.UserTracker> findAll()
689                    throws com.liferay.portal.kernel.exception.SystemException {
690                    return getPersistence().findAll();
691            }
692    
693            /**
694            * Returns a range of all the user trackers.
695            *
696            * <p>
697            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserTrackerModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
698            * </p>
699            *
700            * @param start the lower bound of the range of user trackers
701            * @param end the upper bound of the range of user trackers (not inclusive)
702            * @return the range of user trackers
703            * @throws SystemException if a system exception occurred
704            */
705            public static java.util.List<com.liferay.portal.model.UserTracker> findAll(
706                    int start, int end)
707                    throws com.liferay.portal.kernel.exception.SystemException {
708                    return getPersistence().findAll(start, end);
709            }
710    
711            /**
712            * Returns an ordered range of all the user trackers.
713            *
714            * <p>
715            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserTrackerModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
716            * </p>
717            *
718            * @param start the lower bound of the range of user trackers
719            * @param end the upper bound of the range of user trackers (not inclusive)
720            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
721            * @return the ordered range of user trackers
722            * @throws SystemException if a system exception occurred
723            */
724            public static java.util.List<com.liferay.portal.model.UserTracker> findAll(
725                    int start, int end,
726                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
727                    throws com.liferay.portal.kernel.exception.SystemException {
728                    return getPersistence().findAll(start, end, orderByComparator);
729            }
730    
731            /**
732            * Removes all the user trackers from the database.
733            *
734            * @throws SystemException if a system exception occurred
735            */
736            public static void removeAll()
737                    throws com.liferay.portal.kernel.exception.SystemException {
738                    getPersistence().removeAll();
739            }
740    
741            /**
742            * Returns the number of user trackers.
743            *
744            * @return the number of user trackers
745            * @throws SystemException if a system exception occurred
746            */
747            public static int countAll()
748                    throws com.liferay.portal.kernel.exception.SystemException {
749                    return getPersistence().countAll();
750            }
751    
752            public static UserTrackerPersistence getPersistence() {
753                    if (_persistence == null) {
754                            _persistence = (UserTrackerPersistence)PortalBeanLocatorUtil.locate(UserTrackerPersistence.class.getName());
755    
756                            ReferenceRegistry.registerReference(UserTrackerUtil.class,
757                                    "_persistence");
758                    }
759    
760                    return _persistence;
761            }
762    
763            /**
764             * @deprecated As of 6.2.0
765             */
766            public void setPersistence(UserTrackerPersistence persistence) {
767            }
768    
769            private static UserTrackerPersistence _persistence;
770    }