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 SCLicensePersistence {
39 public com.liferay.portlet.softwarecatalog.model.SCLicense create(
40 long licenseId);
41
42 public com.liferay.portlet.softwarecatalog.model.SCLicense remove(
43 long licenseId)
44 throws com.liferay.portal.SystemException,
45 com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
46
47 public com.liferay.portlet.softwarecatalog.model.SCLicense remove(
48 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
49 throws com.liferay.portal.SystemException;
50
51
54 public com.liferay.portlet.softwarecatalog.model.SCLicense update(
55 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
56 throws com.liferay.portal.SystemException;
57
58
71 public com.liferay.portlet.softwarecatalog.model.SCLicense update(
72 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
73 boolean merge) throws com.liferay.portal.SystemException;
74
75 public com.liferay.portlet.softwarecatalog.model.SCLicense updateImpl(
76 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
77 boolean merge) throws com.liferay.portal.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(
81 long licenseId)
82 throws com.liferay.portal.SystemException,
83 com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
84
85 public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(
86 long licenseId) throws com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
90 boolean active) throws com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
94 boolean active, 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.SCLicense> findByActive(
99 boolean active, 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.SCLicense findByActive_First(
105 boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
106 throws com.liferay.portal.SystemException,
107 com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last(
111 boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
112 throws com.liferay.portal.SystemException,
113 com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext(
117 long licenseId, boolean active,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.SystemException,
120 com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
124 boolean active, boolean recommended)
125 throws com.liferay.portal.SystemException;
126
127 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
129 boolean active, boolean recommended, int start, int end)
130 throws com.liferay.portal.SystemException;
131
132 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
134 boolean active, boolean recommended, int start, int end,
135 com.liferay.portal.kernel.util.OrderByComparator obc)
136 throws com.liferay.portal.SystemException;
137
138 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139 public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First(
140 boolean active, boolean recommended,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.SystemException,
143 com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last(
147 boolean active, boolean recommended,
148 com.liferay.portal.kernel.util.OrderByComparator obc)
149 throws com.liferay.portal.SystemException,
150 com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
151
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext(
154 long licenseId, boolean active, boolean recommended,
155 com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.SystemException,
157 com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public java.util.List<Object> findWithDynamicQuery(
161 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
162 throws com.liferay.portal.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public java.util.List<Object> findWithDynamicQuery(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
167 int end) throws com.liferay.portal.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll()
171 throws com.liferay.portal.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
175 int start, int end) throws com.liferay.portal.SystemException;
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
179 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
180 throws com.liferay.portal.SystemException;
181
182 public void removeByActive(boolean active)
183 throws com.liferay.portal.SystemException;
184
185 public void removeByA_R(boolean active, boolean recommended)
186 throws com.liferay.portal.SystemException;
187
188 public void removeAll() throws com.liferay.portal.SystemException;
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public int countByActive(boolean active)
192 throws com.liferay.portal.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public int countByA_R(boolean active, boolean recommended)
196 throws com.liferay.portal.SystemException;
197
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public int countAll() throws com.liferay.portal.SystemException;
200
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
203 long pk) throws com.liferay.portal.SystemException;
204
205 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
207 long pk, int start, int end) throws com.liferay.portal.SystemException;
208
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
211 long pk, int start, int end,
212 com.liferay.portal.kernel.util.OrderByComparator obc)
213 throws com.liferay.portal.SystemException;
214
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public int getSCProductEntriesSize(long pk)
217 throws com.liferay.portal.SystemException;
218
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public boolean containsSCProductEntry(long pk, long scProductEntryPK)
221 throws com.liferay.portal.SystemException;
222
223 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224 public boolean containsSCProductEntries(long pk)
225 throws com.liferay.portal.SystemException;
226
227 public void addSCProductEntry(long pk, long scProductEntryPK)
228 throws com.liferay.portal.SystemException;
229
230 public void addSCProductEntry(long pk,
231 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
232 throws com.liferay.portal.SystemException;
233
234 public void addSCProductEntries(long pk, long[] scProductEntryPKs)
235 throws com.liferay.portal.SystemException;
236
237 public void addSCProductEntries(long pk,
238 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
239 throws com.liferay.portal.SystemException;
240
241 public void clearSCProductEntries(long pk)
242 throws com.liferay.portal.SystemException;
243
244 public void removeSCProductEntry(long pk, long scProductEntryPK)
245 throws com.liferay.portal.SystemException;
246
247 public void removeSCProductEntry(long pk,
248 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
249 throws com.liferay.portal.SystemException;
250
251 public void removeSCProductEntries(long pk, long[] scProductEntryPKs)
252 throws com.liferay.portal.SystemException;
253
254 public void removeSCProductEntries(long pk,
255 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
256 throws com.liferay.portal.SystemException;
257
258 public void setSCProductEntries(long pk, long[] scProductEntryPKs)
259 throws com.liferay.portal.SystemException;
260
261 public void setSCProductEntries(long pk,
262 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
263 throws com.liferay.portal.SystemException;
264
265 public void registerListener(
266 com.liferay.portal.model.ModelListener listener);
267
268 public void unregisterListener(
269 com.liferay.portal.model.ModelListener listener);
270 }