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