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