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 com.liferay.portlet.softwarecatalog.service.persistence.impl.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 com.liferay.portlet.softwarecatalog.service.persistence.impl.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 List<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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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 List<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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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 List<SCProductScreenshot> findByProductEntryId(
155                    long productEntryId, int start, int end,
156                    OrderByComparator<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 NoSuchProductScreenshotException if a matching s c product screenshot could not be found
169            */
170            public static SCProductScreenshot findByProductEntryId_First(
171                    long productEntryId,
172                    OrderByComparator<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 SCProductScreenshot fetchByProductEntryId_First(
186                    long productEntryId,
187                    OrderByComparator<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 NoSuchProductScreenshotException if a matching s c product screenshot could not be found
200            */
201            public static SCProductScreenshot findByProductEntryId_Last(
202                    long productEntryId,
203                    OrderByComparator<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 SCProductScreenshot fetchByProductEntryId_Last(
217                    long productEntryId,
218                    OrderByComparator<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 NoSuchProductScreenshotException if a s c product screenshot with the primary key could not be found
231            */
232            public static SCProductScreenshot[] findByProductEntryId_PrevAndNext(
233                    long productScreenshotId, long productEntryId,
234                    OrderByComparator<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 NoSuchProductScreenshotException} if it could not be found.
262            *
263            * @param thumbnailId the thumbnail ID
264            * @return the matching s c product screenshot
265            * @throws NoSuchProductScreenshotException if a matching s c product screenshot could not be found
266            */
267            public static SCProductScreenshot findByThumbnailId(long thumbnailId)
268                    throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
269                    return getPersistence().findByThumbnailId(thumbnailId);
270            }
271    
272            /**
273            * Returns the s c product screenshot where thumbnailId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
274            *
275            * @param thumbnailId the thumbnail ID
276            * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found
277            */
278            public static SCProductScreenshot fetchByThumbnailId(long thumbnailId) {
279                    return getPersistence().fetchByThumbnailId(thumbnailId);
280            }
281    
282            /**
283            * 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.
284            *
285            * @param thumbnailId the thumbnail ID
286            * @param retrieveFromCache whether to use the finder cache
287            * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found
288            */
289            public static SCProductScreenshot fetchByThumbnailId(long thumbnailId,
290                    boolean retrieveFromCache) {
291                    return getPersistence()
292                                       .fetchByThumbnailId(thumbnailId, retrieveFromCache);
293            }
294    
295            /**
296            * Removes the s c product screenshot where thumbnailId = &#63; from the database.
297            *
298            * @param thumbnailId the thumbnail ID
299            * @return the s c product screenshot that was removed
300            */
301            public static SCProductScreenshot removeByThumbnailId(long thumbnailId)
302                    throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
303                    return getPersistence().removeByThumbnailId(thumbnailId);
304            }
305    
306            /**
307            * Returns the number of s c product screenshots where thumbnailId = &#63;.
308            *
309            * @param thumbnailId the thumbnail ID
310            * @return the number of matching s c product screenshots
311            */
312            public static int countByThumbnailId(long thumbnailId) {
313                    return getPersistence().countByThumbnailId(thumbnailId);
314            }
315    
316            /**
317            * Returns the s c product screenshot where fullImageId = &#63; or throws a {@link NoSuchProductScreenshotException} if it could not be found.
318            *
319            * @param fullImageId the full image ID
320            * @return the matching s c product screenshot
321            * @throws NoSuchProductScreenshotException if a matching s c product screenshot could not be found
322            */
323            public static SCProductScreenshot findByFullImageId(long fullImageId)
324                    throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
325                    return getPersistence().findByFullImageId(fullImageId);
326            }
327    
328            /**
329            * Returns the s c product screenshot where fullImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
330            *
331            * @param fullImageId the full image ID
332            * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found
333            */
334            public static SCProductScreenshot fetchByFullImageId(long fullImageId) {
335                    return getPersistence().fetchByFullImageId(fullImageId);
336            }
337    
338            /**
339            * 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.
340            *
341            * @param fullImageId the full image ID
342            * @param retrieveFromCache whether to use the finder cache
343            * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found
344            */
345            public static SCProductScreenshot fetchByFullImageId(long fullImageId,
346                    boolean retrieveFromCache) {
347                    return getPersistence()
348                                       .fetchByFullImageId(fullImageId, retrieveFromCache);
349            }
350    
351            /**
352            * Removes the s c product screenshot where fullImageId = &#63; from the database.
353            *
354            * @param fullImageId the full image ID
355            * @return the s c product screenshot that was removed
356            */
357            public static SCProductScreenshot removeByFullImageId(long fullImageId)
358                    throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
359                    return getPersistence().removeByFullImageId(fullImageId);
360            }
361    
362            /**
363            * Returns the number of s c product screenshots where fullImageId = &#63;.
364            *
365            * @param fullImageId the full image ID
366            * @return the number of matching s c product screenshots
367            */
368            public static int countByFullImageId(long fullImageId) {
369                    return getPersistence().countByFullImageId(fullImageId);
370            }
371    
372            /**
373            * Returns the s c product screenshot where productEntryId = &#63; and priority = &#63; or throws a {@link NoSuchProductScreenshotException} if it could not be found.
374            *
375            * @param productEntryId the product entry ID
376            * @param priority the priority
377            * @return the matching s c product screenshot
378            * @throws NoSuchProductScreenshotException if a matching s c product screenshot could not be found
379            */
380            public static SCProductScreenshot findByP_P(long productEntryId,
381                    int priority)
382                    throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
383                    return getPersistence().findByP_P(productEntryId, priority);
384            }
385    
386            /**
387            * 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.
388            *
389            * @param productEntryId the product entry ID
390            * @param priority the priority
391            * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found
392            */
393            public static SCProductScreenshot fetchByP_P(long productEntryId,
394                    int priority) {
395                    return getPersistence().fetchByP_P(productEntryId, priority);
396            }
397    
398            /**
399            * 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.
400            *
401            * @param productEntryId the product entry ID
402            * @param priority the priority
403            * @param retrieveFromCache whether to use the finder cache
404            * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found
405            */
406            public static SCProductScreenshot fetchByP_P(long productEntryId,
407                    int priority, boolean retrieveFromCache) {
408                    return getPersistence()
409                                       .fetchByP_P(productEntryId, priority, retrieveFromCache);
410            }
411    
412            /**
413            * Removes the s c product screenshot where productEntryId = &#63; and priority = &#63; from the database.
414            *
415            * @param productEntryId the product entry ID
416            * @param priority the priority
417            * @return the s c product screenshot that was removed
418            */
419            public static SCProductScreenshot removeByP_P(long productEntryId,
420                    int priority)
421                    throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
422                    return getPersistence().removeByP_P(productEntryId, priority);
423            }
424    
425            /**
426            * Returns the number of s c product screenshots where productEntryId = &#63; and priority = &#63;.
427            *
428            * @param productEntryId the product entry ID
429            * @param priority the priority
430            * @return the number of matching s c product screenshots
431            */
432            public static int countByP_P(long productEntryId, int priority) {
433                    return getPersistence().countByP_P(productEntryId, priority);
434            }
435    
436            /**
437            * Caches the s c product screenshot in the entity cache if it is enabled.
438            *
439            * @param scProductScreenshot the s c product screenshot
440            */
441            public static void cacheResult(SCProductScreenshot scProductScreenshot) {
442                    getPersistence().cacheResult(scProductScreenshot);
443            }
444    
445            /**
446            * Caches the s c product screenshots in the entity cache if it is enabled.
447            *
448            * @param scProductScreenshots the s c product screenshots
449            */
450            public static void cacheResult(
451                    List<SCProductScreenshot> scProductScreenshots) {
452                    getPersistence().cacheResult(scProductScreenshots);
453            }
454    
455            /**
456            * Creates a new s c product screenshot with the primary key. Does not add the s c product screenshot to the database.
457            *
458            * @param productScreenshotId the primary key for the new s c product screenshot
459            * @return the new s c product screenshot
460            */
461            public static SCProductScreenshot create(long productScreenshotId) {
462                    return getPersistence().create(productScreenshotId);
463            }
464    
465            /**
466            * Removes the s c product screenshot with the primary key from the database. Also notifies the appropriate model listeners.
467            *
468            * @param productScreenshotId the primary key of the s c product screenshot
469            * @return the s c product screenshot that was removed
470            * @throws NoSuchProductScreenshotException if a s c product screenshot with the primary key could not be found
471            */
472            public static SCProductScreenshot remove(long productScreenshotId)
473                    throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
474                    return getPersistence().remove(productScreenshotId);
475            }
476    
477            public static SCProductScreenshot updateImpl(
478                    SCProductScreenshot scProductScreenshot) {
479                    return getPersistence().updateImpl(scProductScreenshot);
480            }
481    
482            /**
483            * Returns the s c product screenshot with the primary key or throws a {@link NoSuchProductScreenshotException} if it could not be found.
484            *
485            * @param productScreenshotId the primary key of the s c product screenshot
486            * @return the s c product screenshot
487            * @throws NoSuchProductScreenshotException if a s c product screenshot with the primary key could not be found
488            */
489            public static SCProductScreenshot findByPrimaryKey(long productScreenshotId)
490                    throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
491                    return getPersistence().findByPrimaryKey(productScreenshotId);
492            }
493    
494            /**
495            * Returns the s c product screenshot with the primary key or returns <code>null</code> if it could not be found.
496            *
497            * @param productScreenshotId the primary key of the s c product screenshot
498            * @return the s c product screenshot, or <code>null</code> if a s c product screenshot with the primary key could not be found
499            */
500            public static SCProductScreenshot fetchByPrimaryKey(
501                    long productScreenshotId) {
502                    return getPersistence().fetchByPrimaryKey(productScreenshotId);
503            }
504    
505            public static java.util.Map<java.io.Serializable, SCProductScreenshot> fetchByPrimaryKeys(
506                    java.util.Set<java.io.Serializable> primaryKeys) {
507                    return getPersistence().fetchByPrimaryKeys(primaryKeys);
508            }
509    
510            /**
511            * Returns all the s c product screenshots.
512            *
513            * @return the s c product screenshots
514            */
515            public static List<SCProductScreenshot> findAll() {
516                    return getPersistence().findAll();
517            }
518    
519            /**
520            * Returns a range of all the s c product screenshots.
521            *
522            * <p>
523            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
524            * </p>
525            *
526            * @param start the lower bound of the range of s c product screenshots
527            * @param end the upper bound of the range of s c product screenshots (not inclusive)
528            * @return the range of s c product screenshots
529            */
530            public static List<SCProductScreenshot> findAll(int start, int end) {
531                    return getPersistence().findAll(start, end);
532            }
533    
534            /**
535            * Returns an ordered range of all the s c product screenshots.
536            *
537            * <p>
538            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
539            * </p>
540            *
541            * @param start the lower bound of the range of s c product screenshots
542            * @param end the upper bound of the range of s c product screenshots (not inclusive)
543            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
544            * @return the ordered range of s c product screenshots
545            */
546            public static List<SCProductScreenshot> findAll(int start, int end,
547                    OrderByComparator<SCProductScreenshot> orderByComparator) {
548                    return getPersistence().findAll(start, end, orderByComparator);
549            }
550    
551            /**
552            * Removes all the s c product screenshots from the database.
553            */
554            public static void removeAll() {
555                    getPersistence().removeAll();
556            }
557    
558            /**
559            * Returns the number of s c product screenshots.
560            *
561            * @return the number of s c product screenshots
562            */
563            public static int countAll() {
564                    return getPersistence().countAll();
565            }
566    
567            public static SCProductScreenshotPersistence getPersistence() {
568                    if (_persistence == null) {
569                            _persistence = (SCProductScreenshotPersistence)PortalBeanLocatorUtil.locate(SCProductScreenshotPersistence.class.getName());
570    
571                            ReferenceRegistry.registerReference(SCProductScreenshotUtil.class,
572                                    "_persistence");
573                    }
574    
575                    return _persistence;
576            }
577    
578            /**
579             * @deprecated As of 6.2.0
580             */
581            @Deprecated
582            public void setPersistence(SCProductScreenshotPersistence persistence) {
583            }
584    
585            private static SCProductScreenshotPersistence _persistence;
586    }