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