1
19
20 package com.liferay.portlet.softwarecatalog.service.base;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.BeanReference;
25 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
26 import com.liferay.portal.service.ImageLocalService;
27 import com.liferay.portal.service.persistence.ImagePersistence;
28 import com.liferay.portal.util.PortalUtil;
29
30 import com.liferay.portlet.softwarecatalog.model.SCProductScreenshot;
31 import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService;
32 import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService;
33 import com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService;
34 import com.liferay.portlet.softwarecatalog.service.SCLicenseService;
35 import com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService;
36 import com.liferay.portlet.softwarecatalog.service.SCProductEntryService;
37 import com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService;
38 import com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService;
39 import com.liferay.portlet.softwarecatalog.service.SCProductVersionService;
40 import com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence;
41 import com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence;
42 import com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence;
43 import com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence;
44 import com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence;
45
46 import java.util.List;
47
48
54 public abstract class SCProductScreenshotLocalServiceBaseImpl
55 implements SCProductScreenshotLocalService {
56 public SCProductScreenshot addSCProductScreenshot(
57 SCProductScreenshot scProductScreenshot) throws SystemException {
58 scProductScreenshot.setNew(true);
59
60 return scProductScreenshotPersistence.update(scProductScreenshot, false);
61 }
62
63 public SCProductScreenshot createSCProductScreenshot(
64 long productScreenshotId) {
65 return scProductScreenshotPersistence.create(productScreenshotId);
66 }
67
68 public void deleteSCProductScreenshot(long productScreenshotId)
69 throws PortalException, SystemException {
70 scProductScreenshotPersistence.remove(productScreenshotId);
71 }
72
73 public void deleteSCProductScreenshot(
74 SCProductScreenshot scProductScreenshot) throws SystemException {
75 scProductScreenshotPersistence.remove(scProductScreenshot);
76 }
77
78 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
79 throws SystemException {
80 return scProductScreenshotPersistence.findWithDynamicQuery(dynamicQuery);
81 }
82
83 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
84 int end) throws SystemException {
85 return scProductScreenshotPersistence.findWithDynamicQuery(dynamicQuery,
86 start, end);
87 }
88
89 public SCProductScreenshot getSCProductScreenshot(long productScreenshotId)
90 throws PortalException, SystemException {
91 return scProductScreenshotPersistence.findByPrimaryKey(productScreenshotId);
92 }
93
94 public List<SCProductScreenshot> getSCProductScreenshots(int start, int end)
95 throws SystemException {
96 return scProductScreenshotPersistence.findAll(start, end);
97 }
98
99 public int getSCProductScreenshotsCount() throws SystemException {
100 return scProductScreenshotPersistence.countAll();
101 }
102
103 public SCProductScreenshot updateSCProductScreenshot(
104 SCProductScreenshot scProductScreenshot) throws SystemException {
105 scProductScreenshot.setNew(false);
106
107 return scProductScreenshotPersistence.update(scProductScreenshot, true);
108 }
109
110 public SCProductScreenshot updateSCProductScreenshot(
111 SCProductScreenshot scProductScreenshot, boolean merge)
112 throws SystemException {
113 scProductScreenshot.setNew(false);
114
115 return scProductScreenshotPersistence.update(scProductScreenshot, merge);
116 }
117
118 public SCLicenseLocalService getSCLicenseLocalService() {
119 return scLicenseLocalService;
120 }
121
122 public void setSCLicenseLocalService(
123 SCLicenseLocalService scLicenseLocalService) {
124 this.scLicenseLocalService = scLicenseLocalService;
125 }
126
127 public SCLicenseService getSCLicenseService() {
128 return scLicenseService;
129 }
130
131 public void setSCLicenseService(SCLicenseService scLicenseService) {
132 this.scLicenseService = scLicenseService;
133 }
134
135 public SCLicensePersistence getSCLicensePersistence() {
136 return scLicensePersistence;
137 }
138
139 public void setSCLicensePersistence(
140 SCLicensePersistence scLicensePersistence) {
141 this.scLicensePersistence = scLicensePersistence;
142 }
143
144 public SCFrameworkVersionLocalService getSCFrameworkVersionLocalService() {
145 return scFrameworkVersionLocalService;
146 }
147
148 public void setSCFrameworkVersionLocalService(
149 SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
150 this.scFrameworkVersionLocalService = scFrameworkVersionLocalService;
151 }
152
153 public SCFrameworkVersionService getSCFrameworkVersionService() {
154 return scFrameworkVersionService;
155 }
156
157 public void setSCFrameworkVersionService(
158 SCFrameworkVersionService scFrameworkVersionService) {
159 this.scFrameworkVersionService = scFrameworkVersionService;
160 }
161
162 public SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
163 return scFrameworkVersionPersistence;
164 }
165
166 public void setSCFrameworkVersionPersistence(
167 SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
168 this.scFrameworkVersionPersistence = scFrameworkVersionPersistence;
169 }
170
171 public SCProductEntryLocalService getSCProductEntryLocalService() {
172 return scProductEntryLocalService;
173 }
174
175 public void setSCProductEntryLocalService(
176 SCProductEntryLocalService scProductEntryLocalService) {
177 this.scProductEntryLocalService = scProductEntryLocalService;
178 }
179
180 public SCProductEntryService getSCProductEntryService() {
181 return scProductEntryService;
182 }
183
184 public void setSCProductEntryService(
185 SCProductEntryService scProductEntryService) {
186 this.scProductEntryService = scProductEntryService;
187 }
188
189 public SCProductEntryPersistence getSCProductEntryPersistence() {
190 return scProductEntryPersistence;
191 }
192
193 public void setSCProductEntryPersistence(
194 SCProductEntryPersistence scProductEntryPersistence) {
195 this.scProductEntryPersistence = scProductEntryPersistence;
196 }
197
198 public SCProductScreenshotLocalService getSCProductScreenshotLocalService() {
199 return scProductScreenshotLocalService;
200 }
201
202 public void setSCProductScreenshotLocalService(
203 SCProductScreenshotLocalService scProductScreenshotLocalService) {
204 this.scProductScreenshotLocalService = scProductScreenshotLocalService;
205 }
206
207 public SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
208 return scProductScreenshotPersistence;
209 }
210
211 public void setSCProductScreenshotPersistence(
212 SCProductScreenshotPersistence scProductScreenshotPersistence) {
213 this.scProductScreenshotPersistence = scProductScreenshotPersistence;
214 }
215
216 public SCProductVersionLocalService getSCProductVersionLocalService() {
217 return scProductVersionLocalService;
218 }
219
220 public void setSCProductVersionLocalService(
221 SCProductVersionLocalService scProductVersionLocalService) {
222 this.scProductVersionLocalService = scProductVersionLocalService;
223 }
224
225 public SCProductVersionService getSCProductVersionService() {
226 return scProductVersionService;
227 }
228
229 public void setSCProductVersionService(
230 SCProductVersionService scProductVersionService) {
231 this.scProductVersionService = scProductVersionService;
232 }
233
234 public SCProductVersionPersistence getSCProductVersionPersistence() {
235 return scProductVersionPersistence;
236 }
237
238 public void setSCProductVersionPersistence(
239 SCProductVersionPersistence scProductVersionPersistence) {
240 this.scProductVersionPersistence = scProductVersionPersistence;
241 }
242
243 public ImageLocalService getImageLocalService() {
244 return imageLocalService;
245 }
246
247 public void setImageLocalService(ImageLocalService imageLocalService) {
248 this.imageLocalService = imageLocalService;
249 }
250
251 public ImagePersistence getImagePersistence() {
252 return imagePersistence;
253 }
254
255 public void setImagePersistence(ImagePersistence imagePersistence) {
256 this.imagePersistence = imagePersistence;
257 }
258
259 protected void runSQL(String sql) throws SystemException {
260 try {
261 PortalUtil.runSQL(sql);
262 }
263 catch (Exception e) {
264 throw new SystemException(e);
265 }
266 }
267
268 @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService.impl")
269 protected SCLicenseLocalService scLicenseLocalService;
270 @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCLicenseService.impl")
271 protected SCLicenseService scLicenseService;
272 @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence.impl")
273 protected SCLicensePersistence scLicensePersistence;
274 @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService.impl")
275 protected SCFrameworkVersionLocalService scFrameworkVersionLocalService;
276 @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService.impl")
277 protected SCFrameworkVersionService scFrameworkVersionService;
278 @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence.impl")
279 protected SCFrameworkVersionPersistence scFrameworkVersionPersistence;
280 @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService.impl")
281 protected SCProductEntryLocalService scProductEntryLocalService;
282 @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCProductEntryService.impl")
283 protected SCProductEntryService scProductEntryService;
284 @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence.impl")
285 protected SCProductEntryPersistence scProductEntryPersistence;
286 @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService.impl")
287 protected SCProductScreenshotLocalService scProductScreenshotLocalService;
288 @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence.impl")
289 protected SCProductScreenshotPersistence scProductScreenshotPersistence;
290 @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService.impl")
291 protected SCProductVersionLocalService scProductVersionLocalService;
292 @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCProductVersionService.impl")
293 protected SCProductVersionService scProductVersionService;
294 @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence.impl")
295 protected SCProductVersionPersistence scProductVersionPersistence;
296 @BeanReference(name = "com.liferay.portal.service.ImageLocalService.impl")
297 protected ImageLocalService imageLocalService;
298 @BeanReference(name = "com.liferay.portal.service.persistence.ImagePersistence.impl")
299 protected ImagePersistence imagePersistence;
300 }