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