1
22
23 package com.liferay.portlet.softwarecatalog.service.persistence;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
36 @Transactional(rollbackFor = {
37 PortalException.class, SystemException.class})
38 public interface SCProductScreenshotPersistence {
39 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot create(
40 long productScreenshotId);
41
42 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(
43 long productScreenshotId)
44 throws com.liferay.portal.SystemException,
45 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
46
47 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(
48 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
49 throws com.liferay.portal.SystemException;
50
51
54 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot update(
55 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
56 throws com.liferay.portal.SystemException;
57
58
71 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot update(
72 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
73 boolean merge) throws com.liferay.portal.SystemException;
74
75 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl(
76 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
77 boolean merge) throws com.liferay.portal.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(
81 long productScreenshotId)
82 throws com.liferay.portal.SystemException,
83 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
84
85 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(
86 long productScreenshotId) throws com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
90 long productEntryId) throws com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
94 long productEntryId, int start, int end)
95 throws com.liferay.portal.SystemException;
96
97 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
98 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
99 long productEntryId, int start, int end,
100 com.liferay.portal.kernel.util.OrderByComparator obc)
101 throws com.liferay.portal.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(
105 long productEntryId,
106 com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
109
110 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(
112 long productEntryId,
113 com.liferay.portal.kernel.util.OrderByComparator obc)
114 throws com.liferay.portal.SystemException,
115 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(
119 long productScreenshotId, long productEntryId,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException,
122 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
123
124 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
125 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(
126 long thumbnailId)
127 throws com.liferay.portal.SystemException,
128 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
129
130 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
131 long thumbnailId) throws com.liferay.portal.SystemException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(
135 long fullImageId)
136 throws com.liferay.portal.SystemException,
137 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
138
139 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
140 long fullImageId) throws com.liferay.portal.SystemException;
141
142 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P(
144 long productEntryId, int priority)
145 throws com.liferay.portal.SystemException,
146 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
147
148 public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
149 long productEntryId, int priority)
150 throws com.liferay.portal.SystemException;
151
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public java.util.List<Object> findWithDynamicQuery(
154 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
155 throws com.liferay.portal.SystemException;
156
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public java.util.List<Object> findWithDynamicQuery(
159 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
160 int end) throws com.liferay.portal.SystemException;
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll()
164 throws com.liferay.portal.SystemException;
165
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
168 int start, int end) throws com.liferay.portal.SystemException;
169
170 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
172 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.SystemException;
174
175 public void removeByProductEntryId(long productEntryId)
176 throws com.liferay.portal.SystemException;
177
178 public void removeByThumbnailId(long thumbnailId)
179 throws com.liferay.portal.SystemException,
180 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
181
182 public void removeByFullImageId(long fullImageId)
183 throws com.liferay.portal.SystemException,
184 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
185
186 public void removeByP_P(long productEntryId, int priority)
187 throws com.liferay.portal.SystemException,
188 com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException;
189
190 public void removeAll() throws com.liferay.portal.SystemException;
191
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public int countByProductEntryId(long productEntryId)
194 throws com.liferay.portal.SystemException;
195
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public int countByThumbnailId(long thumbnailId)
198 throws com.liferay.portal.SystemException;
199
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public int countByFullImageId(long fullImageId)
202 throws com.liferay.portal.SystemException;
203
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public int countByP_P(long productEntryId, int priority)
206 throws com.liferay.portal.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public int countAll() throws com.liferay.portal.SystemException;
210
211 public void registerListener(
212 com.liferay.portal.model.ModelListener listener);
213
214 public void unregisterListener(
215 com.liferay.portal.model.ModelListener listener);
216 }