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