1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.softwarecatalog.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.softwarecatalog.model.SCProductScreenshot;
20  
21  /**
22   * <a href="SCProductScreenshotPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       SCProductScreenshotPersistenceImpl
31   * @see       SCProductScreenshotUtil
32   * @generated
33   */
34  public interface SCProductScreenshotPersistence extends BasePersistence<SCProductScreenshot> {
35      public void cacheResult(
36          com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> scProductScreenshots);
40  
41      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot create(
42          long productScreenshotId);
43  
44      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(
45          long productScreenshotId)
46          throws com.liferay.portal.SystemException,
47              com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot update(
53          com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl(
57          com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
58          boolean merge) throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(
61          long productScreenshotId)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
64  
65      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(
66          long productScreenshotId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
69          long productEntryId) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
72          long productEntryId, int start, int end)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
76          long productEntryId, int start, int end,
77          com.liferay.portal.kernel.util.OrderByComparator obc)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(
81          long productEntryId,
82          com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
85  
86      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(
87          long productEntryId,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.SystemException,
90              com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
91  
92      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(
93          long productScreenshotId, long productEntryId,
94          com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
97  
98      public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(
99          long thumbnailId)
100         throws com.liferay.portal.SystemException,
101             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
102 
103     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
104         long thumbnailId) throws com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
107         long thumbnailId, boolean retrieveFromCache)
108         throws com.liferay.portal.SystemException;
109 
110     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(
111         long fullImageId)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
114 
115     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
116         long fullImageId) throws com.liferay.portal.SystemException;
117 
118     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
119         long fullImageId, boolean retrieveFromCache)
120         throws com.liferay.portal.SystemException;
121 
122     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P(
123         long productEntryId, int priority)
124         throws com.liferay.portal.SystemException,
125             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
126 
127     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
128         long productEntryId, int priority)
129         throws com.liferay.portal.SystemException;
130 
131     public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
132         long productEntryId, int priority, boolean retrieveFromCache)
133         throws com.liferay.portal.SystemException;
134 
135     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll()
136         throws com.liferay.portal.SystemException;
137 
138     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
139         int start, int end) throws com.liferay.portal.SystemException;
140 
141     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
142         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
143         throws com.liferay.portal.SystemException;
144 
145     public void removeByProductEntryId(long productEntryId)
146         throws com.liferay.portal.SystemException;
147 
148     public void removeByThumbnailId(long thumbnailId)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
151 
152     public void removeByFullImageId(long fullImageId)
153         throws com.liferay.portal.SystemException,
154             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
155 
156     public void removeByP_P(long productEntryId, int priority)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
159 
160     public void removeAll() throws com.liferay.portal.SystemException;
161 
162     public int countByProductEntryId(long productEntryId)
163         throws com.liferay.portal.SystemException;
164 
165     public int countByThumbnailId(long thumbnailId)
166         throws com.liferay.portal.SystemException;
167 
168     public int countByFullImageId(long fullImageId)
169         throws com.liferay.portal.SystemException;
170 
171     public int countByP_P(long productEntryId, int priority)
172         throws com.liferay.portal.SystemException;
173 
174     public int countAll() throws com.liferay.portal.SystemException;
175 }