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.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.model.Group; 020 021 /** 022 * The persistence interface for the group 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 GroupPersistenceImpl 030 * @see GroupUtil 031 * @generated 032 */ 033 @ProviderType 034 public interface GroupPersistence extends BasePersistence<Group> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify or reference this interface directly. Always use {@link GroupUtil} to access the group persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 039 */ 040 041 /** 042 * Returns all the groups where uuid = ?. 043 * 044 * @param uuid the uuid 045 * @return the matching groups 046 */ 047 public java.util.List<com.liferay.portal.model.Group> findByUuid( 048 java.lang.String uuid); 049 050 /** 051 * Returns a range of all the groups where uuid = ?. 052 * 053 * <p> 054 * 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.GroupModelImpl}. 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. 055 * </p> 056 * 057 * @param uuid the uuid 058 * @param start the lower bound of the range of groups 059 * @param end the upper bound of the range of groups (not inclusive) 060 * @return the range of matching groups 061 */ 062 public java.util.List<com.liferay.portal.model.Group> findByUuid( 063 java.lang.String uuid, int start, int end); 064 065 /** 066 * Returns an ordered range of all the groups where uuid = ?. 067 * 068 * <p> 069 * 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.GroupModelImpl}. 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. 070 * </p> 071 * 072 * @param uuid the uuid 073 * @param start the lower bound of the range of groups 074 * @param end the upper bound of the range of groups (not inclusive) 075 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 076 * @return the ordered range of matching groups 077 */ 078 public java.util.List<com.liferay.portal.model.Group> findByUuid( 079 java.lang.String uuid, int start, int end, 080 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 081 082 /** 083 * Returns the first group in the ordered set where uuid = ?. 084 * 085 * @param uuid the uuid 086 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 087 * @return the first matching group 088 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 089 */ 090 public com.liferay.portal.model.Group findByUuid_First( 091 java.lang.String uuid, 092 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 093 throws com.liferay.portal.NoSuchGroupException; 094 095 /** 096 * Returns the first group in the ordered set where uuid = ?. 097 * 098 * @param uuid the uuid 099 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 100 * @return the first matching group, or <code>null</code> if a matching group could not be found 101 */ 102 public com.liferay.portal.model.Group fetchByUuid_First( 103 java.lang.String uuid, 104 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 105 106 /** 107 * Returns the last group in the ordered set where uuid = ?. 108 * 109 * @param uuid the uuid 110 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 111 * @return the last matching group 112 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 113 */ 114 public com.liferay.portal.model.Group findByUuid_Last( 115 java.lang.String uuid, 116 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 117 throws com.liferay.portal.NoSuchGroupException; 118 119 /** 120 * Returns the last group in the ordered set where uuid = ?. 121 * 122 * @param uuid the uuid 123 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 124 * @return the last matching group, or <code>null</code> if a matching group could not be found 125 */ 126 public com.liferay.portal.model.Group fetchByUuid_Last( 127 java.lang.String uuid, 128 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 129 130 /** 131 * Returns the groups before and after the current group in the ordered set where uuid = ?. 132 * 133 * @param groupId the primary key of the current group 134 * @param uuid the uuid 135 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 136 * @return the previous, current, and next group 137 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 138 */ 139 public com.liferay.portal.model.Group[] findByUuid_PrevAndNext( 140 long groupId, java.lang.String uuid, 141 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 142 throws com.liferay.portal.NoSuchGroupException; 143 144 /** 145 * Removes all the groups where uuid = ? from the database. 146 * 147 * @param uuid the uuid 148 */ 149 public void removeByUuid(java.lang.String uuid); 150 151 /** 152 * Returns the number of groups where uuid = ?. 153 * 154 * @param uuid the uuid 155 * @return the number of matching groups 156 */ 157 public int countByUuid(java.lang.String uuid); 158 159 /** 160 * Returns the group where uuid = ? and groupId = ? or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found. 161 * 162 * @param uuid the uuid 163 * @param groupId the group ID 164 * @return the matching group 165 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 166 */ 167 public com.liferay.portal.model.Group findByUUID_G(java.lang.String uuid, 168 long groupId) throws com.liferay.portal.NoSuchGroupException; 169 170 /** 171 * Returns the group where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 172 * 173 * @param uuid the uuid 174 * @param groupId the group ID 175 * @return the matching group, or <code>null</code> if a matching group could not be found 176 */ 177 public com.liferay.portal.model.Group fetchByUUID_G(java.lang.String uuid, 178 long groupId); 179 180 /** 181 * Returns the group where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 182 * 183 * @param uuid the uuid 184 * @param groupId the group ID 185 * @param retrieveFromCache whether to use the finder cache 186 * @return the matching group, or <code>null</code> if a matching group could not be found 187 */ 188 public com.liferay.portal.model.Group fetchByUUID_G(java.lang.String uuid, 189 long groupId, boolean retrieveFromCache); 190 191 /** 192 * Removes the group where uuid = ? and groupId = ? from the database. 193 * 194 * @param uuid the uuid 195 * @param groupId the group ID 196 * @return the group that was removed 197 */ 198 public com.liferay.portal.model.Group removeByUUID_G( 199 java.lang.String uuid, long groupId) 200 throws com.liferay.portal.NoSuchGroupException; 201 202 /** 203 * Returns the number of groups where uuid = ? and groupId = ?. 204 * 205 * @param uuid the uuid 206 * @param groupId the group ID 207 * @return the number of matching groups 208 */ 209 public int countByUUID_G(java.lang.String uuid, long groupId); 210 211 /** 212 * Returns all the groups where uuid = ? and companyId = ?. 213 * 214 * @param uuid the uuid 215 * @param companyId the company ID 216 * @return the matching groups 217 */ 218 public java.util.List<com.liferay.portal.model.Group> findByUuid_C( 219 java.lang.String uuid, long companyId); 220 221 /** 222 * Returns a range of all the groups where uuid = ? and companyId = ?. 223 * 224 * <p> 225 * 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.GroupModelImpl}. 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. 226 * </p> 227 * 228 * @param uuid the uuid 229 * @param companyId the company ID 230 * @param start the lower bound of the range of groups 231 * @param end the upper bound of the range of groups (not inclusive) 232 * @return the range of matching groups 233 */ 234 public java.util.List<com.liferay.portal.model.Group> findByUuid_C( 235 java.lang.String uuid, long companyId, int start, int end); 236 237 /** 238 * Returns an ordered range of all the groups where uuid = ? and companyId = ?. 239 * 240 * <p> 241 * 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.GroupModelImpl}. 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. 242 * </p> 243 * 244 * @param uuid the uuid 245 * @param companyId the company ID 246 * @param start the lower bound of the range of groups 247 * @param end the upper bound of the range of groups (not inclusive) 248 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 249 * @return the ordered range of matching groups 250 */ 251 public java.util.List<com.liferay.portal.model.Group> findByUuid_C( 252 java.lang.String uuid, long companyId, int start, int end, 253 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 254 255 /** 256 * Returns the first group in the ordered set where uuid = ? and companyId = ?. 257 * 258 * @param uuid the uuid 259 * @param companyId the company ID 260 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 261 * @return the first matching group 262 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 263 */ 264 public com.liferay.portal.model.Group findByUuid_C_First( 265 java.lang.String uuid, long companyId, 266 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 267 throws com.liferay.portal.NoSuchGroupException; 268 269 /** 270 * Returns the first group in the ordered set where uuid = ? and companyId = ?. 271 * 272 * @param uuid the uuid 273 * @param companyId the company ID 274 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 275 * @return the first matching group, or <code>null</code> if a matching group could not be found 276 */ 277 public com.liferay.portal.model.Group fetchByUuid_C_First( 278 java.lang.String uuid, long companyId, 279 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 280 281 /** 282 * Returns the last group in the ordered set where uuid = ? and companyId = ?. 283 * 284 * @param uuid the uuid 285 * @param companyId the company ID 286 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 287 * @return the last matching group 288 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 289 */ 290 public com.liferay.portal.model.Group findByUuid_C_Last( 291 java.lang.String uuid, long companyId, 292 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 293 throws com.liferay.portal.NoSuchGroupException; 294 295 /** 296 * Returns the last group in the ordered set where uuid = ? and companyId = ?. 297 * 298 * @param uuid the uuid 299 * @param companyId the company ID 300 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 301 * @return the last matching group, or <code>null</code> if a matching group could not be found 302 */ 303 public com.liferay.portal.model.Group fetchByUuid_C_Last( 304 java.lang.String uuid, long companyId, 305 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 306 307 /** 308 * Returns the groups before and after the current group in the ordered set where uuid = ? and companyId = ?. 309 * 310 * @param groupId the primary key of the current group 311 * @param uuid the uuid 312 * @param companyId the company ID 313 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 314 * @return the previous, current, and next group 315 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 316 */ 317 public com.liferay.portal.model.Group[] findByUuid_C_PrevAndNext( 318 long groupId, java.lang.String uuid, long companyId, 319 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 320 throws com.liferay.portal.NoSuchGroupException; 321 322 /** 323 * Removes all the groups where uuid = ? and companyId = ? from the database. 324 * 325 * @param uuid the uuid 326 * @param companyId the company ID 327 */ 328 public void removeByUuid_C(java.lang.String uuid, long companyId); 329 330 /** 331 * Returns the number of groups where uuid = ? and companyId = ?. 332 * 333 * @param uuid the uuid 334 * @param companyId the company ID 335 * @return the number of matching groups 336 */ 337 public int countByUuid_C(java.lang.String uuid, long companyId); 338 339 /** 340 * Returns all the groups where companyId = ?. 341 * 342 * @param companyId the company ID 343 * @return the matching groups 344 */ 345 public java.util.List<com.liferay.portal.model.Group> findByCompanyId( 346 long companyId); 347 348 /** 349 * Returns a range of all the groups where companyId = ?. 350 * 351 * <p> 352 * 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.GroupModelImpl}. 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. 353 * </p> 354 * 355 * @param companyId the company ID 356 * @param start the lower bound of the range of groups 357 * @param end the upper bound of the range of groups (not inclusive) 358 * @return the range of matching groups 359 */ 360 public java.util.List<com.liferay.portal.model.Group> findByCompanyId( 361 long companyId, int start, int end); 362 363 /** 364 * Returns an ordered range of all the groups where companyId = ?. 365 * 366 * <p> 367 * 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.GroupModelImpl}. 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. 368 * </p> 369 * 370 * @param companyId the company ID 371 * @param start the lower bound of the range of groups 372 * @param end the upper bound of the range of groups (not inclusive) 373 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 374 * @return the ordered range of matching groups 375 */ 376 public java.util.List<com.liferay.portal.model.Group> findByCompanyId( 377 long companyId, int start, int end, 378 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 379 380 /** 381 * Returns the first group in the ordered set where companyId = ?. 382 * 383 * @param companyId the company ID 384 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 385 * @return the first matching group 386 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 387 */ 388 public com.liferay.portal.model.Group findByCompanyId_First( 389 long companyId, 390 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 391 throws com.liferay.portal.NoSuchGroupException; 392 393 /** 394 * Returns the first group in the ordered set where companyId = ?. 395 * 396 * @param companyId the company ID 397 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 398 * @return the first matching group, or <code>null</code> if a matching group could not be found 399 */ 400 public com.liferay.portal.model.Group fetchByCompanyId_First( 401 long companyId, 402 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 403 404 /** 405 * Returns the last group in the ordered set where companyId = ?. 406 * 407 * @param companyId the company ID 408 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 409 * @return the last matching group 410 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 411 */ 412 public com.liferay.portal.model.Group findByCompanyId_Last(long companyId, 413 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 414 throws com.liferay.portal.NoSuchGroupException; 415 416 /** 417 * Returns the last group in the ordered set where companyId = ?. 418 * 419 * @param companyId the company ID 420 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 421 * @return the last matching group, or <code>null</code> if a matching group could not be found 422 */ 423 public com.liferay.portal.model.Group fetchByCompanyId_Last( 424 long companyId, 425 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 426 427 /** 428 * Returns the groups before and after the current group in the ordered set where companyId = ?. 429 * 430 * @param groupId the primary key of the current group 431 * @param companyId the company ID 432 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 433 * @return the previous, current, and next group 434 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 435 */ 436 public com.liferay.portal.model.Group[] findByCompanyId_PrevAndNext( 437 long groupId, long companyId, 438 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 439 throws com.liferay.portal.NoSuchGroupException; 440 441 /** 442 * Removes all the groups where companyId = ? from the database. 443 * 444 * @param companyId the company ID 445 */ 446 public void removeByCompanyId(long companyId); 447 448 /** 449 * Returns the number of groups where companyId = ?. 450 * 451 * @param companyId the company ID 452 * @return the number of matching groups 453 */ 454 public int countByCompanyId(long companyId); 455 456 /** 457 * Returns the group where liveGroupId = ? or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found. 458 * 459 * @param liveGroupId the live group ID 460 * @return the matching group 461 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 462 */ 463 public com.liferay.portal.model.Group findByLiveGroupId(long liveGroupId) 464 throws com.liferay.portal.NoSuchGroupException; 465 466 /** 467 * Returns the group where liveGroupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 468 * 469 * @param liveGroupId the live group ID 470 * @return the matching group, or <code>null</code> if a matching group could not be found 471 */ 472 public com.liferay.portal.model.Group fetchByLiveGroupId(long liveGroupId); 473 474 /** 475 * Returns the group where liveGroupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 476 * 477 * @param liveGroupId the live group ID 478 * @param retrieveFromCache whether to use the finder cache 479 * @return the matching group, or <code>null</code> if a matching group could not be found 480 */ 481 public com.liferay.portal.model.Group fetchByLiveGroupId(long liveGroupId, 482 boolean retrieveFromCache); 483 484 /** 485 * Removes the group where liveGroupId = ? from the database. 486 * 487 * @param liveGroupId the live group ID 488 * @return the group that was removed 489 */ 490 public com.liferay.portal.model.Group removeByLiveGroupId(long liveGroupId) 491 throws com.liferay.portal.NoSuchGroupException; 492 493 /** 494 * Returns the number of groups where liveGroupId = ?. 495 * 496 * @param liveGroupId the live group ID 497 * @return the number of matching groups 498 */ 499 public int countByLiveGroupId(long liveGroupId); 500 501 /** 502 * Returns all the groups where companyId = ? and classNameId = ?. 503 * 504 * @param companyId the company ID 505 * @param classNameId the class name ID 506 * @return the matching groups 507 */ 508 public java.util.List<com.liferay.portal.model.Group> findByC_C( 509 long companyId, long classNameId); 510 511 /** 512 * Returns a range of all the groups where companyId = ? and classNameId = ?. 513 * 514 * <p> 515 * 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.GroupModelImpl}. 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. 516 * </p> 517 * 518 * @param companyId the company ID 519 * @param classNameId the class name ID 520 * @param start the lower bound of the range of groups 521 * @param end the upper bound of the range of groups (not inclusive) 522 * @return the range of matching groups 523 */ 524 public java.util.List<com.liferay.portal.model.Group> findByC_C( 525 long companyId, long classNameId, int start, int end); 526 527 /** 528 * Returns an ordered range of all the groups where companyId = ? and classNameId = ?. 529 * 530 * <p> 531 * 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.GroupModelImpl}. 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. 532 * </p> 533 * 534 * @param companyId the company ID 535 * @param classNameId the class name ID 536 * @param start the lower bound of the range of groups 537 * @param end the upper bound of the range of groups (not inclusive) 538 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 539 * @return the ordered range of matching groups 540 */ 541 public java.util.List<com.liferay.portal.model.Group> findByC_C( 542 long companyId, long classNameId, int start, int end, 543 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 544 545 /** 546 * Returns the first group in the ordered set where companyId = ? and classNameId = ?. 547 * 548 * @param companyId the company ID 549 * @param classNameId the class name ID 550 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 551 * @return the first matching group 552 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 553 */ 554 public com.liferay.portal.model.Group findByC_C_First(long companyId, 555 long classNameId, 556 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 557 throws com.liferay.portal.NoSuchGroupException; 558 559 /** 560 * Returns the first group in the ordered set where companyId = ? and classNameId = ?. 561 * 562 * @param companyId the company ID 563 * @param classNameId the class name ID 564 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 565 * @return the first matching group, or <code>null</code> if a matching group could not be found 566 */ 567 public com.liferay.portal.model.Group fetchByC_C_First(long companyId, 568 long classNameId, 569 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 570 571 /** 572 * Returns the last group in the ordered set where companyId = ? and classNameId = ?. 573 * 574 * @param companyId the company ID 575 * @param classNameId the class name ID 576 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 577 * @return the last matching group 578 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 579 */ 580 public com.liferay.portal.model.Group findByC_C_Last(long companyId, 581 long classNameId, 582 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 583 throws com.liferay.portal.NoSuchGroupException; 584 585 /** 586 * Returns the last group in the ordered set where companyId = ? and classNameId = ?. 587 * 588 * @param companyId the company ID 589 * @param classNameId the class name ID 590 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 591 * @return the last matching group, or <code>null</code> if a matching group could not be found 592 */ 593 public com.liferay.portal.model.Group fetchByC_C_Last(long companyId, 594 long classNameId, 595 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 596 597 /** 598 * Returns the groups before and after the current group in the ordered set where companyId = ? and classNameId = ?. 599 * 600 * @param groupId the primary key of the current group 601 * @param companyId the company ID 602 * @param classNameId the class name ID 603 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 604 * @return the previous, current, and next group 605 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 606 */ 607 public com.liferay.portal.model.Group[] findByC_C_PrevAndNext( 608 long groupId, long companyId, long classNameId, 609 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 610 throws com.liferay.portal.NoSuchGroupException; 611 612 /** 613 * Removes all the groups where companyId = ? and classNameId = ? from the database. 614 * 615 * @param companyId the company ID 616 * @param classNameId the class name ID 617 */ 618 public void removeByC_C(long companyId, long classNameId); 619 620 /** 621 * Returns the number of groups where companyId = ? and classNameId = ?. 622 * 623 * @param companyId the company ID 624 * @param classNameId the class name ID 625 * @return the number of matching groups 626 */ 627 public int countByC_C(long companyId, long classNameId); 628 629 /** 630 * Returns all the groups where companyId = ? and parentGroupId = ?. 631 * 632 * @param companyId the company ID 633 * @param parentGroupId the parent group ID 634 * @return the matching groups 635 */ 636 public java.util.List<com.liferay.portal.model.Group> findByC_P( 637 long companyId, long parentGroupId); 638 639 /** 640 * Returns a range of all the groups where companyId = ? and parentGroupId = ?. 641 * 642 * <p> 643 * 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.GroupModelImpl}. 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. 644 * </p> 645 * 646 * @param companyId the company ID 647 * @param parentGroupId the parent group ID 648 * @param start the lower bound of the range of groups 649 * @param end the upper bound of the range of groups (not inclusive) 650 * @return the range of matching groups 651 */ 652 public java.util.List<com.liferay.portal.model.Group> findByC_P( 653 long companyId, long parentGroupId, int start, int end); 654 655 /** 656 * Returns an ordered range of all the groups where companyId = ? and parentGroupId = ?. 657 * 658 * <p> 659 * 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.GroupModelImpl}. 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. 660 * </p> 661 * 662 * @param companyId the company ID 663 * @param parentGroupId the parent group ID 664 * @param start the lower bound of the range of groups 665 * @param end the upper bound of the range of groups (not inclusive) 666 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 667 * @return the ordered range of matching groups 668 */ 669 public java.util.List<com.liferay.portal.model.Group> findByC_P( 670 long companyId, long parentGroupId, int start, int end, 671 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 672 673 /** 674 * Returns the first group in the ordered set where companyId = ? and parentGroupId = ?. 675 * 676 * @param companyId the company ID 677 * @param parentGroupId the parent group ID 678 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 679 * @return the first matching group 680 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 681 */ 682 public com.liferay.portal.model.Group findByC_P_First(long companyId, 683 long parentGroupId, 684 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 685 throws com.liferay.portal.NoSuchGroupException; 686 687 /** 688 * Returns the first group in the ordered set where companyId = ? and parentGroupId = ?. 689 * 690 * @param companyId the company ID 691 * @param parentGroupId the parent group ID 692 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 693 * @return the first matching group, or <code>null</code> if a matching group could not be found 694 */ 695 public com.liferay.portal.model.Group fetchByC_P_First(long companyId, 696 long parentGroupId, 697 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 698 699 /** 700 * Returns the last group in the ordered set where companyId = ? and parentGroupId = ?. 701 * 702 * @param companyId the company ID 703 * @param parentGroupId the parent group ID 704 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 705 * @return the last matching group 706 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 707 */ 708 public com.liferay.portal.model.Group findByC_P_Last(long companyId, 709 long parentGroupId, 710 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 711 throws com.liferay.portal.NoSuchGroupException; 712 713 /** 714 * Returns the last group in the ordered set where companyId = ? and parentGroupId = ?. 715 * 716 * @param companyId the company ID 717 * @param parentGroupId the parent group ID 718 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 719 * @return the last matching group, or <code>null</code> if a matching group could not be found 720 */ 721 public com.liferay.portal.model.Group fetchByC_P_Last(long companyId, 722 long parentGroupId, 723 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 724 725 /** 726 * Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ?. 727 * 728 * @param groupId the primary key of the current group 729 * @param companyId the company ID 730 * @param parentGroupId the parent group ID 731 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 732 * @return the previous, current, and next group 733 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 734 */ 735 public com.liferay.portal.model.Group[] findByC_P_PrevAndNext( 736 long groupId, long companyId, long parentGroupId, 737 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 738 throws com.liferay.portal.NoSuchGroupException; 739 740 /** 741 * Removes all the groups where companyId = ? and parentGroupId = ? from the database. 742 * 743 * @param companyId the company ID 744 * @param parentGroupId the parent group ID 745 */ 746 public void removeByC_P(long companyId, long parentGroupId); 747 748 /** 749 * Returns the number of groups where companyId = ? and parentGroupId = ?. 750 * 751 * @param companyId the company ID 752 * @param parentGroupId the parent group ID 753 * @return the number of matching groups 754 */ 755 public int countByC_P(long companyId, long parentGroupId); 756 757 /** 758 * Returns the group where companyId = ? and name = ? or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found. 759 * 760 * @param companyId the company ID 761 * @param name the name 762 * @return the matching group 763 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 764 */ 765 public com.liferay.portal.model.Group findByC_N(long companyId, 766 java.lang.String name) throws com.liferay.portal.NoSuchGroupException; 767 768 /** 769 * Returns the group where companyId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 770 * 771 * @param companyId the company ID 772 * @param name the name 773 * @return the matching group, or <code>null</code> if a matching group could not be found 774 */ 775 public com.liferay.portal.model.Group fetchByC_N(long companyId, 776 java.lang.String name); 777 778 /** 779 * Returns the group where companyId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 780 * 781 * @param companyId the company ID 782 * @param name the name 783 * @param retrieveFromCache whether to use the finder cache 784 * @return the matching group, or <code>null</code> if a matching group could not be found 785 */ 786 public com.liferay.portal.model.Group fetchByC_N(long companyId, 787 java.lang.String name, boolean retrieveFromCache); 788 789 /** 790 * Removes the group where companyId = ? and name = ? from the database. 791 * 792 * @param companyId the company ID 793 * @param name the name 794 * @return the group that was removed 795 */ 796 public com.liferay.portal.model.Group removeByC_N(long companyId, 797 java.lang.String name) throws com.liferay.portal.NoSuchGroupException; 798 799 /** 800 * Returns the number of groups where companyId = ? and name = ?. 801 * 802 * @param companyId the company ID 803 * @param name the name 804 * @return the number of matching groups 805 */ 806 public int countByC_N(long companyId, java.lang.String name); 807 808 /** 809 * Returns the group where companyId = ? and friendlyURL = ? or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found. 810 * 811 * @param companyId the company ID 812 * @param friendlyURL the friendly u r l 813 * @return the matching group 814 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 815 */ 816 public com.liferay.portal.model.Group findByC_F(long companyId, 817 java.lang.String friendlyURL) 818 throws com.liferay.portal.NoSuchGroupException; 819 820 /** 821 * Returns the group where companyId = ? and friendlyURL = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 822 * 823 * @param companyId the company ID 824 * @param friendlyURL the friendly u r l 825 * @return the matching group, or <code>null</code> if a matching group could not be found 826 */ 827 public com.liferay.portal.model.Group fetchByC_F(long companyId, 828 java.lang.String friendlyURL); 829 830 /** 831 * Returns the group where companyId = ? and friendlyURL = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 832 * 833 * @param companyId the company ID 834 * @param friendlyURL the friendly u r l 835 * @param retrieveFromCache whether to use the finder cache 836 * @return the matching group, or <code>null</code> if a matching group could not be found 837 */ 838 public com.liferay.portal.model.Group fetchByC_F(long companyId, 839 java.lang.String friendlyURL, boolean retrieveFromCache); 840 841 /** 842 * Removes the group where companyId = ? and friendlyURL = ? from the database. 843 * 844 * @param companyId the company ID 845 * @param friendlyURL the friendly u r l 846 * @return the group that was removed 847 */ 848 public com.liferay.portal.model.Group removeByC_F(long companyId, 849 java.lang.String friendlyURL) 850 throws com.liferay.portal.NoSuchGroupException; 851 852 /** 853 * Returns the number of groups where companyId = ? and friendlyURL = ?. 854 * 855 * @param companyId the company ID 856 * @param friendlyURL the friendly u r l 857 * @return the number of matching groups 858 */ 859 public int countByC_F(long companyId, java.lang.String friendlyURL); 860 861 /** 862 * Returns all the groups where companyId = ? and site = ?. 863 * 864 * @param companyId the company ID 865 * @param site the site 866 * @return the matching groups 867 */ 868 public java.util.List<com.liferay.portal.model.Group> findByC_S( 869 long companyId, boolean site); 870 871 /** 872 * Returns a range of all the groups where companyId = ? and site = ?. 873 * 874 * <p> 875 * 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.GroupModelImpl}. 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. 876 * </p> 877 * 878 * @param companyId the company ID 879 * @param site the site 880 * @param start the lower bound of the range of groups 881 * @param end the upper bound of the range of groups (not inclusive) 882 * @return the range of matching groups 883 */ 884 public java.util.List<com.liferay.portal.model.Group> findByC_S( 885 long companyId, boolean site, int start, int end); 886 887 /** 888 * Returns an ordered range of all the groups where companyId = ? and site = ?. 889 * 890 * <p> 891 * 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.GroupModelImpl}. 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. 892 * </p> 893 * 894 * @param companyId the company ID 895 * @param site the site 896 * @param start the lower bound of the range of groups 897 * @param end the upper bound of the range of groups (not inclusive) 898 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 899 * @return the ordered range of matching groups 900 */ 901 public java.util.List<com.liferay.portal.model.Group> findByC_S( 902 long companyId, boolean site, int start, int end, 903 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 904 905 /** 906 * Returns the first group in the ordered set where companyId = ? and site = ?. 907 * 908 * @param companyId the company ID 909 * @param site the site 910 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 911 * @return the first matching group 912 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 913 */ 914 public com.liferay.portal.model.Group findByC_S_First(long companyId, 915 boolean site, 916 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 917 throws com.liferay.portal.NoSuchGroupException; 918 919 /** 920 * Returns the first group in the ordered set where companyId = ? and site = ?. 921 * 922 * @param companyId the company ID 923 * @param site the site 924 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 925 * @return the first matching group, or <code>null</code> if a matching group could not be found 926 */ 927 public com.liferay.portal.model.Group fetchByC_S_First(long companyId, 928 boolean site, 929 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 930 931 /** 932 * Returns the last group in the ordered set where companyId = ? and site = ?. 933 * 934 * @param companyId the company ID 935 * @param site the site 936 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 937 * @return the last matching group 938 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 939 */ 940 public com.liferay.portal.model.Group findByC_S_Last(long companyId, 941 boolean site, 942 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 943 throws com.liferay.portal.NoSuchGroupException; 944 945 /** 946 * Returns the last group in the ordered set where companyId = ? and site = ?. 947 * 948 * @param companyId the company ID 949 * @param site the site 950 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 951 * @return the last matching group, or <code>null</code> if a matching group could not be found 952 */ 953 public com.liferay.portal.model.Group fetchByC_S_Last(long companyId, 954 boolean site, 955 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 956 957 /** 958 * Returns the groups before and after the current group in the ordered set where companyId = ? and site = ?. 959 * 960 * @param groupId the primary key of the current group 961 * @param companyId the company ID 962 * @param site the site 963 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 964 * @return the previous, current, and next group 965 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 966 */ 967 public com.liferay.portal.model.Group[] findByC_S_PrevAndNext( 968 long groupId, long companyId, boolean site, 969 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 970 throws com.liferay.portal.NoSuchGroupException; 971 972 /** 973 * Removes all the groups where companyId = ? and site = ? from the database. 974 * 975 * @param companyId the company ID 976 * @param site the site 977 */ 978 public void removeByC_S(long companyId, boolean site); 979 980 /** 981 * Returns the number of groups where companyId = ? and site = ?. 982 * 983 * @param companyId the company ID 984 * @param site the site 985 * @return the number of matching groups 986 */ 987 public int countByC_S(long companyId, boolean site); 988 989 /** 990 * Returns all the groups where type = ? and active = ?. 991 * 992 * @param type the type 993 * @param active the active 994 * @return the matching groups 995 */ 996 public java.util.List<com.liferay.portal.model.Group> findByT_A(int type, 997 boolean active); 998 999 /** 1000 * Returns a range of all the groups where type = ? and active = ?. 1001 * 1002 * <p> 1003 * 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.GroupModelImpl}. 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. 1004 * </p> 1005 * 1006 * @param type the type 1007 * @param active the active 1008 * @param start the lower bound of the range of groups 1009 * @param end the upper bound of the range of groups (not inclusive) 1010 * @return the range of matching groups 1011 */ 1012 public java.util.List<com.liferay.portal.model.Group> findByT_A(int type, 1013 boolean active, int start, int end); 1014 1015 /** 1016 * Returns an ordered range of all the groups where type = ? and active = ?. 1017 * 1018 * <p> 1019 * 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.GroupModelImpl}. 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. 1020 * </p> 1021 * 1022 * @param type the type 1023 * @param active the active 1024 * @param start the lower bound of the range of groups 1025 * @param end the upper bound of the range of groups (not inclusive) 1026 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1027 * @return the ordered range of matching groups 1028 */ 1029 public java.util.List<com.liferay.portal.model.Group> findByT_A(int type, 1030 boolean active, int start, int end, 1031 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 1032 1033 /** 1034 * Returns the first group in the ordered set where type = ? and active = ?. 1035 * 1036 * @param type the type 1037 * @param active the active 1038 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1039 * @return the first matching group 1040 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1041 */ 1042 public com.liferay.portal.model.Group findByT_A_First(int type, 1043 boolean active, 1044 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 1045 throws com.liferay.portal.NoSuchGroupException; 1046 1047 /** 1048 * Returns the first group in the ordered set where type = ? and active = ?. 1049 * 1050 * @param type the type 1051 * @param active the active 1052 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1053 * @return the first matching group, or <code>null</code> if a matching group could not be found 1054 */ 1055 public com.liferay.portal.model.Group fetchByT_A_First(int type, 1056 boolean active, 1057 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 1058 1059 /** 1060 * Returns the last group in the ordered set where type = ? and active = ?. 1061 * 1062 * @param type the type 1063 * @param active the active 1064 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1065 * @return the last matching group 1066 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1067 */ 1068 public com.liferay.portal.model.Group findByT_A_Last(int type, 1069 boolean active, 1070 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 1071 throws com.liferay.portal.NoSuchGroupException; 1072 1073 /** 1074 * Returns the last group in the ordered set where type = ? and active = ?. 1075 * 1076 * @param type the type 1077 * @param active the active 1078 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1079 * @return the last matching group, or <code>null</code> if a matching group could not be found 1080 */ 1081 public com.liferay.portal.model.Group fetchByT_A_Last(int type, 1082 boolean active, 1083 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 1084 1085 /** 1086 * Returns the groups before and after the current group in the ordered set where type = ? and active = ?. 1087 * 1088 * @param groupId the primary key of the current group 1089 * @param type the type 1090 * @param active the active 1091 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1092 * @return the previous, current, and next group 1093 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 1094 */ 1095 public com.liferay.portal.model.Group[] findByT_A_PrevAndNext( 1096 long groupId, int type, boolean active, 1097 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 1098 throws com.liferay.portal.NoSuchGroupException; 1099 1100 /** 1101 * Removes all the groups where type = ? and active = ? from the database. 1102 * 1103 * @param type the type 1104 * @param active the active 1105 */ 1106 public void removeByT_A(int type, boolean active); 1107 1108 /** 1109 * Returns the number of groups where type = ? and active = ?. 1110 * 1111 * @param type the type 1112 * @param active the active 1113 * @return the number of matching groups 1114 */ 1115 public int countByT_A(int type, boolean active); 1116 1117 /** 1118 * Returns all the groups where groupId > ? and companyId = ? and parentGroupId = ?. 1119 * 1120 * @param groupId the group ID 1121 * @param companyId the company ID 1122 * @param parentGroupId the parent group ID 1123 * @return the matching groups 1124 */ 1125 public java.util.List<com.liferay.portal.model.Group> findByG_C_P( 1126 long groupId, long companyId, long parentGroupId); 1127 1128 /** 1129 * Returns a range of all the groups where groupId > ? and companyId = ? and parentGroupId = ?. 1130 * 1131 * <p> 1132 * 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.GroupModelImpl}. 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. 1133 * </p> 1134 * 1135 * @param groupId the group ID 1136 * @param companyId the company ID 1137 * @param parentGroupId the parent group ID 1138 * @param start the lower bound of the range of groups 1139 * @param end the upper bound of the range of groups (not inclusive) 1140 * @return the range of matching groups 1141 */ 1142 public java.util.List<com.liferay.portal.model.Group> findByG_C_P( 1143 long groupId, long companyId, long parentGroupId, int start, int end); 1144 1145 /** 1146 * Returns an ordered range of all the groups where groupId > ? and companyId = ? and parentGroupId = ?. 1147 * 1148 * <p> 1149 * 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.GroupModelImpl}. 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. 1150 * </p> 1151 * 1152 * @param groupId the group ID 1153 * @param companyId the company ID 1154 * @param parentGroupId the parent group ID 1155 * @param start the lower bound of the range of groups 1156 * @param end the upper bound of the range of groups (not inclusive) 1157 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1158 * @return the ordered range of matching groups 1159 */ 1160 public java.util.List<com.liferay.portal.model.Group> findByG_C_P( 1161 long groupId, long companyId, long parentGroupId, int start, int end, 1162 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 1163 1164 /** 1165 * Returns the first group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?. 1166 * 1167 * @param groupId the group ID 1168 * @param companyId the company ID 1169 * @param parentGroupId the parent group ID 1170 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1171 * @return the first matching group 1172 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1173 */ 1174 public com.liferay.portal.model.Group findByG_C_P_First(long groupId, 1175 long companyId, long parentGroupId, 1176 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 1177 throws com.liferay.portal.NoSuchGroupException; 1178 1179 /** 1180 * Returns the first group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?. 1181 * 1182 * @param groupId the group ID 1183 * @param companyId the company ID 1184 * @param parentGroupId the parent group ID 1185 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1186 * @return the first matching group, or <code>null</code> if a matching group could not be found 1187 */ 1188 public com.liferay.portal.model.Group fetchByG_C_P_First(long groupId, 1189 long companyId, long parentGroupId, 1190 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 1191 1192 /** 1193 * Returns the last group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?. 1194 * 1195 * @param groupId the group ID 1196 * @param companyId the company ID 1197 * @param parentGroupId the parent group ID 1198 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1199 * @return the last matching group 1200 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1201 */ 1202 public com.liferay.portal.model.Group findByG_C_P_Last(long groupId, 1203 long companyId, long parentGroupId, 1204 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 1205 throws com.liferay.portal.NoSuchGroupException; 1206 1207 /** 1208 * Returns the last group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?. 1209 * 1210 * @param groupId the group ID 1211 * @param companyId the company ID 1212 * @param parentGroupId the parent group ID 1213 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1214 * @return the last matching group, or <code>null</code> if a matching group could not be found 1215 */ 1216 public com.liferay.portal.model.Group fetchByG_C_P_Last(long groupId, 1217 long companyId, long parentGroupId, 1218 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 1219 1220 /** 1221 * Removes all the groups where groupId > ? and companyId = ? and parentGroupId = ? from the database. 1222 * 1223 * @param groupId the group ID 1224 * @param companyId the company ID 1225 * @param parentGroupId the parent group ID 1226 */ 1227 public void removeByG_C_P(long groupId, long companyId, long parentGroupId); 1228 1229 /** 1230 * Returns the number of groups where groupId > ? and companyId = ? and parentGroupId = ?. 1231 * 1232 * @param groupId the group ID 1233 * @param companyId the company ID 1234 * @param parentGroupId the parent group ID 1235 * @return the number of matching groups 1236 */ 1237 public int countByG_C_P(long groupId, long companyId, long parentGroupId); 1238 1239 /** 1240 * Returns the group where companyId = ? and classNameId = ? and classPK = ? or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found. 1241 * 1242 * @param companyId the company ID 1243 * @param classNameId the class name ID 1244 * @param classPK the class p k 1245 * @return the matching group 1246 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1247 */ 1248 public com.liferay.portal.model.Group findByC_C_C(long companyId, 1249 long classNameId, long classPK) 1250 throws com.liferay.portal.NoSuchGroupException; 1251 1252 /** 1253 * Returns the group where companyId = ? and classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1254 * 1255 * @param companyId the company ID 1256 * @param classNameId the class name ID 1257 * @param classPK the class p k 1258 * @return the matching group, or <code>null</code> if a matching group could not be found 1259 */ 1260 public com.liferay.portal.model.Group fetchByC_C_C(long companyId, 1261 long classNameId, long classPK); 1262 1263 /** 1264 * Returns the group where companyId = ? and classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1265 * 1266 * @param companyId the company ID 1267 * @param classNameId the class name ID 1268 * @param classPK the class p k 1269 * @param retrieveFromCache whether to use the finder cache 1270 * @return the matching group, or <code>null</code> if a matching group could not be found 1271 */ 1272 public com.liferay.portal.model.Group fetchByC_C_C(long companyId, 1273 long classNameId, long classPK, boolean retrieveFromCache); 1274 1275 /** 1276 * Removes the group where companyId = ? and classNameId = ? and classPK = ? from the database. 1277 * 1278 * @param companyId the company ID 1279 * @param classNameId the class name ID 1280 * @param classPK the class p k 1281 * @return the group that was removed 1282 */ 1283 public com.liferay.portal.model.Group removeByC_C_C(long companyId, 1284 long classNameId, long classPK) 1285 throws com.liferay.portal.NoSuchGroupException; 1286 1287 /** 1288 * Returns the number of groups where companyId = ? and classNameId = ? and classPK = ?. 1289 * 1290 * @param companyId the company ID 1291 * @param classNameId the class name ID 1292 * @param classPK the class p k 1293 * @return the number of matching groups 1294 */ 1295 public int countByC_C_C(long companyId, long classNameId, long classPK); 1296 1297 /** 1298 * Returns all the groups where companyId = ? and classNameId = ? and parentGroupId = ?. 1299 * 1300 * @param companyId the company ID 1301 * @param classNameId the class name ID 1302 * @param parentGroupId the parent group ID 1303 * @return the matching groups 1304 */ 1305 public java.util.List<com.liferay.portal.model.Group> findByC_C_P( 1306 long companyId, long classNameId, long parentGroupId); 1307 1308 /** 1309 * Returns a range of all the groups where companyId = ? and classNameId = ? and parentGroupId = ?. 1310 * 1311 * <p> 1312 * 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.GroupModelImpl}. 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. 1313 * </p> 1314 * 1315 * @param companyId the company ID 1316 * @param classNameId the class name ID 1317 * @param parentGroupId the parent group ID 1318 * @param start the lower bound of the range of groups 1319 * @param end the upper bound of the range of groups (not inclusive) 1320 * @return the range of matching groups 1321 */ 1322 public java.util.List<com.liferay.portal.model.Group> findByC_C_P( 1323 long companyId, long classNameId, long parentGroupId, int start, int end); 1324 1325 /** 1326 * Returns an ordered range of all the groups where companyId = ? and classNameId = ? and parentGroupId = ?. 1327 * 1328 * <p> 1329 * 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.GroupModelImpl}. 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. 1330 * </p> 1331 * 1332 * @param companyId the company ID 1333 * @param classNameId the class name ID 1334 * @param parentGroupId the parent group ID 1335 * @param start the lower bound of the range of groups 1336 * @param end the upper bound of the range of groups (not inclusive) 1337 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1338 * @return the ordered range of matching groups 1339 */ 1340 public java.util.List<com.liferay.portal.model.Group> findByC_C_P( 1341 long companyId, long classNameId, long parentGroupId, int start, 1342 int end, 1343 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 1344 1345 /** 1346 * Returns the first group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?. 1347 * 1348 * @param companyId the company ID 1349 * @param classNameId the class name ID 1350 * @param parentGroupId the parent group ID 1351 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1352 * @return the first matching group 1353 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1354 */ 1355 public com.liferay.portal.model.Group findByC_C_P_First(long companyId, 1356 long classNameId, long parentGroupId, 1357 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 1358 throws com.liferay.portal.NoSuchGroupException; 1359 1360 /** 1361 * Returns the first group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?. 1362 * 1363 * @param companyId the company ID 1364 * @param classNameId the class name ID 1365 * @param parentGroupId the parent group ID 1366 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1367 * @return the first matching group, or <code>null</code> if a matching group could not be found 1368 */ 1369 public com.liferay.portal.model.Group fetchByC_C_P_First(long companyId, 1370 long classNameId, long parentGroupId, 1371 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 1372 1373 /** 1374 * Returns the last group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?. 1375 * 1376 * @param companyId the company ID 1377 * @param classNameId the class name ID 1378 * @param parentGroupId the parent group ID 1379 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1380 * @return the last matching group 1381 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1382 */ 1383 public com.liferay.portal.model.Group findByC_C_P_Last(long companyId, 1384 long classNameId, long parentGroupId, 1385 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 1386 throws com.liferay.portal.NoSuchGroupException; 1387 1388 /** 1389 * Returns the last group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?. 1390 * 1391 * @param companyId the company ID 1392 * @param classNameId the class name ID 1393 * @param parentGroupId the parent group ID 1394 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1395 * @return the last matching group, or <code>null</code> if a matching group could not be found 1396 */ 1397 public com.liferay.portal.model.Group fetchByC_C_P_Last(long companyId, 1398 long classNameId, long parentGroupId, 1399 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 1400 1401 /** 1402 * Returns the groups before and after the current group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?. 1403 * 1404 * @param groupId the primary key of the current group 1405 * @param companyId the company ID 1406 * @param classNameId the class name ID 1407 * @param parentGroupId the parent group ID 1408 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1409 * @return the previous, current, and next group 1410 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 1411 */ 1412 public com.liferay.portal.model.Group[] findByC_C_P_PrevAndNext( 1413 long groupId, long companyId, long classNameId, long parentGroupId, 1414 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 1415 throws com.liferay.portal.NoSuchGroupException; 1416 1417 /** 1418 * Removes all the groups where companyId = ? and classNameId = ? and parentGroupId = ? from the database. 1419 * 1420 * @param companyId the company ID 1421 * @param classNameId the class name ID 1422 * @param parentGroupId the parent group ID 1423 */ 1424 public void removeByC_C_P(long companyId, long classNameId, 1425 long parentGroupId); 1426 1427 /** 1428 * Returns the number of groups where companyId = ? and classNameId = ? and parentGroupId = ?. 1429 * 1430 * @param companyId the company ID 1431 * @param classNameId the class name ID 1432 * @param parentGroupId the parent group ID 1433 * @return the number of matching groups 1434 */ 1435 public int countByC_C_P(long companyId, long classNameId, long parentGroupId); 1436 1437 /** 1438 * Returns all the groups where companyId = ? and parentGroupId = ? and site = ?. 1439 * 1440 * @param companyId the company ID 1441 * @param parentGroupId the parent group ID 1442 * @param site the site 1443 * @return the matching groups 1444 */ 1445 public java.util.List<com.liferay.portal.model.Group> findByC_P_S( 1446 long companyId, long parentGroupId, boolean site); 1447 1448 /** 1449 * Returns a range of all the groups where companyId = ? and parentGroupId = ? and site = ?. 1450 * 1451 * <p> 1452 * 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.GroupModelImpl}. 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. 1453 * </p> 1454 * 1455 * @param companyId the company ID 1456 * @param parentGroupId the parent group ID 1457 * @param site the site 1458 * @param start the lower bound of the range of groups 1459 * @param end the upper bound of the range of groups (not inclusive) 1460 * @return the range of matching groups 1461 */ 1462 public java.util.List<com.liferay.portal.model.Group> findByC_P_S( 1463 long companyId, long parentGroupId, boolean site, int start, int end); 1464 1465 /** 1466 * Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and site = ?. 1467 * 1468 * <p> 1469 * 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.GroupModelImpl}. 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. 1470 * </p> 1471 * 1472 * @param companyId the company ID 1473 * @param parentGroupId the parent group ID 1474 * @param site the site 1475 * @param start the lower bound of the range of groups 1476 * @param end the upper bound of the range of groups (not inclusive) 1477 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1478 * @return the ordered range of matching groups 1479 */ 1480 public java.util.List<com.liferay.portal.model.Group> findByC_P_S( 1481 long companyId, long parentGroupId, boolean site, int start, int end, 1482 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 1483 1484 /** 1485 * Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ?. 1486 * 1487 * @param companyId the company ID 1488 * @param parentGroupId the parent group ID 1489 * @param site the site 1490 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1491 * @return the first matching group 1492 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1493 */ 1494 public com.liferay.portal.model.Group findByC_P_S_First(long companyId, 1495 long parentGroupId, boolean site, 1496 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 1497 throws com.liferay.portal.NoSuchGroupException; 1498 1499 /** 1500 * Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ?. 1501 * 1502 * @param companyId the company ID 1503 * @param parentGroupId the parent group ID 1504 * @param site the site 1505 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1506 * @return the first matching group, or <code>null</code> if a matching group could not be found 1507 */ 1508 public com.liferay.portal.model.Group fetchByC_P_S_First(long companyId, 1509 long parentGroupId, boolean site, 1510 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 1511 1512 /** 1513 * Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ?. 1514 * 1515 * @param companyId the company ID 1516 * @param parentGroupId the parent group ID 1517 * @param site the site 1518 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1519 * @return the last matching group 1520 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1521 */ 1522 public com.liferay.portal.model.Group findByC_P_S_Last(long companyId, 1523 long parentGroupId, boolean site, 1524 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 1525 throws com.liferay.portal.NoSuchGroupException; 1526 1527 /** 1528 * Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ?. 1529 * 1530 * @param companyId the company ID 1531 * @param parentGroupId the parent group ID 1532 * @param site the site 1533 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1534 * @return the last matching group, or <code>null</code> if a matching group could not be found 1535 */ 1536 public com.liferay.portal.model.Group fetchByC_P_S_Last(long companyId, 1537 long parentGroupId, boolean site, 1538 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 1539 1540 /** 1541 * Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ? and site = ?. 1542 * 1543 * @param groupId the primary key of the current group 1544 * @param companyId the company ID 1545 * @param parentGroupId the parent group ID 1546 * @param site the site 1547 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1548 * @return the previous, current, and next group 1549 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 1550 */ 1551 public com.liferay.portal.model.Group[] findByC_P_S_PrevAndNext( 1552 long groupId, long companyId, long parentGroupId, boolean site, 1553 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 1554 throws com.liferay.portal.NoSuchGroupException; 1555 1556 /** 1557 * Removes all the groups where companyId = ? and parentGroupId = ? and site = ? from the database. 1558 * 1559 * @param companyId the company ID 1560 * @param parentGroupId the parent group ID 1561 * @param site the site 1562 */ 1563 public void removeByC_P_S(long companyId, long parentGroupId, boolean site); 1564 1565 /** 1566 * Returns the number of groups where companyId = ? and parentGroupId = ? and site = ?. 1567 * 1568 * @param companyId the company ID 1569 * @param parentGroupId the parent group ID 1570 * @param site the site 1571 * @return the number of matching groups 1572 */ 1573 public int countByC_P_S(long companyId, long parentGroupId, boolean site); 1574 1575 /** 1576 * Returns the group where companyId = ? and liveGroupId = ? and name = ? or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found. 1577 * 1578 * @param companyId the company ID 1579 * @param liveGroupId the live group ID 1580 * @param name the name 1581 * @return the matching group 1582 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1583 */ 1584 public com.liferay.portal.model.Group findByC_L_N(long companyId, 1585 long liveGroupId, java.lang.String name) 1586 throws com.liferay.portal.NoSuchGroupException; 1587 1588 /** 1589 * Returns the group where companyId = ? and liveGroupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1590 * 1591 * @param companyId the company ID 1592 * @param liveGroupId the live group ID 1593 * @param name the name 1594 * @return the matching group, or <code>null</code> if a matching group could not be found 1595 */ 1596 public com.liferay.portal.model.Group fetchByC_L_N(long companyId, 1597 long liveGroupId, java.lang.String name); 1598 1599 /** 1600 * Returns the group where companyId = ? and liveGroupId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1601 * 1602 * @param companyId the company ID 1603 * @param liveGroupId the live group ID 1604 * @param name the name 1605 * @param retrieveFromCache whether to use the finder cache 1606 * @return the matching group, or <code>null</code> if a matching group could not be found 1607 */ 1608 public com.liferay.portal.model.Group fetchByC_L_N(long companyId, 1609 long liveGroupId, java.lang.String name, boolean retrieveFromCache); 1610 1611 /** 1612 * Removes the group where companyId = ? and liveGroupId = ? and name = ? from the database. 1613 * 1614 * @param companyId the company ID 1615 * @param liveGroupId the live group ID 1616 * @param name the name 1617 * @return the group that was removed 1618 */ 1619 public com.liferay.portal.model.Group removeByC_L_N(long companyId, 1620 long liveGroupId, java.lang.String name) 1621 throws com.liferay.portal.NoSuchGroupException; 1622 1623 /** 1624 * Returns the number of groups where companyId = ? and liveGroupId = ? and name = ?. 1625 * 1626 * @param companyId the company ID 1627 * @param liveGroupId the live group ID 1628 * @param name the name 1629 * @return the number of matching groups 1630 */ 1631 public int countByC_L_N(long companyId, long liveGroupId, 1632 java.lang.String name); 1633 1634 /** 1635 * Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found. 1636 * 1637 * @param companyId the company ID 1638 * @param classNameId the class name ID 1639 * @param liveGroupId the live group ID 1640 * @param name the name 1641 * @return the matching group 1642 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1643 */ 1644 public com.liferay.portal.model.Group findByC_C_L_N(long companyId, 1645 long classNameId, long liveGroupId, java.lang.String name) 1646 throws com.liferay.portal.NoSuchGroupException; 1647 1648 /** 1649 * Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1650 * 1651 * @param companyId the company ID 1652 * @param classNameId the class name ID 1653 * @param liveGroupId the live group ID 1654 * @param name the name 1655 * @return the matching group, or <code>null</code> if a matching group could not be found 1656 */ 1657 public com.liferay.portal.model.Group fetchByC_C_L_N(long companyId, 1658 long classNameId, long liveGroupId, java.lang.String name); 1659 1660 /** 1661 * Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1662 * 1663 * @param companyId the company ID 1664 * @param classNameId the class name ID 1665 * @param liveGroupId the live group ID 1666 * @param name the name 1667 * @param retrieveFromCache whether to use the finder cache 1668 * @return the matching group, or <code>null</code> if a matching group could not be found 1669 */ 1670 public com.liferay.portal.model.Group fetchByC_C_L_N(long companyId, 1671 long classNameId, long liveGroupId, java.lang.String name, 1672 boolean retrieveFromCache); 1673 1674 /** 1675 * Removes the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? from the database. 1676 * 1677 * @param companyId the company ID 1678 * @param classNameId the class name ID 1679 * @param liveGroupId the live group ID 1680 * @param name the name 1681 * @return the group that was removed 1682 */ 1683 public com.liferay.portal.model.Group removeByC_C_L_N(long companyId, 1684 long classNameId, long liveGroupId, java.lang.String name) 1685 throws com.liferay.portal.NoSuchGroupException; 1686 1687 /** 1688 * Returns the number of groups where companyId = ? and classNameId = ? and liveGroupId = ? and name = ?. 1689 * 1690 * @param companyId the company ID 1691 * @param classNameId the class name ID 1692 * @param liveGroupId the live group ID 1693 * @param name the name 1694 * @return the number of matching groups 1695 */ 1696 public int countByC_C_L_N(long companyId, long classNameId, 1697 long liveGroupId, java.lang.String name); 1698 1699 /** 1700 * Returns all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?. 1701 * 1702 * @param companyId the company ID 1703 * @param parentGroupId the parent group ID 1704 * @param site the site 1705 * @param inheritContent the inherit content 1706 * @return the matching groups 1707 */ 1708 public java.util.List<com.liferay.portal.model.Group> findByC_P_S_I( 1709 long companyId, long parentGroupId, boolean site, boolean inheritContent); 1710 1711 /** 1712 * Returns a range of all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?. 1713 * 1714 * <p> 1715 * 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.GroupModelImpl}. 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. 1716 * </p> 1717 * 1718 * @param companyId the company ID 1719 * @param parentGroupId the parent group ID 1720 * @param site the site 1721 * @param inheritContent the inherit content 1722 * @param start the lower bound of the range of groups 1723 * @param end the upper bound of the range of groups (not inclusive) 1724 * @return the range of matching groups 1725 */ 1726 public java.util.List<com.liferay.portal.model.Group> findByC_P_S_I( 1727 long companyId, long parentGroupId, boolean site, 1728 boolean inheritContent, int start, int end); 1729 1730 /** 1731 * Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?. 1732 * 1733 * <p> 1734 * 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.GroupModelImpl}. 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. 1735 * </p> 1736 * 1737 * @param companyId the company ID 1738 * @param parentGroupId the parent group ID 1739 * @param site the site 1740 * @param inheritContent the inherit content 1741 * @param start the lower bound of the range of groups 1742 * @param end the upper bound of the range of groups (not inclusive) 1743 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1744 * @return the ordered range of matching groups 1745 */ 1746 public java.util.List<com.liferay.portal.model.Group> findByC_P_S_I( 1747 long companyId, long parentGroupId, boolean site, 1748 boolean inheritContent, int start, int end, 1749 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 1750 1751 /** 1752 * Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?. 1753 * 1754 * @param companyId the company ID 1755 * @param parentGroupId the parent group ID 1756 * @param site the site 1757 * @param inheritContent the inherit content 1758 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1759 * @return the first matching group 1760 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1761 */ 1762 public com.liferay.portal.model.Group findByC_P_S_I_First(long companyId, 1763 long parentGroupId, boolean site, boolean inheritContent, 1764 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 1765 throws com.liferay.portal.NoSuchGroupException; 1766 1767 /** 1768 * Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?. 1769 * 1770 * @param companyId the company ID 1771 * @param parentGroupId the parent group ID 1772 * @param site the site 1773 * @param inheritContent the inherit content 1774 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1775 * @return the first matching group, or <code>null</code> if a matching group could not be found 1776 */ 1777 public com.liferay.portal.model.Group fetchByC_P_S_I_First(long companyId, 1778 long parentGroupId, boolean site, boolean inheritContent, 1779 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 1780 1781 /** 1782 * Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?. 1783 * 1784 * @param companyId the company ID 1785 * @param parentGroupId the parent group ID 1786 * @param site the site 1787 * @param inheritContent the inherit content 1788 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1789 * @return the last matching group 1790 * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found 1791 */ 1792 public com.liferay.portal.model.Group findByC_P_S_I_Last(long companyId, 1793 long parentGroupId, boolean site, boolean inheritContent, 1794 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 1795 throws com.liferay.portal.NoSuchGroupException; 1796 1797 /** 1798 * Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?. 1799 * 1800 * @param companyId the company ID 1801 * @param parentGroupId the parent group ID 1802 * @param site the site 1803 * @param inheritContent the inherit content 1804 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1805 * @return the last matching group, or <code>null</code> if a matching group could not be found 1806 */ 1807 public com.liferay.portal.model.Group fetchByC_P_S_I_Last(long companyId, 1808 long parentGroupId, boolean site, boolean inheritContent, 1809 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 1810 1811 /** 1812 * Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?. 1813 * 1814 * @param groupId the primary key of the current group 1815 * @param companyId the company ID 1816 * @param parentGroupId the parent group ID 1817 * @param site the site 1818 * @param inheritContent the inherit content 1819 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1820 * @return the previous, current, and next group 1821 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 1822 */ 1823 public com.liferay.portal.model.Group[] findByC_P_S_I_PrevAndNext( 1824 long groupId, long companyId, long parentGroupId, boolean site, 1825 boolean inheritContent, 1826 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator) 1827 throws com.liferay.portal.NoSuchGroupException; 1828 1829 /** 1830 * Removes all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ? from the database. 1831 * 1832 * @param companyId the company ID 1833 * @param parentGroupId the parent group ID 1834 * @param site the site 1835 * @param inheritContent the inherit content 1836 */ 1837 public void removeByC_P_S_I(long companyId, long parentGroupId, 1838 boolean site, boolean inheritContent); 1839 1840 /** 1841 * Returns the number of groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?. 1842 * 1843 * @param companyId the company ID 1844 * @param parentGroupId the parent group ID 1845 * @param site the site 1846 * @param inheritContent the inherit content 1847 * @return the number of matching groups 1848 */ 1849 public int countByC_P_S_I(long companyId, long parentGroupId, boolean site, 1850 boolean inheritContent); 1851 1852 /** 1853 * Caches the group in the entity cache if it is enabled. 1854 * 1855 * @param group the group 1856 */ 1857 public void cacheResult(com.liferay.portal.model.Group group); 1858 1859 /** 1860 * Caches the groups in the entity cache if it is enabled. 1861 * 1862 * @param groups the groups 1863 */ 1864 public void cacheResult( 1865 java.util.List<com.liferay.portal.model.Group> groups); 1866 1867 /** 1868 * Creates a new group with the primary key. Does not add the group to the database. 1869 * 1870 * @param groupId the primary key for the new group 1871 * @return the new group 1872 */ 1873 public com.liferay.portal.model.Group create(long groupId); 1874 1875 /** 1876 * Removes the group with the primary key from the database. Also notifies the appropriate model listeners. 1877 * 1878 * @param groupId the primary key of the group 1879 * @return the group that was removed 1880 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 1881 */ 1882 public com.liferay.portal.model.Group remove(long groupId) 1883 throws com.liferay.portal.NoSuchGroupException; 1884 1885 public com.liferay.portal.model.Group updateImpl( 1886 com.liferay.portal.model.Group group); 1887 1888 /** 1889 * Returns the group with the primary key or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found. 1890 * 1891 * @param groupId the primary key of the group 1892 * @return the group 1893 * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found 1894 */ 1895 public com.liferay.portal.model.Group findByPrimaryKey(long groupId) 1896 throws com.liferay.portal.NoSuchGroupException; 1897 1898 /** 1899 * Returns the group with the primary key or returns <code>null</code> if it could not be found. 1900 * 1901 * @param groupId the primary key of the group 1902 * @return the group, or <code>null</code> if a group with the primary key could not be found 1903 */ 1904 public com.liferay.portal.model.Group fetchByPrimaryKey(long groupId); 1905 1906 @Override 1907 public java.util.Map<java.io.Serializable, com.liferay.portal.model.Group> fetchByPrimaryKeys( 1908 java.util.Set<java.io.Serializable> primaryKeys); 1909 1910 /** 1911 * Returns all the groups. 1912 * 1913 * @return the groups 1914 */ 1915 public java.util.List<com.liferay.portal.model.Group> findAll(); 1916 1917 /** 1918 * Returns a range of all the groups. 1919 * 1920 * <p> 1921 * 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.GroupModelImpl}. 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. 1922 * </p> 1923 * 1924 * @param start the lower bound of the range of groups 1925 * @param end the upper bound of the range of groups (not inclusive) 1926 * @return the range of groups 1927 */ 1928 public java.util.List<com.liferay.portal.model.Group> findAll(int start, 1929 int end); 1930 1931 /** 1932 * Returns an ordered range of all the groups. 1933 * 1934 * <p> 1935 * 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.GroupModelImpl}. 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. 1936 * </p> 1937 * 1938 * @param start the lower bound of the range of groups 1939 * @param end the upper bound of the range of groups (not inclusive) 1940 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1941 * @return the ordered range of groups 1942 */ 1943 public java.util.List<com.liferay.portal.model.Group> findAll(int start, 1944 int end, 1945 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator); 1946 1947 /** 1948 * Removes all the groups from the database. 1949 */ 1950 public void removeAll(); 1951 1952 /** 1953 * Returns the number of groups. 1954 * 1955 * @return the number of groups 1956 */ 1957 public int countAll(); 1958 1959 /** 1960 * Returns the primaryKeys of organizations associated with the group. 1961 * 1962 * @param pk the primary key of the group 1963 * @return long[] of the primaryKeys of organizations associated with the group 1964 */ 1965 public long[] getOrganizationPrimaryKeys(long pk); 1966 1967 /** 1968 * Returns all the organizations associated with the group. 1969 * 1970 * @param pk the primary key of the group 1971 * @return the organizations associated with the group 1972 */ 1973 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 1974 long pk); 1975 1976 /** 1977 * Returns a range of all the organizations associated with the group. 1978 * 1979 * <p> 1980 * 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.GroupModelImpl}. 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. 1981 * </p> 1982 * 1983 * @param pk the primary key of the group 1984 * @param start the lower bound of the range of groups 1985 * @param end the upper bound of the range of groups (not inclusive) 1986 * @return the range of organizations associated with the group 1987 */ 1988 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 1989 long pk, int start, int end); 1990 1991 /** 1992 * Returns an ordered range of all the organizations associated with the group. 1993 * 1994 * <p> 1995 * 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.GroupModelImpl}. 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. 1996 * </p> 1997 * 1998 * @param pk the primary key of the group 1999 * @param start the lower bound of the range of groups 2000 * @param end the upper bound of the range of groups (not inclusive) 2001 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2002 * @return the ordered range of organizations associated with the group 2003 */ 2004 public java.util.List<com.liferay.portal.model.Organization> getOrganizations( 2005 long pk, int start, int end, 2006 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Organization> orderByComparator); 2007 2008 /** 2009 * Returns the number of organizations associated with the group. 2010 * 2011 * @param pk the primary key of the group 2012 * @return the number of organizations associated with the group 2013 */ 2014 public int getOrganizationsSize(long pk); 2015 2016 /** 2017 * Returns <code>true</code> if the organization is associated with the group. 2018 * 2019 * @param pk the primary key of the group 2020 * @param organizationPK the primary key of the organization 2021 * @return <code>true</code> if the organization is associated with the group; <code>false</code> otherwise 2022 */ 2023 public boolean containsOrganization(long pk, long organizationPK); 2024 2025 /** 2026 * Returns <code>true</code> if the group has any organizations associated with it. 2027 * 2028 * @param pk the primary key of the group to check for associations with organizations 2029 * @return <code>true</code> if the group has any organizations associated with it; <code>false</code> otherwise 2030 */ 2031 public boolean containsOrganizations(long pk); 2032 2033 /** 2034 * Adds an association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2035 * 2036 * @param pk the primary key of the group 2037 * @param organizationPK the primary key of the organization 2038 */ 2039 public void addOrganization(long pk, long organizationPK); 2040 2041 /** 2042 * Adds an association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2043 * 2044 * @param pk the primary key of the group 2045 * @param organization the organization 2046 */ 2047 public void addOrganization(long pk, 2048 com.liferay.portal.model.Organization organization); 2049 2050 /** 2051 * Adds an association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2052 * 2053 * @param pk the primary key of the group 2054 * @param organizationPKs the primary keys of the organizations 2055 */ 2056 public void addOrganizations(long pk, long[] organizationPKs); 2057 2058 /** 2059 * Adds an association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2060 * 2061 * @param pk the primary key of the group 2062 * @param organizations the organizations 2063 */ 2064 public void addOrganizations(long pk, 2065 java.util.List<com.liferay.portal.model.Organization> organizations); 2066 2067 /** 2068 * Clears all associations between the group and its organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2069 * 2070 * @param pk the primary key of the group to clear the associated organizations from 2071 */ 2072 public void clearOrganizations(long pk); 2073 2074 /** 2075 * Removes the association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2076 * 2077 * @param pk the primary key of the group 2078 * @param organizationPK the primary key of the organization 2079 */ 2080 public void removeOrganization(long pk, long organizationPK); 2081 2082 /** 2083 * Removes the association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2084 * 2085 * @param pk the primary key of the group 2086 * @param organization the organization 2087 */ 2088 public void removeOrganization(long pk, 2089 com.liferay.portal.model.Organization organization); 2090 2091 /** 2092 * Removes the association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2093 * 2094 * @param pk the primary key of the group 2095 * @param organizationPKs the primary keys of the organizations 2096 */ 2097 public void removeOrganizations(long pk, long[] organizationPKs); 2098 2099 /** 2100 * Removes the association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2101 * 2102 * @param pk the primary key of the group 2103 * @param organizations the organizations 2104 */ 2105 public void removeOrganizations(long pk, 2106 java.util.List<com.liferay.portal.model.Organization> organizations); 2107 2108 /** 2109 * Sets the organizations associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2110 * 2111 * @param pk the primary key of the group 2112 * @param organizationPKs the primary keys of the organizations to be associated with the group 2113 */ 2114 public void setOrganizations(long pk, long[] organizationPKs); 2115 2116 /** 2117 * Sets the organizations associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2118 * 2119 * @param pk the primary key of the group 2120 * @param organizations the organizations to be associated with the group 2121 */ 2122 public void setOrganizations(long pk, 2123 java.util.List<com.liferay.portal.model.Organization> organizations); 2124 2125 /** 2126 * Returns the primaryKeys of roles associated with the group. 2127 * 2128 * @param pk the primary key of the group 2129 * @return long[] of the primaryKeys of roles associated with the group 2130 */ 2131 public long[] getRolePrimaryKeys(long pk); 2132 2133 /** 2134 * Returns all the roles associated with the group. 2135 * 2136 * @param pk the primary key of the group 2137 * @return the roles associated with the group 2138 */ 2139 public java.util.List<com.liferay.portal.model.Role> getRoles(long pk); 2140 2141 /** 2142 * Returns a range of all the roles associated with the group. 2143 * 2144 * <p> 2145 * 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.GroupModelImpl}. 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. 2146 * </p> 2147 * 2148 * @param pk the primary key of the group 2149 * @param start the lower bound of the range of groups 2150 * @param end the upper bound of the range of groups (not inclusive) 2151 * @return the range of roles associated with the group 2152 */ 2153 public java.util.List<com.liferay.portal.model.Role> getRoles(long pk, 2154 int start, int end); 2155 2156 /** 2157 * Returns an ordered range of all the roles associated with the group. 2158 * 2159 * <p> 2160 * 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.GroupModelImpl}. 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. 2161 * </p> 2162 * 2163 * @param pk the primary key of the group 2164 * @param start the lower bound of the range of groups 2165 * @param end the upper bound of the range of groups (not inclusive) 2166 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2167 * @return the ordered range of roles associated with the group 2168 */ 2169 public java.util.List<com.liferay.portal.model.Role> getRoles(long pk, 2170 int start, int end, 2171 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Role> orderByComparator); 2172 2173 /** 2174 * Returns the number of roles associated with the group. 2175 * 2176 * @param pk the primary key of the group 2177 * @return the number of roles associated with the group 2178 */ 2179 public int getRolesSize(long pk); 2180 2181 /** 2182 * Returns <code>true</code> if the role is associated with the group. 2183 * 2184 * @param pk the primary key of the group 2185 * @param rolePK the primary key of the role 2186 * @return <code>true</code> if the role is associated with the group; <code>false</code> otherwise 2187 */ 2188 public boolean containsRole(long pk, long rolePK); 2189 2190 /** 2191 * Returns <code>true</code> if the group has any roles associated with it. 2192 * 2193 * @param pk the primary key of the group to check for associations with roles 2194 * @return <code>true</code> if the group has any roles associated with it; <code>false</code> otherwise 2195 */ 2196 public boolean containsRoles(long pk); 2197 2198 /** 2199 * Adds an association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2200 * 2201 * @param pk the primary key of the group 2202 * @param rolePK the primary key of the role 2203 */ 2204 public void addRole(long pk, long rolePK); 2205 2206 /** 2207 * Adds an association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2208 * 2209 * @param pk the primary key of the group 2210 * @param role the role 2211 */ 2212 public void addRole(long pk, com.liferay.portal.model.Role role); 2213 2214 /** 2215 * Adds an association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2216 * 2217 * @param pk the primary key of the group 2218 * @param rolePKs the primary keys of the roles 2219 */ 2220 public void addRoles(long pk, long[] rolePKs); 2221 2222 /** 2223 * Adds an association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2224 * 2225 * @param pk the primary key of the group 2226 * @param roles the roles 2227 */ 2228 public void addRoles(long pk, 2229 java.util.List<com.liferay.portal.model.Role> roles); 2230 2231 /** 2232 * Clears all associations between the group and its roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2233 * 2234 * @param pk the primary key of the group to clear the associated roles from 2235 */ 2236 public void clearRoles(long pk); 2237 2238 /** 2239 * Removes the association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2240 * 2241 * @param pk the primary key of the group 2242 * @param rolePK the primary key of the role 2243 */ 2244 public void removeRole(long pk, long rolePK); 2245 2246 /** 2247 * Removes the association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2248 * 2249 * @param pk the primary key of the group 2250 * @param role the role 2251 */ 2252 public void removeRole(long pk, com.liferay.portal.model.Role role); 2253 2254 /** 2255 * Removes the association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2256 * 2257 * @param pk the primary key of the group 2258 * @param rolePKs the primary keys of the roles 2259 */ 2260 public void removeRoles(long pk, long[] rolePKs); 2261 2262 /** 2263 * Removes the association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2264 * 2265 * @param pk the primary key of the group 2266 * @param roles the roles 2267 */ 2268 public void removeRoles(long pk, 2269 java.util.List<com.liferay.portal.model.Role> roles); 2270 2271 /** 2272 * Sets the roles associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2273 * 2274 * @param pk the primary key of the group 2275 * @param rolePKs the primary keys of the roles to be associated with the group 2276 */ 2277 public void setRoles(long pk, long[] rolePKs); 2278 2279 /** 2280 * Sets the roles associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2281 * 2282 * @param pk the primary key of the group 2283 * @param roles the roles to be associated with the group 2284 */ 2285 public void setRoles(long pk, 2286 java.util.List<com.liferay.portal.model.Role> roles); 2287 2288 /** 2289 * Returns the primaryKeys of user groups associated with the group. 2290 * 2291 * @param pk the primary key of the group 2292 * @return long[] of the primaryKeys of user groups associated with the group 2293 */ 2294 public long[] getUserGroupPrimaryKeys(long pk); 2295 2296 /** 2297 * Returns all the user groups associated with the group. 2298 * 2299 * @param pk the primary key of the group 2300 * @return the user groups associated with the group 2301 */ 2302 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups( 2303 long pk); 2304 2305 /** 2306 * Returns a range of all the user groups associated with the group. 2307 * 2308 * <p> 2309 * 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.GroupModelImpl}. 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. 2310 * </p> 2311 * 2312 * @param pk the primary key of the group 2313 * @param start the lower bound of the range of groups 2314 * @param end the upper bound of the range of groups (not inclusive) 2315 * @return the range of user groups associated with the group 2316 */ 2317 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups( 2318 long pk, int start, int end); 2319 2320 /** 2321 * Returns an ordered range of all the user groups associated with the group. 2322 * 2323 * <p> 2324 * 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.GroupModelImpl}. 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. 2325 * </p> 2326 * 2327 * @param pk the primary key of the group 2328 * @param start the lower bound of the range of groups 2329 * @param end the upper bound of the range of groups (not inclusive) 2330 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2331 * @return the ordered range of user groups associated with the group 2332 */ 2333 public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups( 2334 long pk, int start, int end, 2335 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator); 2336 2337 /** 2338 * Returns the number of user groups associated with the group. 2339 * 2340 * @param pk the primary key of the group 2341 * @return the number of user groups associated with the group 2342 */ 2343 public int getUserGroupsSize(long pk); 2344 2345 /** 2346 * Returns <code>true</code> if the user group is associated with the group. 2347 * 2348 * @param pk the primary key of the group 2349 * @param userGroupPK the primary key of the user group 2350 * @return <code>true</code> if the user group is associated with the group; <code>false</code> otherwise 2351 */ 2352 public boolean containsUserGroup(long pk, long userGroupPK); 2353 2354 /** 2355 * Returns <code>true</code> if the group has any user groups associated with it. 2356 * 2357 * @param pk the primary key of the group to check for associations with user groups 2358 * @return <code>true</code> if the group has any user groups associated with it; <code>false</code> otherwise 2359 */ 2360 public boolean containsUserGroups(long pk); 2361 2362 /** 2363 * Adds an association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2364 * 2365 * @param pk the primary key of the group 2366 * @param userGroupPK the primary key of the user group 2367 */ 2368 public void addUserGroup(long pk, long userGroupPK); 2369 2370 /** 2371 * Adds an association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2372 * 2373 * @param pk the primary key of the group 2374 * @param userGroup the user group 2375 */ 2376 public void addUserGroup(long pk, 2377 com.liferay.portal.model.UserGroup userGroup); 2378 2379 /** 2380 * Adds an association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2381 * 2382 * @param pk the primary key of the group 2383 * @param userGroupPKs the primary keys of the user groups 2384 */ 2385 public void addUserGroups(long pk, long[] userGroupPKs); 2386 2387 /** 2388 * Adds an association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2389 * 2390 * @param pk the primary key of the group 2391 * @param userGroups the user groups 2392 */ 2393 public void addUserGroups(long pk, 2394 java.util.List<com.liferay.portal.model.UserGroup> userGroups); 2395 2396 /** 2397 * Clears all associations between the group and its user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2398 * 2399 * @param pk the primary key of the group to clear the associated user groups from 2400 */ 2401 public void clearUserGroups(long pk); 2402 2403 /** 2404 * Removes the association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2405 * 2406 * @param pk the primary key of the group 2407 * @param userGroupPK the primary key of the user group 2408 */ 2409 public void removeUserGroup(long pk, long userGroupPK); 2410 2411 /** 2412 * Removes the association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2413 * 2414 * @param pk the primary key of the group 2415 * @param userGroup the user group 2416 */ 2417 public void removeUserGroup(long pk, 2418 com.liferay.portal.model.UserGroup userGroup); 2419 2420 /** 2421 * Removes the association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2422 * 2423 * @param pk the primary key of the group 2424 * @param userGroupPKs the primary keys of the user groups 2425 */ 2426 public void removeUserGroups(long pk, long[] userGroupPKs); 2427 2428 /** 2429 * Removes the association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2430 * 2431 * @param pk the primary key of the group 2432 * @param userGroups the user groups 2433 */ 2434 public void removeUserGroups(long pk, 2435 java.util.List<com.liferay.portal.model.UserGroup> userGroups); 2436 2437 /** 2438 * Sets the user groups associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2439 * 2440 * @param pk the primary key of the group 2441 * @param userGroupPKs the primary keys of the user groups to be associated with the group 2442 */ 2443 public void setUserGroups(long pk, long[] userGroupPKs); 2444 2445 /** 2446 * Sets the user groups associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2447 * 2448 * @param pk the primary key of the group 2449 * @param userGroups the user groups to be associated with the group 2450 */ 2451 public void setUserGroups(long pk, 2452 java.util.List<com.liferay.portal.model.UserGroup> userGroups); 2453 2454 /** 2455 * Returns the primaryKeys of users associated with the group. 2456 * 2457 * @param pk the primary key of the group 2458 * @return long[] of the primaryKeys of users associated with the group 2459 */ 2460 public long[] getUserPrimaryKeys(long pk); 2461 2462 /** 2463 * Returns all the users associated with the group. 2464 * 2465 * @param pk the primary key of the group 2466 * @return the users associated with the group 2467 */ 2468 public java.util.List<com.liferay.portal.model.User> getUsers(long pk); 2469 2470 /** 2471 * Returns a range of all the users associated with the group. 2472 * 2473 * <p> 2474 * 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.GroupModelImpl}. 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. 2475 * </p> 2476 * 2477 * @param pk the primary key of the group 2478 * @param start the lower bound of the range of groups 2479 * @param end the upper bound of the range of groups (not inclusive) 2480 * @return the range of users associated with the group 2481 */ 2482 public java.util.List<com.liferay.portal.model.User> getUsers(long pk, 2483 int start, int end); 2484 2485 /** 2486 * Returns an ordered range of all the users associated with the group. 2487 * 2488 * <p> 2489 * 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.GroupModelImpl}. 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. 2490 * </p> 2491 * 2492 * @param pk the primary key of the group 2493 * @param start the lower bound of the range of groups 2494 * @param end the upper bound of the range of groups (not inclusive) 2495 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2496 * @return the ordered range of users associated with the group 2497 */ 2498 public java.util.List<com.liferay.portal.model.User> getUsers(long pk, 2499 int start, int end, 2500 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.User> orderByComparator); 2501 2502 /** 2503 * Returns the number of users associated with the group. 2504 * 2505 * @param pk the primary key of the group 2506 * @return the number of users associated with the group 2507 */ 2508 public int getUsersSize(long pk); 2509 2510 /** 2511 * Returns <code>true</code> if the user is associated with the group. 2512 * 2513 * @param pk the primary key of the group 2514 * @param userPK the primary key of the user 2515 * @return <code>true</code> if the user is associated with the group; <code>false</code> otherwise 2516 */ 2517 public boolean containsUser(long pk, long userPK); 2518 2519 /** 2520 * Returns <code>true</code> if the group has any users associated with it. 2521 * 2522 * @param pk the primary key of the group to check for associations with users 2523 * @return <code>true</code> if the group has any users associated with it; <code>false</code> otherwise 2524 */ 2525 public boolean containsUsers(long pk); 2526 2527 /** 2528 * Adds an association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2529 * 2530 * @param pk the primary key of the group 2531 * @param userPK the primary key of the user 2532 */ 2533 public void addUser(long pk, long userPK); 2534 2535 /** 2536 * Adds an association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2537 * 2538 * @param pk the primary key of the group 2539 * @param user the user 2540 */ 2541 public void addUser(long pk, com.liferay.portal.model.User user); 2542 2543 /** 2544 * Adds an association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2545 * 2546 * @param pk the primary key of the group 2547 * @param userPKs the primary keys of the users 2548 */ 2549 public void addUsers(long pk, long[] userPKs); 2550 2551 /** 2552 * Adds an association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2553 * 2554 * @param pk the primary key of the group 2555 * @param users the users 2556 */ 2557 public void addUsers(long pk, 2558 java.util.List<com.liferay.portal.model.User> users); 2559 2560 /** 2561 * Clears all associations between the group and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2562 * 2563 * @param pk the primary key of the group to clear the associated users from 2564 */ 2565 public void clearUsers(long pk); 2566 2567 /** 2568 * Removes the association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2569 * 2570 * @param pk the primary key of the group 2571 * @param userPK the primary key of the user 2572 */ 2573 public void removeUser(long pk, long userPK); 2574 2575 /** 2576 * Removes the association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2577 * 2578 * @param pk the primary key of the group 2579 * @param user the user 2580 */ 2581 public void removeUser(long pk, com.liferay.portal.model.User user); 2582 2583 /** 2584 * Removes the association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2585 * 2586 * @param pk the primary key of the group 2587 * @param userPKs the primary keys of the users 2588 */ 2589 public void removeUsers(long pk, long[] userPKs); 2590 2591 /** 2592 * Removes the association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2593 * 2594 * @param pk the primary key of the group 2595 * @param users the users 2596 */ 2597 public void removeUsers(long pk, 2598 java.util.List<com.liferay.portal.model.User> users); 2599 2600 /** 2601 * Sets the users associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2602 * 2603 * @param pk the primary key of the group 2604 * @param userPKs the primary keys of the users to be associated with the group 2605 */ 2606 public void setUsers(long pk, long[] userPKs); 2607 2608 /** 2609 * Sets the users associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2610 * 2611 * @param pk the primary key of the group 2612 * @param users the users to be associated with the group 2613 */ 2614 public void setUsers(long pk, 2615 java.util.List<com.liferay.portal.model.User> users); 2616 }