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.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.softwarecatalog.model.SCProductScreenshot;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       SCProductScreenshotPersistenceImpl
024     * @see       SCProductScreenshotUtil
025     * @generated
026     */
027    public interface SCProductScreenshotPersistence extends BasePersistence<SCProductScreenshot> {
028            public void cacheResult(
029                    com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> scProductScreenshots);
033    
034            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot create(
035                    long productScreenshotId);
036    
037            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(
038                    long productScreenshotId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
041    
042            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl(
043                    com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(
048                    long productScreenshotId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
051    
052            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(
053                    long productScreenshotId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
057                    long productEntryId)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
061                    long productEntryId, int start, int end)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
065                    long productEntryId, int start, int end,
066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(
070                    long productEntryId,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
074    
075            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(
076                    long productEntryId,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.kernel.exception.SystemException,
079                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
080    
081            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(
082                    long productScreenshotId, long productEntryId,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
086    
087            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(
088                    long thumbnailId)
089                    throws com.liferay.portal.kernel.exception.SystemException,
090                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
091    
092            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
093                    long thumbnailId)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
097                    long thumbnailId, boolean retrieveFromCache)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(
101                    long fullImageId)
102                    throws com.liferay.portal.kernel.exception.SystemException,
103                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
104    
105            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
106                    long fullImageId)
107                    throws com.liferay.portal.kernel.exception.SystemException;
108    
109            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
110                    long fullImageId, boolean retrieveFromCache)
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P(
114                    long productEntryId, int priority)
115                    throws com.liferay.portal.kernel.exception.SystemException,
116                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
117    
118            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
119                    long productEntryId, int priority)
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    
122            public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
123                    long productEntryId, int priority, boolean retrieveFromCache)
124                    throws com.liferay.portal.kernel.exception.SystemException;
125    
126            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll()
127                    throws com.liferay.portal.kernel.exception.SystemException;
128    
129            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
130                    int start, int end)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
134                    int start, int end,
135                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136                    throws com.liferay.portal.kernel.exception.SystemException;
137    
138            public void removeByProductEntryId(long productEntryId)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            public void removeByThumbnailId(long thumbnailId)
142                    throws com.liferay.portal.kernel.exception.SystemException,
143                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
144    
145            public void removeByFullImageId(long fullImageId)
146                    throws com.liferay.portal.kernel.exception.SystemException,
147                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
148    
149            public void removeByP_P(long productEntryId, int priority)
150                    throws com.liferay.portal.kernel.exception.SystemException,
151                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
152    
153            public void removeAll()
154                    throws com.liferay.portal.kernel.exception.SystemException;
155    
156            public int countByProductEntryId(long productEntryId)
157                    throws com.liferay.portal.kernel.exception.SystemException;
158    
159            public int countByThumbnailId(long thumbnailId)
160                    throws com.liferay.portal.kernel.exception.SystemException;
161    
162            public int countByFullImageId(long fullImageId)
163                    throws com.liferay.portal.kernel.exception.SystemException;
164    
165            public int countByP_P(long productEntryId, int priority)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            public int countAll()
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    }