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