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.bean.BeanReference;
020 import com.liferay.portal.kernel.bean.IdentifiableBean;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023 import com.liferay.portal.kernel.exception.SystemException;
024 import com.liferay.portal.service.BaseServiceImpl;
025 import com.liferay.portal.service.GroupLocalService;
026 import com.liferay.portal.service.GroupService;
027 import com.liferay.portal.service.ResourceLocalService;
028 import com.liferay.portal.service.ResourceService;
029 import com.liferay.portal.service.UserLocalService;
030 import com.liferay.portal.service.UserService;
031 import com.liferay.portal.service.persistence.GroupFinder;
032 import com.liferay.portal.service.persistence.GroupPersistence;
033 import com.liferay.portal.service.persistence.ResourceFinder;
034 import com.liferay.portal.service.persistence.ResourcePersistence;
035 import com.liferay.portal.service.persistence.UserFinder;
036 import com.liferay.portal.service.persistence.UserPersistence;
037
038 import com.liferay.portlet.bookmarks.model.BookmarksFolder;
039 import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService;
040 import com.liferay.portlet.bookmarks.service.BookmarksEntryService;
041 import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService;
042 import com.liferay.portlet.bookmarks.service.BookmarksFolderService;
043 import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder;
044 import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence;
045 import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderFinder;
046 import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence;
047 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
048 import com.liferay.portlet.expando.service.ExpandoValueService;
049 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
050
051 import javax.sql.DataSource;
052
053
065 public abstract class BookmarksFolderServiceBaseImpl extends BaseServiceImpl
066 implements BookmarksFolderService, IdentifiableBean {
067
072
073
078 public BookmarksEntryLocalService getBookmarksEntryLocalService() {
079 return bookmarksEntryLocalService;
080 }
081
082
087 public void setBookmarksEntryLocalService(
088 BookmarksEntryLocalService bookmarksEntryLocalService) {
089 this.bookmarksEntryLocalService = bookmarksEntryLocalService;
090 }
091
092
097 public BookmarksEntryService getBookmarksEntryService() {
098 return bookmarksEntryService;
099 }
100
101
106 public void setBookmarksEntryService(
107 BookmarksEntryService bookmarksEntryService) {
108 this.bookmarksEntryService = bookmarksEntryService;
109 }
110
111
116 public BookmarksEntryPersistence getBookmarksEntryPersistence() {
117 return bookmarksEntryPersistence;
118 }
119
120
125 public void setBookmarksEntryPersistence(
126 BookmarksEntryPersistence bookmarksEntryPersistence) {
127 this.bookmarksEntryPersistence = bookmarksEntryPersistence;
128 }
129
130
135 public BookmarksEntryFinder getBookmarksEntryFinder() {
136 return bookmarksEntryFinder;
137 }
138
139
144 public void setBookmarksEntryFinder(
145 BookmarksEntryFinder bookmarksEntryFinder) {
146 this.bookmarksEntryFinder = bookmarksEntryFinder;
147 }
148
149
154 public BookmarksFolderLocalService getBookmarksFolderLocalService() {
155 return bookmarksFolderLocalService;
156 }
157
158
163 public void setBookmarksFolderLocalService(
164 BookmarksFolderLocalService bookmarksFolderLocalService) {
165 this.bookmarksFolderLocalService = bookmarksFolderLocalService;
166 }
167
168
173 public BookmarksFolderService getBookmarksFolderService() {
174 return bookmarksFolderService;
175 }
176
177
182 public void setBookmarksFolderService(
183 BookmarksFolderService bookmarksFolderService) {
184 this.bookmarksFolderService = bookmarksFolderService;
185 }
186
187
192 public BookmarksFolderPersistence getBookmarksFolderPersistence() {
193 return bookmarksFolderPersistence;
194 }
195
196
201 public void setBookmarksFolderPersistence(
202 BookmarksFolderPersistence bookmarksFolderPersistence) {
203 this.bookmarksFolderPersistence = bookmarksFolderPersistence;
204 }
205
206
211 public BookmarksFolderFinder getBookmarksFolderFinder() {
212 return bookmarksFolderFinder;
213 }
214
215
220 public void setBookmarksFolderFinder(
221 BookmarksFolderFinder bookmarksFolderFinder) {
222 this.bookmarksFolderFinder = bookmarksFolderFinder;
223 }
224
225
230 public CounterLocalService getCounterLocalService() {
231 return counterLocalService;
232 }
233
234
239 public void setCounterLocalService(CounterLocalService counterLocalService) {
240 this.counterLocalService = counterLocalService;
241 }
242
243
248 public GroupLocalService getGroupLocalService() {
249 return groupLocalService;
250 }
251
252
257 public void setGroupLocalService(GroupLocalService groupLocalService) {
258 this.groupLocalService = groupLocalService;
259 }
260
261
266 public GroupService getGroupService() {
267 return groupService;
268 }
269
270
275 public void setGroupService(GroupService groupService) {
276 this.groupService = groupService;
277 }
278
279
284 public GroupPersistence getGroupPersistence() {
285 return groupPersistence;
286 }
287
288
293 public void setGroupPersistence(GroupPersistence groupPersistence) {
294 this.groupPersistence = groupPersistence;
295 }
296
297
302 public GroupFinder getGroupFinder() {
303 return groupFinder;
304 }
305
306
311 public void setGroupFinder(GroupFinder groupFinder) {
312 this.groupFinder = groupFinder;
313 }
314
315
320 public ResourceLocalService getResourceLocalService() {
321 return resourceLocalService;
322 }
323
324
329 public void setResourceLocalService(
330 ResourceLocalService resourceLocalService) {
331 this.resourceLocalService = resourceLocalService;
332 }
333
334
339 public ResourceService getResourceService() {
340 return resourceService;
341 }
342
343
348 public void setResourceService(ResourceService resourceService) {
349 this.resourceService = resourceService;
350 }
351
352
357 public ResourcePersistence getResourcePersistence() {
358 return resourcePersistence;
359 }
360
361
366 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
367 this.resourcePersistence = resourcePersistence;
368 }
369
370
375 public ResourceFinder getResourceFinder() {
376 return resourceFinder;
377 }
378
379
384 public void setResourceFinder(ResourceFinder resourceFinder) {
385 this.resourceFinder = resourceFinder;
386 }
387
388
393 public UserLocalService getUserLocalService() {
394 return userLocalService;
395 }
396
397
402 public void setUserLocalService(UserLocalService userLocalService) {
403 this.userLocalService = userLocalService;
404 }
405
406
411 public UserService getUserService() {
412 return userService;
413 }
414
415
420 public void setUserService(UserService userService) {
421 this.userService = userService;
422 }
423
424
429 public UserPersistence getUserPersistence() {
430 return userPersistence;
431 }
432
433
438 public void setUserPersistence(UserPersistence userPersistence) {
439 this.userPersistence = userPersistence;
440 }
441
442
447 public UserFinder getUserFinder() {
448 return userFinder;
449 }
450
451
456 public void setUserFinder(UserFinder userFinder) {
457 this.userFinder = userFinder;
458 }
459
460
465 public ExpandoValueLocalService getExpandoValueLocalService() {
466 return expandoValueLocalService;
467 }
468
469
474 public void setExpandoValueLocalService(
475 ExpandoValueLocalService expandoValueLocalService) {
476 this.expandoValueLocalService = expandoValueLocalService;
477 }
478
479
484 public ExpandoValueService getExpandoValueService() {
485 return expandoValueService;
486 }
487
488
493 public void setExpandoValueService(ExpandoValueService expandoValueService) {
494 this.expandoValueService = expandoValueService;
495 }
496
497
502 public ExpandoValuePersistence getExpandoValuePersistence() {
503 return expandoValuePersistence;
504 }
505
506
511 public void setExpandoValuePersistence(
512 ExpandoValuePersistence expandoValuePersistence) {
513 this.expandoValuePersistence = expandoValuePersistence;
514 }
515
516 public void afterPropertiesSet() {
517 }
518
519 public void destroy() {
520 }
521
522
527 public String getBeanIdentifier() {
528 return _beanIdentifier;
529 }
530
531
536 public void setBeanIdentifier(String beanIdentifier) {
537 _beanIdentifier = beanIdentifier;
538 }
539
540 protected Class<?> getModelClass() {
541 return BookmarksFolder.class;
542 }
543
544 protected String getModelClassName() {
545 return BookmarksFolder.class.getName();
546 }
547
548
553 protected void runSQL(String sql) throws SystemException {
554 try {
555 DataSource dataSource = bookmarksFolderPersistence.getDataSource();
556
557 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
558 sql, new int[0]);
559
560 sqlUpdate.update();
561 }
562 catch (Exception e) {
563 throw new SystemException(e);
564 }
565 }
566
567 @BeanReference(type = BookmarksEntryLocalService.class)
568 protected BookmarksEntryLocalService bookmarksEntryLocalService;
569 @BeanReference(type = BookmarksEntryService.class)
570 protected BookmarksEntryService bookmarksEntryService;
571 @BeanReference(type = BookmarksEntryPersistence.class)
572 protected BookmarksEntryPersistence bookmarksEntryPersistence;
573 @BeanReference(type = BookmarksEntryFinder.class)
574 protected BookmarksEntryFinder bookmarksEntryFinder;
575 @BeanReference(type = BookmarksFolderLocalService.class)
576 protected BookmarksFolderLocalService bookmarksFolderLocalService;
577 @BeanReference(type = BookmarksFolderService.class)
578 protected BookmarksFolderService bookmarksFolderService;
579 @BeanReference(type = BookmarksFolderPersistence.class)
580 protected BookmarksFolderPersistence bookmarksFolderPersistence;
581 @BeanReference(type = BookmarksFolderFinder.class)
582 protected BookmarksFolderFinder bookmarksFolderFinder;
583 @BeanReference(type = CounterLocalService.class)
584 protected CounterLocalService counterLocalService;
585 @BeanReference(type = GroupLocalService.class)
586 protected GroupLocalService groupLocalService;
587 @BeanReference(type = GroupService.class)
588 protected GroupService groupService;
589 @BeanReference(type = GroupPersistence.class)
590 protected GroupPersistence groupPersistence;
591 @BeanReference(type = GroupFinder.class)
592 protected GroupFinder groupFinder;
593 @BeanReference(type = ResourceLocalService.class)
594 protected ResourceLocalService resourceLocalService;
595 @BeanReference(type = ResourceService.class)
596 protected ResourceService resourceService;
597 @BeanReference(type = ResourcePersistence.class)
598 protected ResourcePersistence resourcePersistence;
599 @BeanReference(type = ResourceFinder.class)
600 protected ResourceFinder resourceFinder;
601 @BeanReference(type = UserLocalService.class)
602 protected UserLocalService userLocalService;
603 @BeanReference(type = UserService.class)
604 protected UserService userService;
605 @BeanReference(type = UserPersistence.class)
606 protected UserPersistence userPersistence;
607 @BeanReference(type = UserFinder.class)
608 protected UserFinder userFinder;
609 @BeanReference(type = ExpandoValueLocalService.class)
610 protected ExpandoValueLocalService expandoValueLocalService;
611 @BeanReference(type = ExpandoValueService.class)
612 protected ExpandoValueService expandoValueService;
613 @BeanReference(type = ExpandoValuePersistence.class)
614 protected ExpandoValuePersistence expandoValuePersistence;
615 private String _beanIdentifier;
616 }