001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.model.OrgGroupRole; 022 import com.liferay.portal.service.ServiceContext; 023 024 import java.util.List; 025 026 /** 027 * The persistence utility for the org group role service. 028 * 029 * <p> 030 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class. 031 * </p> 032 * 033 * @author Brian Wing Shun Chan 034 * @see OrgGroupRolePersistence 035 * @see OrgGroupRolePersistenceImpl 036 * @generated 037 */ 038 public class OrgGroupRoleUtil { 039 /** 040 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 041 */ 042 public static void clearCache() { 043 getPersistence().clearCache(); 044 } 045 046 /** 047 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 048 */ 049 public static void clearCache(OrgGroupRole orgGroupRole) { 050 getPersistence().clearCache(orgGroupRole); 051 } 052 053 /** 054 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 055 */ 056 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 057 throws SystemException { 058 return getPersistence().countWithDynamicQuery(dynamicQuery); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 063 */ 064 public static List<OrgGroupRole> findWithDynamicQuery( 065 DynamicQuery dynamicQuery) throws SystemException { 066 return getPersistence().findWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 071 */ 072 public static List<OrgGroupRole> findWithDynamicQuery( 073 DynamicQuery dynamicQuery, int start, int end) 074 throws SystemException { 075 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 076 } 077 078 /** 079 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 080 */ 081 public static List<OrgGroupRole> findWithDynamicQuery( 082 DynamicQuery dynamicQuery, int start, int end, 083 OrderByComparator orderByComparator) throws SystemException { 084 return getPersistence() 085 .findWithDynamicQuery(dynamicQuery, start, end, 086 orderByComparator); 087 } 088 089 /** 090 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 091 */ 092 public static OrgGroupRole remove(OrgGroupRole orgGroupRole) 093 throws SystemException { 094 return getPersistence().remove(orgGroupRole); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 099 */ 100 public static OrgGroupRole update(OrgGroupRole orgGroupRole, boolean merge) 101 throws SystemException { 102 return getPersistence().update(orgGroupRole, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static OrgGroupRole update(OrgGroupRole orgGroupRole, boolean merge, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(orgGroupRole, merge, serviceContext); 111 } 112 113 /** 114 * Caches the org group role in the entity cache if it is enabled. 115 * 116 * @param orgGroupRole the org group role to cache 117 */ 118 public static void cacheResult( 119 com.liferay.portal.model.OrgGroupRole orgGroupRole) { 120 getPersistence().cacheResult(orgGroupRole); 121 } 122 123 /** 124 * Caches the org group roles in the entity cache if it is enabled. 125 * 126 * @param orgGroupRoles the org group roles to cache 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portal.model.OrgGroupRole> orgGroupRoles) { 130 getPersistence().cacheResult(orgGroupRoles); 131 } 132 133 /** 134 * Creates a new org group role with the primary key. 135 * 136 * @param orgGroupRolePK the primary key for the new org group role 137 * @return the new org group role 138 */ 139 public static com.liferay.portal.model.OrgGroupRole create( 140 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK) { 141 return getPersistence().create(orgGroupRolePK); 142 } 143 144 /** 145 * Removes the org group role with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param orgGroupRolePK the primary key of the org group role to remove 148 * @return the org group role that was removed 149 * @throws com.liferay.portal.NoSuchOrgGroupRoleException if a org group role with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portal.model.OrgGroupRole remove( 153 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK) 154 throws com.liferay.portal.NoSuchOrgGroupRoleException, 155 com.liferay.portal.kernel.exception.SystemException { 156 return getPersistence().remove(orgGroupRolePK); 157 } 158 159 public static com.liferay.portal.model.OrgGroupRole updateImpl( 160 com.liferay.portal.model.OrgGroupRole orgGroupRole, boolean merge) 161 throws com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence().updateImpl(orgGroupRole, merge); 163 } 164 165 /** 166 * Finds the org group role with the primary key or throws a {@link com.liferay.portal.NoSuchOrgGroupRoleException} if it could not be found. 167 * 168 * @param orgGroupRolePK the primary key of the org group role to find 169 * @return the org group role 170 * @throws com.liferay.portal.NoSuchOrgGroupRoleException if a org group role with the primary key could not be found 171 * @throws SystemException if a system exception occurred 172 */ 173 public static com.liferay.portal.model.OrgGroupRole findByPrimaryKey( 174 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK) 175 throws com.liferay.portal.NoSuchOrgGroupRoleException, 176 com.liferay.portal.kernel.exception.SystemException { 177 return getPersistence().findByPrimaryKey(orgGroupRolePK); 178 } 179 180 /** 181 * Finds the org group role with the primary key or returns <code>null</code> if it could not be found. 182 * 183 * @param orgGroupRolePK the primary key of the org group role to find 184 * @return the org group role, or <code>null</code> if a org group role with the primary key could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public static com.liferay.portal.model.OrgGroupRole fetchByPrimaryKey( 188 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK) 189 throws com.liferay.portal.kernel.exception.SystemException { 190 return getPersistence().fetchByPrimaryKey(orgGroupRolePK); 191 } 192 193 /** 194 * Finds all the org group roles where groupId = ?. 195 * 196 * @param groupId the group id to search with 197 * @return the matching org group roles 198 * @throws SystemException if a system exception occurred 199 */ 200 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId( 201 long groupId) 202 throws com.liferay.portal.kernel.exception.SystemException { 203 return getPersistence().findByGroupId(groupId); 204 } 205 206 /** 207 * Finds a range of all the org group roles where groupId = ?. 208 * 209 * <p> 210 * 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. 211 * </p> 212 * 213 * @param groupId the group id to search with 214 * @param start the lower bound of the range of org group roles to return 215 * @param end the upper bound of the range of org group roles to return (not inclusive) 216 * @return the range of matching org group roles 217 * @throws SystemException if a system exception occurred 218 */ 219 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId( 220 long groupId, int start, int end) 221 throws com.liferay.portal.kernel.exception.SystemException { 222 return getPersistence().findByGroupId(groupId, start, end); 223 } 224 225 /** 226 * Finds an ordered range of all the org group roles where groupId = ?. 227 * 228 * <p> 229 * 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. 230 * </p> 231 * 232 * @param groupId the group id to search with 233 * @param start the lower bound of the range of org group roles to return 234 * @param end the upper bound of the range of org group roles to return (not inclusive) 235 * @param orderByComparator the comparator to order the results by 236 * @return the ordered range of matching org group roles 237 * @throws SystemException if a system exception occurred 238 */ 239 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId( 240 long groupId, int start, int end, 241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 242 throws com.liferay.portal.kernel.exception.SystemException { 243 return getPersistence() 244 .findByGroupId(groupId, start, end, orderByComparator); 245 } 246 247 /** 248 * Finds the first org group role in the ordered set where groupId = ?. 249 * 250 * <p> 251 * 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. 252 * </p> 253 * 254 * @param groupId the group id to search with 255 * @param orderByComparator the comparator to order the set by 256 * @return the first matching org group role 257 * @throws com.liferay.portal.NoSuchOrgGroupRoleException if a matching org group role could not be found 258 * @throws SystemException if a system exception occurred 259 */ 260 public static com.liferay.portal.model.OrgGroupRole findByGroupId_First( 261 long groupId, 262 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 263 throws com.liferay.portal.NoSuchOrgGroupRoleException, 264 com.liferay.portal.kernel.exception.SystemException { 265 return getPersistence().findByGroupId_First(groupId, orderByComparator); 266 } 267 268 /** 269 * Finds the last org group role in the ordered set where groupId = ?. 270 * 271 * <p> 272 * 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. 273 * </p> 274 * 275 * @param groupId the group id to search with 276 * @param orderByComparator the comparator to order the set by 277 * @return the last matching org group role 278 * @throws com.liferay.portal.NoSuchOrgGroupRoleException if a matching org group role could not be found 279 * @throws SystemException if a system exception occurred 280 */ 281 public static com.liferay.portal.model.OrgGroupRole findByGroupId_Last( 282 long groupId, 283 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 284 throws com.liferay.portal.NoSuchOrgGroupRoleException, 285 com.liferay.portal.kernel.exception.SystemException { 286 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 287 } 288 289 /** 290 * Finds the org group roles before and after the current org group role in the ordered set where groupId = ?. 291 * 292 * <p> 293 * 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. 294 * </p> 295 * 296 * @param orgGroupRolePK the primary key of the current org group role 297 * @param groupId the group id to search with 298 * @param orderByComparator the comparator to order the set by 299 * @return the previous, current, and next org group role 300 * @throws com.liferay.portal.NoSuchOrgGroupRoleException if a org group role with the primary key could not be found 301 * @throws SystemException if a system exception occurred 302 */ 303 public static com.liferay.portal.model.OrgGroupRole[] findByGroupId_PrevAndNext( 304 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK, 305 long groupId, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.NoSuchOrgGroupRoleException, 308 com.liferay.portal.kernel.exception.SystemException { 309 return getPersistence() 310 .findByGroupId_PrevAndNext(orgGroupRolePK, groupId, 311 orderByComparator); 312 } 313 314 /** 315 * Finds all the org group roles where roleId = ?. 316 * 317 * @param roleId the role id to search with 318 * @return the matching org group roles 319 * @throws SystemException if a system exception occurred 320 */ 321 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId( 322 long roleId) throws com.liferay.portal.kernel.exception.SystemException { 323 return getPersistence().findByRoleId(roleId); 324 } 325 326 /** 327 * Finds a range of all the org group roles where roleId = ?. 328 * 329 * <p> 330 * 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. 331 * </p> 332 * 333 * @param roleId the role id to search with 334 * @param start the lower bound of the range of org group roles to return 335 * @param end the upper bound of the range of org group roles to return (not inclusive) 336 * @return the range of matching org group roles 337 * @throws SystemException if a system exception occurred 338 */ 339 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId( 340 long roleId, int start, int end) 341 throws com.liferay.portal.kernel.exception.SystemException { 342 return getPersistence().findByRoleId(roleId, start, end); 343 } 344 345 /** 346 * Finds an ordered range of all the org group roles where roleId = ?. 347 * 348 * <p> 349 * 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. 350 * </p> 351 * 352 * @param roleId the role id to search with 353 * @param start the lower bound of the range of org group roles to return 354 * @param end the upper bound of the range of org group roles to return (not inclusive) 355 * @param orderByComparator the comparator to order the results by 356 * @return the ordered range of matching org group roles 357 * @throws SystemException if a system exception occurred 358 */ 359 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId( 360 long roleId, int start, int end, 361 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 362 throws com.liferay.portal.kernel.exception.SystemException { 363 return getPersistence() 364 .findByRoleId(roleId, start, end, orderByComparator); 365 } 366 367 /** 368 * Finds the first org group role in the ordered set where roleId = ?. 369 * 370 * <p> 371 * 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. 372 * </p> 373 * 374 * @param roleId the role id to search with 375 * @param orderByComparator the comparator to order the set by 376 * @return the first matching org group role 377 * @throws com.liferay.portal.NoSuchOrgGroupRoleException if a matching org group role could not be found 378 * @throws SystemException if a system exception occurred 379 */ 380 public static com.liferay.portal.model.OrgGroupRole findByRoleId_First( 381 long roleId, 382 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 383 throws com.liferay.portal.NoSuchOrgGroupRoleException, 384 com.liferay.portal.kernel.exception.SystemException { 385 return getPersistence().findByRoleId_First(roleId, orderByComparator); 386 } 387 388 /** 389 * Finds the last org group role in the ordered set where roleId = ?. 390 * 391 * <p> 392 * 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. 393 * </p> 394 * 395 * @param roleId the role id to search with 396 * @param orderByComparator the comparator to order the set by 397 * @return the last matching org group role 398 * @throws com.liferay.portal.NoSuchOrgGroupRoleException if a matching org group role could not be found 399 * @throws SystemException if a system exception occurred 400 */ 401 public static com.liferay.portal.model.OrgGroupRole findByRoleId_Last( 402 long roleId, 403 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 404 throws com.liferay.portal.NoSuchOrgGroupRoleException, 405 com.liferay.portal.kernel.exception.SystemException { 406 return getPersistence().findByRoleId_Last(roleId, orderByComparator); 407 } 408 409 /** 410 * Finds the org group roles before and after the current org group role in the ordered set where roleId = ?. 411 * 412 * <p> 413 * 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. 414 * </p> 415 * 416 * @param orgGroupRolePK the primary key of the current org group role 417 * @param roleId the role id to search with 418 * @param orderByComparator the comparator to order the set by 419 * @return the previous, current, and next org group role 420 * @throws com.liferay.portal.NoSuchOrgGroupRoleException if a org group role with the primary key could not be found 421 * @throws SystemException if a system exception occurred 422 */ 423 public static com.liferay.portal.model.OrgGroupRole[] findByRoleId_PrevAndNext( 424 com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK, 425 long roleId, 426 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 427 throws com.liferay.portal.NoSuchOrgGroupRoleException, 428 com.liferay.portal.kernel.exception.SystemException { 429 return getPersistence() 430 .findByRoleId_PrevAndNext(orgGroupRolePK, roleId, 431 orderByComparator); 432 } 433 434 /** 435 * Finds all the org group roles. 436 * 437 * @return the org group roles 438 * @throws SystemException if a system exception occurred 439 */ 440 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findAll() 441 throws com.liferay.portal.kernel.exception.SystemException { 442 return getPersistence().findAll(); 443 } 444 445 /** 446 * Finds a range of all the org group roles. 447 * 448 * <p> 449 * 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. 450 * </p> 451 * 452 * @param start the lower bound of the range of org group roles to return 453 * @param end the upper bound of the range of org group roles to return (not inclusive) 454 * @return the range of org group roles 455 * @throws SystemException if a system exception occurred 456 */ 457 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findAll( 458 int start, int end) 459 throws com.liferay.portal.kernel.exception.SystemException { 460 return getPersistence().findAll(start, end); 461 } 462 463 /** 464 * Finds an ordered range of all the org group roles. 465 * 466 * <p> 467 * 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. 468 * </p> 469 * 470 * @param start the lower bound of the range of org group roles to return 471 * @param end the upper bound of the range of org group roles to return (not inclusive) 472 * @param orderByComparator the comparator to order the results by 473 * @return the ordered range of org group roles 474 * @throws SystemException if a system exception occurred 475 */ 476 public static java.util.List<com.liferay.portal.model.OrgGroupRole> findAll( 477 int start, int end, 478 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 479 throws com.liferay.portal.kernel.exception.SystemException { 480 return getPersistence().findAll(start, end, orderByComparator); 481 } 482 483 /** 484 * Removes all the org group roles where groupId = ? from the database. 485 * 486 * @param groupId the group id to search with 487 * @throws SystemException if a system exception occurred 488 */ 489 public static void removeByGroupId(long groupId) 490 throws com.liferay.portal.kernel.exception.SystemException { 491 getPersistence().removeByGroupId(groupId); 492 } 493 494 /** 495 * Removes all the org group roles where roleId = ? from the database. 496 * 497 * @param roleId the role id to search with 498 * @throws SystemException if a system exception occurred 499 */ 500 public static void removeByRoleId(long roleId) 501 throws com.liferay.portal.kernel.exception.SystemException { 502 getPersistence().removeByRoleId(roleId); 503 } 504 505 /** 506 * Removes all the org group roles from the database. 507 * 508 * @throws SystemException if a system exception occurred 509 */ 510 public static void removeAll() 511 throws com.liferay.portal.kernel.exception.SystemException { 512 getPersistence().removeAll(); 513 } 514 515 /** 516 * Counts all the org group roles where groupId = ?. 517 * 518 * @param groupId the group id to search with 519 * @return the number of matching org group roles 520 * @throws SystemException if a system exception occurred 521 */ 522 public static int countByGroupId(long groupId) 523 throws com.liferay.portal.kernel.exception.SystemException { 524 return getPersistence().countByGroupId(groupId); 525 } 526 527 /** 528 * Counts all the org group roles where roleId = ?. 529 * 530 * @param roleId the role id to search with 531 * @return the number of matching org group roles 532 * @throws SystemException if a system exception occurred 533 */ 534 public static int countByRoleId(long roleId) 535 throws com.liferay.portal.kernel.exception.SystemException { 536 return getPersistence().countByRoleId(roleId); 537 } 538 539 /** 540 * Counts all the org group roles. 541 * 542 * @return the number of org group roles 543 * @throws SystemException if a system exception occurred 544 */ 545 public static int countAll() 546 throws com.liferay.portal.kernel.exception.SystemException { 547 return getPersistence().countAll(); 548 } 549 550 public static OrgGroupRolePersistence getPersistence() { 551 if (_persistence == null) { 552 _persistence = (OrgGroupRolePersistence)PortalBeanLocatorUtil.locate(OrgGroupRolePersistence.class.getName()); 553 } 554 555 return _persistence; 556 } 557 558 public void setPersistence(OrgGroupRolePersistence persistence) { 559 _persistence = persistence; 560 } 561 562 private static OrgGroupRolePersistence _persistence; 563 }