001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.imagegallery.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.imagegallery.model.IGFolder; 020 021 /** 022 * The persistence interface for the i g folder service. 023 * 024 * <p> 025 * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface. 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see IGFolderPersistenceImpl 030 * @see IGFolderUtil 031 * @generated 032 */ 033 public interface IGFolderPersistence extends BasePersistence<IGFolder> { 034 /** 035 * Caches the i g folder in the entity cache if it is enabled. 036 * 037 * @param igFolder the i g folder to cache 038 */ 039 public void cacheResult( 040 com.liferay.portlet.imagegallery.model.IGFolder igFolder); 041 042 /** 043 * Caches the i g folders in the entity cache if it is enabled. 044 * 045 * @param igFolders the i g folders to cache 046 */ 047 public void cacheResult( 048 java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> igFolders); 049 050 /** 051 * Creates a new i g folder with the primary key. 052 * 053 * @param folderId the primary key for the new i g folder 054 * @return the new i g folder 055 */ 056 public com.liferay.portlet.imagegallery.model.IGFolder create(long folderId); 057 058 /** 059 * Removes the i g folder with the primary key from the database. Also notifies the appropriate model listeners. 060 * 061 * @param folderId the primary key of the i g folder to remove 062 * @return the i g folder that was removed 063 * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a i g folder with the primary key could not be found 064 * @throws SystemException if a system exception occurred 065 */ 066 public com.liferay.portlet.imagegallery.model.IGFolder remove(long folderId) 067 throws com.liferay.portal.kernel.exception.SystemException, 068 com.liferay.portlet.imagegallery.NoSuchFolderException; 069 070 public com.liferay.portlet.imagegallery.model.IGFolder updateImpl( 071 com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge) 072 throws com.liferay.portal.kernel.exception.SystemException; 073 074 /** 075 * Finds the i g folder with the primary key or throws a {@link com.liferay.portlet.imagegallery.NoSuchFolderException} if it could not be found. 076 * 077 * @param folderId the primary key of the i g folder to find 078 * @return the i g folder 079 * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a i g folder with the primary key could not be found 080 * @throws SystemException if a system exception occurred 081 */ 082 public com.liferay.portlet.imagegallery.model.IGFolder findByPrimaryKey( 083 long folderId) 084 throws com.liferay.portal.kernel.exception.SystemException, 085 com.liferay.portlet.imagegallery.NoSuchFolderException; 086 087 /** 088 * Finds the i g folder with the primary key or returns <code>null</code> if it could not be found. 089 * 090 * @param folderId the primary key of the i g folder to find 091 * @return the i g folder, or <code>null</code> if a i g folder with the primary key could not be found 092 * @throws SystemException if a system exception occurred 093 */ 094 public com.liferay.portlet.imagegallery.model.IGFolder fetchByPrimaryKey( 095 long folderId) 096 throws com.liferay.portal.kernel.exception.SystemException; 097 098 /** 099 * Finds all the i g folders where uuid = ?. 100 * 101 * @param uuid the uuid to search with 102 * @return the matching i g folders 103 * @throws SystemException if a system exception occurred 104 */ 105 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid( 106 java.lang.String uuid) 107 throws com.liferay.portal.kernel.exception.SystemException; 108 109 /** 110 * Finds a range of all the i g folders where uuid = ?. 111 * 112 * <p> 113 * 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. 114 * </p> 115 * 116 * @param uuid the uuid to search with 117 * @param start the lower bound of the range of i g folders to return 118 * @param end the upper bound of the range of i g folders to return (not inclusive) 119 * @return the range of matching i g folders 120 * @throws SystemException if a system exception occurred 121 */ 122 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid( 123 java.lang.String uuid, int start, int end) 124 throws com.liferay.portal.kernel.exception.SystemException; 125 126 /** 127 * Finds an ordered range of all the i g folders where uuid = ?. 128 * 129 * <p> 130 * 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. 131 * </p> 132 * 133 * @param uuid the uuid to search with 134 * @param start the lower bound of the range of i g folders to return 135 * @param end the upper bound of the range of i g folders to return (not inclusive) 136 * @param orderByComparator the comparator to order the results by 137 * @return the ordered range of matching i g folders 138 * @throws SystemException if a system exception occurred 139 */ 140 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid( 141 java.lang.String uuid, int start, int end, 142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 143 throws com.liferay.portal.kernel.exception.SystemException; 144 145 /** 146 * Finds the first i g folder in the ordered set where uuid = ?. 147 * 148 * <p> 149 * 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. 150 * </p> 151 * 152 * @param uuid the uuid to search with 153 * @param orderByComparator the comparator to order the set by 154 * @return the first matching i g folder 155 * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found 156 * @throws SystemException if a system exception occurred 157 */ 158 public com.liferay.portlet.imagegallery.model.IGFolder findByUuid_First( 159 java.lang.String uuid, 160 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 161 throws com.liferay.portal.kernel.exception.SystemException, 162 com.liferay.portlet.imagegallery.NoSuchFolderException; 163 164 /** 165 * Finds the last i g folder in the ordered set where uuid = ?. 166 * 167 * <p> 168 * 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. 169 * </p> 170 * 171 * @param uuid the uuid to search with 172 * @param orderByComparator the comparator to order the set by 173 * @return the last matching i g folder 174 * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found 175 * @throws SystemException if a system exception occurred 176 */ 177 public com.liferay.portlet.imagegallery.model.IGFolder findByUuid_Last( 178 java.lang.String uuid, 179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 180 throws com.liferay.portal.kernel.exception.SystemException, 181 com.liferay.portlet.imagegallery.NoSuchFolderException; 182 183 /** 184 * Finds the i g folders before and after the current i g folder in the ordered set where uuid = ?. 185 * 186 * <p> 187 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 188 * </p> 189 * 190 * @param folderId the primary key of the current i g folder 191 * @param uuid the uuid to search with 192 * @param orderByComparator the comparator to order the set by 193 * @return the previous, current, and next i g folder 194 * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a i g folder with the primary key could not be found 195 * @throws SystemException if a system exception occurred 196 */ 197 public com.liferay.portlet.imagegallery.model.IGFolder[] findByUuid_PrevAndNext( 198 long folderId, java.lang.String uuid, 199 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 200 throws com.liferay.portal.kernel.exception.SystemException, 201 com.liferay.portlet.imagegallery.NoSuchFolderException; 202 203 /** 204 * Finds the i g folder where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.imagegallery.NoSuchFolderException} if it could not be found. 205 * 206 * @param uuid the uuid to search with 207 * @param groupId the group id to search with 208 * @return the matching i g folder 209 * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found 210 * @throws SystemException if a system exception occurred 211 */ 212 public com.liferay.portlet.imagegallery.model.IGFolder findByUUID_G( 213 java.lang.String uuid, long groupId) 214 throws com.liferay.portal.kernel.exception.SystemException, 215 com.liferay.portlet.imagegallery.NoSuchFolderException; 216 217 /** 218 * Finds the i g folder where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 219 * 220 * @param uuid the uuid to search with 221 * @param groupId the group id to search with 222 * @return the matching i g folder, or <code>null</code> if a matching i g folder could not be found 223 * @throws SystemException if a system exception occurred 224 */ 225 public com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G( 226 java.lang.String uuid, long groupId) 227 throws com.liferay.portal.kernel.exception.SystemException; 228 229 /** 230 * Finds the i g folder where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 231 * 232 * @param uuid the uuid to search with 233 * @param groupId the group id to search with 234 * @return the matching i g folder, or <code>null</code> if a matching i g folder could not be found 235 * @throws SystemException if a system exception occurred 236 */ 237 public com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G( 238 java.lang.String uuid, long groupId, boolean retrieveFromCache) 239 throws com.liferay.portal.kernel.exception.SystemException; 240 241 /** 242 * Finds all the i g folders where groupId = ?. 243 * 244 * @param groupId the group id to search with 245 * @return the matching i g folders 246 * @throws SystemException if a system exception occurred 247 */ 248 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId( 249 long groupId) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * Finds a range of all the i g folders where groupId = ?. 254 * 255 * <p> 256 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 257 * </p> 258 * 259 * @param groupId the group id to search with 260 * @param start the lower bound of the range of i g folders to return 261 * @param end the upper bound of the range of i g folders to return (not inclusive) 262 * @return the range of matching i g folders 263 * @throws SystemException if a system exception occurred 264 */ 265 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId( 266 long groupId, int start, int end) 267 throws com.liferay.portal.kernel.exception.SystemException; 268 269 /** 270 * Finds an ordered range of all the i g folders where groupId = ?. 271 * 272 * <p> 273 * 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. 274 * </p> 275 * 276 * @param groupId the group id to search with 277 * @param start the lower bound of the range of i g folders to return 278 * @param end the upper bound of the range of i g folders to return (not inclusive) 279 * @param orderByComparator the comparator to order the results by 280 * @return the ordered range of matching i g folders 281 * @throws SystemException if a system exception occurred 282 */ 283 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId( 284 long groupId, int start, int end, 285 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 286 throws com.liferay.portal.kernel.exception.SystemException; 287 288 /** 289 * Finds the first i g folder in the ordered set where groupId = ?. 290 * 291 * <p> 292 * 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. 293 * </p> 294 * 295 * @param groupId the group id to search with 296 * @param orderByComparator the comparator to order the set by 297 * @return the first matching i g folder 298 * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found 299 * @throws SystemException if a system exception occurred 300 */ 301 public com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_First( 302 long groupId, 303 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 304 throws com.liferay.portal.kernel.exception.SystemException, 305 com.liferay.portlet.imagegallery.NoSuchFolderException; 306 307 /** 308 * Finds the last i g folder in the ordered set where groupId = ?. 309 * 310 * <p> 311 * 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. 312 * </p> 313 * 314 * @param groupId the group id to search with 315 * @param orderByComparator the comparator to order the set by 316 * @return the last matching i g folder 317 * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found 318 * @throws SystemException if a system exception occurred 319 */ 320 public com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_Last( 321 long groupId, 322 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 323 throws com.liferay.portal.kernel.exception.SystemException, 324 com.liferay.portlet.imagegallery.NoSuchFolderException; 325 326 /** 327 * Finds the i g folders before and after the current i g folder in the ordered set where groupId = ?. 328 * 329 * <p> 330 * 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. 331 * </p> 332 * 333 * @param folderId the primary key of the current i g folder 334 * @param groupId the group id to search with 335 * @param orderByComparator the comparator to order the set by 336 * @return the previous, current, and next i g folder 337 * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a i g folder with the primary key could not be found 338 * @throws SystemException if a system exception occurred 339 */ 340 public com.liferay.portlet.imagegallery.model.IGFolder[] findByGroupId_PrevAndNext( 341 long folderId, long groupId, 342 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 343 throws com.liferay.portal.kernel.exception.SystemException, 344 com.liferay.portlet.imagegallery.NoSuchFolderException; 345 346 /** 347 * Filters by the user's permissions and finds all the i g folders where groupId = ?. 348 * 349 * @param groupId the group id to search with 350 * @return the matching i g folders that the user has permission to view 351 * @throws SystemException if a system exception occurred 352 */ 353 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByGroupId( 354 long groupId) 355 throws com.liferay.portal.kernel.exception.SystemException; 356 357 /** 358 * Filters by the user's permissions and finds a range of all the i g folders where groupId = ?. 359 * 360 * <p> 361 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 362 * </p> 363 * 364 * @param groupId the group id to search with 365 * @param start the lower bound of the range of i g folders to return 366 * @param end the upper bound of the range of i g folders to return (not inclusive) 367 * @return the range of matching i g folders that the user has permission to view 368 * @throws SystemException if a system exception occurred 369 */ 370 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByGroupId( 371 long groupId, int start, int end) 372 throws com.liferay.portal.kernel.exception.SystemException; 373 374 /** 375 * Filters by the user's permissions and finds an ordered range of all the i g folders where groupId = ?. 376 * 377 * <p> 378 * 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. 379 * </p> 380 * 381 * @param groupId the group id to search with 382 * @param start the lower bound of the range of i g folders to return 383 * @param end the upper bound of the range of i g folders to return (not inclusive) 384 * @param orderByComparator the comparator to order the results by 385 * @return the ordered range of matching i g folders that the user has permission to view 386 * @throws SystemException if a system exception occurred 387 */ 388 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByGroupId( 389 long groupId, int start, int end, 390 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 391 throws com.liferay.portal.kernel.exception.SystemException; 392 393 /** 394 * Finds all the i g folders where companyId = ?. 395 * 396 * @param companyId the company id to search with 397 * @return the matching i g folders 398 * @throws SystemException if a system exception occurred 399 */ 400 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId( 401 long companyId) 402 throws com.liferay.portal.kernel.exception.SystemException; 403 404 /** 405 * Finds a range of all the i g folders where companyId = ?. 406 * 407 * <p> 408 * 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. 409 * </p> 410 * 411 * @param companyId the company id to search with 412 * @param start the lower bound of the range of i g folders to return 413 * @param end the upper bound of the range of i g folders to return (not inclusive) 414 * @return the range of matching i g folders 415 * @throws SystemException if a system exception occurred 416 */ 417 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId( 418 long companyId, int start, int end) 419 throws com.liferay.portal.kernel.exception.SystemException; 420 421 /** 422 * Finds an ordered range of all the i g folders where companyId = ?. 423 * 424 * <p> 425 * 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. 426 * </p> 427 * 428 * @param companyId the company id to search with 429 * @param start the lower bound of the range of i g folders to return 430 * @param end the upper bound of the range of i g folders to return (not inclusive) 431 * @param orderByComparator the comparator to order the results by 432 * @return the ordered range of matching i g folders 433 * @throws SystemException if a system exception occurred 434 */ 435 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId( 436 long companyId, int start, int end, 437 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 438 throws com.liferay.portal.kernel.exception.SystemException; 439 440 /** 441 * Finds the first i g folder in the ordered set where companyId = ?. 442 * 443 * <p> 444 * 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. 445 * </p> 446 * 447 * @param companyId the company id to search with 448 * @param orderByComparator the comparator to order the set by 449 * @return the first matching i g folder 450 * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found 451 * @throws SystemException if a system exception occurred 452 */ 453 public com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_First( 454 long companyId, 455 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 456 throws com.liferay.portal.kernel.exception.SystemException, 457 com.liferay.portlet.imagegallery.NoSuchFolderException; 458 459 /** 460 * Finds the last i g folder in the ordered set where companyId = ?. 461 * 462 * <p> 463 * 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. 464 * </p> 465 * 466 * @param companyId the company id to search with 467 * @param orderByComparator the comparator to order the set by 468 * @return the last matching i g folder 469 * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found 470 * @throws SystemException if a system exception occurred 471 */ 472 public com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_Last( 473 long companyId, 474 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 475 throws com.liferay.portal.kernel.exception.SystemException, 476 com.liferay.portlet.imagegallery.NoSuchFolderException; 477 478 /** 479 * Finds the i g folders before and after the current i g folder in the ordered set where companyId = ?. 480 * 481 * <p> 482 * 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. 483 * </p> 484 * 485 * @param folderId the primary key of the current i g folder 486 * @param companyId the company id to search with 487 * @param orderByComparator the comparator to order the set by 488 * @return the previous, current, and next i g folder 489 * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a i g folder with the primary key could not be found 490 * @throws SystemException if a system exception occurred 491 */ 492 public com.liferay.portlet.imagegallery.model.IGFolder[] findByCompanyId_PrevAndNext( 493 long folderId, long companyId, 494 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 495 throws com.liferay.portal.kernel.exception.SystemException, 496 com.liferay.portlet.imagegallery.NoSuchFolderException; 497 498 /** 499 * Finds all the i g folders where groupId = ? and parentFolderId = ?. 500 * 501 * @param groupId the group id to search with 502 * @param parentFolderId the parent folder id to search with 503 * @return the matching i g folders 504 * @throws SystemException if a system exception occurred 505 */ 506 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P( 507 long groupId, long parentFolderId) 508 throws com.liferay.portal.kernel.exception.SystemException; 509 510 /** 511 * Finds a range of all the i g folders where groupId = ? and parentFolderId = ?. 512 * 513 * <p> 514 * 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. 515 * </p> 516 * 517 * @param groupId the group id to search with 518 * @param parentFolderId the parent folder id to search with 519 * @param start the lower bound of the range of i g folders to return 520 * @param end the upper bound of the range of i g folders to return (not inclusive) 521 * @return the range of matching i g folders 522 * @throws SystemException if a system exception occurred 523 */ 524 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P( 525 long groupId, long parentFolderId, int start, int end) 526 throws com.liferay.portal.kernel.exception.SystemException; 527 528 /** 529 * Finds an ordered range of all the i g folders where groupId = ? and parentFolderId = ?. 530 * 531 * <p> 532 * 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. 533 * </p> 534 * 535 * @param groupId the group id to search with 536 * @param parentFolderId the parent folder id to search with 537 * @param start the lower bound of the range of i g folders to return 538 * @param end the upper bound of the range of i g folders to return (not inclusive) 539 * @param orderByComparator the comparator to order the results by 540 * @return the ordered range of matching i g folders 541 * @throws SystemException if a system exception occurred 542 */ 543 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P( 544 long groupId, long parentFolderId, int start, int end, 545 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 546 throws com.liferay.portal.kernel.exception.SystemException; 547 548 /** 549 * Finds the first i g folder in the ordered set where groupId = ? and parentFolderId = ?. 550 * 551 * <p> 552 * 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. 553 * </p> 554 * 555 * @param groupId the group id to search with 556 * @param parentFolderId the parent folder id to search with 557 * @param orderByComparator the comparator to order the set by 558 * @return the first matching i g folder 559 * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found 560 * @throws SystemException if a system exception occurred 561 */ 562 public com.liferay.portlet.imagegallery.model.IGFolder findByG_P_First( 563 long groupId, long parentFolderId, 564 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 565 throws com.liferay.portal.kernel.exception.SystemException, 566 com.liferay.portlet.imagegallery.NoSuchFolderException; 567 568 /** 569 * Finds the last i g folder in the ordered set where groupId = ? and parentFolderId = ?. 570 * 571 * <p> 572 * 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. 573 * </p> 574 * 575 * @param groupId the group id to search with 576 * @param parentFolderId the parent folder id to search with 577 * @param orderByComparator the comparator to order the set by 578 * @return the last matching i g folder 579 * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found 580 * @throws SystemException if a system exception occurred 581 */ 582 public com.liferay.portlet.imagegallery.model.IGFolder findByG_P_Last( 583 long groupId, long parentFolderId, 584 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 585 throws com.liferay.portal.kernel.exception.SystemException, 586 com.liferay.portlet.imagegallery.NoSuchFolderException; 587 588 /** 589 * Finds the i g folders before and after the current i g folder in the ordered set where groupId = ? and parentFolderId = ?. 590 * 591 * <p> 592 * 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. 593 * </p> 594 * 595 * @param folderId the primary key of the current i g folder 596 * @param groupId the group id to search with 597 * @param parentFolderId the parent folder id to search with 598 * @param orderByComparator the comparator to order the set by 599 * @return the previous, current, and next i g folder 600 * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a i g folder with the primary key could not be found 601 * @throws SystemException if a system exception occurred 602 */ 603 public com.liferay.portlet.imagegallery.model.IGFolder[] findByG_P_PrevAndNext( 604 long folderId, long groupId, long parentFolderId, 605 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 606 throws com.liferay.portal.kernel.exception.SystemException, 607 com.liferay.portlet.imagegallery.NoSuchFolderException; 608 609 /** 610 * Filters by the user's permissions and finds all the i g folders where groupId = ? and parentFolderId = ?. 611 * 612 * @param groupId the group id to search with 613 * @param parentFolderId the parent folder id to search with 614 * @return the matching i g folders that the user has permission to view 615 * @throws SystemException if a system exception occurred 616 */ 617 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByG_P( 618 long groupId, long parentFolderId) 619 throws com.liferay.portal.kernel.exception.SystemException; 620 621 /** 622 * Filters by the user's permissions and finds a range of all the i g folders where groupId = ? and parentFolderId = ?. 623 * 624 * <p> 625 * 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. 626 * </p> 627 * 628 * @param groupId the group id to search with 629 * @param parentFolderId the parent folder id to search with 630 * @param start the lower bound of the range of i g folders to return 631 * @param end the upper bound of the range of i g folders to return (not inclusive) 632 * @return the range of matching i g folders that the user has permission to view 633 * @throws SystemException if a system exception occurred 634 */ 635 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByG_P( 636 long groupId, long parentFolderId, int start, int end) 637 throws com.liferay.portal.kernel.exception.SystemException; 638 639 /** 640 * Filters by the user's permissions and finds an ordered range of all the i g folders where groupId = ? and parentFolderId = ?. 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. 644 * </p> 645 * 646 * @param groupId the group id to search with 647 * @param parentFolderId the parent folder id to search with 648 * @param start the lower bound of the range of i g folders to return 649 * @param end the upper bound of the range of i g folders to return (not inclusive) 650 * @param orderByComparator the comparator to order the results by 651 * @return the ordered range of matching i g folders that the user has permission to view 652 * @throws SystemException if a system exception occurred 653 */ 654 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByG_P( 655 long groupId, long parentFolderId, int start, int end, 656 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 657 throws com.liferay.portal.kernel.exception.SystemException; 658 659 /** 660 * Finds the i g folder where groupId = ? and parentFolderId = ? and name = ? or throws a {@link com.liferay.portlet.imagegallery.NoSuchFolderException} if it could not be found. 661 * 662 * @param groupId the group id to search with 663 * @param parentFolderId the parent folder id to search with 664 * @param name the name to search with 665 * @return the matching i g folder 666 * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found 667 * @throws SystemException if a system exception occurred 668 */ 669 public com.liferay.portlet.imagegallery.model.IGFolder findByG_P_N( 670 long groupId, long parentFolderId, java.lang.String name) 671 throws com.liferay.portal.kernel.exception.SystemException, 672 com.liferay.portlet.imagegallery.NoSuchFolderException; 673 674 /** 675 * Finds the i g folder where groupId = ? and parentFolderId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 676 * 677 * @param groupId the group id to search with 678 * @param parentFolderId the parent folder id to search with 679 * @param name the name to search with 680 * @return the matching i g folder, or <code>null</code> if a matching i g folder could not be found 681 * @throws SystemException if a system exception occurred 682 */ 683 public com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N( 684 long groupId, long parentFolderId, java.lang.String name) 685 throws com.liferay.portal.kernel.exception.SystemException; 686 687 /** 688 * Finds the i g folder where groupId = ? and parentFolderId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 689 * 690 * @param groupId the group id to search with 691 * @param parentFolderId the parent folder id to search with 692 * @param name the name to search with 693 * @return the matching i g folder, or <code>null</code> if a matching i g folder could not be found 694 * @throws SystemException if a system exception occurred 695 */ 696 public com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N( 697 long groupId, long parentFolderId, java.lang.String name, 698 boolean retrieveFromCache) 699 throws com.liferay.portal.kernel.exception.SystemException; 700 701 /** 702 * Finds all the i g folders. 703 * 704 * @return the i g folders 705 * @throws SystemException if a system exception occurred 706 */ 707 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll() 708 throws com.liferay.portal.kernel.exception.SystemException; 709 710 /** 711 * Finds a range of all the i g folders. 712 * 713 * <p> 714 * 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. 715 * </p> 716 * 717 * @param start the lower bound of the range of i g folders to return 718 * @param end the upper bound of the range of i g folders to return (not inclusive) 719 * @return the range of i g folders 720 * @throws SystemException if a system exception occurred 721 */ 722 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll( 723 int start, int end) 724 throws com.liferay.portal.kernel.exception.SystemException; 725 726 /** 727 * Finds an ordered range of all the i g folders. 728 * 729 * <p> 730 * 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. 731 * </p> 732 * 733 * @param start the lower bound of the range of i g folders to return 734 * @param end the upper bound of the range of i g folders to return (not inclusive) 735 * @param orderByComparator the comparator to order the results by 736 * @return the ordered range of i g folders 737 * @throws SystemException if a system exception occurred 738 */ 739 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll( 740 int start, int end, 741 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 742 throws com.liferay.portal.kernel.exception.SystemException; 743 744 /** 745 * Removes all the i g folders where uuid = ? from the database. 746 * 747 * @param uuid the uuid to search with 748 * @throws SystemException if a system exception occurred 749 */ 750 public void removeByUuid(java.lang.String uuid) 751 throws com.liferay.portal.kernel.exception.SystemException; 752 753 /** 754 * Removes the i g folder where uuid = ? and groupId = ? from the database. 755 * 756 * @param uuid the uuid to search with 757 * @param groupId the group id to search with 758 * @throws SystemException if a system exception occurred 759 */ 760 public void removeByUUID_G(java.lang.String uuid, long groupId) 761 throws com.liferay.portal.kernel.exception.SystemException, 762 com.liferay.portlet.imagegallery.NoSuchFolderException; 763 764 /** 765 * Removes all the i g folders where groupId = ? from the database. 766 * 767 * @param groupId the group id to search with 768 * @throws SystemException if a system exception occurred 769 */ 770 public void removeByGroupId(long groupId) 771 throws com.liferay.portal.kernel.exception.SystemException; 772 773 /** 774 * Removes all the i g folders where companyId = ? from the database. 775 * 776 * @param companyId the company id to search with 777 * @throws SystemException if a system exception occurred 778 */ 779 public void removeByCompanyId(long companyId) 780 throws com.liferay.portal.kernel.exception.SystemException; 781 782 /** 783 * Removes all the i g folders where groupId = ? and parentFolderId = ? from the database. 784 * 785 * @param groupId the group id to search with 786 * @param parentFolderId the parent folder id to search with 787 * @throws SystemException if a system exception occurred 788 */ 789 public void removeByG_P(long groupId, long parentFolderId) 790 throws com.liferay.portal.kernel.exception.SystemException; 791 792 /** 793 * Removes the i g folder where groupId = ? and parentFolderId = ? and name = ? from the database. 794 * 795 * @param groupId the group id to search with 796 * @param parentFolderId the parent folder id to search with 797 * @param name the name to search with 798 * @throws SystemException if a system exception occurred 799 */ 800 public void removeByG_P_N(long groupId, long parentFolderId, 801 java.lang.String name) 802 throws com.liferay.portal.kernel.exception.SystemException, 803 com.liferay.portlet.imagegallery.NoSuchFolderException; 804 805 /** 806 * Removes all the i g folders from the database. 807 * 808 * @throws SystemException if a system exception occurred 809 */ 810 public void removeAll() 811 throws com.liferay.portal.kernel.exception.SystemException; 812 813 /** 814 * Counts all the i g folders where uuid = ?. 815 * 816 * @param uuid the uuid to search with 817 * @return the number of matching i g folders 818 * @throws SystemException if a system exception occurred 819 */ 820 public int countByUuid(java.lang.String uuid) 821 throws com.liferay.portal.kernel.exception.SystemException; 822 823 /** 824 * Counts all the i g folders where uuid = ? and groupId = ?. 825 * 826 * @param uuid the uuid to search with 827 * @param groupId the group id to search with 828 * @return the number of matching i g folders 829 * @throws SystemException if a system exception occurred 830 */ 831 public int countByUUID_G(java.lang.String uuid, long groupId) 832 throws com.liferay.portal.kernel.exception.SystemException; 833 834 /** 835 * Counts all the i g folders where groupId = ?. 836 * 837 * @param groupId the group id to search with 838 * @return the number of matching i g folders 839 * @throws SystemException if a system exception occurred 840 */ 841 public int countByGroupId(long groupId) 842 throws com.liferay.portal.kernel.exception.SystemException; 843 844 /** 845 * Filters by the user's permissions and counts all the i g folders where groupId = ?. 846 * 847 * @param groupId the group id to search with 848 * @return the number of matching i g folders that the user has permission to view 849 * @throws SystemException if a system exception occurred 850 */ 851 public int filterCountByGroupId(long groupId) 852 throws com.liferay.portal.kernel.exception.SystemException; 853 854 /** 855 * Counts all the i g folders where companyId = ?. 856 * 857 * @param companyId the company id to search with 858 * @return the number of matching i g folders 859 * @throws SystemException if a system exception occurred 860 */ 861 public int countByCompanyId(long companyId) 862 throws com.liferay.portal.kernel.exception.SystemException; 863 864 /** 865 * Counts all the i g folders where groupId = ? and parentFolderId = ?. 866 * 867 * @param groupId the group id to search with 868 * @param parentFolderId the parent folder id to search with 869 * @return the number of matching i g folders 870 * @throws SystemException if a system exception occurred 871 */ 872 public int countByG_P(long groupId, long parentFolderId) 873 throws com.liferay.portal.kernel.exception.SystemException; 874 875 /** 876 * Filters by the user's permissions and counts all the i g folders where groupId = ? and parentFolderId = ?. 877 * 878 * @param groupId the group id to search with 879 * @param parentFolderId the parent folder id to search with 880 * @return the number of matching i g folders that the user has permission to view 881 * @throws SystemException if a system exception occurred 882 */ 883 public int filterCountByG_P(long groupId, long parentFolderId) 884 throws com.liferay.portal.kernel.exception.SystemException; 885 886 /** 887 * Counts all the i g folders where groupId = ? and parentFolderId = ? and name = ?. 888 * 889 * @param groupId the group id to search with 890 * @param parentFolderId the parent folder id to search with 891 * @param name the name to search with 892 * @return the number of matching i g folders 893 * @throws SystemException if a system exception occurred 894 */ 895 public int countByG_P_N(long groupId, long parentFolderId, 896 java.lang.String name) 897 throws com.liferay.portal.kernel.exception.SystemException; 898 899 /** 900 * Filters by the user's permissions and counts all the i g folders where groupId = ? and parentFolderId = ? and name = ?. 901 * 902 * @param groupId the group id to search with 903 * @param parentFolderId the parent folder id to search with 904 * @param name the name to search with 905 * @return the number of matching i g folders that the user has permission to view 906 * @throws SystemException if a system exception occurred 907 */ 908 public int filterCountByG_P_N(long groupId, long parentFolderId, 909 java.lang.String name) 910 throws com.liferay.portal.kernel.exception.SystemException; 911 912 /** 913 * Counts all the i g folders. 914 * 915 * @return the number of i g folders 916 * @throws SystemException if a system exception occurred 917 */ 918 public int countAll() 919 throws com.liferay.portal.kernel.exception.SystemException; 920 }