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