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