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