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