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.model.UserGroupGroupRole; 018 019 /** 020 * The persistence interface for the user group group role service. 021 * 022 * <p> 023 * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface. 024 * </p> 025 * 026 * @author Brian Wing Shun Chan 027 * @see UserGroupGroupRolePersistenceImpl 028 * @see UserGroupGroupRoleUtil 029 * @generated 030 */ 031 public interface UserGroupGroupRolePersistence extends BasePersistence<UserGroupGroupRole> { 032 /** 033 * Caches the user group group role in the entity cache if it is enabled. 034 * 035 * @param userGroupGroupRole the user group group role to cache 036 */ 037 public void cacheResult( 038 com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole); 039 040 /** 041 * Caches the user group group roles in the entity cache if it is enabled. 042 * 043 * @param userGroupGroupRoles the user group group roles to cache 044 */ 045 public void cacheResult( 046 java.util.List<com.liferay.portal.model.UserGroupGroupRole> userGroupGroupRoles); 047 048 /** 049 * Creates a new user group group role with the primary key. 050 * 051 * @param userGroupGroupRolePK the primary key for the new user group group role 052 * @return the new user group group role 053 */ 054 public com.liferay.portal.model.UserGroupGroupRole create( 055 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK); 056 057 /** 058 * Removes the user group group role with the primary key from the database. Also notifies the appropriate model listeners. 059 * 060 * @param userGroupGroupRolePK the primary key of the user group group role to remove 061 * @return the user group group role that was removed 062 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found 063 * @throws SystemException if a system exception occurred 064 */ 065 public com.liferay.portal.model.UserGroupGroupRole remove( 066 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) 067 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 068 com.liferay.portal.kernel.exception.SystemException; 069 070 public com.liferay.portal.model.UserGroupGroupRole updateImpl( 071 com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole, 072 boolean merge) 073 throws com.liferay.portal.kernel.exception.SystemException; 074 075 /** 076 * Finds the user group group role with the primary key or throws a {@link com.liferay.portal.NoSuchUserGroupGroupRoleException} if it could not be found. 077 * 078 * @param userGroupGroupRolePK the primary key of the user group group role to find 079 * @return the user group group role 080 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found 081 * @throws SystemException if a system exception occurred 082 */ 083 public com.liferay.portal.model.UserGroupGroupRole findByPrimaryKey( 084 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) 085 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 086 com.liferay.portal.kernel.exception.SystemException; 087 088 /** 089 * Finds the user group group role with the primary key or returns <code>null</code> if it could not be found. 090 * 091 * @param userGroupGroupRolePK the primary key of the user group group role to find 092 * @return the user group group role, or <code>null</code> if a user group group role with the primary key could not be found 093 * @throws SystemException if a system exception occurred 094 */ 095 public com.liferay.portal.model.UserGroupGroupRole fetchByPrimaryKey( 096 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) 097 throws com.liferay.portal.kernel.exception.SystemException; 098 099 /** 100 * Finds all the user group group roles where userGroupId = ?. 101 * 102 * @param userGroupId the user group id to search with 103 * @return the matching user group group roles 104 * @throws SystemException if a system exception occurred 105 */ 106 public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId( 107 long userGroupId) 108 throws com.liferay.portal.kernel.exception.SystemException; 109 110 /** 111 * Finds a range of all the user group group roles where userGroupId = ?. 112 * 113 * <p> 114 * 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. 115 * </p> 116 * 117 * @param userGroupId the user group id to search with 118 * @param start the lower bound of the range of user group group roles to return 119 * @param end the upper bound of the range of user group group roles to return (not inclusive) 120 * @return the range of matching user group group roles 121 * @throws SystemException if a system exception occurred 122 */ 123 public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId( 124 long userGroupId, int start, int end) 125 throws com.liferay.portal.kernel.exception.SystemException; 126 127 /** 128 * Finds an ordered range of all the user group group roles where userGroupId = ?. 129 * 130 * <p> 131 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 132 * </p> 133 * 134 * @param userGroupId the user group id to search with 135 * @param start the lower bound of the range of user group group roles to return 136 * @param end the upper bound of the range of user group group roles to return (not inclusive) 137 * @param orderByComparator the comparator to order the results by 138 * @return the ordered range of matching user group group roles 139 * @throws SystemException if a system exception occurred 140 */ 141 public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId( 142 long userGroupId, int start, int end, 143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 144 throws com.liferay.portal.kernel.exception.SystemException; 145 146 /** 147 * Finds the first user group group role in the ordered set where userGroupId = ?. 148 * 149 * <p> 150 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 151 * </p> 152 * 153 * @param userGroupId the user group id to search with 154 * @param orderByComparator the comparator to order the set by 155 * @return the first matching user group group role 156 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 157 * @throws SystemException if a system exception occurred 158 */ 159 public com.liferay.portal.model.UserGroupGroupRole findByUserGroupId_First( 160 long userGroupId, 161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 162 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 163 com.liferay.portal.kernel.exception.SystemException; 164 165 /** 166 * Finds the last user group group role in the ordered set where userGroupId = ?. 167 * 168 * <p> 169 * 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. 170 * </p> 171 * 172 * @param userGroupId the user group id to search with 173 * @param orderByComparator the comparator to order the set by 174 * @return the last matching user group group role 175 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 176 * @throws SystemException if a system exception occurred 177 */ 178 public com.liferay.portal.model.UserGroupGroupRole findByUserGroupId_Last( 179 long userGroupId, 180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 181 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 182 com.liferay.portal.kernel.exception.SystemException; 183 184 /** 185 * Finds the user group group roles before and after the current user group group role in the ordered set where userGroupId = ?. 186 * 187 * <p> 188 * 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. 189 * </p> 190 * 191 * @param userGroupGroupRolePK the primary key of the current user group group role 192 * @param userGroupId the user group id to search with 193 * @param orderByComparator the comparator to order the set by 194 * @return the previous, current, and next user group group role 195 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found 196 * @throws SystemException if a system exception occurred 197 */ 198 public com.liferay.portal.model.UserGroupGroupRole[] findByUserGroupId_PrevAndNext( 199 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK, 200 long userGroupId, 201 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 202 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 203 com.liferay.portal.kernel.exception.SystemException; 204 205 /** 206 * Finds all the user group group roles where groupId = ?. 207 * 208 * @param groupId the group id to search with 209 * @return the matching user group group roles 210 * @throws SystemException if a system exception occurred 211 */ 212 public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId( 213 long groupId) 214 throws com.liferay.portal.kernel.exception.SystemException; 215 216 /** 217 * Finds a range of all the user group group roles where groupId = ?. 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 groupId the group id to search with 224 * @param start the lower bound of the range of user group group roles to return 225 * @param end the upper bound of the range of user group group roles to return (not inclusive) 226 * @return the range of matching user group group roles 227 * @throws SystemException if a system exception occurred 228 */ 229 public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId( 230 long groupId, int start, int end) 231 throws com.liferay.portal.kernel.exception.SystemException; 232 233 /** 234 * Finds an ordered range of all the user group group roles where groupId = ?. 235 * 236 * <p> 237 * 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. 238 * </p> 239 * 240 * @param groupId the group id to search with 241 * @param start the lower bound of the range of user group group roles to return 242 * @param end the upper bound of the range of user group group roles to return (not inclusive) 243 * @param orderByComparator the comparator to order the results by 244 * @return the ordered range of matching user group group roles 245 * @throws SystemException if a system exception occurred 246 */ 247 public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId( 248 long groupId, int start, int end, 249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * Finds the first user group group role in the ordered set where groupId = ?. 254 * 255 * <p> 256 * 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. 257 * </p> 258 * 259 * @param groupId the group id to search with 260 * @param orderByComparator the comparator to order the set by 261 * @return the first matching user group group role 262 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 263 * @throws SystemException if a system exception occurred 264 */ 265 public com.liferay.portal.model.UserGroupGroupRole findByGroupId_First( 266 long groupId, 267 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 268 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 269 com.liferay.portal.kernel.exception.SystemException; 270 271 /** 272 * Finds the last user group group role in the ordered set where groupId = ?. 273 * 274 * <p> 275 * 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. 276 * </p> 277 * 278 * @param groupId the group id to search with 279 * @param orderByComparator the comparator to order the set by 280 * @return the last matching user group group role 281 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 282 * @throws SystemException if a system exception occurred 283 */ 284 public com.liferay.portal.model.UserGroupGroupRole findByGroupId_Last( 285 long groupId, 286 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 287 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 288 com.liferay.portal.kernel.exception.SystemException; 289 290 /** 291 * Finds the user group group roles before and after the current user group group role in the ordered set where groupId = ?. 292 * 293 * <p> 294 * 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. 295 * </p> 296 * 297 * @param userGroupGroupRolePK the primary key of the current user group group role 298 * @param groupId the group id to search with 299 * @param orderByComparator the comparator to order the set by 300 * @return the previous, current, and next user group group role 301 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public com.liferay.portal.model.UserGroupGroupRole[] findByGroupId_PrevAndNext( 305 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK, 306 long groupId, 307 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 308 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 309 com.liferay.portal.kernel.exception.SystemException; 310 311 /** 312 * Finds all the user group group roles where roleId = ?. 313 * 314 * @param roleId the role id to search with 315 * @return the matching user group group roles 316 * @throws SystemException if a system exception occurred 317 */ 318 public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId( 319 long roleId) throws com.liferay.portal.kernel.exception.SystemException; 320 321 /** 322 * Finds a range of all the user group group roles where roleId = ?. 323 * 324 * <p> 325 * 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. 326 * </p> 327 * 328 * @param roleId the role id to search with 329 * @param start the lower bound of the range of user group group roles to return 330 * @param end the upper bound of the range of user group group roles to return (not inclusive) 331 * @return the range of matching user group group roles 332 * @throws SystemException if a system exception occurred 333 */ 334 public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId( 335 long roleId, int start, int end) 336 throws com.liferay.portal.kernel.exception.SystemException; 337 338 /** 339 * Finds an ordered range of all the user group group roles where roleId = ?. 340 * 341 * <p> 342 * 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. 343 * </p> 344 * 345 * @param roleId the role id to search with 346 * @param start the lower bound of the range of user group group roles to return 347 * @param end the upper bound of the range of user group group roles to return (not inclusive) 348 * @param orderByComparator the comparator to order the results by 349 * @return the ordered range of matching user group group roles 350 * @throws SystemException if a system exception occurred 351 */ 352 public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId( 353 long roleId, int start, int end, 354 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 355 throws com.liferay.portal.kernel.exception.SystemException; 356 357 /** 358 * Finds the first user group group role in the ordered set where roleId = ?. 359 * 360 * <p> 361 * 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. 362 * </p> 363 * 364 * @param roleId the role id to search with 365 * @param orderByComparator the comparator to order the set by 366 * @return the first matching user group group role 367 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 368 * @throws SystemException if a system exception occurred 369 */ 370 public com.liferay.portal.model.UserGroupGroupRole findByRoleId_First( 371 long roleId, 372 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 373 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 374 com.liferay.portal.kernel.exception.SystemException; 375 376 /** 377 * Finds the last user group group role in the ordered set where roleId = ?. 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 roleId the role id to search with 384 * @param orderByComparator the comparator to order the set by 385 * @return the last matching user group group role 386 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 387 * @throws SystemException if a system exception occurred 388 */ 389 public com.liferay.portal.model.UserGroupGroupRole findByRoleId_Last( 390 long roleId, 391 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 392 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 393 com.liferay.portal.kernel.exception.SystemException; 394 395 /** 396 * Finds the user group group roles before and after the current user group group role in the ordered set where roleId = ?. 397 * 398 * <p> 399 * 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. 400 * </p> 401 * 402 * @param userGroupGroupRolePK the primary key of the current user group group role 403 * @param roleId the role id to search with 404 * @param orderByComparator the comparator to order the set by 405 * @return the previous, current, and next user group group role 406 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found 407 * @throws SystemException if a system exception occurred 408 */ 409 public com.liferay.portal.model.UserGroupGroupRole[] findByRoleId_PrevAndNext( 410 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK, 411 long roleId, 412 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 413 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 414 com.liferay.portal.kernel.exception.SystemException; 415 416 /** 417 * Finds all the user group group roles where userGroupId = ? and groupId = ?. 418 * 419 * @param userGroupId the user group id to search with 420 * @param groupId the group id to search with 421 * @return the matching user group group roles 422 * @throws SystemException if a system exception occurred 423 */ 424 public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G( 425 long userGroupId, long groupId) 426 throws com.liferay.portal.kernel.exception.SystemException; 427 428 /** 429 * Finds a range of all the user group group roles where userGroupId = ? and groupId = ?. 430 * 431 * <p> 432 * 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. 433 * </p> 434 * 435 * @param userGroupId the user group id to search with 436 * @param groupId the group id to search with 437 * @param start the lower bound of the range of user group group roles to return 438 * @param end the upper bound of the range of user group group roles to return (not inclusive) 439 * @return the range of matching user group group roles 440 * @throws SystemException if a system exception occurred 441 */ 442 public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G( 443 long userGroupId, long groupId, int start, int end) 444 throws com.liferay.portal.kernel.exception.SystemException; 445 446 /** 447 * Finds an ordered range of all the user group group roles where userGroupId = ? and groupId = ?. 448 * 449 * <p> 450 * 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. 451 * </p> 452 * 453 * @param userGroupId the user group id to search with 454 * @param groupId the group id to search with 455 * @param start the lower bound of the range of user group group roles to return 456 * @param end the upper bound of the range of user group group roles to return (not inclusive) 457 * @param orderByComparator the comparator to order the results by 458 * @return the ordered range of matching user group group roles 459 * @throws SystemException if a system exception occurred 460 */ 461 public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G( 462 long userGroupId, long groupId, int start, int end, 463 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 464 throws com.liferay.portal.kernel.exception.SystemException; 465 466 /** 467 * Finds the first user group group role in the ordered set where userGroupId = ? and groupId = ?. 468 * 469 * <p> 470 * 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. 471 * </p> 472 * 473 * @param userGroupId the user group id to search with 474 * @param groupId the group id to search with 475 * @param orderByComparator the comparator to order the set by 476 * @return the first matching user group group role 477 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 478 * @throws SystemException if a system exception occurred 479 */ 480 public com.liferay.portal.model.UserGroupGroupRole findByU_G_First( 481 long userGroupId, long groupId, 482 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 483 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 484 com.liferay.portal.kernel.exception.SystemException; 485 486 /** 487 * Finds the last user group group role in the ordered set where userGroupId = ? and groupId = ?. 488 * 489 * <p> 490 * 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. 491 * </p> 492 * 493 * @param userGroupId the user group id to search with 494 * @param groupId the group id to search with 495 * @param orderByComparator the comparator to order the set by 496 * @return the last matching user group group role 497 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 498 * @throws SystemException if a system exception occurred 499 */ 500 public com.liferay.portal.model.UserGroupGroupRole findByU_G_Last( 501 long userGroupId, long groupId, 502 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 503 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 504 com.liferay.portal.kernel.exception.SystemException; 505 506 /** 507 * Finds the user group group roles before and after the current user group group role in the ordered set where userGroupId = ? and groupId = ?. 508 * 509 * <p> 510 * 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. 511 * </p> 512 * 513 * @param userGroupGroupRolePK the primary key of the current user group group role 514 * @param userGroupId the user group id to search with 515 * @param groupId the group id to search with 516 * @param orderByComparator the comparator to order the set by 517 * @return the previous, current, and next user group group role 518 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found 519 * @throws SystemException if a system exception occurred 520 */ 521 public com.liferay.portal.model.UserGroupGroupRole[] findByU_G_PrevAndNext( 522 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK, 523 long userGroupId, long groupId, 524 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 525 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 526 com.liferay.portal.kernel.exception.SystemException; 527 528 /** 529 * Finds all the user group group roles where groupId = ? and roleId = ?. 530 * 531 * @param groupId the group id to search with 532 * @param roleId the role id to search with 533 * @return the matching user group group roles 534 * @throws SystemException if a system exception occurred 535 */ 536 public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R( 537 long groupId, long roleId) 538 throws com.liferay.portal.kernel.exception.SystemException; 539 540 /** 541 * Finds a range of all the user group group roles where groupId = ? and roleId = ?. 542 * 543 * <p> 544 * 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. 545 * </p> 546 * 547 * @param groupId the group id to search with 548 * @param roleId the role id to search with 549 * @param start the lower bound of the range of user group group roles to return 550 * @param end the upper bound of the range of user group group roles to return (not inclusive) 551 * @return the range of matching user group group roles 552 * @throws SystemException if a system exception occurred 553 */ 554 public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R( 555 long groupId, long roleId, int start, int end) 556 throws com.liferay.portal.kernel.exception.SystemException; 557 558 /** 559 * Finds an ordered range of all the user group group roles where groupId = ? and roleId = ?. 560 * 561 * <p> 562 * 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. 563 * </p> 564 * 565 * @param groupId the group id to search with 566 * @param roleId the role id to search with 567 * @param start the lower bound of the range of user group group roles to return 568 * @param end the upper bound of the range of user group group roles to return (not inclusive) 569 * @param orderByComparator the comparator to order the results by 570 * @return the ordered range of matching user group group roles 571 * @throws SystemException if a system exception occurred 572 */ 573 public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R( 574 long groupId, long roleId, int start, int end, 575 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 576 throws com.liferay.portal.kernel.exception.SystemException; 577 578 /** 579 * Finds the first user group group role in the ordered set where groupId = ? and roleId = ?. 580 * 581 * <p> 582 * 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. 583 * </p> 584 * 585 * @param groupId the group id to search with 586 * @param roleId the role id to search with 587 * @param orderByComparator the comparator to order the set by 588 * @return the first matching user group group role 589 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 590 * @throws SystemException if a system exception occurred 591 */ 592 public com.liferay.portal.model.UserGroupGroupRole findByG_R_First( 593 long groupId, long roleId, 594 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 595 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 596 com.liferay.portal.kernel.exception.SystemException; 597 598 /** 599 * Finds the last user group group role in the ordered set where groupId = ? and roleId = ?. 600 * 601 * <p> 602 * 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. 603 * </p> 604 * 605 * @param groupId the group id to search with 606 * @param roleId the role id to search with 607 * @param orderByComparator the comparator to order the set by 608 * @return the last matching user group group role 609 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found 610 * @throws SystemException if a system exception occurred 611 */ 612 public com.liferay.portal.model.UserGroupGroupRole findByG_R_Last( 613 long groupId, long roleId, 614 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 615 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 616 com.liferay.portal.kernel.exception.SystemException; 617 618 /** 619 * Finds the user group group roles before and after the current user group group role in the ordered set where groupId = ? and roleId = ?. 620 * 621 * <p> 622 * 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. 623 * </p> 624 * 625 * @param userGroupGroupRolePK the primary key of the current user group group role 626 * @param groupId the group id to search with 627 * @param roleId the role id to search with 628 * @param orderByComparator the comparator to order the set by 629 * @return the previous, current, and next user group group role 630 * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found 631 * @throws SystemException if a system exception occurred 632 */ 633 public com.liferay.portal.model.UserGroupGroupRole[] findByG_R_PrevAndNext( 634 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK, 635 long groupId, long roleId, 636 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 637 throws com.liferay.portal.NoSuchUserGroupGroupRoleException, 638 com.liferay.portal.kernel.exception.SystemException; 639 640 /** 641 * Finds all the user group group roles. 642 * 643 * @return the user group group roles 644 * @throws SystemException if a system exception occurred 645 */ 646 public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll() 647 throws com.liferay.portal.kernel.exception.SystemException; 648 649 /** 650 * Finds a range of all the user group group roles. 651 * 652 * <p> 653 * 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. 654 * </p> 655 * 656 * @param start the lower bound of the range of user group group roles to return 657 * @param end the upper bound of the range of user group group roles to return (not inclusive) 658 * @return the range of user group group roles 659 * @throws SystemException if a system exception occurred 660 */ 661 public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll( 662 int start, int end) 663 throws com.liferay.portal.kernel.exception.SystemException; 664 665 /** 666 * Finds an ordered range of all the user group group roles. 667 * 668 * <p> 669 * 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. 670 * </p> 671 * 672 * @param start the lower bound of the range of user group group roles to return 673 * @param end the upper bound of the range of user group group roles to return (not inclusive) 674 * @param orderByComparator the comparator to order the results by 675 * @return the ordered range of user group group roles 676 * @throws SystemException if a system exception occurred 677 */ 678 public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll( 679 int start, int end, 680 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 681 throws com.liferay.portal.kernel.exception.SystemException; 682 683 /** 684 * Removes all the user group group roles where userGroupId = ? from the database. 685 * 686 * @param userGroupId the user group id to search with 687 * @throws SystemException if a system exception occurred 688 */ 689 public void removeByUserGroupId(long userGroupId) 690 throws com.liferay.portal.kernel.exception.SystemException; 691 692 /** 693 * Removes all the user group group roles where groupId = ? from the database. 694 * 695 * @param groupId the group id to search with 696 * @throws SystemException if a system exception occurred 697 */ 698 public void removeByGroupId(long groupId) 699 throws com.liferay.portal.kernel.exception.SystemException; 700 701 /** 702 * Removes all the user group group roles where roleId = ? from the database. 703 * 704 * @param roleId the role id to search with 705 * @throws SystemException if a system exception occurred 706 */ 707 public void removeByRoleId(long roleId) 708 throws com.liferay.portal.kernel.exception.SystemException; 709 710 /** 711 * Removes all the user group group roles where userGroupId = ? and groupId = ? from the database. 712 * 713 * @param userGroupId the user group id to search with 714 * @param groupId the group id to search with 715 * @throws SystemException if a system exception occurred 716 */ 717 public void removeByU_G(long userGroupId, long groupId) 718 throws com.liferay.portal.kernel.exception.SystemException; 719 720 /** 721 * Removes all the user group group roles where groupId = ? and roleId = ? from the database. 722 * 723 * @param groupId the group id to search with 724 * @param roleId the role id to search with 725 * @throws SystemException if a system exception occurred 726 */ 727 public void removeByG_R(long groupId, long roleId) 728 throws com.liferay.portal.kernel.exception.SystemException; 729 730 /** 731 * Removes all the user group group roles from the database. 732 * 733 * @throws SystemException if a system exception occurred 734 */ 735 public void removeAll() 736 throws com.liferay.portal.kernel.exception.SystemException; 737 738 /** 739 * Counts all the user group group roles where userGroupId = ?. 740 * 741 * @param userGroupId the user group id to search with 742 * @return the number of matching user group group roles 743 * @throws SystemException if a system exception occurred 744 */ 745 public int countByUserGroupId(long userGroupId) 746 throws com.liferay.portal.kernel.exception.SystemException; 747 748 /** 749 * Counts all the user group group roles where groupId = ?. 750 * 751 * @param groupId the group id to search with 752 * @return the number of matching user group group roles 753 * @throws SystemException if a system exception occurred 754 */ 755 public int countByGroupId(long groupId) 756 throws com.liferay.portal.kernel.exception.SystemException; 757 758 /** 759 * Counts all the user group group roles where roleId = ?. 760 * 761 * @param roleId the role id to search with 762 * @return the number of matching user group group roles 763 * @throws SystemException if a system exception occurred 764 */ 765 public int countByRoleId(long roleId) 766 throws com.liferay.portal.kernel.exception.SystemException; 767 768 /** 769 * Counts all the user group group roles where userGroupId = ? and groupId = ?. 770 * 771 * @param userGroupId the user group id to search with 772 * @param groupId the group id to search with 773 * @return the number of matching user group group roles 774 * @throws SystemException if a system exception occurred 775 */ 776 public int countByU_G(long userGroupId, long groupId) 777 throws com.liferay.portal.kernel.exception.SystemException; 778 779 /** 780 * Counts all the user group group roles where groupId = ? and roleId = ?. 781 * 782 * @param groupId the group id to search with 783 * @param roleId the role id to search with 784 * @return the number of matching user group group roles 785 * @throws SystemException if a system exception occurred 786 */ 787 public int countByG_R(long groupId, long roleId) 788 throws com.liferay.portal.kernel.exception.SystemException; 789 790 /** 791 * Counts all the user group group roles. 792 * 793 * @return the number of user group group roles 794 * @throws SystemException if a system exception occurred 795 */ 796 public int countAll() 797 throws com.liferay.portal.kernel.exception.SystemException; 798 }