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.UserFinder;
026 import com.liferay.portal.service.persistence.UserPersistence;
027
028 import com.liferay.portlet.trash.model.TrashEntry;
029 import com.liferay.portlet.trash.service.TrashEntryService;
030 import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
031 import com.liferay.portlet.trash.service.persistence.TrashVersionPersistence;
032
033 import javax.sql.DataSource;
034
035
047 public abstract class TrashEntryServiceBaseImpl extends BaseServiceImpl
048 implements TrashEntryService, IdentifiableBean {
049
054
055
060 public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
061 return trashEntryLocalService;
062 }
063
064
069 public void setTrashEntryLocalService(
070 com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
071 this.trashEntryLocalService = trashEntryLocalService;
072 }
073
074
079 public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
080 return trashEntryService;
081 }
082
083
088 public void setTrashEntryService(
089 com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
090 this.trashEntryService = trashEntryService;
091 }
092
093
098 public TrashEntryPersistence getTrashEntryPersistence() {
099 return trashEntryPersistence;
100 }
101
102
107 public void setTrashEntryPersistence(
108 TrashEntryPersistence trashEntryPersistence) {
109 this.trashEntryPersistence = trashEntryPersistence;
110 }
111
112
117 public com.liferay.portlet.trash.service.TrashVersionLocalService getTrashVersionLocalService() {
118 return trashVersionLocalService;
119 }
120
121
126 public void setTrashVersionLocalService(
127 com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService) {
128 this.trashVersionLocalService = trashVersionLocalService;
129 }
130
131
136 public TrashVersionPersistence getTrashVersionPersistence() {
137 return trashVersionPersistence;
138 }
139
140
145 public void setTrashVersionPersistence(
146 TrashVersionPersistence trashVersionPersistence) {
147 this.trashVersionPersistence = trashVersionPersistence;
148 }
149
150
155 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
156 return counterLocalService;
157 }
158
159
164 public void setCounterLocalService(
165 com.liferay.counter.service.CounterLocalService counterLocalService) {
166 this.counterLocalService = counterLocalService;
167 }
168
169
174 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
175 return groupLocalService;
176 }
177
178
183 public void setGroupLocalService(
184 com.liferay.portal.service.GroupLocalService groupLocalService) {
185 this.groupLocalService = groupLocalService;
186 }
187
188
193 public com.liferay.portal.service.GroupService getGroupService() {
194 return groupService;
195 }
196
197
202 public void setGroupService(
203 com.liferay.portal.service.GroupService groupService) {
204 this.groupService = groupService;
205 }
206
207
212 public GroupPersistence getGroupPersistence() {
213 return groupPersistence;
214 }
215
216
221 public void setGroupPersistence(GroupPersistence groupPersistence) {
222 this.groupPersistence = groupPersistence;
223 }
224
225
230 public GroupFinder getGroupFinder() {
231 return groupFinder;
232 }
233
234
239 public void setGroupFinder(GroupFinder groupFinder) {
240 this.groupFinder = groupFinder;
241 }
242
243
248 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
249 return resourceLocalService;
250 }
251
252
257 public void setResourceLocalService(
258 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
259 this.resourceLocalService = resourceLocalService;
260 }
261
262
267 public com.liferay.portal.service.UserLocalService getUserLocalService() {
268 return userLocalService;
269 }
270
271
276 public void setUserLocalService(
277 com.liferay.portal.service.UserLocalService userLocalService) {
278 this.userLocalService = userLocalService;
279 }
280
281
286 public com.liferay.portal.service.UserService getUserService() {
287 return userService;
288 }
289
290
295 public void setUserService(
296 com.liferay.portal.service.UserService userService) {
297 this.userService = userService;
298 }
299
300
305 public UserPersistence getUserPersistence() {
306 return userPersistence;
307 }
308
309
314 public void setUserPersistence(UserPersistence userPersistence) {
315 this.userPersistence = userPersistence;
316 }
317
318
323 public UserFinder getUserFinder() {
324 return userFinder;
325 }
326
327
332 public void setUserFinder(UserFinder userFinder) {
333 this.userFinder = userFinder;
334 }
335
336 public void afterPropertiesSet() {
337 }
338
339 public void destroy() {
340 }
341
342
347 @Override
348 public String getBeanIdentifier() {
349 return _beanIdentifier;
350 }
351
352
357 @Override
358 public void setBeanIdentifier(String beanIdentifier) {
359 _beanIdentifier = beanIdentifier;
360 }
361
362 protected Class<?> getModelClass() {
363 return TrashEntry.class;
364 }
365
366 protected String getModelClassName() {
367 return TrashEntry.class.getName();
368 }
369
370
375 protected void runSQL(String sql) throws SystemException {
376 try {
377 DataSource dataSource = trashEntryPersistence.getDataSource();
378
379 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
380 sql, new int[0]);
381
382 sqlUpdate.update();
383 }
384 catch (Exception e) {
385 throw new SystemException(e);
386 }
387 }
388
389 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
390 protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
391 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
392 protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
393 @BeanReference(type = TrashEntryPersistence.class)
394 protected TrashEntryPersistence trashEntryPersistence;
395 @BeanReference(type = com.liferay.portlet.trash.service.TrashVersionLocalService.class)
396 protected com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService;
397 @BeanReference(type = TrashVersionPersistence.class)
398 protected TrashVersionPersistence trashVersionPersistence;
399 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
400 protected com.liferay.counter.service.CounterLocalService counterLocalService;
401 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
402 protected com.liferay.portal.service.GroupLocalService groupLocalService;
403 @BeanReference(type = com.liferay.portal.service.GroupService.class)
404 protected com.liferay.portal.service.GroupService groupService;
405 @BeanReference(type = GroupPersistence.class)
406 protected GroupPersistence groupPersistence;
407 @BeanReference(type = GroupFinder.class)
408 protected GroupFinder groupFinder;
409 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
410 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
411 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
412 protected com.liferay.portal.service.UserLocalService userLocalService;
413 @BeanReference(type = com.liferay.portal.service.UserService.class)
414 protected com.liferay.portal.service.UserService userService;
415 @BeanReference(type = UserPersistence.class)
416 protected UserPersistence userPersistence;
417 @BeanReference(type = UserFinder.class)
418 protected UserFinder userFinder;
419 private String _beanIdentifier;
420 }