001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portlet.social.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.service.ServiceContext; 023 024 import com.liferay.portlet.social.model.SocialEquityUser; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the social equity user service. This utility wraps {@link SocialEquityUserPersistenceImpl} 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. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see SocialEquityUserPersistence 037 * @see SocialEquityUserPersistenceImpl 038 * @generated 039 */ 040 public class SocialEquityUserUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(SocialEquityUser socialEquityUser) { 058 getPersistence().clearCache(socialEquityUser); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<SocialEquityUser> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<SocialEquityUser> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<SocialEquityUser> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 099 */ 100 public static SocialEquityUser remove(SocialEquityUser socialEquityUser) 101 throws SystemException { 102 return getPersistence().remove(socialEquityUser); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 107 */ 108 public static SocialEquityUser update(SocialEquityUser socialEquityUser, 109 boolean merge) throws SystemException { 110 return getPersistence().update(socialEquityUser, merge); 111 } 112 113 /** 114 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 115 */ 116 public static SocialEquityUser update(SocialEquityUser socialEquityUser, 117 boolean merge, ServiceContext serviceContext) throws SystemException { 118 return getPersistence().update(socialEquityUser, merge, serviceContext); 119 } 120 121 /** 122 * Caches the social equity user in the entity cache if it is enabled. 123 * 124 * @param socialEquityUser the social equity user to cache 125 */ 126 public static void cacheResult( 127 com.liferay.portlet.social.model.SocialEquityUser socialEquityUser) { 128 getPersistence().cacheResult(socialEquityUser); 129 } 130 131 /** 132 * Caches the social equity users in the entity cache if it is enabled. 133 * 134 * @param socialEquityUsers the social equity users to cache 135 */ 136 public static void cacheResult( 137 java.util.List<com.liferay.portlet.social.model.SocialEquityUser> socialEquityUsers) { 138 getPersistence().cacheResult(socialEquityUsers); 139 } 140 141 /** 142 * Creates a new social equity user with the primary key. Does not add the social equity user to the database. 143 * 144 * @param equityUserId the primary key for the new social equity user 145 * @return the new social equity user 146 */ 147 public static com.liferay.portlet.social.model.SocialEquityUser create( 148 long equityUserId) { 149 return getPersistence().create(equityUserId); 150 } 151 152 /** 153 * Removes the social equity user with the primary key from the database. Also notifies the appropriate model listeners. 154 * 155 * @param equityUserId the primary key of the social equity user to remove 156 * @return the social equity user that was removed 157 * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found 158 * @throws SystemException if a system exception occurred 159 */ 160 public static com.liferay.portlet.social.model.SocialEquityUser remove( 161 long equityUserId) 162 throws com.liferay.portal.kernel.exception.SystemException, 163 com.liferay.portlet.social.NoSuchEquityUserException { 164 return getPersistence().remove(equityUserId); 165 } 166 167 public static com.liferay.portlet.social.model.SocialEquityUser updateImpl( 168 com.liferay.portlet.social.model.SocialEquityUser socialEquityUser, 169 boolean merge) 170 throws com.liferay.portal.kernel.exception.SystemException { 171 return getPersistence().updateImpl(socialEquityUser, merge); 172 } 173 174 /** 175 * Finds the social equity user with the primary key or throws a {@link com.liferay.portlet.social.NoSuchEquityUserException} if it could not be found. 176 * 177 * @param equityUserId the primary key of the social equity user to find 178 * @return the social equity user 179 * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found 180 * @throws SystemException if a system exception occurred 181 */ 182 public static com.liferay.portlet.social.model.SocialEquityUser findByPrimaryKey( 183 long equityUserId) 184 throws com.liferay.portal.kernel.exception.SystemException, 185 com.liferay.portlet.social.NoSuchEquityUserException { 186 return getPersistence().findByPrimaryKey(equityUserId); 187 } 188 189 /** 190 * Finds the social equity user with the primary key or returns <code>null</code> if it could not be found. 191 * 192 * @param equityUserId the primary key of the social equity user to find 193 * @return the social equity user, or <code>null</code> if a social equity user with the primary key could not be found 194 * @throws SystemException if a system exception occurred 195 */ 196 public static com.liferay.portlet.social.model.SocialEquityUser fetchByPrimaryKey( 197 long equityUserId) 198 throws com.liferay.portal.kernel.exception.SystemException { 199 return getPersistence().fetchByPrimaryKey(equityUserId); 200 } 201 202 /** 203 * Finds all the social equity users where groupId = ?. 204 * 205 * @param groupId the group ID to search with 206 * @return the matching social equity users 207 * @throws SystemException if a system exception occurred 208 */ 209 public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupId( 210 long groupId) 211 throws com.liferay.portal.kernel.exception.SystemException { 212 return getPersistence().findByGroupId(groupId); 213 } 214 215 /** 216 * Finds a range of all the social equity users where groupId = ?. 217 * 218 * <p> 219 * 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. 220 * </p> 221 * 222 * @param groupId the group ID to search with 223 * @param start the lower bound of the range of social equity users to return 224 * @param end the upper bound of the range of social equity users to return (not inclusive) 225 * @return the range of matching social equity users 226 * @throws SystemException if a system exception occurred 227 */ 228 public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupId( 229 long groupId, int start, int end) 230 throws com.liferay.portal.kernel.exception.SystemException { 231 return getPersistence().findByGroupId(groupId, start, end); 232 } 233 234 /** 235 * Finds an ordered range of all the social equity users where groupId = ?. 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 groupId the group ID to search with 242 * @param start the lower bound of the range of social equity users to return 243 * @param end the upper bound of the range of social equity users to return (not inclusive) 244 * @param orderByComparator the comparator to order the results by 245 * @return the ordered range of matching social equity users 246 * @throws SystemException if a system exception occurred 247 */ 248 public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupId( 249 long groupId, int start, int end, 250 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 251 throws com.liferay.portal.kernel.exception.SystemException { 252 return getPersistence() 253 .findByGroupId(groupId, start, end, orderByComparator); 254 } 255 256 /** 257 * Finds the first social equity user in the ordered set where groupId = ?. 258 * 259 * <p> 260 * 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. 261 * </p> 262 * 263 * @param groupId the group ID to search with 264 * @param orderByComparator the comparator to order the set by 265 * @return the first matching social equity user 266 * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found 267 * @throws SystemException if a system exception occurred 268 */ 269 public static com.liferay.portlet.social.model.SocialEquityUser findByGroupId_First( 270 long groupId, 271 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 272 throws com.liferay.portal.kernel.exception.SystemException, 273 com.liferay.portlet.social.NoSuchEquityUserException { 274 return getPersistence().findByGroupId_First(groupId, orderByComparator); 275 } 276 277 /** 278 * Finds the last social equity user in the ordered set where groupId = ?. 279 * 280 * <p> 281 * 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. 282 * </p> 283 * 284 * @param groupId the group ID to search with 285 * @param orderByComparator the comparator to order the set by 286 * @return the last matching social equity user 287 * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found 288 * @throws SystemException if a system exception occurred 289 */ 290 public static com.liferay.portlet.social.model.SocialEquityUser findByGroupId_Last( 291 long groupId, 292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 293 throws com.liferay.portal.kernel.exception.SystemException, 294 com.liferay.portlet.social.NoSuchEquityUserException { 295 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 296 } 297 298 /** 299 * Finds the social equity users before and after the current social equity user in the ordered set where groupId = ?. 300 * 301 * <p> 302 * 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. 303 * </p> 304 * 305 * @param equityUserId the primary key of the current social equity user 306 * @param groupId the group ID to search with 307 * @param orderByComparator the comparator to order the set by 308 * @return the previous, current, and next social equity user 309 * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found 310 * @throws SystemException if a system exception occurred 311 */ 312 public static com.liferay.portlet.social.model.SocialEquityUser[] findByGroupId_PrevAndNext( 313 long equityUserId, long groupId, 314 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 315 throws com.liferay.portal.kernel.exception.SystemException, 316 com.liferay.portlet.social.NoSuchEquityUserException { 317 return getPersistence() 318 .findByGroupId_PrevAndNext(equityUserId, groupId, 319 orderByComparator); 320 } 321 322 /** 323 * Finds all the social equity users where groupId = ?. 324 * 325 * @param groupId the group ID to search with 326 * @return the matching social equity users 327 * @throws SystemException if a system exception occurred 328 */ 329 public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupRanked( 330 long groupId) 331 throws com.liferay.portal.kernel.exception.SystemException { 332 return getPersistence().findByGroupRanked(groupId); 333 } 334 335 /** 336 * Finds a range of all the social equity users where groupId = ?. 337 * 338 * <p> 339 * 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. 340 * </p> 341 * 342 * @param groupId the group ID to search with 343 * @param start the lower bound of the range of social equity users to return 344 * @param end the upper bound of the range of social equity users to return (not inclusive) 345 * @return the range of matching social equity users 346 * @throws SystemException if a system exception occurred 347 */ 348 public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupRanked( 349 long groupId, int start, int end) 350 throws com.liferay.portal.kernel.exception.SystemException { 351 return getPersistence().findByGroupRanked(groupId, start, end); 352 } 353 354 /** 355 * Finds an ordered range of all the social equity users where groupId = ?. 356 * 357 * <p> 358 * 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. 359 * </p> 360 * 361 * @param groupId the group ID to search with 362 * @param start the lower bound of the range of social equity users to return 363 * @param end the upper bound of the range of social equity users to return (not inclusive) 364 * @param orderByComparator the comparator to order the results by 365 * @return the ordered range of matching social equity users 366 * @throws SystemException if a system exception occurred 367 */ 368 public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupRanked( 369 long groupId, int start, int end, 370 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 371 throws com.liferay.portal.kernel.exception.SystemException { 372 return getPersistence() 373 .findByGroupRanked(groupId, start, end, orderByComparator); 374 } 375 376 /** 377 * Finds the first social equity user in the ordered set where groupId = ?. 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 groupId the group ID to search with 384 * @param orderByComparator the comparator to order the set by 385 * @return the first matching social equity user 386 * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found 387 * @throws SystemException if a system exception occurred 388 */ 389 public static com.liferay.portlet.social.model.SocialEquityUser findByGroupRanked_First( 390 long groupId, 391 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 392 throws com.liferay.portal.kernel.exception.SystemException, 393 com.liferay.portlet.social.NoSuchEquityUserException { 394 return getPersistence() 395 .findByGroupRanked_First(groupId, orderByComparator); 396 } 397 398 /** 399 * Finds the last social equity user in the ordered set where groupId = ?. 400 * 401 * <p> 402 * 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. 403 * </p> 404 * 405 * @param groupId the group ID to search with 406 * @param orderByComparator the comparator to order the set by 407 * @return the last matching social equity user 408 * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found 409 * @throws SystemException if a system exception occurred 410 */ 411 public static com.liferay.portlet.social.model.SocialEquityUser findByGroupRanked_Last( 412 long groupId, 413 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 414 throws com.liferay.portal.kernel.exception.SystemException, 415 com.liferay.portlet.social.NoSuchEquityUserException { 416 return getPersistence() 417 .findByGroupRanked_Last(groupId, orderByComparator); 418 } 419 420 /** 421 * Finds the social equity users before and after the current social equity user in the ordered set where groupId = ?. 422 * 423 * <p> 424 * 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. 425 * </p> 426 * 427 * @param equityUserId the primary key of the current social equity user 428 * @param groupId the group ID to search with 429 * @param orderByComparator the comparator to order the set by 430 * @return the previous, current, and next social equity user 431 * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found 432 * @throws SystemException if a system exception occurred 433 */ 434 public static com.liferay.portlet.social.model.SocialEquityUser[] findByGroupRanked_PrevAndNext( 435 long equityUserId, long groupId, 436 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 437 throws com.liferay.portal.kernel.exception.SystemException, 438 com.liferay.portlet.social.NoSuchEquityUserException { 439 return getPersistence() 440 .findByGroupRanked_PrevAndNext(equityUserId, groupId, 441 orderByComparator); 442 } 443 444 /** 445 * Finds all the social equity users where userId = ?. 446 * 447 * @param userId the user ID to search with 448 * @return the matching social equity users 449 * @throws SystemException if a system exception occurred 450 */ 451 public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId( 452 long userId) throws com.liferay.portal.kernel.exception.SystemException { 453 return getPersistence().findByUserId(userId); 454 } 455 456 /** 457 * Finds a range of all the social equity users where userId = ?. 458 * 459 * <p> 460 * 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. 461 * </p> 462 * 463 * @param userId the user ID to search with 464 * @param start the lower bound of the range of social equity users to return 465 * @param end the upper bound of the range of social equity users to return (not inclusive) 466 * @return the range of matching social equity users 467 * @throws SystemException if a system exception occurred 468 */ 469 public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId( 470 long userId, int start, int end) 471 throws com.liferay.portal.kernel.exception.SystemException { 472 return getPersistence().findByUserId(userId, start, end); 473 } 474 475 /** 476 * Finds an ordered range of all the social equity users where userId = ?. 477 * 478 * <p> 479 * 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. 480 * </p> 481 * 482 * @param userId the user ID to search with 483 * @param start the lower bound of the range of social equity users to return 484 * @param end the upper bound of the range of social equity users to return (not inclusive) 485 * @param orderByComparator the comparator to order the results by 486 * @return the ordered range of matching social equity users 487 * @throws SystemException if a system exception occurred 488 */ 489 public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId( 490 long userId, int start, int end, 491 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 492 throws com.liferay.portal.kernel.exception.SystemException { 493 return getPersistence() 494 .findByUserId(userId, start, end, orderByComparator); 495 } 496 497 /** 498 * Finds the first social equity user in the ordered set where userId = ?. 499 * 500 * <p> 501 * 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. 502 * </p> 503 * 504 * @param userId the user ID to search with 505 * @param orderByComparator the comparator to order the set by 506 * @return the first matching social equity user 507 * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found 508 * @throws SystemException if a system exception occurred 509 */ 510 public static com.liferay.portlet.social.model.SocialEquityUser findByUserId_First( 511 long userId, 512 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 513 throws com.liferay.portal.kernel.exception.SystemException, 514 com.liferay.portlet.social.NoSuchEquityUserException { 515 return getPersistence().findByUserId_First(userId, orderByComparator); 516 } 517 518 /** 519 * Finds the last social equity user in the ordered set where userId = ?. 520 * 521 * <p> 522 * 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. 523 * </p> 524 * 525 * @param userId the user ID to search with 526 * @param orderByComparator the comparator to order the set by 527 * @return the last matching social equity user 528 * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found 529 * @throws SystemException if a system exception occurred 530 */ 531 public static com.liferay.portlet.social.model.SocialEquityUser findByUserId_Last( 532 long userId, 533 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 534 throws com.liferay.portal.kernel.exception.SystemException, 535 com.liferay.portlet.social.NoSuchEquityUserException { 536 return getPersistence().findByUserId_Last(userId, orderByComparator); 537 } 538 539 /** 540 * Finds the social equity users before and after the current social equity user in the ordered set where userId = ?. 541 * 542 * <p> 543 * 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. 544 * </p> 545 * 546 * @param equityUserId the primary key of the current social equity user 547 * @param userId the user ID to search with 548 * @param orderByComparator the comparator to order the set by 549 * @return the previous, current, and next social equity user 550 * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found 551 * @throws SystemException if a system exception occurred 552 */ 553 public static com.liferay.portlet.social.model.SocialEquityUser[] findByUserId_PrevAndNext( 554 long equityUserId, long userId, 555 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 556 throws com.liferay.portal.kernel.exception.SystemException, 557 com.liferay.portlet.social.NoSuchEquityUserException { 558 return getPersistence() 559 .findByUserId_PrevAndNext(equityUserId, userId, 560 orderByComparator); 561 } 562 563 /** 564 * Finds all the social equity users where rank = ?. 565 * 566 * @param rank the rank to search with 567 * @return the matching social equity users 568 * @throws SystemException if a system exception occurred 569 */ 570 public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByRank( 571 int rank) throws com.liferay.portal.kernel.exception.SystemException { 572 return getPersistence().findByRank(rank); 573 } 574 575 /** 576 * Finds a range of all the social equity users where rank = ?. 577 * 578 * <p> 579 * 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. 580 * </p> 581 * 582 * @param rank the rank to search with 583 * @param start the lower bound of the range of social equity users to return 584 * @param end the upper bound of the range of social equity users to return (not inclusive) 585 * @return the range of matching social equity users 586 * @throws SystemException if a system exception occurred 587 */ 588 public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByRank( 589 int rank, int start, int end) 590 throws com.liferay.portal.kernel.exception.SystemException { 591 return getPersistence().findByRank(rank, start, end); 592 } 593 594 /** 595 * Finds an ordered range of all the social equity users where rank = ?. 596 * 597 * <p> 598 * 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. 599 * </p> 600 * 601 * @param rank the rank to search with 602 * @param start the lower bound of the range of social equity users to return 603 * @param end the upper bound of the range of social equity users to return (not inclusive) 604 * @param orderByComparator the comparator to order the results by 605 * @return the ordered range of matching social equity users 606 * @throws SystemException if a system exception occurred 607 */ 608 public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByRank( 609 int rank, int start, int end, 610 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 611 throws com.liferay.portal.kernel.exception.SystemException { 612 return getPersistence().findByRank(rank, start, end, orderByComparator); 613 } 614 615 /** 616 * Finds the first social equity user in the ordered set where rank = ?. 617 * 618 * <p> 619 * 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. 620 * </p> 621 * 622 * @param rank the rank to search with 623 * @param orderByComparator the comparator to order the set by 624 * @return the first matching social equity user 625 * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found 626 * @throws SystemException if a system exception occurred 627 */ 628 public static com.liferay.portlet.social.model.SocialEquityUser findByRank_First( 629 int rank, 630 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 631 throws com.liferay.portal.kernel.exception.SystemException, 632 com.liferay.portlet.social.NoSuchEquityUserException { 633 return getPersistence().findByRank_First(rank, orderByComparator); 634 } 635 636 /** 637 * Finds the last social equity user in the ordered set where rank = ?. 638 * 639 * <p> 640 * 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. 641 * </p> 642 * 643 * @param rank the rank to search with 644 * @param orderByComparator the comparator to order the set by 645 * @return the last matching social equity user 646 * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found 647 * @throws SystemException if a system exception occurred 648 */ 649 public static com.liferay.portlet.social.model.SocialEquityUser findByRank_Last( 650 int rank, 651 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 652 throws com.liferay.portal.kernel.exception.SystemException, 653 com.liferay.portlet.social.NoSuchEquityUserException { 654 return getPersistence().findByRank_Last(rank, orderByComparator); 655 } 656 657 /** 658 * Finds the social equity users before and after the current social equity user in the ordered set where rank = ?. 659 * 660 * <p> 661 * 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. 662 * </p> 663 * 664 * @param equityUserId the primary key of the current social equity user 665 * @param rank the rank to search with 666 * @param orderByComparator the comparator to order the set by 667 * @return the previous, current, and next social equity user 668 * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found 669 * @throws SystemException if a system exception occurred 670 */ 671 public static com.liferay.portlet.social.model.SocialEquityUser[] findByRank_PrevAndNext( 672 long equityUserId, int rank, 673 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 674 throws com.liferay.portal.kernel.exception.SystemException, 675 com.liferay.portlet.social.NoSuchEquityUserException { 676 return getPersistence() 677 .findByRank_PrevAndNext(equityUserId, rank, orderByComparator); 678 } 679 680 /** 681 * Finds the social equity user where groupId = ? and userId = ? or throws a {@link com.liferay.portlet.social.NoSuchEquityUserException} if it could not be found. 682 * 683 * @param groupId the group ID to search with 684 * @param userId the user ID to search with 685 * @return the matching social equity user 686 * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found 687 * @throws SystemException if a system exception occurred 688 */ 689 public static com.liferay.portlet.social.model.SocialEquityUser findByG_U( 690 long groupId, long userId) 691 throws com.liferay.portal.kernel.exception.SystemException, 692 com.liferay.portlet.social.NoSuchEquityUserException { 693 return getPersistence().findByG_U(groupId, userId); 694 } 695 696 /** 697 * Finds the social equity user where groupId = ? and userId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 698 * 699 * @param groupId the group ID to search with 700 * @param userId the user ID to search with 701 * @return the matching social equity user, or <code>null</code> if a matching social equity user could not be found 702 * @throws SystemException if a system exception occurred 703 */ 704 public static com.liferay.portlet.social.model.SocialEquityUser fetchByG_U( 705 long groupId, long userId) 706 throws com.liferay.portal.kernel.exception.SystemException { 707 return getPersistence().fetchByG_U(groupId, userId); 708 } 709 710 /** 711 * Finds the social equity user where groupId = ? and userId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 712 * 713 * @param groupId the group ID to search with 714 * @param userId the user ID to search with 715 * @return the matching social equity user, or <code>null</code> if a matching social equity user could not be found 716 * @throws SystemException if a system exception occurred 717 */ 718 public static com.liferay.portlet.social.model.SocialEquityUser fetchByG_U( 719 long groupId, long userId, boolean retrieveFromCache) 720 throws com.liferay.portal.kernel.exception.SystemException { 721 return getPersistence().fetchByG_U(groupId, userId, retrieveFromCache); 722 } 723 724 /** 725 * Finds all the social equity users where groupId = ? and rank = ?. 726 * 727 * @param groupId the group ID to search with 728 * @param rank the rank to search with 729 * @return the matching social equity users 730 * @throws SystemException if a system exception occurred 731 */ 732 public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByG_R( 733 long groupId, int rank) 734 throws com.liferay.portal.kernel.exception.SystemException { 735 return getPersistence().findByG_R(groupId, rank); 736 } 737 738 /** 739 * Finds a range of all the social equity users where groupId = ? and rank = ?. 740 * 741 * <p> 742 * 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. 743 * </p> 744 * 745 * @param groupId the group ID to search with 746 * @param rank the rank to search with 747 * @param start the lower bound of the range of social equity users to return 748 * @param end the upper bound of the range of social equity users to return (not inclusive) 749 * @return the range of matching social equity users 750 * @throws SystemException if a system exception occurred 751 */ 752 public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByG_R( 753 long groupId, int rank, int start, int end) 754 throws com.liferay.portal.kernel.exception.SystemException { 755 return getPersistence().findByG_R(groupId, rank, start, end); 756 } 757 758 /** 759 * Finds an ordered range of all the social equity users where groupId = ? and rank = ?. 760 * 761 * <p> 762 * 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. 763 * </p> 764 * 765 * @param groupId the group ID to search with 766 * @param rank the rank to search with 767 * @param start the lower bound of the range of social equity users to return 768 * @param end the upper bound of the range of social equity users to return (not inclusive) 769 * @param orderByComparator the comparator to order the results by 770 * @return the ordered range of matching social equity users 771 * @throws SystemException if a system exception occurred 772 */ 773 public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByG_R( 774 long groupId, int rank, int start, int end, 775 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 776 throws com.liferay.portal.kernel.exception.SystemException { 777 return getPersistence() 778 .findByG_R(groupId, rank, start, end, orderByComparator); 779 } 780 781 /** 782 * Finds the first social equity user in the ordered set where groupId = ? and rank = ?. 783 * 784 * <p> 785 * 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. 786 * </p> 787 * 788 * @param groupId the group ID to search with 789 * @param rank the rank to search with 790 * @param orderByComparator the comparator to order the set by 791 * @return the first matching social equity user 792 * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found 793 * @throws SystemException if a system exception occurred 794 */ 795 public static com.liferay.portlet.social.model.SocialEquityUser findByG_R_First( 796 long groupId, int rank, 797 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 798 throws com.liferay.portal.kernel.exception.SystemException, 799 com.liferay.portlet.social.NoSuchEquityUserException { 800 return getPersistence().findByG_R_First(groupId, rank, orderByComparator); 801 } 802 803 /** 804 * Finds the last social equity user in the ordered set where groupId = ? and rank = ?. 805 * 806 * <p> 807 * 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. 808 * </p> 809 * 810 * @param groupId the group ID to search with 811 * @param rank the rank to search with 812 * @param orderByComparator the comparator to order the set by 813 * @return the last matching social equity user 814 * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found 815 * @throws SystemException if a system exception occurred 816 */ 817 public static com.liferay.portlet.social.model.SocialEquityUser findByG_R_Last( 818 long groupId, int rank, 819 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 820 throws com.liferay.portal.kernel.exception.SystemException, 821 com.liferay.portlet.social.NoSuchEquityUserException { 822 return getPersistence().findByG_R_Last(groupId, rank, orderByComparator); 823 } 824 825 /** 826 * Finds the social equity users before and after the current social equity user in the ordered set where groupId = ? and rank = ?. 827 * 828 * <p> 829 * 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. 830 * </p> 831 * 832 * @param equityUserId the primary key of the current social equity user 833 * @param groupId the group ID to search with 834 * @param rank the rank to search with 835 * @param orderByComparator the comparator to order the set by 836 * @return the previous, current, and next social equity user 837 * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found 838 * @throws SystemException if a system exception occurred 839 */ 840 public static com.liferay.portlet.social.model.SocialEquityUser[] findByG_R_PrevAndNext( 841 long equityUserId, long groupId, int rank, 842 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 843 throws com.liferay.portal.kernel.exception.SystemException, 844 com.liferay.portlet.social.NoSuchEquityUserException { 845 return getPersistence() 846 .findByG_R_PrevAndNext(equityUserId, groupId, rank, 847 orderByComparator); 848 } 849 850 /** 851 * Finds all the social equity users. 852 * 853 * @return the social equity users 854 * @throws SystemException if a system exception occurred 855 */ 856 public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll() 857 throws com.liferay.portal.kernel.exception.SystemException { 858 return getPersistence().findAll(); 859 } 860 861 /** 862 * Finds a range of all the social equity users. 863 * 864 * <p> 865 * 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. 866 * </p> 867 * 868 * @param start the lower bound of the range of social equity users to return 869 * @param end the upper bound of the range of social equity users to return (not inclusive) 870 * @return the range of social equity users 871 * @throws SystemException if a system exception occurred 872 */ 873 public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll( 874 int start, int end) 875 throws com.liferay.portal.kernel.exception.SystemException { 876 return getPersistence().findAll(start, end); 877 } 878 879 /** 880 * Finds an ordered range of all the social equity users. 881 * 882 * <p> 883 * 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. 884 * </p> 885 * 886 * @param start the lower bound of the range of social equity users to return 887 * @param end the upper bound of the range of social equity users to return (not inclusive) 888 * @param orderByComparator the comparator to order the results by 889 * @return the ordered range of social equity users 890 * @throws SystemException if a system exception occurred 891 */ 892 public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll( 893 int start, int end, 894 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 895 throws com.liferay.portal.kernel.exception.SystemException { 896 return getPersistence().findAll(start, end, orderByComparator); 897 } 898 899 /** 900 * Removes all the social equity users where groupId = ? from the database. 901 * 902 * @param groupId the group ID to search with 903 * @throws SystemException if a system exception occurred 904 */ 905 public static void removeByGroupId(long groupId) 906 throws com.liferay.portal.kernel.exception.SystemException { 907 getPersistence().removeByGroupId(groupId); 908 } 909 910 /** 911 * Removes all the social equity users where groupId = ? from the database. 912 * 913 * @param groupId the group ID to search with 914 * @throws SystemException if a system exception occurred 915 */ 916 public static void removeByGroupRanked(long groupId) 917 throws com.liferay.portal.kernel.exception.SystemException { 918 getPersistence().removeByGroupRanked(groupId); 919 } 920 921 /** 922 * Removes all the social equity users where userId = ? from the database. 923 * 924 * @param userId the user ID to search with 925 * @throws SystemException if a system exception occurred 926 */ 927 public static void removeByUserId(long userId) 928 throws com.liferay.portal.kernel.exception.SystemException { 929 getPersistence().removeByUserId(userId); 930 } 931 932 /** 933 * Removes all the social equity users where rank = ? from the database. 934 * 935 * @param rank the rank to search with 936 * @throws SystemException if a system exception occurred 937 */ 938 public static void removeByRank(int rank) 939 throws com.liferay.portal.kernel.exception.SystemException { 940 getPersistence().removeByRank(rank); 941 } 942 943 /** 944 * Removes the social equity user where groupId = ? and userId = ? from the database. 945 * 946 * @param groupId the group ID to search with 947 * @param userId the user ID to search with 948 * @throws SystemException if a system exception occurred 949 */ 950 public static void removeByG_U(long groupId, long userId) 951 throws com.liferay.portal.kernel.exception.SystemException, 952 com.liferay.portlet.social.NoSuchEquityUserException { 953 getPersistence().removeByG_U(groupId, userId); 954 } 955 956 /** 957 * Removes all the social equity users where groupId = ? and rank = ? from the database. 958 * 959 * @param groupId the group ID to search with 960 * @param rank the rank to search with 961 * @throws SystemException if a system exception occurred 962 */ 963 public static void removeByG_R(long groupId, int rank) 964 throws com.liferay.portal.kernel.exception.SystemException { 965 getPersistence().removeByG_R(groupId, rank); 966 } 967 968 /** 969 * Removes all the social equity users from the database. 970 * 971 * @throws SystemException if a system exception occurred 972 */ 973 public static void removeAll() 974 throws com.liferay.portal.kernel.exception.SystemException { 975 getPersistence().removeAll(); 976 } 977 978 /** 979 * Counts all the social equity users where groupId = ?. 980 * 981 * @param groupId the group ID to search with 982 * @return the number of matching social equity users 983 * @throws SystemException if a system exception occurred 984 */ 985 public static int countByGroupId(long groupId) 986 throws com.liferay.portal.kernel.exception.SystemException { 987 return getPersistence().countByGroupId(groupId); 988 } 989 990 /** 991 * Counts all the social equity users where groupId = ?. 992 * 993 * @param groupId the group ID to search with 994 * @return the number of matching social equity users 995 * @throws SystemException if a system exception occurred 996 */ 997 public static int countByGroupRanked(long groupId) 998 throws com.liferay.portal.kernel.exception.SystemException { 999 return getPersistence().countByGroupRanked(groupId); 1000 } 1001 1002 /** 1003 * Counts all the social equity users where userId = ?. 1004 * 1005 * @param userId the user ID to search with 1006 * @return the number of matching social equity users 1007 * @throws SystemException if a system exception occurred 1008 */ 1009 public static int countByUserId(long userId) 1010 throws com.liferay.portal.kernel.exception.SystemException { 1011 return getPersistence().countByUserId(userId); 1012 } 1013 1014 /** 1015 * Counts all the social equity users where rank = ?. 1016 * 1017 * @param rank the rank to search with 1018 * @return the number of matching social equity users 1019 * @throws SystemException if a system exception occurred 1020 */ 1021 public static int countByRank(int rank) 1022 throws com.liferay.portal.kernel.exception.SystemException { 1023 return getPersistence().countByRank(rank); 1024 } 1025 1026 /** 1027 * Counts all the social equity users where groupId = ? and userId = ?. 1028 * 1029 * @param groupId the group ID to search with 1030 * @param userId the user ID to search with 1031 * @return the number of matching social equity users 1032 * @throws SystemException if a system exception occurred 1033 */ 1034 public static int countByG_U(long groupId, long userId) 1035 throws com.liferay.portal.kernel.exception.SystemException { 1036 return getPersistence().countByG_U(groupId, userId); 1037 } 1038 1039 /** 1040 * Counts all the social equity users where groupId = ? and rank = ?. 1041 * 1042 * @param groupId the group ID to search with 1043 * @param rank the rank to search with 1044 * @return the number of matching social equity users 1045 * @throws SystemException if a system exception occurred 1046 */ 1047 public static int countByG_R(long groupId, int rank) 1048 throws com.liferay.portal.kernel.exception.SystemException { 1049 return getPersistence().countByG_R(groupId, rank); 1050 } 1051 1052 /** 1053 * Counts all the social equity users. 1054 * 1055 * @return the number of social equity users 1056 * @throws SystemException if a system exception occurred 1057 */ 1058 public static int countAll() 1059 throws com.liferay.portal.kernel.exception.SystemException { 1060 return getPersistence().countAll(); 1061 } 1062 1063 public static SocialEquityUserPersistence getPersistence() { 1064 if (_persistence == null) { 1065 _persistence = (SocialEquityUserPersistence)PortalBeanLocatorUtil.locate(SocialEquityUserPersistence.class.getName()); 1066 1067 ReferenceRegistry.registerReference(SocialEquityUserUtil.class, 1068 "_persistence"); 1069 } 1070 1071 return _persistence; 1072 } 1073 1074 public void setPersistence(SocialEquityUserPersistence persistence) { 1075 _persistence = persistence; 1076 1077 ReferenceRegistry.registerReference(SocialEquityUserUtil.class, 1078 "_persistence"); 1079 } 1080 1081 private static SocialEquityUserPersistence _persistence; 1082 }