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