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