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