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