1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.softwarecatalog.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  /**
28   * <a href="SCProductScreenshotPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       SCProductScreenshotPersistenceImpl
37   * @see       SCProductScreenshotUtil
38   * @generated
39   */
40  public interface SCProductScreenshotPersistence extends BasePersistence {
41      public void cacheResult(
42          com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> scProductScreenshots);
46  
47      public void clearCache();
48  
49      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot create(
50          long productScreenshotId);
51  
52      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(
53          long productScreenshotId)
54          throws com.liferay.portal.SystemException,
55              com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
56  
57      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(
58          com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
59          throws com.liferay.portal.SystemException;
60  
61      /**
62       * @deprecated Use {@link #update(SCProductScreenshot, boolean merge)}.
63       */
64      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot update(
65          com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
66          throws com.liferay.portal.SystemException;
67  
68      /**
69       * Add, update, or merge, the entity. This method also calls the model
70       * listeners to trigger the proper events associated with adding, deleting,
71       * or updating an entity.
72       *
73       * @param  scProductScreenshot the entity to add, update, or merge
74       * @param  merge boolean value for whether to merge the entity. The default
75       *         value is false. Setting merge to true is more expensive and
76       *         should only be true when scProductScreenshot is transient. See
77       *         LEP-5473 for a detailed discussion of this method.
78       * @return the entity that was added, updated, or merged
79       */
80      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot update(
81          com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
82          boolean merge) throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl(
85          com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
86          boolean merge) throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(
89          long productScreenshotId)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
92  
93      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(
94          long productScreenshotId) throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
97          long productEntryId) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
100         long productEntryId, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
104         long productEntryId, int start, int end,
105         com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(
109         long productEntryId,
110         com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.SystemException,
112             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
113 
114     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(
115         long productEntryId,
116         com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
119 
120     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(
121         long productScreenshotId, long productEntryId,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
125 
126     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(
127         long thumbnailId)
128         throws com.liferay.portal.SystemException,
129             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
130 
131     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
132         long thumbnailId) throws com.liferay.portal.SystemException;
133 
134     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
135         long thumbnailId, boolean retrieveFromCache)
136         throws com.liferay.portal.SystemException;
137 
138     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(
139         long fullImageId)
140         throws com.liferay.portal.SystemException,
141             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
142 
143     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
144         long fullImageId) throws com.liferay.portal.SystemException;
145 
146     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
147         long fullImageId, boolean retrieveFromCache)
148         throws com.liferay.portal.SystemException;
149 
150     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P(
151         long productEntryId, int priority)
152         throws com.liferay.portal.SystemException,
153             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
154 
155     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
156         long productEntryId, int priority)
157         throws com.liferay.portal.SystemException;
158 
159     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
160         long productEntryId, int priority, boolean retrieveFromCache)
161         throws com.liferay.portal.SystemException;
162 
163     public java.util.List<Object> findWithDynamicQuery(
164         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
165         throws com.liferay.portal.SystemException;
166 
167     public java.util.List<Object> findWithDynamicQuery(
168         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
169         int end) throws com.liferay.portal.SystemException;
170 
171     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll()
172         throws com.liferay.portal.SystemException;
173 
174     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
175         int start, int end) throws com.liferay.portal.SystemException;
176 
177     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
178         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
179         throws com.liferay.portal.SystemException;
180 
181     public void removeByProductEntryId(long productEntryId)
182         throws com.liferay.portal.SystemException;
183 
184     public void removeByThumbnailId(long thumbnailId)
185         throws com.liferay.portal.SystemException,
186             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
187 
188     public void removeByFullImageId(long fullImageId)
189         throws com.liferay.portal.SystemException,
190             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
191 
192     public void removeByP_P(long productEntryId, int priority)
193         throws com.liferay.portal.SystemException,
194             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
195 
196     public void removeAll() throws com.liferay.portal.SystemException;
197 
198     public int countByProductEntryId(long productEntryId)
199         throws com.liferay.portal.SystemException;
200 
201     public int countByThumbnailId(long thumbnailId)
202         throws com.liferay.portal.SystemException;
203 
204     public int countByFullImageId(long fullImageId)
205         throws com.liferay.portal.SystemException;
206 
207     public int countByP_P(long productEntryId, int priority)
208         throws com.liferay.portal.SystemException;
209 
210     public int countAll() throws com.liferay.portal.SystemException;
211 }