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 TrashVersionPersistence getTrashVersionPersistence() {
118 return trashVersionPersistence;
119 }
120
121
126 public void setTrashVersionPersistence(
127 TrashVersionPersistence trashVersionPersistence) {
128 this.trashVersionPersistence = trashVersionPersistence;
129 }
130
131
136 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
137 return counterLocalService;
138 }
139
140
145 public void setCounterLocalService(
146 com.liferay.counter.service.CounterLocalService counterLocalService) {
147 this.counterLocalService = counterLocalService;
148 }
149
150
155 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
156 return groupLocalService;
157 }
158
159
164 public void setGroupLocalService(
165 com.liferay.portal.service.GroupLocalService groupLocalService) {
166 this.groupLocalService = groupLocalService;
167 }
168
169
174 public com.liferay.portal.service.GroupService getGroupService() {
175 return groupService;
176 }
177
178
183 public void setGroupService(
184 com.liferay.portal.service.GroupService groupService) {
185 this.groupService = groupService;
186 }
187
188
193 public GroupPersistence getGroupPersistence() {
194 return groupPersistence;
195 }
196
197
202 public void setGroupPersistence(GroupPersistence groupPersistence) {
203 this.groupPersistence = groupPersistence;
204 }
205
206
211 public GroupFinder getGroupFinder() {
212 return groupFinder;
213 }
214
215
220 public void setGroupFinder(GroupFinder groupFinder) {
221 this.groupFinder = groupFinder;
222 }
223
224
229 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
230 return resourceLocalService;
231 }
232
233
238 public void setResourceLocalService(
239 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
240 this.resourceLocalService = resourceLocalService;
241 }
242
243
248 public com.liferay.portal.service.UserLocalService getUserLocalService() {
249 return userLocalService;
250 }
251
252
257 public void setUserLocalService(
258 com.liferay.portal.service.UserLocalService userLocalService) {
259 this.userLocalService = userLocalService;
260 }
261
262
267 public com.liferay.portal.service.UserService getUserService() {
268 return userService;
269 }
270
271
276 public void setUserService(
277 com.liferay.portal.service.UserService userService) {
278 this.userService = userService;
279 }
280
281
286 public UserPersistence getUserPersistence() {
287 return userPersistence;
288 }
289
290
295 public void setUserPersistence(UserPersistence userPersistence) {
296 this.userPersistence = userPersistence;
297 }
298
299
304 public UserFinder getUserFinder() {
305 return userFinder;
306 }
307
308
313 public void setUserFinder(UserFinder userFinder) {
314 this.userFinder = userFinder;
315 }
316
317 public void afterPropertiesSet() {
318 }
319
320 public void destroy() {
321 }
322
323
328 @Override
329 public String getBeanIdentifier() {
330 return _beanIdentifier;
331 }
332
333
338 @Override
339 public void setBeanIdentifier(String beanIdentifier) {
340 _beanIdentifier = beanIdentifier;
341 }
342
343 protected Class<?> getModelClass() {
344 return TrashEntry.class;
345 }
346
347 protected String getModelClassName() {
348 return TrashEntry.class.getName();
349 }
350
351
356 protected void runSQL(String sql) throws SystemException {
357 try {
358 DataSource dataSource = trashEntryPersistence.getDataSource();
359
360 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
361 sql, new int[0]);
362
363 sqlUpdate.update();
364 }
365 catch (Exception e) {
366 throw new SystemException(e);
367 }
368 }
369
370 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
371 protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
372 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
373 protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
374 @BeanReference(type = TrashEntryPersistence.class)
375 protected TrashEntryPersistence trashEntryPersistence;
376 @BeanReference(type = TrashVersionPersistence.class)
377 protected TrashVersionPersistence trashVersionPersistence;
378 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
379 protected com.liferay.counter.service.CounterLocalService counterLocalService;
380 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
381 protected com.liferay.portal.service.GroupLocalService groupLocalService;
382 @BeanReference(type = com.liferay.portal.service.GroupService.class)
383 protected com.liferay.portal.service.GroupService groupService;
384 @BeanReference(type = GroupPersistence.class)
385 protected GroupPersistence groupPersistence;
386 @BeanReference(type = GroupFinder.class)
387 protected GroupFinder groupFinder;
388 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
389 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
390 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
391 protected com.liferay.portal.service.UserLocalService userLocalService;
392 @BeanReference(type = com.liferay.portal.service.UserService.class)
393 protected com.liferay.portal.service.UserService userService;
394 @BeanReference(type = UserPersistence.class)
395 protected UserPersistence userPersistence;
396 @BeanReference(type = UserFinder.class)
397 protected UserFinder userFinder;
398 private String _beanIdentifier;
399 }