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.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.UserGroupGroupRole; 023 import com.liferay.portal.service.ServiceContext; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the user group group role service. This utility wraps {@link UserGroupGroupRolePersistenceImpl} 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 UserGroupGroupRolePersistence 036 * @see UserGroupGroupRolePersistenceImpl 037 * @generated 038 */ 039 public class UserGroupGroupRoleUtil { 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(UserGroupGroupRole userGroupGroupRole) { 057 getPersistence().clearCache(userGroupGroupRole); 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<UserGroupGroupRole> 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<UserGroupGroupRole> 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<UserGroupGroupRole> 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#remove(com.liferay.portal.model.BaseModel) 098 */ 099 public static UserGroupGroupRole remove( 100 UserGroupGroupRole userGroupGroupRole) throws SystemException { 101 return getPersistence().remove(userGroupGroupRole); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 106 */ 107 public static UserGroupGroupRole update( 108 UserGroupGroupRole userGroupGroupRole, boolean merge) 109 throws SystemException { 110 return getPersistence().update(userGroupGroupRole, merge); 111 } 112 113 /** 114 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 115 */ 116 public static UserGroupGroupRole update( 117 UserGroupGroupRole userGroupGroupRole, boolean merge, 118 ServiceContext serviceContext) throws SystemException { 119 return getPersistence().update(userGroupGroupRole, merge, serviceContext); 120 } 121 122 /** 123 * Caches the user group group role in the entity cache if it is enabled. 124 * 125 * @param userGroupGroupRole the user group group role 126 */ 127 public static void cacheResult( 128 com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole) { 129 getPersistence().cacheResult(userGroupGroupRole); 130 } 131 132 /** 133 * Caches the user group group roles in the entity cache if it is enabled. 134 * 135 * @param userGroupGroupRoles the user group group roles 136 */ 137 public static void cacheResult( 138 java.util.List<com.liferay.portal.model.UserGroupGroupRole> userGroupGroupRoles) { 139 getPersistence().cacheResult(userGroupGroupRoles); 140 } 141 142 /** 143 * Creates a new user group group role with the primary key. Does not add the user group group role to the database. 144 * 145 * @param userGroupGroupRolePK the primary key for the new user group group role 146 * @return the new user group group role 147 */ 148 public static com.liferay.portal.model.UserGroupGroupRole create( 149 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) { 150 return getPersistence().create(userGroupGroupRolePK); 151 } 152 153 /** 154 * Removes the user group group role with the primary key from the database. Also notifies the appropriate model listeners. 155 * 156 * @param userGroupGroupRolePK the primary key of the user group group role 157 * @return the user group group role that was removed 158 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found 159 * @throws SystemException if a system exception occurred 160 */ 161 public static com.liferay.portal.model.UserGroupGroupRole remove( 162 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) 163 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 164 com.liferay.portal.kernel.exception.SystemException { 165 return getPersistence().remove(userGroupGroupRolePK); 166 } 167 168 public static com.liferay.portal.model.UserGroupGroupRole updateImpl( 169 com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole, 170 boolean merge) 171 throws com.liferay.portal.kernel.exception.SystemException { 172 return getPersistence().updateImpl(userGroupGroupRole, merge); 173 } 174 175 /** 176 * Returns the user group group role with the primary key or throws a {@link com.liferay.portal.NoSuchUserGroupGroupRoleException} if it could not be found. 177 * 178 * @param userGroupGroupRolePK the primary key of the user group group role 179 * @return the user group group role 180 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found 181 * @throws SystemException if a system exception occurred 182 */ 183 public static com.liferay.portal.model.UserGroupGroupRole findByPrimaryKey( 184 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) 185 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 186 com.liferay.portal.kernel.exception.SystemException { 187 return getPersistence().findByPrimaryKey(userGroupGroupRolePK); 188 } 189 190 /** 191 * Returns the user group group role with the primary key or returns <code>null</code> if it could not be found. 192 * 193 * @param userGroupGroupRolePK the primary key of the user group group role 194 * @return the user group group role, or <code>null</code> if a user group group role with the primary key could not be found 195 * @throws SystemException if a system exception occurred 196 */ 197 public static com.liferay.portal.model.UserGroupGroupRole fetchByPrimaryKey( 198 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) 199 throws com.liferay.portal.kernel.exception.SystemException { 200 return getPersistence().fetchByPrimaryKey(userGroupGroupRolePK); 201 } 202 203 /** 204 * Returns all the user group group roles where userGroupId = ?. 205 * 206 * @param userGroupId the user group ID 207 * @return the matching user group group roles 208 * @throws SystemException if a system exception occurred 209 */ 210 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId( 211 long userGroupId) 212 throws com.liferay.portal.kernel.exception.SystemException { 213 return getPersistence().findByUserGroupId(userGroupId); 214 } 215 216 /** 217 * Returns a range of all the user group group roles where userGroupId = ?. 218 * 219 * <p> 220 * 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. 221 * </p> 222 * 223 * @param userGroupId the user group ID 224 * @param start the lower bound of the range of user group group roles 225 * @param end the upper bound of the range of user group group roles (not inclusive) 226 * @return the range of matching user group group roles 227 * @throws SystemException if a system exception occurred 228 */ 229 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId( 230 long userGroupId, int start, int end) 231 throws com.liferay.portal.kernel.exception.SystemException { 232 return getPersistence().findByUserGroupId(userGroupId, start, end); 233 } 234 235 /** 236 * Returns an ordered range of all the user group group roles where userGroupId = ?. 237 * 238 * <p> 239 * 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. 240 * </p> 241 * 242 * @param userGroupId the user group ID 243 * @param start the lower bound of the range of user group group roles 244 * @param end the upper bound of the range of user group group roles (not inclusive) 245 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 246 * @return the ordered range of matching user group group roles 247 * @throws SystemException if a system exception occurred 248 */ 249 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId( 250 long userGroupId, int start, int end, 251 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 252 throws com.liferay.portal.kernel.exception.SystemException { 253 return getPersistence() 254 .findByUserGroupId(userGroupId, start, end, orderByComparator); 255 } 256 257 /** 258 * Returns the first user group group role in the ordered set where userGroupId = ?. 259 * 260 * <p> 261 * 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. 262 * </p> 263 * 264 * @param userGroupId the user group ID 265 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 266 * @return the first matching user group group role 267 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 268 * @throws SystemException if a system exception occurred 269 */ 270 public static com.liferay.portal.model.UserGroupGroupRole findByUserGroupId_First( 271 long userGroupId, 272 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 273 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 274 com.liferay.portal.kernel.exception.SystemException { 275 return getPersistence() 276 .findByUserGroupId_First(userGroupId, orderByComparator); 277 } 278 279 /** 280 * Returns the last user group group role in the ordered set where userGroupId = ?. 281 * 282 * <p> 283 * 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. 284 * </p> 285 * 286 * @param userGroupId the user group ID 287 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 288 * @return the last matching user group group role 289 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 290 * @throws SystemException if a system exception occurred 291 */ 292 public static com.liferay.portal.model.UserGroupGroupRole findByUserGroupId_Last( 293 long userGroupId, 294 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 295 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 296 com.liferay.portal.kernel.exception.SystemException { 297 return getPersistence() 298 .findByUserGroupId_Last(userGroupId, orderByComparator); 299 } 300 301 /** 302 * Returns the user group group roles before and after the current user group group role in the ordered set where userGroupId = ?. 303 * 304 * <p> 305 * 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. 306 * </p> 307 * 308 * @param userGroupGroupRolePK the primary key of the current user group group role 309 * @param userGroupId the user group ID 310 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 311 * @return the previous, current, and next user group group role 312 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found 313 * @throws SystemException if a system exception occurred 314 */ 315 public static com.liferay.portal.model.UserGroupGroupRole[] findByUserGroupId_PrevAndNext( 316 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK, 317 long userGroupId, 318 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 319 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 320 com.liferay.portal.kernel.exception.SystemException { 321 return getPersistence() 322 .findByUserGroupId_PrevAndNext(userGroupGroupRolePK, 323 userGroupId, orderByComparator); 324 } 325 326 /** 327 * Returns all the user group group roles where groupId = ?. 328 * 329 * @param groupId the group ID 330 * @return the matching user group group roles 331 * @throws SystemException if a system exception occurred 332 */ 333 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId( 334 long groupId) 335 throws com.liferay.portal.kernel.exception.SystemException { 336 return getPersistence().findByGroupId(groupId); 337 } 338 339 /** 340 * Returns a range of all the user group group roles where groupId = ?. 341 * 342 * <p> 343 * 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. 344 * </p> 345 * 346 * @param groupId the group ID 347 * @param start the lower bound of the range of user group group roles 348 * @param end the upper bound of the range of user group group roles (not inclusive) 349 * @return the range of matching user group group roles 350 * @throws SystemException if a system exception occurred 351 */ 352 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId( 353 long groupId, int start, int end) 354 throws com.liferay.portal.kernel.exception.SystemException { 355 return getPersistence().findByGroupId(groupId, start, end); 356 } 357 358 /** 359 * Returns an ordered range of all the user group group roles where groupId = ?. 360 * 361 * <p> 362 * 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. 363 * </p> 364 * 365 * @param groupId the group ID 366 * @param start the lower bound of the range of user group group roles 367 * @param end the upper bound of the range of user group group roles (not inclusive) 368 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 369 * @return the ordered range of matching user group group roles 370 * @throws SystemException if a system exception occurred 371 */ 372 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId( 373 long groupId, int start, int end, 374 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 375 throws com.liferay.portal.kernel.exception.SystemException { 376 return getPersistence() 377 .findByGroupId(groupId, start, end, orderByComparator); 378 } 379 380 /** 381 * Returns the first user group group role in the ordered set where groupId = ?. 382 * 383 * <p> 384 * 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. 385 * </p> 386 * 387 * @param groupId the group ID 388 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 389 * @return the first matching user group group role 390 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 391 * @throws SystemException if a system exception occurred 392 */ 393 public static com.liferay.portal.model.UserGroupGroupRole findByGroupId_First( 394 long groupId, 395 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 396 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 397 com.liferay.portal.kernel.exception.SystemException { 398 return getPersistence().findByGroupId_First(groupId, orderByComparator); 399 } 400 401 /** 402 * Returns the last user group group role in the ordered set where groupId = ?. 403 * 404 * <p> 405 * 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. 406 * </p> 407 * 408 * @param groupId the group ID 409 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 410 * @return the last matching user group group role 411 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 412 * @throws SystemException if a system exception occurred 413 */ 414 public static com.liferay.portal.model.UserGroupGroupRole findByGroupId_Last( 415 long groupId, 416 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 417 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 418 com.liferay.portal.kernel.exception.SystemException { 419 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 420 } 421 422 /** 423 * Returns the user group group roles before and after the current user group group role in the ordered set where groupId = ?. 424 * 425 * <p> 426 * 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. 427 * </p> 428 * 429 * @param userGroupGroupRolePK the primary key of the current user group group role 430 * @param groupId the group ID 431 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 432 * @return the previous, current, and next user group group role 433 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found 434 * @throws SystemException if a system exception occurred 435 */ 436 public static com.liferay.portal.model.UserGroupGroupRole[] findByGroupId_PrevAndNext( 437 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK, 438 long groupId, 439 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 440 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 441 com.liferay.portal.kernel.exception.SystemException { 442 return getPersistence() 443 .findByGroupId_PrevAndNext(userGroupGroupRolePK, groupId, 444 orderByComparator); 445 } 446 447 /** 448 * Returns all the user group group roles where roleId = ?. 449 * 450 * @param roleId the role ID 451 * @return the matching user group group roles 452 * @throws SystemException if a system exception occurred 453 */ 454 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId( 455 long roleId) throws com.liferay.portal.kernel.exception.SystemException { 456 return getPersistence().findByRoleId(roleId); 457 } 458 459 /** 460 * Returns a range of all the user group group roles where roleId = ?. 461 * 462 * <p> 463 * 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. 464 * </p> 465 * 466 * @param roleId the role ID 467 * @param start the lower bound of the range of user group group roles 468 * @param end the upper bound of the range of user group group roles (not inclusive) 469 * @return the range of matching user group group roles 470 * @throws SystemException if a system exception occurred 471 */ 472 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId( 473 long roleId, int start, int end) 474 throws com.liferay.portal.kernel.exception.SystemException { 475 return getPersistence().findByRoleId(roleId, start, end); 476 } 477 478 /** 479 * Returns an ordered range of all the user group group roles where roleId = ?. 480 * 481 * <p> 482 * 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. 483 * </p> 484 * 485 * @param roleId the role ID 486 * @param start the lower bound of the range of user group group roles 487 * @param end the upper bound of the range of user group group roles (not inclusive) 488 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 489 * @return the ordered range of matching user group group roles 490 * @throws SystemException if a system exception occurred 491 */ 492 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId( 493 long roleId, int start, int end, 494 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 495 throws com.liferay.portal.kernel.exception.SystemException { 496 return getPersistence() 497 .findByRoleId(roleId, start, end, orderByComparator); 498 } 499 500 /** 501 * Returns the first user group group role in the ordered set where roleId = ?. 502 * 503 * <p> 504 * 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. 505 * </p> 506 * 507 * @param roleId the role ID 508 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 509 * @return the first matching user group group role 510 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 511 * @throws SystemException if a system exception occurred 512 */ 513 public static com.liferay.portal.model.UserGroupGroupRole findByRoleId_First( 514 long roleId, 515 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 516 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 517 com.liferay.portal.kernel.exception.SystemException { 518 return getPersistence().findByRoleId_First(roleId, orderByComparator); 519 } 520 521 /** 522 * Returns the last user group group role in the ordered set where roleId = ?. 523 * 524 * <p> 525 * 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. 526 * </p> 527 * 528 * @param roleId the role ID 529 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 530 * @return the last matching user group group role 531 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 532 * @throws SystemException if a system exception occurred 533 */ 534 public static com.liferay.portal.model.UserGroupGroupRole findByRoleId_Last( 535 long roleId, 536 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 537 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 538 com.liferay.portal.kernel.exception.SystemException { 539 return getPersistence().findByRoleId_Last(roleId, orderByComparator); 540 } 541 542 /** 543 * Returns the user group group roles before and after the current user group group role in the ordered set where roleId = ?. 544 * 545 * <p> 546 * 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. 547 * </p> 548 * 549 * @param userGroupGroupRolePK the primary key of the current user group group role 550 * @param roleId the role ID 551 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 552 * @return the previous, current, and next user group group role 553 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found 554 * @throws SystemException if a system exception occurred 555 */ 556 public static com.liferay.portal.model.UserGroupGroupRole[] findByRoleId_PrevAndNext( 557 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK, 558 long roleId, 559 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 560 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 561 com.liferay.portal.kernel.exception.SystemException { 562 return getPersistence() 563 .findByRoleId_PrevAndNext(userGroupGroupRolePK, roleId, 564 orderByComparator); 565 } 566 567 /** 568 * Returns all the user group group roles where userGroupId = ? and groupId = ?. 569 * 570 * @param userGroupId the user group ID 571 * @param groupId the group ID 572 * @return the matching user group group roles 573 * @throws SystemException if a system exception occurred 574 */ 575 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G( 576 long userGroupId, long groupId) 577 throws com.liferay.portal.kernel.exception.SystemException { 578 return getPersistence().findByU_G(userGroupId, groupId); 579 } 580 581 /** 582 * Returns a range of all the user group group roles where userGroupId = ? and groupId = ?. 583 * 584 * <p> 585 * 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. 586 * </p> 587 * 588 * @param userGroupId the user group ID 589 * @param groupId the group ID 590 * @param start the lower bound of the range of user group group roles 591 * @param end the upper bound of the range of user group group roles (not inclusive) 592 * @return the range of matching user group group roles 593 * @throws SystemException if a system exception occurred 594 */ 595 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G( 596 long userGroupId, long groupId, int start, int end) 597 throws com.liferay.portal.kernel.exception.SystemException { 598 return getPersistence().findByU_G(userGroupId, groupId, start, end); 599 } 600 601 /** 602 * Returns an ordered range of all the user group group roles where userGroupId = ? and groupId = ?. 603 * 604 * <p> 605 * 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. 606 * </p> 607 * 608 * @param userGroupId the user group ID 609 * @param groupId the group ID 610 * @param start the lower bound of the range of user group group roles 611 * @param end the upper bound of the range of user group group roles (not inclusive) 612 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 613 * @return the ordered range of matching user group group roles 614 * @throws SystemException if a system exception occurred 615 */ 616 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G( 617 long userGroupId, long groupId, int start, int end, 618 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 619 throws com.liferay.portal.kernel.exception.SystemException { 620 return getPersistence() 621 .findByU_G(userGroupId, groupId, start, end, 622 orderByComparator); 623 } 624 625 /** 626 * Returns the first user group group role in the ordered set where userGroupId = ? and groupId = ?. 627 * 628 * <p> 629 * 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. 630 * </p> 631 * 632 * @param userGroupId the user group ID 633 * @param groupId the group ID 634 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 635 * @return the first matching user group group role 636 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 637 * @throws SystemException if a system exception occurred 638 */ 639 public static com.liferay.portal.model.UserGroupGroupRole findByU_G_First( 640 long userGroupId, long groupId, 641 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 642 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 643 com.liferay.portal.kernel.exception.SystemException { 644 return getPersistence() 645 .findByU_G_First(userGroupId, groupId, orderByComparator); 646 } 647 648 /** 649 * Returns the last user group group role in the ordered set where userGroupId = ? and groupId = ?. 650 * 651 * <p> 652 * 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. 653 * </p> 654 * 655 * @param userGroupId the user group ID 656 * @param groupId the group ID 657 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 658 * @return the last matching user group group role 659 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 660 * @throws SystemException if a system exception occurred 661 */ 662 public static com.liferay.portal.model.UserGroupGroupRole findByU_G_Last( 663 long userGroupId, long groupId, 664 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 665 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 666 com.liferay.portal.kernel.exception.SystemException { 667 return getPersistence() 668 .findByU_G_Last(userGroupId, groupId, orderByComparator); 669 } 670 671 /** 672 * Returns the user group group roles before and after the current user group group role in the ordered set where userGroupId = ? and groupId = ?. 673 * 674 * <p> 675 * 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. 676 * </p> 677 * 678 * @param userGroupGroupRolePK the primary key of the current user group group role 679 * @param userGroupId the user group ID 680 * @param groupId the group ID 681 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 682 * @return the previous, current, and next user group group role 683 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found 684 * @throws SystemException if a system exception occurred 685 */ 686 public static com.liferay.portal.model.UserGroupGroupRole[] findByU_G_PrevAndNext( 687 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK, 688 long userGroupId, long groupId, 689 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 690 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 691 com.liferay.portal.kernel.exception.SystemException { 692 return getPersistence() 693 .findByU_G_PrevAndNext(userGroupGroupRolePK, userGroupId, 694 groupId, orderByComparator); 695 } 696 697 /** 698 * Returns all the user group group roles where groupId = ? and roleId = ?. 699 * 700 * @param groupId the group ID 701 * @param roleId the role ID 702 * @return the matching user group group roles 703 * @throws SystemException if a system exception occurred 704 */ 705 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R( 706 long groupId, long roleId) 707 throws com.liferay.portal.kernel.exception.SystemException { 708 return getPersistence().findByG_R(groupId, roleId); 709 } 710 711 /** 712 * Returns a range of all the user group group roles where groupId = ? and roleId = ?. 713 * 714 * <p> 715 * 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. 716 * </p> 717 * 718 * @param groupId the group ID 719 * @param roleId the role ID 720 * @param start the lower bound of the range of user group group roles 721 * @param end the upper bound of the range of user group group roles (not inclusive) 722 * @return the range of matching user group group roles 723 * @throws SystemException if a system exception occurred 724 */ 725 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R( 726 long groupId, long roleId, int start, int end) 727 throws com.liferay.portal.kernel.exception.SystemException { 728 return getPersistence().findByG_R(groupId, roleId, start, end); 729 } 730 731 /** 732 * Returns an ordered range of all the user group group roles where groupId = ? and roleId = ?. 733 * 734 * <p> 735 * 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. 736 * </p> 737 * 738 * @param groupId the group ID 739 * @param roleId the role ID 740 * @param start the lower bound of the range of user group group roles 741 * @param end the upper bound of the range of user group group roles (not inclusive) 742 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 743 * @return the ordered range of matching user group group roles 744 * @throws SystemException if a system exception occurred 745 */ 746 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R( 747 long groupId, long roleId, int start, int end, 748 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 749 throws com.liferay.portal.kernel.exception.SystemException { 750 return getPersistence() 751 .findByG_R(groupId, roleId, start, end, orderByComparator); 752 } 753 754 /** 755 * Returns the first user group group role in the ordered set where groupId = ? and roleId = ?. 756 * 757 * <p> 758 * 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. 759 * </p> 760 * 761 * @param groupId the group ID 762 * @param roleId the role ID 763 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 764 * @return the first matching user group group role 765 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 766 * @throws SystemException if a system exception occurred 767 */ 768 public static com.liferay.portal.model.UserGroupGroupRole findByG_R_First( 769 long groupId, long roleId, 770 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 771 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 772 com.liferay.portal.kernel.exception.SystemException { 773 return getPersistence() 774 .findByG_R_First(groupId, roleId, orderByComparator); 775 } 776 777 /** 778 * Returns the last user group group role in the ordered set where groupId = ? and roleId = ?. 779 * 780 * <p> 781 * 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. 782 * </p> 783 * 784 * @param groupId the group ID 785 * @param roleId the role ID 786 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 787 * @return the last matching user group group role 788 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 789 * @throws SystemException if a system exception occurred 790 */ 791 public static com.liferay.portal.model.UserGroupGroupRole findByG_R_Last( 792 long groupId, long roleId, 793 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 794 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 795 com.liferay.portal.kernel.exception.SystemException { 796 return getPersistence() 797 .findByG_R_Last(groupId, roleId, orderByComparator); 798 } 799 800 /** 801 * Returns the user group group roles before and after the current user group group role in the ordered set where groupId = ? and roleId = ?. 802 * 803 * <p> 804 * 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. 805 * </p> 806 * 807 * @param userGroupGroupRolePK the primary key of the current user group group role 808 * @param groupId the group ID 809 * @param roleId the role ID 810 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 811 * @return the previous, current, and next user group group role 812 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found 813 * @throws SystemException if a system exception occurred 814 */ 815 public static com.liferay.portal.model.UserGroupGroupRole[] findByG_R_PrevAndNext( 816 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK, 817 long groupId, long roleId, 818 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 819 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 820 com.liferay.portal.kernel.exception.SystemException { 821 return getPersistence() 822 .findByG_R_PrevAndNext(userGroupGroupRolePK, groupId, 823 roleId, orderByComparator); 824 } 825 826 /** 827 * Returns all the user group group roles. 828 * 829 * @return the user group group roles 830 * @throws SystemException if a system exception occurred 831 */ 832 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll() 833 throws com.liferay.portal.kernel.exception.SystemException { 834 return getPersistence().findAll(); 835 } 836 837 /** 838 * Returns a range of all the user group group roles. 839 * 840 * <p> 841 * 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. 842 * </p> 843 * 844 * @param start the lower bound of the range of user group group roles 845 * @param end the upper bound of the range of user group group roles (not inclusive) 846 * @return the range of user group group roles 847 * @throws SystemException if a system exception occurred 848 */ 849 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll( 850 int start, int end) 851 throws com.liferay.portal.kernel.exception.SystemException { 852 return getPersistence().findAll(start, end); 853 } 854 855 /** 856 * Returns an ordered range of all the user group group roles. 857 * 858 * <p> 859 * 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. 860 * </p> 861 * 862 * @param start the lower bound of the range of user group group roles 863 * @param end the upper bound of the range of user group group roles (not inclusive) 864 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 865 * @return the ordered range of user group group roles 866 * @throws SystemException if a system exception occurred 867 */ 868 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll( 869 int start, int end, 870 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 871 throws com.liferay.portal.kernel.exception.SystemException { 872 return getPersistence().findAll(start, end, orderByComparator); 873 } 874 875 /** 876 * Removes all the user group group roles where userGroupId = ? from the database. 877 * 878 * @param userGroupId the user group ID 879 * @throws SystemException if a system exception occurred 880 */ 881 public static void removeByUserGroupId(long userGroupId) 882 throws com.liferay.portal.kernel.exception.SystemException { 883 getPersistence().removeByUserGroupId(userGroupId); 884 } 885 886 /** 887 * Removes all the user group group roles where groupId = ? from the database. 888 * 889 * @param groupId the group ID 890 * @throws SystemException if a system exception occurred 891 */ 892 public static void removeByGroupId(long groupId) 893 throws com.liferay.portal.kernel.exception.SystemException { 894 getPersistence().removeByGroupId(groupId); 895 } 896 897 /** 898 * Removes all the user group group roles where roleId = ? from the database. 899 * 900 * @param roleId the role ID 901 * @throws SystemException if a system exception occurred 902 */ 903 public static void removeByRoleId(long roleId) 904 throws com.liferay.portal.kernel.exception.SystemException { 905 getPersistence().removeByRoleId(roleId); 906 } 907 908 /** 909 * Removes all the user group group roles where userGroupId = ? and groupId = ? from the database. 910 * 911 * @param userGroupId the user group ID 912 * @param groupId the group ID 913 * @throws SystemException if a system exception occurred 914 */ 915 public static void removeByU_G(long userGroupId, long groupId) 916 throws com.liferay.portal.kernel.exception.SystemException { 917 getPersistence().removeByU_G(userGroupId, groupId); 918 } 919 920 /** 921 * Removes all the user group group roles where groupId = ? and roleId = ? from the database. 922 * 923 * @param groupId the group ID 924 * @param roleId the role ID 925 * @throws SystemException if a system exception occurred 926 */ 927 public static void removeByG_R(long groupId, long roleId) 928 throws com.liferay.portal.kernel.exception.SystemException { 929 getPersistence().removeByG_R(groupId, roleId); 930 } 931 932 /** 933 * Removes all the user group group roles from the database. 934 * 935 * @throws SystemException if a system exception occurred 936 */ 937 public static void removeAll() 938 throws com.liferay.portal.kernel.exception.SystemException { 939 getPersistence().removeAll(); 940 } 941 942 /** 943 * Returns the number of user group group roles where userGroupId = ?. 944 * 945 * @param userGroupId the user group ID 946 * @return the number of matching user group group roles 947 * @throws SystemException if a system exception occurred 948 */ 949 public static int countByUserGroupId(long userGroupId) 950 throws com.liferay.portal.kernel.exception.SystemException { 951 return getPersistence().countByUserGroupId(userGroupId); 952 } 953 954 /** 955 * Returns the number of user group group roles where groupId = ?. 956 * 957 * @param groupId the group ID 958 * @return the number of matching user group group roles 959 * @throws SystemException if a system exception occurred 960 */ 961 public static int countByGroupId(long groupId) 962 throws com.liferay.portal.kernel.exception.SystemException { 963 return getPersistence().countByGroupId(groupId); 964 } 965 966 /** 967 * Returns the number of user group group roles where roleId = ?. 968 * 969 * @param roleId the role ID 970 * @return the number of matching user group group roles 971 * @throws SystemException if a system exception occurred 972 */ 973 public static int countByRoleId(long roleId) 974 throws com.liferay.portal.kernel.exception.SystemException { 975 return getPersistence().countByRoleId(roleId); 976 } 977 978 /** 979 * Returns the number of user group group roles where userGroupId = ? and groupId = ?. 980 * 981 * @param userGroupId the user group ID 982 * @param groupId the group ID 983 * @return the number of matching user group group roles 984 * @throws SystemException if a system exception occurred 985 */ 986 public static int countByU_G(long userGroupId, long groupId) 987 throws com.liferay.portal.kernel.exception.SystemException { 988 return getPersistence().countByU_G(userGroupId, groupId); 989 } 990 991 /** 992 * Returns the number of user group group roles where groupId = ? and roleId = ?. 993 * 994 * @param groupId the group ID 995 * @param roleId the role ID 996 * @return the number of matching user group group roles 997 * @throws SystemException if a system exception occurred 998 */ 999 public static int countByG_R(long groupId, long roleId) 1000 throws com.liferay.portal.kernel.exception.SystemException { 1001 return getPersistence().countByG_R(groupId, roleId); 1002 } 1003 1004 /** 1005 * Returns the number of user group group roles. 1006 * 1007 * @return the number of user group group roles 1008 * @throws SystemException if a system exception occurred 1009 */ 1010 public static int countAll() 1011 throws com.liferay.portal.kernel.exception.SystemException { 1012 return getPersistence().countAll(); 1013 } 1014 1015 public static UserGroupGroupRolePersistence getPersistence() { 1016 if (_persistence == null) { 1017 _persistence = (UserGroupGroupRolePersistence)PortalBeanLocatorUtil.locate(UserGroupGroupRolePersistence.class.getName()); 1018 1019 ReferenceRegistry.registerReference(UserGroupGroupRoleUtil.class, 1020 "_persistence"); 1021 } 1022 1023 return _persistence; 1024 } 1025 1026 public void setPersistence(UserGroupGroupRolePersistence persistence) { 1027 _persistence = persistence; 1028 1029 ReferenceRegistry.registerReference(UserGroupGroupRoleUtil.class, 1030 "_persistence"); 1031 } 1032 1033 private static UserGroupGroupRolePersistence _persistence; 1034 }