001
014
015 package com.liferay.portlet.bookmarks.service.base;
016
017 import com.liferay.counter.service.CounterLocalService;
018
019 import com.liferay.portal.kernel.annotation.BeanReference;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022 import com.liferay.portal.kernel.exception.SystemException;
023 import com.liferay.portal.service.GroupLocalService;
024 import com.liferay.portal.service.GroupService;
025 import com.liferay.portal.service.ResourceLocalService;
026 import com.liferay.portal.service.ResourceService;
027 import com.liferay.portal.service.UserLocalService;
028 import com.liferay.portal.service.UserService;
029 import com.liferay.portal.service.base.PrincipalBean;
030 import com.liferay.portal.service.persistence.GroupFinder;
031 import com.liferay.portal.service.persistence.GroupPersistence;
032 import com.liferay.portal.service.persistence.ResourceFinder;
033 import com.liferay.portal.service.persistence.ResourcePersistence;
034 import com.liferay.portal.service.persistence.UserFinder;
035 import com.liferay.portal.service.persistence.UserPersistence;
036
037 import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService;
038 import com.liferay.portlet.bookmarks.service.BookmarksEntryService;
039 import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService;
040 import com.liferay.portlet.bookmarks.service.BookmarksFolderService;
041 import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder;
042 import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence;
043 import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence;
044 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
045 import com.liferay.portlet.expando.service.ExpandoValueService;
046 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
047
048 import javax.sql.DataSource;
049
050
066 public abstract class BookmarksFolderServiceBaseImpl extends PrincipalBean
067 implements BookmarksFolderService {
068
073 public BookmarksEntryLocalService getBookmarksEntryLocalService() {
074 return bookmarksEntryLocalService;
075 }
076
077
082 public void setBookmarksEntryLocalService(
083 BookmarksEntryLocalService bookmarksEntryLocalService) {
084 this.bookmarksEntryLocalService = bookmarksEntryLocalService;
085 }
086
087
092 public BookmarksEntryService getBookmarksEntryService() {
093 return bookmarksEntryService;
094 }
095
096
101 public void setBookmarksEntryService(
102 BookmarksEntryService bookmarksEntryService) {
103 this.bookmarksEntryService = bookmarksEntryService;
104 }
105
106
111 public BookmarksEntryPersistence getBookmarksEntryPersistence() {
112 return bookmarksEntryPersistence;
113 }
114
115
120 public void setBookmarksEntryPersistence(
121 BookmarksEntryPersistence bookmarksEntryPersistence) {
122 this.bookmarksEntryPersistence = bookmarksEntryPersistence;
123 }
124
125
130 public BookmarksEntryFinder getBookmarksEntryFinder() {
131 return bookmarksEntryFinder;
132 }
133
134
139 public void setBookmarksEntryFinder(
140 BookmarksEntryFinder bookmarksEntryFinder) {
141 this.bookmarksEntryFinder = bookmarksEntryFinder;
142 }
143
144
149 public BookmarksFolderLocalService getBookmarksFolderLocalService() {
150 return bookmarksFolderLocalService;
151 }
152
153
158 public void setBookmarksFolderLocalService(
159 BookmarksFolderLocalService bookmarksFolderLocalService) {
160 this.bookmarksFolderLocalService = bookmarksFolderLocalService;
161 }
162
163
168 public BookmarksFolderService getBookmarksFolderService() {
169 return bookmarksFolderService;
170 }
171
172
177 public void setBookmarksFolderService(
178 BookmarksFolderService bookmarksFolderService) {
179 this.bookmarksFolderService = bookmarksFolderService;
180 }
181
182
187 public BookmarksFolderPersistence getBookmarksFolderPersistence() {
188 return bookmarksFolderPersistence;
189 }
190
191
196 public void setBookmarksFolderPersistence(
197 BookmarksFolderPersistence bookmarksFolderPersistence) {
198 this.bookmarksFolderPersistence = bookmarksFolderPersistence;
199 }
200
201
206 public CounterLocalService getCounterLocalService() {
207 return counterLocalService;
208 }
209
210
215 public void setCounterLocalService(CounterLocalService counterLocalService) {
216 this.counterLocalService = counterLocalService;
217 }
218
219
224 public GroupLocalService getGroupLocalService() {
225 return groupLocalService;
226 }
227
228
233 public void setGroupLocalService(GroupLocalService groupLocalService) {
234 this.groupLocalService = groupLocalService;
235 }
236
237
242 public GroupService getGroupService() {
243 return groupService;
244 }
245
246
251 public void setGroupService(GroupService groupService) {
252 this.groupService = groupService;
253 }
254
255
260 public GroupPersistence getGroupPersistence() {
261 return groupPersistence;
262 }
263
264
269 public void setGroupPersistence(GroupPersistence groupPersistence) {
270 this.groupPersistence = groupPersistence;
271 }
272
273
278 public GroupFinder getGroupFinder() {
279 return groupFinder;
280 }
281
282
287 public void setGroupFinder(GroupFinder groupFinder) {
288 this.groupFinder = groupFinder;
289 }
290
291
296 public ResourceLocalService getResourceLocalService() {
297 return resourceLocalService;
298 }
299
300
305 public void setResourceLocalService(
306 ResourceLocalService resourceLocalService) {
307 this.resourceLocalService = resourceLocalService;
308 }
309
310
315 public ResourceService getResourceService() {
316 return resourceService;
317 }
318
319
324 public void setResourceService(ResourceService resourceService) {
325 this.resourceService = resourceService;
326 }
327
328
333 public ResourcePersistence getResourcePersistence() {
334 return resourcePersistence;
335 }
336
337
342 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
343 this.resourcePersistence = resourcePersistence;
344 }
345
346
351 public ResourceFinder getResourceFinder() {
352 return resourceFinder;
353 }
354
355
360 public void setResourceFinder(ResourceFinder resourceFinder) {
361 this.resourceFinder = resourceFinder;
362 }
363
364
369 public UserLocalService getUserLocalService() {
370 return userLocalService;
371 }
372
373
378 public void setUserLocalService(UserLocalService userLocalService) {
379 this.userLocalService = userLocalService;
380 }
381
382
387 public UserService getUserService() {
388 return userService;
389 }
390
391
396 public void setUserService(UserService userService) {
397 this.userService = userService;
398 }
399
400
405 public UserPersistence getUserPersistence() {
406 return userPersistence;
407 }
408
409
414 public void setUserPersistence(UserPersistence userPersistence) {
415 this.userPersistence = userPersistence;
416 }
417
418
423 public UserFinder getUserFinder() {
424 return userFinder;
425 }
426
427
432 public void setUserFinder(UserFinder userFinder) {
433 this.userFinder = userFinder;
434 }
435
436
441 public ExpandoValueLocalService getExpandoValueLocalService() {
442 return expandoValueLocalService;
443 }
444
445
450 public void setExpandoValueLocalService(
451 ExpandoValueLocalService expandoValueLocalService) {
452 this.expandoValueLocalService = expandoValueLocalService;
453 }
454
455
460 public ExpandoValueService getExpandoValueService() {
461 return expandoValueService;
462 }
463
464
469 public void setExpandoValueService(ExpandoValueService expandoValueService) {
470 this.expandoValueService = expandoValueService;
471 }
472
473
478 public ExpandoValuePersistence getExpandoValuePersistence() {
479 return expandoValuePersistence;
480 }
481
482
487 public void setExpandoValuePersistence(
488 ExpandoValuePersistence expandoValuePersistence) {
489 this.expandoValuePersistence = expandoValuePersistence;
490 }
491
492
497 protected void runSQL(String sql) throws SystemException {
498 try {
499 DataSource dataSource = bookmarksFolderPersistence.getDataSource();
500
501 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
502 sql, new int[0]);
503
504 sqlUpdate.update();
505 }
506 catch (Exception e) {
507 throw new SystemException(e);
508 }
509 }
510
511 @BeanReference(type = BookmarksEntryLocalService.class)
512 protected BookmarksEntryLocalService bookmarksEntryLocalService;
513 @BeanReference(type = BookmarksEntryService.class)
514 protected BookmarksEntryService bookmarksEntryService;
515 @BeanReference(type = BookmarksEntryPersistence.class)
516 protected BookmarksEntryPersistence bookmarksEntryPersistence;
517 @BeanReference(type = BookmarksEntryFinder.class)
518 protected BookmarksEntryFinder bookmarksEntryFinder;
519 @BeanReference(type = BookmarksFolderLocalService.class)
520 protected BookmarksFolderLocalService bookmarksFolderLocalService;
521 @BeanReference(type = BookmarksFolderService.class)
522 protected BookmarksFolderService bookmarksFolderService;
523 @BeanReference(type = BookmarksFolderPersistence.class)
524 protected BookmarksFolderPersistence bookmarksFolderPersistence;
525 @BeanReference(type = CounterLocalService.class)
526 protected CounterLocalService counterLocalService;
527 @BeanReference(type = GroupLocalService.class)
528 protected GroupLocalService groupLocalService;
529 @BeanReference(type = GroupService.class)
530 protected GroupService groupService;
531 @BeanReference(type = GroupPersistence.class)
532 protected GroupPersistence groupPersistence;
533 @BeanReference(type = GroupFinder.class)
534 protected GroupFinder groupFinder;
535 @BeanReference(type = ResourceLocalService.class)
536 protected ResourceLocalService resourceLocalService;
537 @BeanReference(type = ResourceService.class)
538 protected ResourceService resourceService;
539 @BeanReference(type = ResourcePersistence.class)
540 protected ResourcePersistence resourcePersistence;
541 @BeanReference(type = ResourceFinder.class)
542 protected ResourceFinder resourceFinder;
543 @BeanReference(type = UserLocalService.class)
544 protected UserLocalService userLocalService;
545 @BeanReference(type = UserService.class)
546 protected UserService userService;
547 @BeanReference(type = UserPersistence.class)
548 protected UserPersistence userPersistence;
549 @BeanReference(type = UserFinder.class)
550 protected UserFinder userFinder;
551 @BeanReference(type = ExpandoValueLocalService.class)
552 protected ExpandoValueLocalService expandoValueLocalService;
553 @BeanReference(type = ExpandoValueService.class)
554 protected ExpandoValueService expandoValueService;
555 @BeanReference(type = ExpandoValuePersistence.class)
556 protected ExpandoValuePersistence expandoValuePersistence;
557 }