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.softwarecatalog.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.softwarecatalog.model.SCProductScreenshot; 020 021 /** 022 * The persistence interface for the s c product screenshot service. 023 * 024 * <p> 025 * Never modify or reference this interface directly. Always use {@link SCProductScreenshotUtil} to access the s c product screenshot 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 SCProductScreenshotPersistenceImpl 034 * @see SCProductScreenshotUtil 035 * @generated 036 */ 037 public interface SCProductScreenshotPersistence extends BasePersistence<SCProductScreenshot> { 038 /** 039 * Caches the s c product screenshot in the entity cache if it is enabled. 040 * 041 * @param scProductScreenshot the s c product screenshot to cache 042 */ 043 public void cacheResult( 044 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot); 045 046 /** 047 * Caches the s c product screenshots in the entity cache if it is enabled. 048 * 049 * @param scProductScreenshots the s c product screenshots to cache 050 */ 051 public void cacheResult( 052 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> scProductScreenshots); 053 054 /** 055 * Creates a new s c product screenshot with the primary key. Does not add the s c product screenshot to the database. 056 * 057 * @param productScreenshotId the primary key for the new s c product screenshot 058 * @return the new s c product screenshot 059 */ 060 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot create( 061 long productScreenshotId); 062 063 /** 064 * Removes the s c product screenshot with the primary key from the database. Also notifies the appropriate model listeners. 065 * 066 * @param productScreenshotId the primary key of the s c product screenshot to remove 067 * @return the s c product screenshot that was removed 068 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a s c product screenshot with the primary key could not be found 069 * @throws SystemException if a system exception occurred 070 */ 071 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove( 072 long productScreenshotId) 073 throws com.liferay.portal.kernel.exception.SystemException, 074 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 075 076 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl( 077 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot, 078 boolean merge) 079 throws com.liferay.portal.kernel.exception.SystemException; 080 081 /** 082 * Finds the s c product screenshot with the primary key or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException} if it could not be found. 083 * 084 * @param productScreenshotId the primary key of the s c product screenshot to find 085 * @return the s c product screenshot 086 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a s c product screenshot with the primary key could not be found 087 * @throws SystemException if a system exception occurred 088 */ 089 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey( 090 long productScreenshotId) 091 throws com.liferay.portal.kernel.exception.SystemException, 092 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 093 094 /** 095 * Finds the s c product screenshot with the primary key or returns <code>null</code> if it could not be found. 096 * 097 * @param productScreenshotId the primary key of the s c product screenshot to find 098 * @return the s c product screenshot, or <code>null</code> if a s c product screenshot with the primary key could not be found 099 * @throws SystemException if a system exception occurred 100 */ 101 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey( 102 long productScreenshotId) 103 throws com.liferay.portal.kernel.exception.SystemException; 104 105 /** 106 * Finds all the s c product screenshots where productEntryId = ?. 107 * 108 * @param productEntryId the product entry id to search with 109 * @return the matching s c product screenshots 110 * @throws SystemException if a system exception occurred 111 */ 112 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId( 113 long productEntryId) 114 throws com.liferay.portal.kernel.exception.SystemException; 115 116 /** 117 * Finds a range of all the s c product screenshots where productEntryId = ?. 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 productEntryId the product entry id to search with 124 * @param start the lower bound of the range of s c product screenshots to return 125 * @param end the upper bound of the range of s c product screenshots to return (not inclusive) 126 * @return the range of matching s c product screenshots 127 * @throws SystemException if a system exception occurred 128 */ 129 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId( 130 long productEntryId, int start, int end) 131 throws com.liferay.portal.kernel.exception.SystemException; 132 133 /** 134 * Finds an ordered range of all the s c product screenshots where productEntryId = ?. 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 productEntryId the product entry id to search with 141 * @param start the lower bound of the range of s c product screenshots to return 142 * @param end the upper bound of the range of s c product screenshots to return (not inclusive) 143 * @param orderByComparator the comparator to order the results by 144 * @return the ordered range of matching s c product screenshots 145 * @throws SystemException if a system exception occurred 146 */ 147 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId( 148 long productEntryId, 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 s c product screenshot in the ordered set where productEntryId = ?. 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 productEntryId the product entry id to search with 160 * @param orderByComparator the comparator to order the set by 161 * @return the first matching s c product screenshot 162 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found 163 * @throws SystemException if a system exception occurred 164 */ 165 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First( 166 long productEntryId, 167 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 168 throws com.liferay.portal.kernel.exception.SystemException, 169 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 170 171 /** 172 * Finds the last s c product screenshot in the ordered set where productEntryId = ?. 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 productEntryId the product entry id to search with 179 * @param orderByComparator the comparator to order the set by 180 * @return the last matching s c product screenshot 181 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found 182 * @throws SystemException if a system exception occurred 183 */ 184 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last( 185 long productEntryId, 186 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 187 throws com.liferay.portal.kernel.exception.SystemException, 188 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 189 190 /** 191 * Finds the s c product screenshots before and after the current s c product screenshot in the ordered set where productEntryId = ?. 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 productScreenshotId the primary key of the current s c product screenshot 198 * @param productEntryId the product entry id to search with 199 * @param orderByComparator the comparator to order the set by 200 * @return the previous, current, and next s c product screenshot 201 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a s c product screenshot with the primary key could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext( 205 long productScreenshotId, long productEntryId, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.kernel.exception.SystemException, 208 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 209 210 /** 211 * Finds the s c product screenshot where thumbnailId = ? or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException} if it could not be found. 212 * 213 * @param thumbnailId the thumbnail id to search with 214 * @return the matching s c product screenshot 215 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found 216 * @throws SystemException if a system exception occurred 217 */ 218 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId( 219 long thumbnailId) 220 throws com.liferay.portal.kernel.exception.SystemException, 221 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 222 223 /** 224 * Finds the s c product screenshot where thumbnailId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 225 * 226 * @param thumbnailId the thumbnail id to search with 227 * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 228 * @throws SystemException if a system exception occurred 229 */ 230 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId( 231 long thumbnailId) 232 throws com.liferay.portal.kernel.exception.SystemException; 233 234 /** 235 * Finds the s c product screenshot where thumbnailId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 236 * 237 * @param thumbnailId the thumbnail id to search with 238 * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 239 * @throws SystemException if a system exception occurred 240 */ 241 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId( 242 long thumbnailId, boolean retrieveFromCache) 243 throws com.liferay.portal.kernel.exception.SystemException; 244 245 /** 246 * Finds the s c product screenshot where fullImageId = ? or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException} if it could not be found. 247 * 248 * @param fullImageId the full image id to search with 249 * @return the matching s c product screenshot 250 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found 251 * @throws SystemException if a system exception occurred 252 */ 253 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId( 254 long fullImageId) 255 throws com.liferay.portal.kernel.exception.SystemException, 256 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 257 258 /** 259 * Finds the s c product screenshot where fullImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 260 * 261 * @param fullImageId the full image id to search with 262 * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 263 * @throws SystemException if a system exception occurred 264 */ 265 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId( 266 long fullImageId) 267 throws com.liferay.portal.kernel.exception.SystemException; 268 269 /** 270 * Finds the s c product screenshot where fullImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 271 * 272 * @param fullImageId the full image id to search with 273 * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 274 * @throws SystemException if a system exception occurred 275 */ 276 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId( 277 long fullImageId, boolean retrieveFromCache) 278 throws com.liferay.portal.kernel.exception.SystemException; 279 280 /** 281 * Finds the s c product screenshot where productEntryId = ? and priority = ? or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException} if it could not be found. 282 * 283 * @param productEntryId the product entry id to search with 284 * @param priority the priority to search with 285 * @return the matching s c product screenshot 286 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found 287 * @throws SystemException if a system exception occurred 288 */ 289 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P( 290 long productEntryId, int priority) 291 throws com.liferay.portal.kernel.exception.SystemException, 292 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 293 294 /** 295 * Finds the s c product screenshot where productEntryId = ? and priority = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 296 * 297 * @param productEntryId the product entry id to search with 298 * @param priority the priority to search with 299 * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 300 * @throws SystemException if a system exception occurred 301 */ 302 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P( 303 long productEntryId, int priority) 304 throws com.liferay.portal.kernel.exception.SystemException; 305 306 /** 307 * Finds the s c product screenshot where productEntryId = ? and priority = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 308 * 309 * @param productEntryId the product entry id to search with 310 * @param priority the priority to search with 311 * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 312 * @throws SystemException if a system exception occurred 313 */ 314 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P( 315 long productEntryId, int priority, boolean retrieveFromCache) 316 throws com.liferay.portal.kernel.exception.SystemException; 317 318 /** 319 * Finds all the s c product screenshots. 320 * 321 * @return the s c product screenshots 322 * @throws SystemException if a system exception occurred 323 */ 324 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll() 325 throws com.liferay.portal.kernel.exception.SystemException; 326 327 /** 328 * Finds a range of all the s c product screenshots. 329 * 330 * <p> 331 * 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. 332 * </p> 333 * 334 * @param start the lower bound of the range of s c product screenshots to return 335 * @param end the upper bound of the range of s c product screenshots to return (not inclusive) 336 * @return the range of s c product screenshots 337 * @throws SystemException if a system exception occurred 338 */ 339 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll( 340 int start, int end) 341 throws com.liferay.portal.kernel.exception.SystemException; 342 343 /** 344 * Finds an ordered range of all the s c product screenshots. 345 * 346 * <p> 347 * 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. 348 * </p> 349 * 350 * @param start the lower bound of the range of s c product screenshots to return 351 * @param end the upper bound of the range of s c product screenshots to return (not inclusive) 352 * @param orderByComparator the comparator to order the results by 353 * @return the ordered range of s c product screenshots 354 * @throws SystemException if a system exception occurred 355 */ 356 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll( 357 int start, int end, 358 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 359 throws com.liferay.portal.kernel.exception.SystemException; 360 361 /** 362 * Removes all the s c product screenshots where productEntryId = ? from the database. 363 * 364 * @param productEntryId the product entry id to search with 365 * @throws SystemException if a system exception occurred 366 */ 367 public void removeByProductEntryId(long productEntryId) 368 throws com.liferay.portal.kernel.exception.SystemException; 369 370 /** 371 * Removes the s c product screenshot where thumbnailId = ? from the database. 372 * 373 * @param thumbnailId the thumbnail id to search with 374 * @throws SystemException if a system exception occurred 375 */ 376 public void removeByThumbnailId(long thumbnailId) 377 throws com.liferay.portal.kernel.exception.SystemException, 378 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 379 380 /** 381 * Removes the s c product screenshot where fullImageId = ? from the database. 382 * 383 * @param fullImageId the full image id to search with 384 * @throws SystemException if a system exception occurred 385 */ 386 public void removeByFullImageId(long fullImageId) 387 throws com.liferay.portal.kernel.exception.SystemException, 388 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 389 390 /** 391 * Removes the s c product screenshot where productEntryId = ? and priority = ? from the database. 392 * 393 * @param productEntryId the product entry id to search with 394 * @param priority the priority to search with 395 * @throws SystemException if a system exception occurred 396 */ 397 public void removeByP_P(long productEntryId, int priority) 398 throws com.liferay.portal.kernel.exception.SystemException, 399 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException; 400 401 /** 402 * Removes all the s c product screenshots from the database. 403 * 404 * @throws SystemException if a system exception occurred 405 */ 406 public void removeAll() 407 throws com.liferay.portal.kernel.exception.SystemException; 408 409 /** 410 * Counts all the s c product screenshots where productEntryId = ?. 411 * 412 * @param productEntryId the product entry id to search with 413 * @return the number of matching s c product screenshots 414 * @throws SystemException if a system exception occurred 415 */ 416 public int countByProductEntryId(long productEntryId) 417 throws com.liferay.portal.kernel.exception.SystemException; 418 419 /** 420 * Counts all the s c product screenshots where thumbnailId = ?. 421 * 422 * @param thumbnailId the thumbnail id to search with 423 * @return the number of matching s c product screenshots 424 * @throws SystemException if a system exception occurred 425 */ 426 public int countByThumbnailId(long thumbnailId) 427 throws com.liferay.portal.kernel.exception.SystemException; 428 429 /** 430 * Counts all the s c product screenshots where fullImageId = ?. 431 * 432 * @param fullImageId the full image id to search with 433 * @return the number of matching s c product screenshots 434 * @throws SystemException if a system exception occurred 435 */ 436 public int countByFullImageId(long fullImageId) 437 throws com.liferay.portal.kernel.exception.SystemException; 438 439 /** 440 * Counts all the s c product screenshots where productEntryId = ? and priority = ?. 441 * 442 * @param productEntryId the product entry id to search with 443 * @param priority the priority to search with 444 * @return the number of matching s c product screenshots 445 * @throws SystemException if a system exception occurred 446 */ 447 public int countByP_P(long productEntryId, int priority) 448 throws com.liferay.portal.kernel.exception.SystemException; 449 450 /** 451 * Counts all the s c product screenshots. 452 * 453 * @return the number of s c product screenshots 454 * @throws SystemException if a system exception occurred 455 */ 456 public int countAll() 457 throws com.liferay.portal.kernel.exception.SystemException; 458 }