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