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