001 /** 002 * Copyright (c) 2000-2012 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 = ?. 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 = ?. 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 = ?. 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 = ?. 150 * 151 * <p> 152 * 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. 153 * </p> 154 * 155 * @param companyId the company ID 156 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 157 * @return the first matching user tracker 158 * @throws com.liferay.portal.NoSuchUserTrackerException if a matching user tracker could not be found 159 * @throws SystemException if a system exception occurred 160 */ 161 public com.liferay.portal.model.UserTracker findByCompanyId_First( 162 long companyId, 163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 164 throws com.liferay.portal.NoSuchUserTrackerException, 165 com.liferay.portal.kernel.exception.SystemException; 166 167 /** 168 * Returns the last user tracker in the ordered set where companyId = ?. 169 * 170 * <p> 171 * 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. 172 * </p> 173 * 174 * @param companyId the company ID 175 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 176 * @return the last matching user tracker 177 * @throws com.liferay.portal.NoSuchUserTrackerException if a matching user tracker could not be found 178 * @throws SystemException if a system exception occurred 179 */ 180 public com.liferay.portal.model.UserTracker findByCompanyId_Last( 181 long companyId, 182 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 183 throws com.liferay.portal.NoSuchUserTrackerException, 184 com.liferay.portal.kernel.exception.SystemException; 185 186 /** 187 * Returns the user trackers before and after the current user tracker in the ordered set where companyId = ?. 188 * 189 * <p> 190 * 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. 191 * </p> 192 * 193 * @param userTrackerId the primary key of the current user tracker 194 * @param companyId the company ID 195 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 196 * @return the previous, current, and next user tracker 197 * @throws com.liferay.portal.NoSuchUserTrackerException if a user tracker with the primary key could not be found 198 * @throws SystemException if a system exception occurred 199 */ 200 public com.liferay.portal.model.UserTracker[] findByCompanyId_PrevAndNext( 201 long userTrackerId, long companyId, 202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 203 throws com.liferay.portal.NoSuchUserTrackerException, 204 com.liferay.portal.kernel.exception.SystemException; 205 206 /** 207 * Returns all the user trackers where userId = ?. 208 * 209 * @param userId the user ID 210 * @return the matching user trackers 211 * @throws SystemException if a system exception occurred 212 */ 213 public java.util.List<com.liferay.portal.model.UserTracker> findByUserId( 214 long userId) throws com.liferay.portal.kernel.exception.SystemException; 215 216 /** 217 * Returns a range of all the user trackers where userId = ?. 218 * 219 * <p> 220 * 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. 221 * </p> 222 * 223 * @param userId the user ID 224 * @param start the lower bound of the range of user trackers 225 * @param end the upper bound of the range of user trackers (not inclusive) 226 * @return the range of matching user trackers 227 * @throws SystemException if a system exception occurred 228 */ 229 public java.util.List<com.liferay.portal.model.UserTracker> findByUserId( 230 long userId, int start, int end) 231 throws com.liferay.portal.kernel.exception.SystemException; 232 233 /** 234 * Returns an ordered range of all the user trackers where userId = ?. 235 * 236 * <p> 237 * 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. 238 * </p> 239 * 240 * @param userId the user ID 241 * @param start the lower bound of the range of user trackers 242 * @param end the upper bound of the range of user trackers (not inclusive) 243 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 244 * @return the ordered range of matching user trackers 245 * @throws SystemException if a system exception occurred 246 */ 247 public java.util.List<com.liferay.portal.model.UserTracker> findByUserId( 248 long userId, int start, int end, 249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * Returns the first user tracker in the ordered set where userId = ?. 254 * 255 * <p> 256 * 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. 257 * </p> 258 * 259 * @param userId the user ID 260 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 261 * @return the first matching user tracker 262 * @throws com.liferay.portal.NoSuchUserTrackerException if a matching user tracker could not be found 263 * @throws SystemException if a system exception occurred 264 */ 265 public com.liferay.portal.model.UserTracker findByUserId_First( 266 long userId, 267 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 268 throws com.liferay.portal.NoSuchUserTrackerException, 269 com.liferay.portal.kernel.exception.SystemException; 270 271 /** 272 * Returns the last user tracker in the ordered set where userId = ?. 273 * 274 * <p> 275 * 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. 276 * </p> 277 * 278 * @param userId the user ID 279 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 280 * @return the last matching user tracker 281 * @throws com.liferay.portal.NoSuchUserTrackerException if a matching user tracker could not be found 282 * @throws SystemException if a system exception occurred 283 */ 284 public com.liferay.portal.model.UserTracker findByUserId_Last(long userId, 285 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 286 throws com.liferay.portal.NoSuchUserTrackerException, 287 com.liferay.portal.kernel.exception.SystemException; 288 289 /** 290 * Returns the user trackers before and after the current user tracker in the ordered set where userId = ?. 291 * 292 * <p> 293 * 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. 294 * </p> 295 * 296 * @param userTrackerId the primary key of the current user tracker 297 * @param userId the user ID 298 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 299 * @return the previous, current, and next user tracker 300 * @throws com.liferay.portal.NoSuchUserTrackerException if a user tracker with the primary key could not be found 301 * @throws SystemException if a system exception occurred 302 */ 303 public com.liferay.portal.model.UserTracker[] findByUserId_PrevAndNext( 304 long userTrackerId, long userId, 305 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 306 throws com.liferay.portal.NoSuchUserTrackerException, 307 com.liferay.portal.kernel.exception.SystemException; 308 309 /** 310 * Returns all the user trackers where sessionId = ?. 311 * 312 * @param sessionId the session ID 313 * @return the matching user trackers 314 * @throws SystemException if a system exception occurred 315 */ 316 public java.util.List<com.liferay.portal.model.UserTracker> findBySessionId( 317 java.lang.String sessionId) 318 throws com.liferay.portal.kernel.exception.SystemException; 319 320 /** 321 * Returns a range of all the user trackers where sessionId = ?. 322 * 323 * <p> 324 * 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. 325 * </p> 326 * 327 * @param sessionId the session ID 328 * @param start the lower bound of the range of user trackers 329 * @param end the upper bound of the range of user trackers (not inclusive) 330 * @return the range of matching user trackers 331 * @throws SystemException if a system exception occurred 332 */ 333 public java.util.List<com.liferay.portal.model.UserTracker> findBySessionId( 334 java.lang.String sessionId, int start, int end) 335 throws com.liferay.portal.kernel.exception.SystemException; 336 337 /** 338 * Returns an ordered range of all the user trackers where sessionId = ?. 339 * 340 * <p> 341 * 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. 342 * </p> 343 * 344 * @param sessionId the session ID 345 * @param start the lower bound of the range of user trackers 346 * @param end the upper bound of the range of user trackers (not inclusive) 347 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 348 * @return the ordered range of matching user trackers 349 * @throws SystemException if a system exception occurred 350 */ 351 public java.util.List<com.liferay.portal.model.UserTracker> findBySessionId( 352 java.lang.String sessionId, int start, int end, 353 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 354 throws com.liferay.portal.kernel.exception.SystemException; 355 356 /** 357 * Returns the first user tracker in the ordered set where sessionId = ?. 358 * 359 * <p> 360 * 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. 361 * </p> 362 * 363 * @param sessionId the session ID 364 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 365 * @return the first matching user tracker 366 * @throws com.liferay.portal.NoSuchUserTrackerException if a matching user tracker could not be found 367 * @throws SystemException if a system exception occurred 368 */ 369 public com.liferay.portal.model.UserTracker findBySessionId_First( 370 java.lang.String sessionId, 371 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 372 throws com.liferay.portal.NoSuchUserTrackerException, 373 com.liferay.portal.kernel.exception.SystemException; 374 375 /** 376 * Returns the last user tracker in the ordered set where sessionId = ?. 377 * 378 * <p> 379 * 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. 380 * </p> 381 * 382 * @param sessionId the session ID 383 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 384 * @return the last matching user tracker 385 * @throws com.liferay.portal.NoSuchUserTrackerException if a matching user tracker could not be found 386 * @throws SystemException if a system exception occurred 387 */ 388 public com.liferay.portal.model.UserTracker findBySessionId_Last( 389 java.lang.String sessionId, 390 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 391 throws com.liferay.portal.NoSuchUserTrackerException, 392 com.liferay.portal.kernel.exception.SystemException; 393 394 /** 395 * Returns the user trackers before and after the current user tracker in the ordered set where sessionId = ?. 396 * 397 * <p> 398 * 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. 399 * </p> 400 * 401 * @param userTrackerId the primary key of the current user tracker 402 * @param sessionId the session ID 403 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 404 * @return the previous, current, and next user tracker 405 * @throws com.liferay.portal.NoSuchUserTrackerException if a user tracker with the primary key could not be found 406 * @throws SystemException if a system exception occurred 407 */ 408 public com.liferay.portal.model.UserTracker[] findBySessionId_PrevAndNext( 409 long userTrackerId, java.lang.String sessionId, 410 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 411 throws com.liferay.portal.NoSuchUserTrackerException, 412 com.liferay.portal.kernel.exception.SystemException; 413 414 /** 415 * Returns all the user trackers. 416 * 417 * @return the user trackers 418 * @throws SystemException if a system exception occurred 419 */ 420 public java.util.List<com.liferay.portal.model.UserTracker> findAll() 421 throws com.liferay.portal.kernel.exception.SystemException; 422 423 /** 424 * Returns a range of all the user trackers. 425 * 426 * <p> 427 * 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. 428 * </p> 429 * 430 * @param start the lower bound of the range of user trackers 431 * @param end the upper bound of the range of user trackers (not inclusive) 432 * @return the range of user trackers 433 * @throws SystemException if a system exception occurred 434 */ 435 public java.util.List<com.liferay.portal.model.UserTracker> findAll( 436 int start, int end) 437 throws com.liferay.portal.kernel.exception.SystemException; 438 439 /** 440 * Returns an ordered range of all the user trackers. 441 * 442 * <p> 443 * 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. 444 * </p> 445 * 446 * @param start the lower bound of the range of user trackers 447 * @param end the upper bound of the range of user trackers (not inclusive) 448 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 449 * @return the ordered range of user trackers 450 * @throws SystemException if a system exception occurred 451 */ 452 public java.util.List<com.liferay.portal.model.UserTracker> findAll( 453 int start, int end, 454 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 455 throws com.liferay.portal.kernel.exception.SystemException; 456 457 /** 458 * Removes all the user trackers where companyId = ? from the database. 459 * 460 * @param companyId the company ID 461 * @throws SystemException if a system exception occurred 462 */ 463 public void removeByCompanyId(long companyId) 464 throws com.liferay.portal.kernel.exception.SystemException; 465 466 /** 467 * Removes all the user trackers where userId = ? from the database. 468 * 469 * @param userId the user ID 470 * @throws SystemException if a system exception occurred 471 */ 472 public void removeByUserId(long userId) 473 throws com.liferay.portal.kernel.exception.SystemException; 474 475 /** 476 * Removes all the user trackers where sessionId = ? from the database. 477 * 478 * @param sessionId the session ID 479 * @throws SystemException if a system exception occurred 480 */ 481 public void removeBySessionId(java.lang.String sessionId) 482 throws com.liferay.portal.kernel.exception.SystemException; 483 484 /** 485 * Removes all the user trackers from the database. 486 * 487 * @throws SystemException if a system exception occurred 488 */ 489 public void removeAll() 490 throws com.liferay.portal.kernel.exception.SystemException; 491 492 /** 493 * Returns the number of user trackers where companyId = ?. 494 * 495 * @param companyId the company ID 496 * @return the number of matching user trackers 497 * @throws SystemException if a system exception occurred 498 */ 499 public int countByCompanyId(long companyId) 500 throws com.liferay.portal.kernel.exception.SystemException; 501 502 /** 503 * Returns the number of user trackers where userId = ?. 504 * 505 * @param userId the user ID 506 * @return the number of matching user trackers 507 * @throws SystemException if a system exception occurred 508 */ 509 public int countByUserId(long userId) 510 throws com.liferay.portal.kernel.exception.SystemException; 511 512 /** 513 * Returns the number of user trackers where sessionId = ?. 514 * 515 * @param sessionId the session ID 516 * @return the number of matching user trackers 517 * @throws SystemException if a system exception occurred 518 */ 519 public int countBySessionId(java.lang.String sessionId) 520 throws com.liferay.portal.kernel.exception.SystemException; 521 522 /** 523 * Returns the number of user trackers. 524 * 525 * @return the number of user trackers 526 * @throws SystemException if a system exception occurred 527 */ 528 public int countAll() 529 throws com.liferay.portal.kernel.exception.SystemException; 530 }