001    /**
002     * Copyright (c) 2000-2012 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.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.softwarecatalog.model.SCProductScreenshot;
020    
021    /**
022     * The persistence interface for the s c product screenshot service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see SCProductScreenshotPersistenceImpl
030     * @see SCProductScreenshotUtil
031     * @generated
032     */
033    public interface SCProductScreenshotPersistence extends BasePersistence<SCProductScreenshot> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link SCProductScreenshotUtil} to access the s c product screenshot persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the s c product screenshot in the entity cache if it is enabled.
042            *
043            * @param scProductScreenshot the s c product screenshot
044            */
045            public void cacheResult(
046                    com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot);
047    
048            /**
049            * Caches the s c product screenshots in the entity cache if it is enabled.
050            *
051            * @param scProductScreenshots the s c product screenshots
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> scProductScreenshots);
055    
056            /**
057            * Creates a new s c product screenshot with the primary key. Does not add the s c product screenshot to the database.
058            *
059            * @param productScreenshotId the primary key for the new s c product screenshot
060            * @return the new s c product screenshot
061            */
062            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot create(
063                    long productScreenshotId);
064    
065            /**
066            * Removes the s c product screenshot with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param productScreenshotId the primary key of the s c product screenshot
069            * @return the s c product screenshot that was removed
070            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a s c product screenshot with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(
074                    long productScreenshotId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
077    
078            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl(
079                    com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
080                    boolean merge)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * 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.
085            *
086            * @param productScreenshotId the primary key of the s c product screenshot
087            * @return the s c product screenshot
088            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a s c product screenshot with the primary key could not be found
089            * @throws SystemException if a system exception occurred
090            */
091            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(
092                    long productScreenshotId)
093                    throws com.liferay.portal.kernel.exception.SystemException,
094                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
095    
096            /**
097            * Returns the s c product screenshot with the primary key or returns <code>null</code> if it could not be found.
098            *
099            * @param productScreenshotId the primary key of the s c product screenshot
100            * @return the s c product screenshot, or <code>null</code> if a s c product screenshot with the primary key could not be found
101            * @throws SystemException if a system exception occurred
102            */
103            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(
104                    long productScreenshotId)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            /**
108            * Returns all the s c product screenshots where productEntryId = &#63;.
109            *
110            * @param productEntryId the product entry ID
111            * @return the matching s c product screenshots
112            * @throws SystemException if a system exception occurred
113            */
114            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
115                    long productEntryId)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns a range of all the s c product screenshots where productEntryId = &#63;.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param productEntryId the product entry ID
126            * @param start the lower bound of the range of s c product screenshots
127            * @param end the upper bound of the range of s c product screenshots (not inclusive)
128            * @return the range of matching s c product screenshots
129            * @throws SystemException if a system exception occurred
130            */
131            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
132                    long productEntryId, int start, int end)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            /**
136            * Returns an ordered range of all the s c product screenshots where productEntryId = &#63;.
137            *
138            * <p>
139            * 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.
140            * </p>
141            *
142            * @param productEntryId the product entry ID
143            * @param start the lower bound of the range of s c product screenshots
144            * @param end the upper bound of the range of s c product screenshots (not inclusive)
145            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
146            * @return the ordered range of matching s c product screenshots
147            * @throws SystemException if a system exception occurred
148            */
149            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
150                    long productEntryId, int start, int end,
151                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152                    throws com.liferay.portal.kernel.exception.SystemException;
153    
154            /**
155            * Returns the first s c product screenshot in the ordered set where productEntryId = &#63;.
156            *
157            * <p>
158            * 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.
159            * </p>
160            *
161            * @param productEntryId the product entry ID
162            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
163            * @return the first matching s c product screenshot
164            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found
165            * @throws SystemException if a system exception occurred
166            */
167            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(
168                    long productEntryId,
169                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170                    throws com.liferay.portal.kernel.exception.SystemException,
171                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
172    
173            /**
174            * Returns the last s c product screenshot in the ordered set where productEntryId = &#63;.
175            *
176            * <p>
177            * 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.
178            * </p>
179            *
180            * @param productEntryId the product entry ID
181            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
182            * @return the last matching s c product screenshot
183            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found
184            * @throws SystemException if a system exception occurred
185            */
186            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(
187                    long productEntryId,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
191    
192            /**
193            * Returns the s c product screenshots before and after the current s c product screenshot in the ordered set where productEntryId = &#63;.
194            *
195            * <p>
196            * 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.
197            * </p>
198            *
199            * @param productScreenshotId the primary key of the current s c product screenshot
200            * @param productEntryId the product entry ID
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the previous, current, and next s c product screenshot
203            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a s c product screenshot with the primary key could not be found
204            * @throws SystemException if a system exception occurred
205            */
206            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(
207                    long productScreenshotId, long productEntryId,
208                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209                    throws com.liferay.portal.kernel.exception.SystemException,
210                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
211    
212            /**
213            * Returns the s c product screenshot where thumbnailId = &#63; or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException} if it could not be found.
214            *
215            * @param thumbnailId the thumbnail ID
216            * @return the matching s c product screenshot
217            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(
221                    long thumbnailId)
222                    throws com.liferay.portal.kernel.exception.SystemException,
223                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
224    
225            /**
226            * Returns the s c product screenshot where thumbnailId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
227            *
228            * @param thumbnailId the thumbnail ID
229            * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
233                    long thumbnailId)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            /**
237            * 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.
238            *
239            * @param thumbnailId the thumbnail ID
240            * @param retrieveFromCache whether to use the finder cache
241            * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found
242            * @throws SystemException if a system exception occurred
243            */
244            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
245                    long thumbnailId, boolean retrieveFromCache)
246                    throws com.liferay.portal.kernel.exception.SystemException;
247    
248            /**
249            * Returns the s c product screenshot where fullImageId = &#63; or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException} if it could not be found.
250            *
251            * @param fullImageId the full image ID
252            * @return the matching s c product screenshot
253            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found
254            * @throws SystemException if a system exception occurred
255            */
256            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(
257                    long fullImageId)
258                    throws com.liferay.portal.kernel.exception.SystemException,
259                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
260    
261            /**
262            * Returns the s c product screenshot where fullImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
263            *
264            * @param fullImageId the full image ID
265            * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found
266            * @throws SystemException if a system exception occurred
267            */
268            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
269                    long fullImageId)
270                    throws com.liferay.portal.kernel.exception.SystemException;
271    
272            /**
273            * 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.
274            *
275            * @param fullImageId the full image ID
276            * @param retrieveFromCache whether to use the finder cache
277            * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found
278            * @throws SystemException if a system exception occurred
279            */
280            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
281                    long fullImageId, boolean retrieveFromCache)
282                    throws com.liferay.portal.kernel.exception.SystemException;
283    
284            /**
285            * 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.
286            *
287            * @param productEntryId the product entry ID
288            * @param priority the priority
289            * @return the matching s c product screenshot
290            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found
291            * @throws SystemException if a system exception occurred
292            */
293            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P(
294                    long productEntryId, int priority)
295                    throws com.liferay.portal.kernel.exception.SystemException,
296                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
297    
298            /**
299            * 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.
300            *
301            * @param productEntryId the product entry ID
302            * @param priority the priority
303            * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found
304            * @throws SystemException if a system exception occurred
305            */
306            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
307                    long productEntryId, int priority)
308                    throws com.liferay.portal.kernel.exception.SystemException;
309    
310            /**
311            * 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.
312            *
313            * @param productEntryId the product entry ID
314            * @param priority the priority
315            * @param retrieveFromCache whether to use the finder cache
316            * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found
317            * @throws SystemException if a system exception occurred
318            */
319            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
320                    long productEntryId, int priority, boolean retrieveFromCache)
321                    throws com.liferay.portal.kernel.exception.SystemException;
322    
323            /**
324            * Returns all the s c product screenshots.
325            *
326            * @return the s c product screenshots
327            * @throws SystemException if a system exception occurred
328            */
329            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll()
330                    throws com.liferay.portal.kernel.exception.SystemException;
331    
332            /**
333            * Returns a range of all the s c product screenshots.
334            *
335            * <p>
336            * 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.
337            * </p>
338            *
339            * @param start the lower bound of the range of s c product screenshots
340            * @param end the upper bound of the range of s c product screenshots (not inclusive)
341            * @return the range of s c product screenshots
342            * @throws SystemException if a system exception occurred
343            */
344            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
345                    int start, int end)
346                    throws com.liferay.portal.kernel.exception.SystemException;
347    
348            /**
349            * Returns an ordered range of all the s c product screenshots.
350            *
351            * <p>
352            * 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.
353            * </p>
354            *
355            * @param start the lower bound of the range of s c product screenshots
356            * @param end the upper bound of the range of s c product screenshots (not inclusive)
357            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
358            * @return the ordered range of s c product screenshots
359            * @throws SystemException if a system exception occurred
360            */
361            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
362                    int start, int end,
363                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
364                    throws com.liferay.portal.kernel.exception.SystemException;
365    
366            /**
367            * Removes all the s c product screenshots where productEntryId = &#63; from the database.
368            *
369            * @param productEntryId the product entry ID
370            * @throws SystemException if a system exception occurred
371            */
372            public void removeByProductEntryId(long productEntryId)
373                    throws com.liferay.portal.kernel.exception.SystemException;
374    
375            /**
376            * Removes the s c product screenshot where thumbnailId = &#63; from the database.
377            *
378            * @param thumbnailId the thumbnail ID
379            * @throws SystemException if a system exception occurred
380            */
381            public void removeByThumbnailId(long thumbnailId)
382                    throws com.liferay.portal.kernel.exception.SystemException,
383                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
384    
385            /**
386            * Removes the s c product screenshot where fullImageId = &#63; from the database.
387            *
388            * @param fullImageId the full image ID
389            * @throws SystemException if a system exception occurred
390            */
391            public void removeByFullImageId(long fullImageId)
392                    throws com.liferay.portal.kernel.exception.SystemException,
393                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
394    
395            /**
396            * Removes the s c product screenshot where productEntryId = &#63; and priority = &#63; from the database.
397            *
398            * @param productEntryId the product entry ID
399            * @param priority the priority
400            * @throws SystemException if a system exception occurred
401            */
402            public void removeByP_P(long productEntryId, int priority)
403                    throws com.liferay.portal.kernel.exception.SystemException,
404                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
405    
406            /**
407            * Removes all the s c product screenshots from the database.
408            *
409            * @throws SystemException if a system exception occurred
410            */
411            public void removeAll()
412                    throws com.liferay.portal.kernel.exception.SystemException;
413    
414            /**
415            * Returns the number of s c product screenshots where productEntryId = &#63;.
416            *
417            * @param productEntryId the product entry ID
418            * @return the number of matching s c product screenshots
419            * @throws SystemException if a system exception occurred
420            */
421            public int countByProductEntryId(long productEntryId)
422                    throws com.liferay.portal.kernel.exception.SystemException;
423    
424            /**
425            * Returns the number of s c product screenshots where thumbnailId = &#63;.
426            *
427            * @param thumbnailId the thumbnail ID
428            * @return the number of matching s c product screenshots
429            * @throws SystemException if a system exception occurred
430            */
431            public int countByThumbnailId(long thumbnailId)
432                    throws com.liferay.portal.kernel.exception.SystemException;
433    
434            /**
435            * Returns the number of s c product screenshots where fullImageId = &#63;.
436            *
437            * @param fullImageId the full image ID
438            * @return the number of matching s c product screenshots
439            * @throws SystemException if a system exception occurred
440            */
441            public int countByFullImageId(long fullImageId)
442                    throws com.liferay.portal.kernel.exception.SystemException;
443    
444            /**
445            * Returns the number of s c product screenshots where productEntryId = &#63; and priority = &#63;.
446            *
447            * @param productEntryId the product entry ID
448            * @param priority the priority
449            * @return the number of matching s c product screenshots
450            * @throws SystemException if a system exception occurred
451            */
452            public int countByP_P(long productEntryId, int priority)
453                    throws com.liferay.portal.kernel.exception.SystemException;
454    
455            /**
456            * Returns the number of s c product screenshots.
457            *
458            * @return the number of s c product screenshots
459            * @throws SystemException if a system exception occurred
460            */
461            public int countAll()
462                    throws com.liferay.portal.kernel.exception.SystemException;
463    }