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