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.model.UserTracker;
020    
021    /**
022     * The persistence interface for the user tracker service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see UserTrackerPersistenceImpl
030     * @see UserTrackerUtil
031     * @generated
032     */
033    @ProviderType
034    public interface UserTrackerPersistence extends BasePersistence<UserTracker> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify or reference this interface directly. Always use {@link UserTrackerUtil} to access the user tracker persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Returns all the user trackers where companyId = &#63;.
043            *
044            * @param companyId the company ID
045            * @return the matching user trackers
046            * @throws SystemException if a system exception occurred
047            */
048            public java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
049                    long companyId)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    
052            /**
053            * Returns a range of all the user trackers where companyId = &#63;.
054            *
055            * <p>
056            * 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.
057            * </p>
058            *
059            * @param companyId the company ID
060            * @param start the lower bound of the range of user trackers
061            * @param end the upper bound of the range of user trackers (not inclusive)
062            * @return the range of matching user trackers
063            * @throws SystemException if a system exception occurred
064            */
065            public java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
066                    long companyId, int start, int end)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            /**
070            * Returns an ordered range of all the user trackers where companyId = &#63;.
071            *
072            * <p>
073            * 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.
074            * </p>
075            *
076            * @param companyId the company ID
077            * @param start the lower bound of the range of user trackers
078            * @param end the upper bound of the range of user trackers (not inclusive)
079            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
080            * @return the ordered range of matching user trackers
081            * @throws SystemException if a system exception occurred
082            */
083            public java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
084                    long companyId, int start, int end,
085                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
086                    throws com.liferay.portal.kernel.exception.SystemException;
087    
088            /**
089            * Returns the first user tracker in the ordered set where companyId = &#63;.
090            *
091            * @param companyId the company ID
092            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
093            * @return the first matching user tracker
094            * @throws com.liferay.portal.NoSuchUserTrackerException if a matching user tracker could not be found
095            * @throws SystemException if a system exception occurred
096            */
097            public com.liferay.portal.model.UserTracker findByCompanyId_First(
098                    long companyId,
099                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100                    throws com.liferay.portal.NoSuchUserTrackerException,
101                            com.liferay.portal.kernel.exception.SystemException;
102    
103            /**
104            * Returns the first user tracker in the ordered set where companyId = &#63;.
105            *
106            * @param companyId the company ID
107            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
108            * @return the first matching user tracker, or <code>null</code> if a matching user tracker could not be found
109            * @throws SystemException if a system exception occurred
110            */
111            public com.liferay.portal.model.UserTracker fetchByCompanyId_First(
112                    long companyId,
113                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Returns the last user tracker in the ordered set where companyId = &#63;.
118            *
119            * @param companyId the company ID
120            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
121            * @return the last matching user tracker
122            * @throws com.liferay.portal.NoSuchUserTrackerException if a matching user tracker could not be found
123            * @throws SystemException if a system exception occurred
124            */
125            public com.liferay.portal.model.UserTracker findByCompanyId_Last(
126                    long companyId,
127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128                    throws com.liferay.portal.NoSuchUserTrackerException,
129                            com.liferay.portal.kernel.exception.SystemException;
130    
131            /**
132            * Returns the last user tracker in the ordered set where companyId = &#63;.
133            *
134            * @param companyId the company ID
135            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
136            * @return the last matching user tracker, or <code>null</code> if a matching user tracker could not be found
137            * @throws SystemException if a system exception occurred
138            */
139            public com.liferay.portal.model.UserTracker fetchByCompanyId_Last(
140                    long companyId,
141                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142                    throws com.liferay.portal.kernel.exception.SystemException;
143    
144            /**
145            * Returns the user trackers before and after the current user tracker in the ordered set where companyId = &#63;.
146            *
147            * @param userTrackerId the primary key of the current user tracker
148            * @param companyId the company ID
149            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
150            * @return the previous, current, and next user tracker
151            * @throws com.liferay.portal.NoSuchUserTrackerException if a user tracker with the primary key could not be found
152            * @throws SystemException if a system exception occurred
153            */
154            public com.liferay.portal.model.UserTracker[] findByCompanyId_PrevAndNext(
155                    long userTrackerId, long companyId,
156                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157                    throws com.liferay.portal.NoSuchUserTrackerException,
158                            com.liferay.portal.kernel.exception.SystemException;
159    
160            /**
161            * Removes all the user trackers where companyId = &#63; from the database.
162            *
163            * @param companyId the company ID
164            * @throws SystemException if a system exception occurred
165            */
166            public void removeByCompanyId(long companyId)
167                    throws com.liferay.portal.kernel.exception.SystemException;
168    
169            /**
170            * Returns the number of user trackers where companyId = &#63;.
171            *
172            * @param companyId the company ID
173            * @return the number of matching user trackers
174            * @throws SystemException if a system exception occurred
175            */
176            public int countByCompanyId(long companyId)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            /**
180            * Returns all the user trackers where userId = &#63;.
181            *
182            * @param userId the user ID
183            * @return the matching user trackers
184            * @throws SystemException if a system exception occurred
185            */
186            public java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
187                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
188    
189            /**
190            * Returns a range of all the user trackers where userId = &#63;.
191            *
192            * <p>
193            * 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.
194            * </p>
195            *
196            * @param userId the user ID
197            * @param start the lower bound of the range of user trackers
198            * @param end the upper bound of the range of user trackers (not inclusive)
199            * @return the range of matching user trackers
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
203                    long userId, int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            /**
207            * Returns an ordered range of all the user trackers where userId = &#63;.
208            *
209            * <p>
210            * 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.
211            * </p>
212            *
213            * @param userId the user ID
214            * @param start the lower bound of the range of user trackers
215            * @param end the upper bound of the range of user trackers (not inclusive)
216            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
217            * @return the ordered range of matching user trackers
218            * @throws SystemException if a system exception occurred
219            */
220            public java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
221                    long userId, int start, int end,
222                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223                    throws com.liferay.portal.kernel.exception.SystemException;
224    
225            /**
226            * Returns the first user tracker in the ordered set where userId = &#63;.
227            *
228            * @param userId the user ID
229            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
230            * @return the first matching user tracker
231            * @throws com.liferay.portal.NoSuchUserTrackerException if a matching user tracker could not be found
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portal.model.UserTracker findByUserId_First(
235                    long userId,
236                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
237                    throws com.liferay.portal.NoSuchUserTrackerException,
238                            com.liferay.portal.kernel.exception.SystemException;
239    
240            /**
241            * Returns the first user tracker in the ordered set where userId = &#63;.
242            *
243            * @param userId the user ID
244            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
245            * @return the first matching user tracker, or <code>null</code> if a matching user tracker could not be found
246            * @throws SystemException if a system exception occurred
247            */
248            public com.liferay.portal.model.UserTracker fetchByUserId_First(
249                    long userId,
250                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251                    throws com.liferay.portal.kernel.exception.SystemException;
252    
253            /**
254            * Returns the last user tracker in the ordered set where userId = &#63;.
255            *
256            * @param userId the user ID
257            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
258            * @return the last matching user tracker
259            * @throws com.liferay.portal.NoSuchUserTrackerException if a matching user tracker could not be found
260            * @throws SystemException if a system exception occurred
261            */
262            public com.liferay.portal.model.UserTracker findByUserId_Last(long userId,
263                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264                    throws com.liferay.portal.NoSuchUserTrackerException,
265                            com.liferay.portal.kernel.exception.SystemException;
266    
267            /**
268            * Returns the last user tracker in the ordered set where userId = &#63;.
269            *
270            * @param userId the user ID
271            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
272            * @return the last matching user tracker, or <code>null</code> if a matching user tracker could not be found
273            * @throws SystemException if a system exception occurred
274            */
275            public com.liferay.portal.model.UserTracker fetchByUserId_Last(
276                    long userId,
277                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
278                    throws com.liferay.portal.kernel.exception.SystemException;
279    
280            /**
281            * Returns the user trackers before and after the current user tracker in the ordered set where userId = &#63;.
282            *
283            * @param userTrackerId the primary key of the current user tracker
284            * @param userId the user ID
285            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
286            * @return the previous, current, and next user tracker
287            * @throws com.liferay.portal.NoSuchUserTrackerException if a user tracker with the primary key could not be found
288            * @throws SystemException if a system exception occurred
289            */
290            public com.liferay.portal.model.UserTracker[] findByUserId_PrevAndNext(
291                    long userTrackerId, long userId,
292                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293                    throws com.liferay.portal.NoSuchUserTrackerException,
294                            com.liferay.portal.kernel.exception.SystemException;
295    
296            /**
297            * Removes all the user trackers where userId = &#63; from the database.
298            *
299            * @param userId the user ID
300            * @throws SystemException if a system exception occurred
301            */
302            public void removeByUserId(long userId)
303                    throws com.liferay.portal.kernel.exception.SystemException;
304    
305            /**
306            * Returns the number of user trackers where userId = &#63;.
307            *
308            * @param userId the user ID
309            * @return the number of matching user trackers
310            * @throws SystemException if a system exception occurred
311            */
312            public int countByUserId(long userId)
313                    throws com.liferay.portal.kernel.exception.SystemException;
314    
315            /**
316            * Returns all the user trackers where sessionId = &#63;.
317            *
318            * @param sessionId the session ID
319            * @return the matching user trackers
320            * @throws SystemException if a system exception occurred
321            */
322            public java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
323                    java.lang.String sessionId)
324                    throws com.liferay.portal.kernel.exception.SystemException;
325    
326            /**
327            * Returns a range of all the user trackers where sessionId = &#63;.
328            *
329            * <p>
330            * 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.
331            * </p>
332            *
333            * @param sessionId the session ID
334            * @param start the lower bound of the range of user trackers
335            * @param end the upper bound of the range of user trackers (not inclusive)
336            * @return the range of matching user trackers
337            * @throws SystemException if a system exception occurred
338            */
339            public java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
340                    java.lang.String sessionId, int start, int end)
341                    throws com.liferay.portal.kernel.exception.SystemException;
342    
343            /**
344            * Returns an ordered range of all the user trackers where sessionId = &#63;.
345            *
346            * <p>
347            * 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.
348            * </p>
349            *
350            * @param sessionId the session ID
351            * @param start the lower bound of the range of user trackers
352            * @param end the upper bound of the range of user trackers (not inclusive)
353            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
354            * @return the ordered range of matching user trackers
355            * @throws SystemException if a system exception occurred
356            */
357            public java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
358                    java.lang.String sessionId, int start, int end,
359                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
360                    throws com.liferay.portal.kernel.exception.SystemException;
361    
362            /**
363            * Returns the first user tracker in the ordered set where sessionId = &#63;.
364            *
365            * @param sessionId the session ID
366            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
367            * @return the first matching user tracker
368            * @throws com.liferay.portal.NoSuchUserTrackerException if a matching user tracker could not be found
369            * @throws SystemException if a system exception occurred
370            */
371            public com.liferay.portal.model.UserTracker findBySessionId_First(
372                    java.lang.String sessionId,
373                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
374                    throws com.liferay.portal.NoSuchUserTrackerException,
375                            com.liferay.portal.kernel.exception.SystemException;
376    
377            /**
378            * Returns the first user tracker in the ordered set where sessionId = &#63;.
379            *
380            * @param sessionId the session ID
381            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
382            * @return the first matching user tracker, or <code>null</code> if a matching user tracker could not be found
383            * @throws SystemException if a system exception occurred
384            */
385            public com.liferay.portal.model.UserTracker fetchBySessionId_First(
386                    java.lang.String sessionId,
387                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
388                    throws com.liferay.portal.kernel.exception.SystemException;
389    
390            /**
391            * Returns the last user tracker in the ordered set where sessionId = &#63;.
392            *
393            * @param sessionId the session ID
394            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
395            * @return the last matching user tracker
396            * @throws com.liferay.portal.NoSuchUserTrackerException if a matching user tracker could not be found
397            * @throws SystemException if a system exception occurred
398            */
399            public com.liferay.portal.model.UserTracker findBySessionId_Last(
400                    java.lang.String sessionId,
401                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
402                    throws com.liferay.portal.NoSuchUserTrackerException,
403                            com.liferay.portal.kernel.exception.SystemException;
404    
405            /**
406            * Returns the last user tracker in the ordered set where sessionId = &#63;.
407            *
408            * @param sessionId the session ID
409            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
410            * @return the last matching user tracker, or <code>null</code> if a matching user tracker could not be found
411            * @throws SystemException if a system exception occurred
412            */
413            public com.liferay.portal.model.UserTracker fetchBySessionId_Last(
414                    java.lang.String sessionId,
415                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
416                    throws com.liferay.portal.kernel.exception.SystemException;
417    
418            /**
419            * Returns the user trackers before and after the current user tracker in the ordered set where sessionId = &#63;.
420            *
421            * @param userTrackerId the primary key of the current user tracker
422            * @param sessionId the session ID
423            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
424            * @return the previous, current, and next user tracker
425            * @throws com.liferay.portal.NoSuchUserTrackerException if a user tracker with the primary key could not be found
426            * @throws SystemException if a system exception occurred
427            */
428            public com.liferay.portal.model.UserTracker[] findBySessionId_PrevAndNext(
429                    long userTrackerId, java.lang.String sessionId,
430                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
431                    throws com.liferay.portal.NoSuchUserTrackerException,
432                            com.liferay.portal.kernel.exception.SystemException;
433    
434            /**
435            * Removes all the user trackers where sessionId = &#63; from the database.
436            *
437            * @param sessionId the session ID
438            * @throws SystemException if a system exception occurred
439            */
440            public void removeBySessionId(java.lang.String sessionId)
441                    throws com.liferay.portal.kernel.exception.SystemException;
442    
443            /**
444            * Returns the number of user trackers where sessionId = &#63;.
445            *
446            * @param sessionId the session ID
447            * @return the number of matching user trackers
448            * @throws SystemException if a system exception occurred
449            */
450            public int countBySessionId(java.lang.String sessionId)
451                    throws com.liferay.portal.kernel.exception.SystemException;
452    
453            /**
454            * Caches the user tracker in the entity cache if it is enabled.
455            *
456            * @param userTracker the user tracker
457            */
458            public void cacheResult(com.liferay.portal.model.UserTracker userTracker);
459    
460            /**
461            * Caches the user trackers in the entity cache if it is enabled.
462            *
463            * @param userTrackers the user trackers
464            */
465            public void cacheResult(
466                    java.util.List<com.liferay.portal.model.UserTracker> userTrackers);
467    
468            /**
469            * Creates a new user tracker with the primary key. Does not add the user tracker to the database.
470            *
471            * @param userTrackerId the primary key for the new user tracker
472            * @return the new user tracker
473            */
474            public com.liferay.portal.model.UserTracker create(long userTrackerId);
475    
476            /**
477            * Removes the user tracker with the primary key from the database. Also notifies the appropriate model listeners.
478            *
479            * @param userTrackerId the primary key of the user tracker
480            * @return the user tracker that was removed
481            * @throws com.liferay.portal.NoSuchUserTrackerException if a user tracker with the primary key could not be found
482            * @throws SystemException if a system exception occurred
483            */
484            public com.liferay.portal.model.UserTracker remove(long userTrackerId)
485                    throws com.liferay.portal.NoSuchUserTrackerException,
486                            com.liferay.portal.kernel.exception.SystemException;
487    
488            public com.liferay.portal.model.UserTracker updateImpl(
489                    com.liferay.portal.model.UserTracker userTracker)
490                    throws com.liferay.portal.kernel.exception.SystemException;
491    
492            /**
493            * Returns the user tracker with the primary key or throws a {@link com.liferay.portal.NoSuchUserTrackerException} if it could not be found.
494            *
495            * @param userTrackerId the primary key of the user tracker
496            * @return the user tracker
497            * @throws com.liferay.portal.NoSuchUserTrackerException if a user tracker with the primary key could not be found
498            * @throws SystemException if a system exception occurred
499            */
500            public com.liferay.portal.model.UserTracker findByPrimaryKey(
501                    long userTrackerId)
502                    throws com.liferay.portal.NoSuchUserTrackerException,
503                            com.liferay.portal.kernel.exception.SystemException;
504    
505            /**
506            * Returns the user tracker with the primary key or returns <code>null</code> if it could not be found.
507            *
508            * @param userTrackerId the primary key of the user tracker
509            * @return the user tracker, or <code>null</code> if a user tracker with the primary key could not be found
510            * @throws SystemException if a system exception occurred
511            */
512            public com.liferay.portal.model.UserTracker fetchByPrimaryKey(
513                    long userTrackerId)
514                    throws com.liferay.portal.kernel.exception.SystemException;
515    
516            /**
517            * Returns all the user trackers.
518            *
519            * @return the user trackers
520            * @throws SystemException if a system exception occurred
521            */
522            public java.util.List<com.liferay.portal.model.UserTracker> findAll()
523                    throws com.liferay.portal.kernel.exception.SystemException;
524    
525            /**
526            * Returns a range of all the user trackers.
527            *
528            * <p>
529            * 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.
530            * </p>
531            *
532            * @param start the lower bound of the range of user trackers
533            * @param end the upper bound of the range of user trackers (not inclusive)
534            * @return the range of user trackers
535            * @throws SystemException if a system exception occurred
536            */
537            public java.util.List<com.liferay.portal.model.UserTracker> findAll(
538                    int start, int end)
539                    throws com.liferay.portal.kernel.exception.SystemException;
540    
541            /**
542            * Returns an ordered range of all the user trackers.
543            *
544            * <p>
545            * 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.
546            * </p>
547            *
548            * @param start the lower bound of the range of user trackers
549            * @param end the upper bound of the range of user trackers (not inclusive)
550            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
551            * @return the ordered range of user trackers
552            * @throws SystemException if a system exception occurred
553            */
554            public java.util.List<com.liferay.portal.model.UserTracker> findAll(
555                    int start, int end,
556                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
557                    throws com.liferay.portal.kernel.exception.SystemException;
558    
559            /**
560            * Removes all the user trackers from the database.
561            *
562            * @throws SystemException if a system exception occurred
563            */
564            public void removeAll()
565                    throws com.liferay.portal.kernel.exception.SystemException;
566    
567            /**
568            * Returns the number of user trackers.
569            *
570            * @return the number of user trackers
571            * @throws SystemException if a system exception occurred
572            */
573            public int countAll()
574                    throws com.liferay.portal.kernel.exception.SystemException;
575    }