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.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.softwarecatalog.model.SCProductScreenshot; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the s c product screenshot service. This utility wraps {@link SCProductScreenshotPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see SCProductScreenshotPersistence 037 * @see SCProductScreenshotPersistenceImpl 038 * @generated 039 */ 040 public class SCProductScreenshotUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(SCProductScreenshot scProductScreenshot) { 058 getPersistence().clearCache(scProductScreenshot); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<SCProductScreenshot> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<SCProductScreenshot> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<SCProductScreenshot> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 099 */ 100 public static SCProductScreenshot update( 101 SCProductScreenshot scProductScreenshot) throws SystemException { 102 return getPersistence().update(scProductScreenshot); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static SCProductScreenshot update( 109 SCProductScreenshot scProductScreenshot, ServiceContext serviceContext) 110 throws SystemException { 111 return getPersistence().update(scProductScreenshot, serviceContext); 112 } 113 114 /** 115 * Caches the s c product screenshot in the entity cache if it is enabled. 116 * 117 * @param scProductScreenshot the s c product screenshot 118 */ 119 public static void cacheResult( 120 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot) { 121 getPersistence().cacheResult(scProductScreenshot); 122 } 123 124 /** 125 * Caches the s c product screenshots in the entity cache if it is enabled. 126 * 127 * @param scProductScreenshots the s c product screenshots 128 */ 129 public static void cacheResult( 130 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> scProductScreenshots) { 131 getPersistence().cacheResult(scProductScreenshots); 132 } 133 134 /** 135 * Creates a new s c product screenshot with the primary key. Does not add the s c product screenshot to the database. 136 * 137 * @param productScreenshotId the primary key for the new s c product screenshot 138 * @return the new s c product screenshot 139 */ 140 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot create( 141 long productScreenshotId) { 142 return getPersistence().create(productScreenshotId); 143 } 144 145 /** 146 * Removes the s c product screenshot with the primary key from the database. Also notifies the appropriate model listeners. 147 * 148 * @param productScreenshotId the primary key of the s c product screenshot 149 * @return the s c product screenshot that was removed 150 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a s c product screenshot with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove( 154 long productScreenshotId) 155 throws com.liferay.portal.kernel.exception.SystemException, 156 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException { 157 return getPersistence().remove(productScreenshotId); 158 } 159 160 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl( 161 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().updateImpl(scProductScreenshot); 164 } 165 166 /** 167 * 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. 168 * 169 * @param productScreenshotId the primary key of the s c product screenshot 170 * @return the s c product screenshot 171 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a s c product screenshot with the primary key could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey( 175 long productScreenshotId) 176 throws com.liferay.portal.kernel.exception.SystemException, 177 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException { 178 return getPersistence().findByPrimaryKey(productScreenshotId); 179 } 180 181 /** 182 * Returns the s c product screenshot with the primary key or returns <code>null</code> if it could not be found. 183 * 184 * @param productScreenshotId the primary key of the s c product screenshot 185 * @return the s c product screenshot, or <code>null</code> if a s c product screenshot with the primary key could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey( 189 long productScreenshotId) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return getPersistence().fetchByPrimaryKey(productScreenshotId); 192 } 193 194 /** 195 * Returns all the s c product screenshots where productEntryId = ?. 196 * 197 * @param productEntryId the product entry ID 198 * @return the matching s c product screenshots 199 * @throws SystemException if a system exception occurred 200 */ 201 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId( 202 long productEntryId) 203 throws com.liferay.portal.kernel.exception.SystemException { 204 return getPersistence().findByProductEntryId(productEntryId); 205 } 206 207 /** 208 * Returns a range of all the s c product screenshots where productEntryId = ?. 209 * 210 * <p> 211 * 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. 212 * </p> 213 * 214 * @param productEntryId the product entry ID 215 * @param start the lower bound of the range of s c product screenshots 216 * @param end the upper bound of the range of s c product screenshots (not inclusive) 217 * @return the range of matching s c product screenshots 218 * @throws SystemException if a system exception occurred 219 */ 220 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId( 221 long productEntryId, int start, int end) 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return getPersistence().findByProductEntryId(productEntryId, start, end); 224 } 225 226 /** 227 * Returns an ordered range of all the s c product screenshots where productEntryId = ?. 228 * 229 * <p> 230 * 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. 231 * </p> 232 * 233 * @param productEntryId the product entry ID 234 * @param start the lower bound of the range of s c product screenshots 235 * @param end the upper bound of the range of s c product screenshots (not inclusive) 236 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 237 * @return the ordered range of matching s c product screenshots 238 * @throws SystemException if a system exception occurred 239 */ 240 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId( 241 long productEntryId, int start, int end, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException { 244 return getPersistence() 245 .findByProductEntryId(productEntryId, start, end, 246 orderByComparator); 247 } 248 249 /** 250 * Returns the first s c product screenshot in the ordered set where productEntryId = ?. 251 * 252 * @param productEntryId the product entry ID 253 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 254 * @return the first matching s c product screenshot 255 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found 256 * @throws SystemException if a system exception occurred 257 */ 258 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First( 259 long productEntryId, 260 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 261 throws com.liferay.portal.kernel.exception.SystemException, 262 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException { 263 return getPersistence() 264 .findByProductEntryId_First(productEntryId, orderByComparator); 265 } 266 267 /** 268 * Returns the first s c product screenshot in the ordered set where productEntryId = ?. 269 * 270 * @param productEntryId the product entry ID 271 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 272 * @return the first matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 273 * @throws SystemException if a system exception occurred 274 */ 275 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByProductEntryId_First( 276 long productEntryId, 277 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 278 throws com.liferay.portal.kernel.exception.SystemException { 279 return getPersistence() 280 .fetchByProductEntryId_First(productEntryId, 281 orderByComparator); 282 } 283 284 /** 285 * Returns the last s c product screenshot in the ordered set where productEntryId = ?. 286 * 287 * @param productEntryId the product entry ID 288 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 289 * @return the last matching s c product screenshot 290 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found 291 * @throws SystemException if a system exception occurred 292 */ 293 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last( 294 long productEntryId, 295 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 296 throws com.liferay.portal.kernel.exception.SystemException, 297 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException { 298 return getPersistence() 299 .findByProductEntryId_Last(productEntryId, orderByComparator); 300 } 301 302 /** 303 * Returns the last s c product screenshot in the ordered set where productEntryId = ?. 304 * 305 * @param productEntryId the product entry ID 306 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 307 * @return the last 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 static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByProductEntryId_Last( 311 long productEntryId, 312 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 313 throws com.liferay.portal.kernel.exception.SystemException { 314 return getPersistence() 315 .fetchByProductEntryId_Last(productEntryId, orderByComparator); 316 } 317 318 /** 319 * Returns the s c product screenshots before and after the current s c product screenshot in the ordered set where productEntryId = ?. 320 * 321 * @param productScreenshotId the primary key of the current s c product screenshot 322 * @param productEntryId the product entry ID 323 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 324 * @return the previous, current, and next s c product screenshot 325 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a s c product screenshot with the primary key could not be found 326 * @throws SystemException if a system exception occurred 327 */ 328 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext( 329 long productScreenshotId, long productEntryId, 330 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 331 throws com.liferay.portal.kernel.exception.SystemException, 332 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException { 333 return getPersistence() 334 .findByProductEntryId_PrevAndNext(productScreenshotId, 335 productEntryId, orderByComparator); 336 } 337 338 /** 339 * Returns the s c product screenshot where thumbnailId = ? or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException} if it could not be found. 340 * 341 * @param thumbnailId the thumbnail ID 342 * @return the matching s c product screenshot 343 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found 344 * @throws SystemException if a system exception occurred 345 */ 346 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId( 347 long thumbnailId) 348 throws com.liferay.portal.kernel.exception.SystemException, 349 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException { 350 return getPersistence().findByThumbnailId(thumbnailId); 351 } 352 353 /** 354 * Returns the s c product screenshot where thumbnailId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 355 * 356 * @param thumbnailId the thumbnail ID 357 * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 358 * @throws SystemException if a system exception occurred 359 */ 360 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId( 361 long thumbnailId) 362 throws com.liferay.portal.kernel.exception.SystemException { 363 return getPersistence().fetchByThumbnailId(thumbnailId); 364 } 365 366 /** 367 * Returns the s c product screenshot where thumbnailId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 368 * 369 * @param thumbnailId the thumbnail ID 370 * @param retrieveFromCache whether to use the finder cache 371 * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 372 * @throws SystemException if a system exception occurred 373 */ 374 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId( 375 long thumbnailId, boolean retrieveFromCache) 376 throws com.liferay.portal.kernel.exception.SystemException { 377 return getPersistence() 378 .fetchByThumbnailId(thumbnailId, retrieveFromCache); 379 } 380 381 /** 382 * Returns the s c product screenshot where fullImageId = ? or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException} if it could not be found. 383 * 384 * @param fullImageId the full image ID 385 * @return the matching s c product screenshot 386 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found 387 * @throws SystemException if a system exception occurred 388 */ 389 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId( 390 long fullImageId) 391 throws com.liferay.portal.kernel.exception.SystemException, 392 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException { 393 return getPersistence().findByFullImageId(fullImageId); 394 } 395 396 /** 397 * Returns the s c product screenshot where fullImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 398 * 399 * @param fullImageId the full image ID 400 * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 401 * @throws SystemException if a system exception occurred 402 */ 403 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId( 404 long fullImageId) 405 throws com.liferay.portal.kernel.exception.SystemException { 406 return getPersistence().fetchByFullImageId(fullImageId); 407 } 408 409 /** 410 * Returns the s c product screenshot where fullImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 411 * 412 * @param fullImageId the full image ID 413 * @param retrieveFromCache whether to use the finder cache 414 * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 415 * @throws SystemException if a system exception occurred 416 */ 417 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId( 418 long fullImageId, boolean retrieveFromCache) 419 throws com.liferay.portal.kernel.exception.SystemException { 420 return getPersistence() 421 .fetchByFullImageId(fullImageId, retrieveFromCache); 422 } 423 424 /** 425 * 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. 426 * 427 * @param productEntryId the product entry ID 428 * @param priority the priority 429 * @return the matching s c product screenshot 430 * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found 431 * @throws SystemException if a system exception occurred 432 */ 433 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P( 434 long productEntryId, int priority) 435 throws com.liferay.portal.kernel.exception.SystemException, 436 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException { 437 return getPersistence().findByP_P(productEntryId, priority); 438 } 439 440 /** 441 * 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. 442 * 443 * @param productEntryId the product entry ID 444 * @param priority the priority 445 * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 446 * @throws SystemException if a system exception occurred 447 */ 448 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P( 449 long productEntryId, int priority) 450 throws com.liferay.portal.kernel.exception.SystemException { 451 return getPersistence().fetchByP_P(productEntryId, priority); 452 } 453 454 /** 455 * 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. 456 * 457 * @param productEntryId the product entry ID 458 * @param priority the priority 459 * @param retrieveFromCache whether to use the finder cache 460 * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found 461 * @throws SystemException if a system exception occurred 462 */ 463 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P( 464 long productEntryId, int priority, boolean retrieveFromCache) 465 throws com.liferay.portal.kernel.exception.SystemException { 466 return getPersistence() 467 .fetchByP_P(productEntryId, priority, retrieveFromCache); 468 } 469 470 /** 471 * Returns all the s c product screenshots. 472 * 473 * @return the s c product screenshots 474 * @throws SystemException if a system exception occurred 475 */ 476 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll() 477 throws com.liferay.portal.kernel.exception.SystemException { 478 return getPersistence().findAll(); 479 } 480 481 /** 482 * Returns a range of all the s c product screenshots. 483 * 484 * <p> 485 * 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. 486 * </p> 487 * 488 * @param start the lower bound of the range of s c product screenshots 489 * @param end the upper bound of the range of s c product screenshots (not inclusive) 490 * @return the range of s c product screenshots 491 * @throws SystemException if a system exception occurred 492 */ 493 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll( 494 int start, int end) 495 throws com.liferay.portal.kernel.exception.SystemException { 496 return getPersistence().findAll(start, end); 497 } 498 499 /** 500 * Returns an ordered range of all the s c product screenshots. 501 * 502 * <p> 503 * 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. 504 * </p> 505 * 506 * @param start the lower bound of the range of s c product screenshots 507 * @param end the upper bound of the range of s c product screenshots (not inclusive) 508 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 509 * @return the ordered range of s c product screenshots 510 * @throws SystemException if a system exception occurred 511 */ 512 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll( 513 int start, int end, 514 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 515 throws com.liferay.portal.kernel.exception.SystemException { 516 return getPersistence().findAll(start, end, orderByComparator); 517 } 518 519 /** 520 * Removes all the s c product screenshots where productEntryId = ? from the database. 521 * 522 * @param productEntryId the product entry ID 523 * @throws SystemException if a system exception occurred 524 */ 525 public static void removeByProductEntryId(long productEntryId) 526 throws com.liferay.portal.kernel.exception.SystemException { 527 getPersistence().removeByProductEntryId(productEntryId); 528 } 529 530 /** 531 * Removes the s c product screenshot where thumbnailId = ? from the database. 532 * 533 * @param thumbnailId the thumbnail ID 534 * @return the s c product screenshot that was removed 535 * @throws SystemException if a system exception occurred 536 */ 537 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot removeByThumbnailId( 538 long thumbnailId) 539 throws com.liferay.portal.kernel.exception.SystemException, 540 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException { 541 return getPersistence().removeByThumbnailId(thumbnailId); 542 } 543 544 /** 545 * Removes the s c product screenshot where fullImageId = ? from the database. 546 * 547 * @param fullImageId the full image ID 548 * @return the s c product screenshot that was removed 549 * @throws SystemException if a system exception occurred 550 */ 551 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot removeByFullImageId( 552 long fullImageId) 553 throws com.liferay.portal.kernel.exception.SystemException, 554 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException { 555 return getPersistence().removeByFullImageId(fullImageId); 556 } 557 558 /** 559 * Removes the s c product screenshot where productEntryId = ? and priority = ? from the database. 560 * 561 * @param productEntryId the product entry ID 562 * @param priority the priority 563 * @return the s c product screenshot that was removed 564 * @throws SystemException if a system exception occurred 565 */ 566 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot removeByP_P( 567 long productEntryId, int priority) 568 throws com.liferay.portal.kernel.exception.SystemException, 569 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException { 570 return getPersistence().removeByP_P(productEntryId, priority); 571 } 572 573 /** 574 * Removes all the s c product screenshots from the database. 575 * 576 * @throws SystemException if a system exception occurred 577 */ 578 public static void removeAll() 579 throws com.liferay.portal.kernel.exception.SystemException { 580 getPersistence().removeAll(); 581 } 582 583 /** 584 * Returns the number of s c product screenshots where productEntryId = ?. 585 * 586 * @param productEntryId the product entry ID 587 * @return the number of matching s c product screenshots 588 * @throws SystemException if a system exception occurred 589 */ 590 public static int countByProductEntryId(long productEntryId) 591 throws com.liferay.portal.kernel.exception.SystemException { 592 return getPersistence().countByProductEntryId(productEntryId); 593 } 594 595 /** 596 * Returns the number of s c product screenshots where thumbnailId = ?. 597 * 598 * @param thumbnailId the thumbnail ID 599 * @return the number of matching s c product screenshots 600 * @throws SystemException if a system exception occurred 601 */ 602 public static int countByThumbnailId(long thumbnailId) 603 throws com.liferay.portal.kernel.exception.SystemException { 604 return getPersistence().countByThumbnailId(thumbnailId); 605 } 606 607 /** 608 * Returns the number of s c product screenshots where fullImageId = ?. 609 * 610 * @param fullImageId the full image ID 611 * @return the number of matching s c product screenshots 612 * @throws SystemException if a system exception occurred 613 */ 614 public static int countByFullImageId(long fullImageId) 615 throws com.liferay.portal.kernel.exception.SystemException { 616 return getPersistence().countByFullImageId(fullImageId); 617 } 618 619 /** 620 * Returns the number of s c product screenshots where productEntryId = ? and priority = ?. 621 * 622 * @param productEntryId the product entry ID 623 * @param priority the priority 624 * @return the number of matching s c product screenshots 625 * @throws SystemException if a system exception occurred 626 */ 627 public static int countByP_P(long productEntryId, int priority) 628 throws com.liferay.portal.kernel.exception.SystemException { 629 return getPersistence().countByP_P(productEntryId, priority); 630 } 631 632 /** 633 * Returns the number of s c product screenshots. 634 * 635 * @return the number of s c product screenshots 636 * @throws SystemException if a system exception occurred 637 */ 638 public static int countAll() 639 throws com.liferay.portal.kernel.exception.SystemException { 640 return getPersistence().countAll(); 641 } 642 643 public static SCProductScreenshotPersistence getPersistence() { 644 if (_persistence == null) { 645 _persistence = (SCProductScreenshotPersistence)PortalBeanLocatorUtil.locate(SCProductScreenshotPersistence.class.getName()); 646 647 ReferenceRegistry.registerReference(SCProductScreenshotUtil.class, 648 "_persistence"); 649 } 650 651 return _persistence; 652 } 653 654 /** 655 * @deprecated 656 */ 657 public void setPersistence(SCProductScreenshotPersistence persistence) { 658 } 659 660 private static SCProductScreenshotPersistence _persistence; 661 }