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  import com.liferay.portlet.softwarecatalog.model.SCProductScreenshot;
28  
29  /**
30   * <a href="SCProductScreenshotPersistence.java.html"><b><i>View Source</i></b></a>
31   *
32   * <p>
33   * ServiceBuilder generated this class. Modifications in this class will be
34   * overwritten the next time is generated.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       SCProductScreenshotPersistenceImpl
39   * @see       SCProductScreenshotUtil
40   * @generated
41   */
42  public interface SCProductScreenshotPersistence extends BasePersistence<SCProductScreenshot> {
43      public void cacheResult(
44          com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot);
45  
46      public void cacheResult(
47          java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> scProductScreenshots);
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      /**
58       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
59       */
60      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot update(
61          com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
62          throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl(
65          com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
66          boolean merge) throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(
69          long productScreenshotId)
70          throws com.liferay.portal.SystemException,
71              com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
72  
73      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(
74          long productScreenshotId) throws com.liferay.portal.SystemException;
75  
76      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
77          long productEntryId) throws com.liferay.portal.SystemException;
78  
79      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
80          long productEntryId, int start, int end)
81          throws com.liferay.portal.SystemException;
82  
83      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
84          long productEntryId, int start, int end,
85          com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(
89          long productEntryId,
90          com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.SystemException,
92              com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
93  
94      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(
95          long productEntryId,
96          com.liferay.portal.kernel.util.OrderByComparator obc)
97          throws com.liferay.portal.SystemException,
98              com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
99  
100     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(
101         long productScreenshotId, long productEntryId,
102         com.liferay.portal.kernel.util.OrderByComparator obc)
103         throws com.liferay.portal.SystemException,
104             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
105 
106     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(
107         long thumbnailId)
108         throws com.liferay.portal.SystemException,
109             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
110 
111     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
112         long thumbnailId) throws com.liferay.portal.SystemException;
113 
114     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
115         long thumbnailId, boolean retrieveFromCache)
116         throws com.liferay.portal.SystemException;
117 
118     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(
119         long fullImageId)
120         throws com.liferay.portal.SystemException,
121             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
122 
123     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
124         long fullImageId) throws com.liferay.portal.SystemException;
125 
126     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
127         long fullImageId, boolean retrieveFromCache)
128         throws com.liferay.portal.SystemException;
129 
130     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P(
131         long productEntryId, int priority)
132         throws com.liferay.portal.SystemException,
133             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
134 
135     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
136         long productEntryId, int priority)
137         throws com.liferay.portal.SystemException;
138 
139     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
140         long productEntryId, int priority, boolean retrieveFromCache)
141         throws com.liferay.portal.SystemException;
142 
143     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll()
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
147         int start, int end) throws com.liferay.portal.SystemException;
148 
149     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
150         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException;
152 
153     public void removeByProductEntryId(long productEntryId)
154         throws com.liferay.portal.SystemException;
155 
156     public void removeByThumbnailId(long thumbnailId)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
159 
160     public void removeByFullImageId(long fullImageId)
161         throws com.liferay.portal.SystemException,
162             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
163 
164     public void removeByP_P(long productEntryId, int priority)
165         throws com.liferay.portal.SystemException,
166             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
167 
168     public void removeAll() throws com.liferay.portal.SystemException;
169 
170     public int countByProductEntryId(long productEntryId)
171         throws com.liferay.portal.SystemException;
172 
173     public int countByThumbnailId(long thumbnailId)
174         throws com.liferay.portal.SystemException;
175 
176     public int countByFullImageId(long fullImageId)
177         throws com.liferay.portal.SystemException;
178 
179     public int countByP_P(long productEntryId, int priority)
180         throws com.liferay.portal.SystemException;
181 
182     public int countAll() throws com.liferay.portal.SystemException;
183 }