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