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