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