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