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