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