001
014
015 package com.liferay.portlet.trash.service.base;
016
017 import com.liferay.portal.kernel.bean.BeanReference;
018 import com.liferay.portal.kernel.bean.IdentifiableBean;
019 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
021 import com.liferay.portal.kernel.exception.SystemException;
022 import com.liferay.portal.service.BaseServiceImpl;
023 import com.liferay.portal.service.persistence.GroupFinder;
024 import com.liferay.portal.service.persistence.GroupPersistence;
025 import com.liferay.portal.service.persistence.SystemEventPersistence;
026 import com.liferay.portal.service.persistence.UserFinder;
027 import com.liferay.portal.service.persistence.UserPersistence;
028
029 import com.liferay.portlet.trash.model.TrashEntry;
030 import com.liferay.portlet.trash.service.TrashEntryService;
031 import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
032 import com.liferay.portlet.trash.service.persistence.TrashVersionPersistence;
033
034 import javax.sql.DataSource;
035
036
048 public abstract class TrashEntryServiceBaseImpl extends BaseServiceImpl
049 implements TrashEntryService, IdentifiableBean {
050
055
056
061 public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
062 return trashEntryLocalService;
063 }
064
065
070 public void setTrashEntryLocalService(
071 com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
072 this.trashEntryLocalService = trashEntryLocalService;
073 }
074
075
080 public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
081 return trashEntryService;
082 }
083
084
089 public void setTrashEntryService(
090 com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
091 this.trashEntryService = trashEntryService;
092 }
093
094
099 public TrashEntryPersistence getTrashEntryPersistence() {
100 return trashEntryPersistence;
101 }
102
103
108 public void setTrashEntryPersistence(
109 TrashEntryPersistence trashEntryPersistence) {
110 this.trashEntryPersistence = trashEntryPersistence;
111 }
112
113
118 public com.liferay.portlet.trash.service.TrashVersionLocalService getTrashVersionLocalService() {
119 return trashVersionLocalService;
120 }
121
122
127 public void setTrashVersionLocalService(
128 com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService) {
129 this.trashVersionLocalService = trashVersionLocalService;
130 }
131
132
137 public TrashVersionPersistence getTrashVersionPersistence() {
138 return trashVersionPersistence;
139 }
140
141
146 public void setTrashVersionPersistence(
147 TrashVersionPersistence trashVersionPersistence) {
148 this.trashVersionPersistence = trashVersionPersistence;
149 }
150
151
156 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
157 return counterLocalService;
158 }
159
160
165 public void setCounterLocalService(
166 com.liferay.counter.service.CounterLocalService counterLocalService) {
167 this.counterLocalService = counterLocalService;
168 }
169
170
175 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
176 return groupLocalService;
177 }
178
179
184 public void setGroupLocalService(
185 com.liferay.portal.service.GroupLocalService groupLocalService) {
186 this.groupLocalService = groupLocalService;
187 }
188
189
194 public com.liferay.portal.service.GroupService getGroupService() {
195 return groupService;
196 }
197
198
203 public void setGroupService(
204 com.liferay.portal.service.GroupService groupService) {
205 this.groupService = groupService;
206 }
207
208
213 public GroupPersistence getGroupPersistence() {
214 return groupPersistence;
215 }
216
217
222 public void setGroupPersistence(GroupPersistence groupPersistence) {
223 this.groupPersistence = groupPersistence;
224 }
225
226
231 public GroupFinder getGroupFinder() {
232 return groupFinder;
233 }
234
235
240 public void setGroupFinder(GroupFinder groupFinder) {
241 this.groupFinder = groupFinder;
242 }
243
244
249 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
250 return resourceLocalService;
251 }
252
253
258 public void setResourceLocalService(
259 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
260 this.resourceLocalService = resourceLocalService;
261 }
262
263
268 public com.liferay.portal.service.SystemEventLocalService getSystemEventLocalService() {
269 return systemEventLocalService;
270 }
271
272
277 public void setSystemEventLocalService(
278 com.liferay.portal.service.SystemEventLocalService systemEventLocalService) {
279 this.systemEventLocalService = systemEventLocalService;
280 }
281
282
287 public SystemEventPersistence getSystemEventPersistence() {
288 return systemEventPersistence;
289 }
290
291
296 public void setSystemEventPersistence(
297 SystemEventPersistence systemEventPersistence) {
298 this.systemEventPersistence = systemEventPersistence;
299 }
300
301
306 public com.liferay.portal.service.UserLocalService getUserLocalService() {
307 return userLocalService;
308 }
309
310
315 public void setUserLocalService(
316 com.liferay.portal.service.UserLocalService userLocalService) {
317 this.userLocalService = userLocalService;
318 }
319
320
325 public com.liferay.portal.service.UserService getUserService() {
326 return userService;
327 }
328
329
334 public void setUserService(
335 com.liferay.portal.service.UserService userService) {
336 this.userService = userService;
337 }
338
339
344 public UserPersistence getUserPersistence() {
345 return userPersistence;
346 }
347
348
353 public void setUserPersistence(UserPersistence userPersistence) {
354 this.userPersistence = userPersistence;
355 }
356
357
362 public UserFinder getUserFinder() {
363 return userFinder;
364 }
365
366
371 public void setUserFinder(UserFinder userFinder) {
372 this.userFinder = userFinder;
373 }
374
375 public void afterPropertiesSet() {
376 }
377
378 public void destroy() {
379 }
380
381
386 @Override
387 public String getBeanIdentifier() {
388 return _beanIdentifier;
389 }
390
391
396 @Override
397 public void setBeanIdentifier(String beanIdentifier) {
398 _beanIdentifier = beanIdentifier;
399 }
400
401 protected Class<?> getModelClass() {
402 return TrashEntry.class;
403 }
404
405 protected String getModelClassName() {
406 return TrashEntry.class.getName();
407 }
408
409
414 protected void runSQL(String sql) throws SystemException {
415 try {
416 DataSource dataSource = trashEntryPersistence.getDataSource();
417
418 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
419 sql, new int[0]);
420
421 sqlUpdate.update();
422 }
423 catch (Exception e) {
424 throw new SystemException(e);
425 }
426 }
427
428 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
429 protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
430 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
431 protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
432 @BeanReference(type = TrashEntryPersistence.class)
433 protected TrashEntryPersistence trashEntryPersistence;
434 @BeanReference(type = com.liferay.portlet.trash.service.TrashVersionLocalService.class)
435 protected com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService;
436 @BeanReference(type = TrashVersionPersistence.class)
437 protected TrashVersionPersistence trashVersionPersistence;
438 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
439 protected com.liferay.counter.service.CounterLocalService counterLocalService;
440 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
441 protected com.liferay.portal.service.GroupLocalService groupLocalService;
442 @BeanReference(type = com.liferay.portal.service.GroupService.class)
443 protected com.liferay.portal.service.GroupService groupService;
444 @BeanReference(type = GroupPersistence.class)
445 protected GroupPersistence groupPersistence;
446 @BeanReference(type = GroupFinder.class)
447 protected GroupFinder groupFinder;
448 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
449 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
450 @BeanReference(type = com.liferay.portal.service.SystemEventLocalService.class)
451 protected com.liferay.portal.service.SystemEventLocalService systemEventLocalService;
452 @BeanReference(type = SystemEventPersistence.class)
453 protected SystemEventPersistence systemEventPersistence;
454 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
455 protected com.liferay.portal.service.UserLocalService userLocalService;
456 @BeanReference(type = com.liferay.portal.service.UserService.class)
457 protected com.liferay.portal.service.UserService userService;
458 @BeanReference(type = UserPersistence.class)
459 protected UserPersistence userPersistence;
460 @BeanReference(type = UserFinder.class)
461 protected UserFinder userFinder;
462 private String _beanIdentifier;
463 }