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