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 SCProductVersionPersistence {
39 public com.liferay.portlet.softwarecatalog.model.SCProductVersion create(
40 long productVersionId);
41
42 public com.liferay.portlet.softwarecatalog.model.SCProductVersion remove(
43 long productVersionId)
44 throws com.liferay.portal.SystemException,
45 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
46
47 public com.liferay.portlet.softwarecatalog.model.SCProductVersion remove(
48 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
49 throws com.liferay.portal.SystemException;
50
51
54 public com.liferay.portlet.softwarecatalog.model.SCProductVersion update(
55 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
56 throws com.liferay.portal.SystemException;
57
58
71 public com.liferay.portlet.softwarecatalog.model.SCProductVersion update(
72 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
73 boolean merge) throws com.liferay.portal.SystemException;
74
75 public com.liferay.portlet.softwarecatalog.model.SCProductVersion updateImpl(
76 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
77 boolean merge) throws com.liferay.portal.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByPrimaryKey(
81 long productVersionId)
82 throws com.liferay.portal.SystemException,
83 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
84
85 public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByPrimaryKey(
86 long productVersionId) throws com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> 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.SCProductVersion> 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.SCProductVersion> 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.SCProductVersion findByProductEntryId_First(
105 long productEntryId,
106 com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
109
110 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111 public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_Last(
112 long productEntryId,
113 com.liferay.portal.kernel.util.OrderByComparator obc)
114 throws com.liferay.portal.SystemException,
115 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public com.liferay.portlet.softwarecatalog.model.SCProductVersion[] findByProductEntryId_PrevAndNext(
119 long productVersionId, long productEntryId,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException,
122 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
123
124 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
125 public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByDirectDownloadURL(
126 java.lang.String directDownloadURL)
127 throws com.liferay.portal.SystemException,
128 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
129
130 public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
131 java.lang.String directDownloadURL)
132 throws com.liferay.portal.SystemException;
133
134 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135 public java.util.List<Object> findWithDynamicQuery(
136 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
137 throws com.liferay.portal.SystemException;
138
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public java.util.List<Object> findWithDynamicQuery(
141 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142 int end) throws com.liferay.portal.SystemException;
143
144 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll()
146 throws com.liferay.portal.SystemException;
147
148 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
150 int start, int end) throws com.liferay.portal.SystemException;
151
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
154 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
155 throws com.liferay.portal.SystemException;
156
157 public void removeByProductEntryId(long productEntryId)
158 throws com.liferay.portal.SystemException;
159
160 public void removeByDirectDownloadURL(java.lang.String directDownloadURL)
161 throws com.liferay.portal.SystemException,
162 com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
163
164 public void removeAll() throws com.liferay.portal.SystemException;
165
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public int countByProductEntryId(long productEntryId)
168 throws com.liferay.portal.SystemException;
169
170 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171 public int countByDirectDownloadURL(java.lang.String directDownloadURL)
172 throws com.liferay.portal.SystemException;
173
174 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175 public int countAll() throws com.liferay.portal.SystemException;
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
179 long pk) throws com.liferay.portal.SystemException;
180
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
183 long pk, int start, int end) throws com.liferay.portal.SystemException;
184
185 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
187 long pk, int start, int end,
188 com.liferay.portal.kernel.util.OrderByComparator obc)
189 throws com.liferay.portal.SystemException;
190
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public int getSCFrameworkVersionsSize(long pk)
193 throws com.liferay.portal.SystemException;
194
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public boolean containsSCFrameworkVersion(long pk, long scFrameworkVersionPK)
197 throws com.liferay.portal.SystemException;
198
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public boolean containsSCFrameworkVersions(long pk)
201 throws com.liferay.portal.SystemException;
202
203 public void addSCFrameworkVersion(long pk, long scFrameworkVersionPK)
204 throws com.liferay.portal.SystemException;
205
206 public void addSCFrameworkVersion(long pk,
207 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
208 throws com.liferay.portal.SystemException;
209
210 public void addSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
211 throws com.liferay.portal.SystemException;
212
213 public void addSCFrameworkVersions(long pk,
214 java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
215 throws com.liferay.portal.SystemException;
216
217 public void clearSCFrameworkVersions(long pk)
218 throws com.liferay.portal.SystemException;
219
220 public void removeSCFrameworkVersion(long pk, long scFrameworkVersionPK)
221 throws com.liferay.portal.SystemException;
222
223 public void removeSCFrameworkVersion(long pk,
224 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
225 throws com.liferay.portal.SystemException;
226
227 public void removeSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
228 throws com.liferay.portal.SystemException;
229
230 public void removeSCFrameworkVersions(long pk,
231 java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
232 throws com.liferay.portal.SystemException;
233
234 public void setSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
235 throws com.liferay.portal.SystemException;
236
237 public void setSCFrameworkVersions(long pk,
238 java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
239 throws com.liferay.portal.SystemException;
240
241 public void registerListener(
242 com.liferay.portal.model.ModelListener listener);
243
244 public void unregisterListener(
245 com.liferay.portal.model.ModelListener listener);
246 }