001    /**
002     * Copyright (c) 2000-2013 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            * @param productEntryId the product entry ID
158            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
159            * @return the first matching s c product screenshot
160            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(
164                    long productEntryId,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.kernel.exception.SystemException,
167                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
168    
169            /**
170            * Returns the first s c product screenshot in the ordered set where productEntryId = &#63;.
171            *
172            * @param productEntryId the product entry ID
173            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
174            * @return the first matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByProductEntryId_First(
178                    long productEntryId,
179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180                    throws com.liferay.portal.kernel.exception.SystemException;
181    
182            /**
183            * Returns the last s c product screenshot in the ordered set where productEntryId = &#63;.
184            *
185            * @param productEntryId the product entry ID
186            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
187            * @return the last matching s c product screenshot
188            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found
189            * @throws SystemException if a system exception occurred
190            */
191            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(
192                    long productEntryId,
193                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194                    throws com.liferay.portal.kernel.exception.SystemException,
195                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
196    
197            /**
198            * Returns the last s c product screenshot in the ordered set where productEntryId = &#63;.
199            *
200            * @param productEntryId the product entry ID
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the last matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found
203            * @throws SystemException if a system exception occurred
204            */
205            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByProductEntryId_Last(
206                    long productEntryId,
207                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208                    throws com.liferay.portal.kernel.exception.SystemException;
209    
210            /**
211            * Returns the s c product screenshots before and after the current s c product screenshot in the ordered set where productEntryId = &#63;.
212            *
213            * @param productScreenshotId the primary key of the current s c product screenshot
214            * @param productEntryId the product entry ID
215            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
216            * @return the previous, current, and next s c product screenshot
217            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a s c product screenshot with the primary key could not be found
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(
221                    long productScreenshotId, long productEntryId,
222                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
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 throws a {@link com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException} if it could not be found.
228            *
229            * @param thumbnailId the thumbnail ID
230            * @return the matching s c product screenshot
231            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(
235                    long thumbnailId)
236                    throws com.liferay.portal.kernel.exception.SystemException,
237                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
238    
239            /**
240            * Returns the s c product screenshot where thumbnailId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
241            *
242            * @param thumbnailId the thumbnail ID
243            * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found
244            * @throws SystemException if a system exception occurred
245            */
246            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
247                    long thumbnailId)
248                    throws com.liferay.portal.kernel.exception.SystemException;
249    
250            /**
251            * 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.
252            *
253            * @param thumbnailId the thumbnail ID
254            * @param retrieveFromCache whether to use the finder cache
255            * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found
256            * @throws SystemException if a system exception occurred
257            */
258            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
259                    long thumbnailId, boolean retrieveFromCache)
260                    throws com.liferay.portal.kernel.exception.SystemException;
261    
262            /**
263            * Returns the s c product screenshot where fullImageId = &#63; or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException} if it could not be found.
264            *
265            * @param fullImageId the full image ID
266            * @return the matching s c product screenshot
267            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException if a matching s c product screenshot could not be found
268            * @throws SystemException if a system exception occurred
269            */
270            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(
271                    long fullImageId)
272                    throws com.liferay.portal.kernel.exception.SystemException,
273                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
274    
275            /**
276            * Returns the s c product screenshot where fullImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
277            *
278            * @param fullImageId the full image ID
279            * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found
280            * @throws SystemException if a system exception occurred
281            */
282            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
283                    long fullImageId)
284                    throws com.liferay.portal.kernel.exception.SystemException;
285    
286            /**
287            * 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.
288            *
289            * @param fullImageId the full image ID
290            * @param retrieveFromCache whether to use the finder cache
291            * @return the matching s c product screenshot, or <code>null</code> 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 fetchByFullImageId(
295                    long fullImageId, boolean retrieveFromCache)
296                    throws com.liferay.portal.kernel.exception.SystemException;
297    
298            /**
299            * 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.
300            *
301            * @param productEntryId the product entry ID
302            * @param priority the priority
303            * @return the matching s c product screenshot
304            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException 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 findByP_P(
308                    long productEntryId, int priority)
309                    throws com.liferay.portal.kernel.exception.SystemException,
310                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
311    
312            /**
313            * 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.
314            *
315            * @param productEntryId the product entry ID
316            * @param priority the priority
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)
322                    throws com.liferay.portal.kernel.exception.SystemException;
323    
324            /**
325            * 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.
326            *
327            * @param productEntryId the product entry ID
328            * @param priority the priority
329            * @param retrieveFromCache whether to use the finder cache
330            * @return the matching s c product screenshot, or <code>null</code> if a matching s c product screenshot could not be found
331            * @throws SystemException if a system exception occurred
332            */
333            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
334                    long productEntryId, int priority, boolean retrieveFromCache)
335                    throws com.liferay.portal.kernel.exception.SystemException;
336    
337            /**
338            * Returns all the s c product screenshots.
339            *
340            * @return the s c product screenshots
341            * @throws SystemException if a system exception occurred
342            */
343            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll()
344                    throws com.liferay.portal.kernel.exception.SystemException;
345    
346            /**
347            * Returns a range of all the s c product screenshots.
348            *
349            * <p>
350            * 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.
351            * </p>
352            *
353            * @param start the lower bound of the range of s c product screenshots
354            * @param end the upper bound of the range of s c product screenshots (not inclusive)
355            * @return the range of s c product screenshots
356            * @throws SystemException if a system exception occurred
357            */
358            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
359                    int start, int end)
360                    throws com.liferay.portal.kernel.exception.SystemException;
361    
362            /**
363            * Returns an ordered range of all the s c product screenshots.
364            *
365            * <p>
366            * 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.
367            * </p>
368            *
369            * @param start the lower bound of the range of s c product screenshots
370            * @param end the upper bound of the range of s c product screenshots (not inclusive)
371            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
372            * @return the ordered range of s c product screenshots
373            * @throws SystemException if a system exception occurred
374            */
375            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
376                    int start, int end,
377                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
378                    throws com.liferay.portal.kernel.exception.SystemException;
379    
380            /**
381            * Removes all the s c product screenshots where productEntryId = &#63; from the database.
382            *
383            * @param productEntryId the product entry ID
384            * @throws SystemException if a system exception occurred
385            */
386            public void removeByProductEntryId(long productEntryId)
387                    throws com.liferay.portal.kernel.exception.SystemException;
388    
389            /**
390            * Removes the s c product screenshot where thumbnailId = &#63; from the database.
391            *
392            * @param thumbnailId the thumbnail ID
393            * @return the s c product screenshot that was removed
394            * @throws SystemException if a system exception occurred
395            */
396            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot removeByThumbnailId(
397                    long thumbnailId)
398                    throws com.liferay.portal.kernel.exception.SystemException,
399                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
400    
401            /**
402            * Removes the s c product screenshot where fullImageId = &#63; from the database.
403            *
404            * @param fullImageId the full image ID
405            * @return the s c product screenshot that was removed
406            * @throws SystemException if a system exception occurred
407            */
408            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot removeByFullImageId(
409                    long fullImageId)
410                    throws com.liferay.portal.kernel.exception.SystemException,
411                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
412    
413            /**
414            * Removes the s c product screenshot where productEntryId = &#63; and priority = &#63; from the database.
415            *
416            * @param productEntryId the product entry ID
417            * @param priority the priority
418            * @return the s c product screenshot that was removed
419            * @throws SystemException if a system exception occurred
420            */
421            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot removeByP_P(
422                    long productEntryId, int priority)
423                    throws com.liferay.portal.kernel.exception.SystemException,
424                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
425    
426            /**
427            * Removes all the s c product screenshots from the database.
428            *
429            * @throws SystemException if a system exception occurred
430            */
431            public void removeAll()
432                    throws com.liferay.portal.kernel.exception.SystemException;
433    
434            /**
435            * Returns the number of s c product screenshots where productEntryId = &#63;.
436            *
437            * @param productEntryId the product entry ID
438            * @return the number of matching s c product screenshots
439            * @throws SystemException if a system exception occurred
440            */
441            public int countByProductEntryId(long productEntryId)
442                    throws com.liferay.portal.kernel.exception.SystemException;
443    
444            /**
445            * Returns the number of s c product screenshots where thumbnailId = &#63;.
446            *
447            * @param thumbnailId the thumbnail ID
448            * @return the number of matching s c product screenshots
449            * @throws SystemException if a system exception occurred
450            */
451            public int countByThumbnailId(long thumbnailId)
452                    throws com.liferay.portal.kernel.exception.SystemException;
453    
454            /**
455            * Returns the number of s c product screenshots where fullImageId = &#63;.
456            *
457            * @param fullImageId the full image ID
458            * @return the number of matching s c product screenshots
459            * @throws SystemException if a system exception occurred
460            */
461            public int countByFullImageId(long fullImageId)
462                    throws com.liferay.portal.kernel.exception.SystemException;
463    
464            /**
465            * Returns the number of s c product screenshots where productEntryId = &#63; and priority = &#63;.
466            *
467            * @param productEntryId the product entry ID
468            * @param priority the priority
469            * @return the number of matching s c product screenshots
470            * @throws SystemException if a system exception occurred
471            */
472            public int countByP_P(long productEntryId, int priority)
473                    throws com.liferay.portal.kernel.exception.SystemException;
474    
475            /**
476            * Returns the number of s c product screenshots.
477            *
478            * @return the number of s c product screenshots
479            * @throws SystemException if a system exception occurred
480            */
481            public int countAll()
482                    throws com.liferay.portal.kernel.exception.SystemException;
483    }