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