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 aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 020 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 021 import com.liferay.portal.kernel.exception.SystemException; 022 import com.liferay.portal.kernel.util.OrderByComparator; 023 import com.liferay.portal.kernel.util.ReferenceRegistry; 024 import com.liferay.portal.model.UserIdMapper; 025 import com.liferay.portal.service.ServiceContext; 026 027 import java.util.List; 028 029 /** 030 * The persistence utility for the user ID mapper service. This utility wraps {@link UserIdMapperPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 031 * 032 * <p> 033 * Caching information and settings can be found in <code>portal.properties</code> 034 * </p> 035 * 036 * @author Brian Wing Shun Chan 037 * @see UserIdMapperPersistence 038 * @see UserIdMapperPersistenceImpl 039 * @generated 040 */ 041 @ProviderType 042 public class UserIdMapperUtil { 043 /* 044 * NOTE FOR DEVELOPERS: 045 * 046 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 047 */ 048 049 /** 050 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 051 */ 052 public static void clearCache() { 053 getPersistence().clearCache(); 054 } 055 056 /** 057 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 058 */ 059 public static void clearCache(UserIdMapper userIdMapper) { 060 getPersistence().clearCache(userIdMapper); 061 } 062 063 /** 064 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 065 */ 066 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) 067 throws SystemException { 068 return getPersistence().countWithDynamicQuery(dynamicQuery); 069 } 070 071 /** 072 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 073 */ 074 public static List<UserIdMapper> findWithDynamicQuery( 075 DynamicQuery dynamicQuery) throws SystemException { 076 return getPersistence().findWithDynamicQuery(dynamicQuery); 077 } 078 079 /** 080 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 081 */ 082 public static List<UserIdMapper> findWithDynamicQuery( 083 DynamicQuery dynamicQuery, int start, int end) 084 throws SystemException { 085 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 086 } 087 088 /** 089 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 090 */ 091 public static List<UserIdMapper> findWithDynamicQuery( 092 DynamicQuery dynamicQuery, int start, int end, 093 OrderByComparator orderByComparator) throws SystemException { 094 return getPersistence() 095 .findWithDynamicQuery(dynamicQuery, start, end, 096 orderByComparator); 097 } 098 099 /** 100 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 101 */ 102 public static UserIdMapper update(UserIdMapper userIdMapper) 103 throws SystemException { 104 return getPersistence().update(userIdMapper); 105 } 106 107 /** 108 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 109 */ 110 public static UserIdMapper update(UserIdMapper userIdMapper, 111 ServiceContext serviceContext) throws SystemException { 112 return getPersistence().update(userIdMapper, serviceContext); 113 } 114 115 /** 116 * Returns all the user ID mappers where userId = ?. 117 * 118 * @param userId the user ID 119 * @return the matching user ID mappers 120 * @throws SystemException if a system exception occurred 121 */ 122 public static java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId( 123 long userId) throws com.liferay.portal.kernel.exception.SystemException { 124 return getPersistence().findByUserId(userId); 125 } 126 127 /** 128 * Returns a range of all the user ID mappers where userId = ?. 129 * 130 * <p> 131 * 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.UserIdMapperModelImpl}. 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. 132 * </p> 133 * 134 * @param userId the user ID 135 * @param start the lower bound of the range of user ID mappers 136 * @param end the upper bound of the range of user ID mappers (not inclusive) 137 * @return the range of matching user ID mappers 138 * @throws SystemException if a system exception occurred 139 */ 140 public static java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId( 141 long userId, int start, int end) 142 throws com.liferay.portal.kernel.exception.SystemException { 143 return getPersistence().findByUserId(userId, start, end); 144 } 145 146 /** 147 * Returns an ordered range of all the user ID mappers where userId = ?. 148 * 149 * <p> 150 * 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.UserIdMapperModelImpl}. 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. 151 * </p> 152 * 153 * @param userId the user ID 154 * @param start the lower bound of the range of user ID mappers 155 * @param end the upper bound of the range of user ID mappers (not inclusive) 156 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 157 * @return the ordered range of matching user ID mappers 158 * @throws SystemException if a system exception occurred 159 */ 160 public static java.util.List<com.liferay.portal.model.UserIdMapper> findByUserId( 161 long userId, int start, int end, 162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 163 throws com.liferay.portal.kernel.exception.SystemException { 164 return getPersistence() 165 .findByUserId(userId, start, end, orderByComparator); 166 } 167 168 /** 169 * Returns the first user ID mapper in the ordered set where userId = ?. 170 * 171 * @param userId the user ID 172 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 173 * @return the first matching user ID mapper 174 * @throws com.liferay.portal.NoSuchUserIdMapperException if a matching user ID mapper could not be found 175 * @throws SystemException if a system exception occurred 176 */ 177 public static com.liferay.portal.model.UserIdMapper findByUserId_First( 178 long userId, 179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 180 throws com.liferay.portal.NoSuchUserIdMapperException, 181 com.liferay.portal.kernel.exception.SystemException { 182 return getPersistence().findByUserId_First(userId, orderByComparator); 183 } 184 185 /** 186 * Returns the first user ID mapper in the ordered set where userId = ?. 187 * 188 * @param userId the user ID 189 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 190 * @return the first matching user ID mapper, or <code>null</code> if a matching user ID mapper could not be found 191 * @throws SystemException if a system exception occurred 192 */ 193 public static com.liferay.portal.model.UserIdMapper fetchByUserId_First( 194 long userId, 195 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 196 throws com.liferay.portal.kernel.exception.SystemException { 197 return getPersistence().fetchByUserId_First(userId, orderByComparator); 198 } 199 200 /** 201 * Returns the last user ID mapper in the ordered set where userId = ?. 202 * 203 * @param userId the user ID 204 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 205 * @return the last matching user ID mapper 206 * @throws com.liferay.portal.NoSuchUserIdMapperException if a matching user ID mapper could not be found 207 * @throws SystemException if a system exception occurred 208 */ 209 public static com.liferay.portal.model.UserIdMapper findByUserId_Last( 210 long userId, 211 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 212 throws com.liferay.portal.NoSuchUserIdMapperException, 213 com.liferay.portal.kernel.exception.SystemException { 214 return getPersistence().findByUserId_Last(userId, orderByComparator); 215 } 216 217 /** 218 * Returns the last user ID mapper in the ordered set where userId = ?. 219 * 220 * @param userId the user ID 221 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 222 * @return the last matching user ID mapper, or <code>null</code> if a matching user ID mapper could not be found 223 * @throws SystemException if a system exception occurred 224 */ 225 public static com.liferay.portal.model.UserIdMapper fetchByUserId_Last( 226 long userId, 227 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 228 throws com.liferay.portal.kernel.exception.SystemException { 229 return getPersistence().fetchByUserId_Last(userId, orderByComparator); 230 } 231 232 /** 233 * Returns the user ID mappers before and after the current user ID mapper in the ordered set where userId = ?. 234 * 235 * @param userIdMapperId the primary key of the current user ID mapper 236 * @param userId the user ID 237 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 238 * @return the previous, current, and next user ID mapper 239 * @throws com.liferay.portal.NoSuchUserIdMapperException if a user ID mapper with the primary key could not be found 240 * @throws SystemException if a system exception occurred 241 */ 242 public static com.liferay.portal.model.UserIdMapper[] findByUserId_PrevAndNext( 243 long userIdMapperId, long userId, 244 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 245 throws com.liferay.portal.NoSuchUserIdMapperException, 246 com.liferay.portal.kernel.exception.SystemException { 247 return getPersistence() 248 .findByUserId_PrevAndNext(userIdMapperId, userId, 249 orderByComparator); 250 } 251 252 /** 253 * Removes all the user ID mappers where userId = ? from the database. 254 * 255 * @param userId the user ID 256 * @throws SystemException if a system exception occurred 257 */ 258 public static void removeByUserId(long userId) 259 throws com.liferay.portal.kernel.exception.SystemException { 260 getPersistence().removeByUserId(userId); 261 } 262 263 /** 264 * Returns the number of user ID mappers where userId = ?. 265 * 266 * @param userId the user ID 267 * @return the number of matching user ID mappers 268 * @throws SystemException if a system exception occurred 269 */ 270 public static int countByUserId(long userId) 271 throws com.liferay.portal.kernel.exception.SystemException { 272 return getPersistence().countByUserId(userId); 273 } 274 275 /** 276 * Returns the user ID mapper where userId = ? and type = ? or throws a {@link com.liferay.portal.NoSuchUserIdMapperException} if it could not be found. 277 * 278 * @param userId the user ID 279 * @param type the type 280 * @return the matching user ID mapper 281 * @throws com.liferay.portal.NoSuchUserIdMapperException if a matching user ID mapper could not be found 282 * @throws SystemException if a system exception occurred 283 */ 284 public static com.liferay.portal.model.UserIdMapper findByU_T(long userId, 285 java.lang.String type) 286 throws com.liferay.portal.NoSuchUserIdMapperException, 287 com.liferay.portal.kernel.exception.SystemException { 288 return getPersistence().findByU_T(userId, type); 289 } 290 291 /** 292 * Returns the user ID mapper where userId = ? and type = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 293 * 294 * @param userId the user ID 295 * @param type the type 296 * @return the matching user ID mapper, or <code>null</code> if a matching user ID mapper could not be found 297 * @throws SystemException if a system exception occurred 298 */ 299 public static com.liferay.portal.model.UserIdMapper fetchByU_T( 300 long userId, java.lang.String type) 301 throws com.liferay.portal.kernel.exception.SystemException { 302 return getPersistence().fetchByU_T(userId, type); 303 } 304 305 /** 306 * Returns the user ID mapper where userId = ? and type = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 307 * 308 * @param userId the user ID 309 * @param type the type 310 * @param retrieveFromCache whether to use the finder cache 311 * @return the matching user ID mapper, or <code>null</code> if a matching user ID mapper could not be found 312 * @throws SystemException if a system exception occurred 313 */ 314 public static com.liferay.portal.model.UserIdMapper fetchByU_T( 315 long userId, java.lang.String type, boolean retrieveFromCache) 316 throws com.liferay.portal.kernel.exception.SystemException { 317 return getPersistence().fetchByU_T(userId, type, retrieveFromCache); 318 } 319 320 /** 321 * Removes the user ID mapper where userId = ? and type = ? from the database. 322 * 323 * @param userId the user ID 324 * @param type the type 325 * @return the user ID mapper that was removed 326 * @throws SystemException if a system exception occurred 327 */ 328 public static com.liferay.portal.model.UserIdMapper removeByU_T( 329 long userId, java.lang.String type) 330 throws com.liferay.portal.NoSuchUserIdMapperException, 331 com.liferay.portal.kernel.exception.SystemException { 332 return getPersistence().removeByU_T(userId, type); 333 } 334 335 /** 336 * Returns the number of user ID mappers where userId = ? and type = ?. 337 * 338 * @param userId the user ID 339 * @param type the type 340 * @return the number of matching user ID mappers 341 * @throws SystemException if a system exception occurred 342 */ 343 public static int countByU_T(long userId, java.lang.String type) 344 throws com.liferay.portal.kernel.exception.SystemException { 345 return getPersistence().countByU_T(userId, type); 346 } 347 348 /** 349 * Returns the user ID mapper where type = ? and externalUserId = ? or throws a {@link com.liferay.portal.NoSuchUserIdMapperException} if it could not be found. 350 * 351 * @param type the type 352 * @param externalUserId the external user ID 353 * @return the matching user ID mapper 354 * @throws com.liferay.portal.NoSuchUserIdMapperException if a matching user ID mapper could not be found 355 * @throws SystemException if a system exception occurred 356 */ 357 public static com.liferay.portal.model.UserIdMapper findByT_E( 358 java.lang.String type, java.lang.String externalUserId) 359 throws com.liferay.portal.NoSuchUserIdMapperException, 360 com.liferay.portal.kernel.exception.SystemException { 361 return getPersistence().findByT_E(type, externalUserId); 362 } 363 364 /** 365 * Returns the user ID mapper where type = ? and externalUserId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 366 * 367 * @param type the type 368 * @param externalUserId the external user ID 369 * @return the matching user ID mapper, or <code>null</code> if a matching user ID mapper could not be found 370 * @throws SystemException if a system exception occurred 371 */ 372 public static com.liferay.portal.model.UserIdMapper fetchByT_E( 373 java.lang.String type, java.lang.String externalUserId) 374 throws com.liferay.portal.kernel.exception.SystemException { 375 return getPersistence().fetchByT_E(type, externalUserId); 376 } 377 378 /** 379 * Returns the user ID mapper where type = ? and externalUserId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 380 * 381 * @param type the type 382 * @param externalUserId the external user ID 383 * @param retrieveFromCache whether to use the finder cache 384 * @return the matching user ID mapper, or <code>null</code> if a matching user ID mapper could not be found 385 * @throws SystemException if a system exception occurred 386 */ 387 public static com.liferay.portal.model.UserIdMapper fetchByT_E( 388 java.lang.String type, java.lang.String externalUserId, 389 boolean retrieveFromCache) 390 throws com.liferay.portal.kernel.exception.SystemException { 391 return getPersistence() 392 .fetchByT_E(type, externalUserId, retrieveFromCache); 393 } 394 395 /** 396 * Removes the user ID mapper where type = ? and externalUserId = ? from the database. 397 * 398 * @param type the type 399 * @param externalUserId the external user ID 400 * @return the user ID mapper that was removed 401 * @throws SystemException if a system exception occurred 402 */ 403 public static com.liferay.portal.model.UserIdMapper removeByT_E( 404 java.lang.String type, java.lang.String externalUserId) 405 throws com.liferay.portal.NoSuchUserIdMapperException, 406 com.liferay.portal.kernel.exception.SystemException { 407 return getPersistence().removeByT_E(type, externalUserId); 408 } 409 410 /** 411 * Returns the number of user ID mappers where type = ? and externalUserId = ?. 412 * 413 * @param type the type 414 * @param externalUserId the external user ID 415 * @return the number of matching user ID mappers 416 * @throws SystemException if a system exception occurred 417 */ 418 public static int countByT_E(java.lang.String type, 419 java.lang.String externalUserId) 420 throws com.liferay.portal.kernel.exception.SystemException { 421 return getPersistence().countByT_E(type, externalUserId); 422 } 423 424 /** 425 * Caches the user ID mapper in the entity cache if it is enabled. 426 * 427 * @param userIdMapper the user ID mapper 428 */ 429 public static void cacheResult( 430 com.liferay.portal.model.UserIdMapper userIdMapper) { 431 getPersistence().cacheResult(userIdMapper); 432 } 433 434 /** 435 * Caches the user ID mappers in the entity cache if it is enabled. 436 * 437 * @param userIdMappers the user ID mappers 438 */ 439 public static void cacheResult( 440 java.util.List<com.liferay.portal.model.UserIdMapper> userIdMappers) { 441 getPersistence().cacheResult(userIdMappers); 442 } 443 444 /** 445 * Creates a new user ID mapper with the primary key. Does not add the user ID mapper to the database. 446 * 447 * @param userIdMapperId the primary key for the new user ID mapper 448 * @return the new user ID mapper 449 */ 450 public static com.liferay.portal.model.UserIdMapper create( 451 long userIdMapperId) { 452 return getPersistence().create(userIdMapperId); 453 } 454 455 /** 456 * Removes the user ID mapper with the primary key from the database. Also notifies the appropriate model listeners. 457 * 458 * @param userIdMapperId the primary key of the user ID mapper 459 * @return the user ID mapper that was removed 460 * @throws com.liferay.portal.NoSuchUserIdMapperException if a user ID mapper with the primary key could not be found 461 * @throws SystemException if a system exception occurred 462 */ 463 public static com.liferay.portal.model.UserIdMapper remove( 464 long userIdMapperId) 465 throws com.liferay.portal.NoSuchUserIdMapperException, 466 com.liferay.portal.kernel.exception.SystemException { 467 return getPersistence().remove(userIdMapperId); 468 } 469 470 public static com.liferay.portal.model.UserIdMapper updateImpl( 471 com.liferay.portal.model.UserIdMapper userIdMapper) 472 throws com.liferay.portal.kernel.exception.SystemException { 473 return getPersistence().updateImpl(userIdMapper); 474 } 475 476 /** 477 * Returns the user ID mapper with the primary key or throws a {@link com.liferay.portal.NoSuchUserIdMapperException} if it could not be found. 478 * 479 * @param userIdMapperId the primary key of the user ID mapper 480 * @return the user ID mapper 481 * @throws com.liferay.portal.NoSuchUserIdMapperException if a user ID mapper with the primary key could not be found 482 * @throws SystemException if a system exception occurred 483 */ 484 public static com.liferay.portal.model.UserIdMapper findByPrimaryKey( 485 long userIdMapperId) 486 throws com.liferay.portal.NoSuchUserIdMapperException, 487 com.liferay.portal.kernel.exception.SystemException { 488 return getPersistence().findByPrimaryKey(userIdMapperId); 489 } 490 491 /** 492 * Returns the user ID mapper with the primary key or returns <code>null</code> if it could not be found. 493 * 494 * @param userIdMapperId the primary key of the user ID mapper 495 * @return the user ID mapper, or <code>null</code> if a user ID mapper with the primary key could not be found 496 * @throws SystemException if a system exception occurred 497 */ 498 public static com.liferay.portal.model.UserIdMapper fetchByPrimaryKey( 499 long userIdMapperId) 500 throws com.liferay.portal.kernel.exception.SystemException { 501 return getPersistence().fetchByPrimaryKey(userIdMapperId); 502 } 503 504 /** 505 * Returns all the user ID mappers. 506 * 507 * @return the user ID mappers 508 * @throws SystemException if a system exception occurred 509 */ 510 public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll() 511 throws com.liferay.portal.kernel.exception.SystemException { 512 return getPersistence().findAll(); 513 } 514 515 /** 516 * Returns a range of all the user ID mappers. 517 * 518 * <p> 519 * 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.UserIdMapperModelImpl}. 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. 520 * </p> 521 * 522 * @param start the lower bound of the range of user ID mappers 523 * @param end the upper bound of the range of user ID mappers (not inclusive) 524 * @return the range of user ID mappers 525 * @throws SystemException if a system exception occurred 526 */ 527 public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll( 528 int start, int end) 529 throws com.liferay.portal.kernel.exception.SystemException { 530 return getPersistence().findAll(start, end); 531 } 532 533 /** 534 * Returns an ordered range of all the user ID mappers. 535 * 536 * <p> 537 * 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.UserIdMapperModelImpl}. 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. 538 * </p> 539 * 540 * @param start the lower bound of the range of user ID mappers 541 * @param end the upper bound of the range of user ID mappers (not inclusive) 542 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 543 * @return the ordered range of user ID mappers 544 * @throws SystemException if a system exception occurred 545 */ 546 public static java.util.List<com.liferay.portal.model.UserIdMapper> findAll( 547 int start, int end, 548 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 549 throws com.liferay.portal.kernel.exception.SystemException { 550 return getPersistence().findAll(start, end, orderByComparator); 551 } 552 553 /** 554 * Removes all the user ID mappers from the database. 555 * 556 * @throws SystemException if a system exception occurred 557 */ 558 public static void removeAll() 559 throws com.liferay.portal.kernel.exception.SystemException { 560 getPersistence().removeAll(); 561 } 562 563 /** 564 * Returns the number of user ID mappers. 565 * 566 * @return the number of user ID mappers 567 * @throws SystemException if a system exception occurred 568 */ 569 public static int countAll() 570 throws com.liferay.portal.kernel.exception.SystemException { 571 return getPersistence().countAll(); 572 } 573 574 public static UserIdMapperPersistence getPersistence() { 575 if (_persistence == null) { 576 _persistence = (UserIdMapperPersistence)PortalBeanLocatorUtil.locate(UserIdMapperPersistence.class.getName()); 577 578 ReferenceRegistry.registerReference(UserIdMapperUtil.class, 579 "_persistence"); 580 } 581 582 return _persistence; 583 } 584 585 /** 586 * @deprecated As of 6.2.0 587 */ 588 public void setPersistence(UserIdMapperPersistence persistence) { 589 } 590 591 private static UserIdMapperPersistence _persistence; 592 }