1
22
23 package com.liferay.portlet.softwarecatalog.service.persistence;
24
25
31 public interface SCProductEntryPersistence {
32 public com.liferay.portlet.softwarecatalog.model.SCProductEntry create(
33 long productEntryId);
34
35 public com.liferay.portlet.softwarecatalog.model.SCProductEntry remove(
36 long productEntryId)
37 throws com.liferay.portal.SystemException,
38 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
39
40 public com.liferay.portlet.softwarecatalog.model.SCProductEntry remove(
41 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
42 throws com.liferay.portal.SystemException;
43
44 public com.liferay.portlet.softwarecatalog.model.SCProductEntry update(
45 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
46 throws com.liferay.portal.SystemException;
47
48 public com.liferay.portlet.softwarecatalog.model.SCProductEntry update(
49 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
50 boolean merge) throws com.liferay.portal.SystemException;
51
52 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByPrimaryKey(
53 long productEntryId)
54 throws com.liferay.portal.SystemException,
55 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
56
57 public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByPrimaryKey(
58 long productEntryId) throws com.liferay.portal.SystemException;
59
60 public java.util.List findByGroupId(long groupId)
61 throws com.liferay.portal.SystemException;
62
63 public java.util.List findByGroupId(long groupId, int begin, int end)
64 throws com.liferay.portal.SystemException;
65
66 public java.util.List findByGroupId(long groupId, int begin, int end,
67 com.liferay.portal.kernel.util.OrderByComparator obc)
68 throws com.liferay.portal.SystemException;
69
70 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_First(
71 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
72 throws com.liferay.portal.SystemException,
73 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
74
75 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_Last(
76 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
77 throws com.liferay.portal.SystemException,
78 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
79
80 public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByGroupId_PrevAndNext(
81 long productEntryId, long groupId,
82 com.liferay.portal.kernel.util.OrderByComparator obc)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
85
86 public java.util.List findByCompanyId(long companyId)
87 throws com.liferay.portal.SystemException;
88
89 public java.util.List findByCompanyId(long companyId, int begin, int end)
90 throws com.liferay.portal.SystemException;
91
92 public java.util.List findByCompanyId(long companyId, int begin, int end,
93 com.liferay.portal.kernel.util.OrderByComparator obc)
94 throws com.liferay.portal.SystemException;
95
96 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_First(
97 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
98 throws com.liferay.portal.SystemException,
99 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
100
101 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_Last(
102 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
103 throws com.liferay.portal.SystemException,
104 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
105
106 public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByCompanyId_PrevAndNext(
107 long productEntryId, long companyId,
108 com.liferay.portal.kernel.util.OrderByComparator obc)
109 throws com.liferay.portal.SystemException,
110 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
111
112 public java.util.List findByG_U(long groupId, long userId)
113 throws com.liferay.portal.SystemException;
114
115 public java.util.List findByG_U(long groupId, long userId, int begin,
116 int end) throws com.liferay.portal.SystemException;
117
118 public java.util.List findByG_U(long groupId, long userId, int begin,
119 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
120 throws com.liferay.portal.SystemException;
121
122 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_First(
123 long groupId, long userId,
124 com.liferay.portal.kernel.util.OrderByComparator obc)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
127
128 public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_Last(
129 long groupId, long userId,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException,
132 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
133
134 public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByG_U_PrevAndNext(
135 long productEntryId, long groupId, long userId,
136 com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
139
140 public java.util.List findWithDynamicQuery(
141 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
142 throws com.liferay.portal.SystemException;
143
144 public java.util.List findWithDynamicQuery(
145 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
146 int begin, int end) throws com.liferay.portal.SystemException;
147
148 public java.util.List findAll() throws com.liferay.portal.SystemException;
149
150 public java.util.List findAll(int begin, int end)
151 throws com.liferay.portal.SystemException;
152
153 public java.util.List findAll(int begin, int end,
154 com.liferay.portal.kernel.util.OrderByComparator obc)
155 throws com.liferay.portal.SystemException;
156
157 public void removeByGroupId(long groupId)
158 throws com.liferay.portal.SystemException;
159
160 public void removeByCompanyId(long companyId)
161 throws com.liferay.portal.SystemException;
162
163 public void removeByG_U(long groupId, long userId)
164 throws com.liferay.portal.SystemException;
165
166 public void removeAll() throws com.liferay.portal.SystemException;
167
168 public int countByGroupId(long groupId)
169 throws com.liferay.portal.SystemException;
170
171 public int countByCompanyId(long companyId)
172 throws com.liferay.portal.SystemException;
173
174 public int countByG_U(long groupId, long userId)
175 throws com.liferay.portal.SystemException;
176
177 public int countAll() throws com.liferay.portal.SystemException;
178
179 public java.util.List getSCLicenses(long pk)
180 throws com.liferay.portal.SystemException,
181 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
182
183 public java.util.List getSCLicenses(long pk, int begin, int end)
184 throws com.liferay.portal.SystemException,
185 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
186
187 public java.util.List getSCLicenses(long pk, int begin, int end,
188 com.liferay.portal.kernel.util.OrderByComparator obc)
189 throws com.liferay.portal.SystemException,
190 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
191
192 public int getSCLicensesSize(long pk)
193 throws com.liferay.portal.SystemException;
194
195 public boolean containsSCLicense(long pk, long scLicensePK)
196 throws com.liferay.portal.SystemException;
197
198 public boolean containsSCLicenses(long pk)
199 throws com.liferay.portal.SystemException;
200
201 public void addSCLicense(long pk, long scLicensePK)
202 throws com.liferay.portal.SystemException,
203 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
204 com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
205
206 public void addSCLicense(long pk,
207 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
208 throws com.liferay.portal.SystemException,
209 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
210 com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
211
212 public void addSCLicenses(long pk, long[] scLicensePKs)
213 throws com.liferay.portal.SystemException,
214 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
215 com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
216
217 public void addSCLicenses(long pk, java.util.List scLicenses)
218 throws com.liferay.portal.SystemException,
219 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
220 com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
221
222 public void clearSCLicenses(long pk)
223 throws com.liferay.portal.SystemException,
224 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
225
226 public void removeSCLicense(long pk, long scLicensePK)
227 throws com.liferay.portal.SystemException,
228 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
229 com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
230
231 public void removeSCLicense(long pk,
232 com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
233 throws com.liferay.portal.SystemException,
234 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
235 com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
236
237 public void removeSCLicenses(long pk, long[] scLicensePKs)
238 throws com.liferay.portal.SystemException,
239 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
240 com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
241
242 public void removeSCLicenses(long pk, java.util.List scLicenses)
243 throws com.liferay.portal.SystemException,
244 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
245 com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
246
247 public void setSCLicenses(long pk, long[] scLicensePKs)
248 throws com.liferay.portal.SystemException,
249 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
250 com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
251
252 public void setSCLicenses(long pk, java.util.List scLicenses)
253 throws com.liferay.portal.SystemException,
254 com.liferay.portlet.softwarecatalog.NoSuchProductEntryException,
255 com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
256 }