001
014
015 package com.liferay.portlet.asset.service.base;
016
017 import com.liferay.portal.kernel.bean.BeanReference;
018 import com.liferay.portal.kernel.dao.db.DB;
019 import com.liferay.portal.kernel.dao.db.DBManagerUtil;
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.kernel.module.framework.service.IdentifiableOSGiService;
024 import com.liferay.portal.service.BaseServiceImpl;
025 import com.liferay.portal.service.persistence.ClassNamePersistence;
026 import com.liferay.portal.service.persistence.UserFinder;
027 import com.liferay.portal.service.persistence.UserPersistence;
028 import com.liferay.portal.util.PortalUtil;
029
030 import com.liferay.portlet.asset.model.AssetCategory;
031 import com.liferay.portlet.asset.service.AssetCategoryService;
032 import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
033 import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
034 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
035 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
036 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
037 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
038 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
039 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
040 import com.liferay.portlet.asset.service.persistence.AssetVocabularyFinder;
041 import com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence;
042
043 import javax.sql.DataSource;
044
045
057 public abstract class AssetCategoryServiceBaseImpl extends BaseServiceImpl
058 implements AssetCategoryService, IdentifiableOSGiService {
059
064
065
070 public com.liferay.portlet.asset.service.AssetCategoryLocalService getAssetCategoryLocalService() {
071 return assetCategoryLocalService;
072 }
073
074
079 public void setAssetCategoryLocalService(
080 com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService) {
081 this.assetCategoryLocalService = assetCategoryLocalService;
082 }
083
084
089 public AssetCategoryService getAssetCategoryService() {
090 return assetCategoryService;
091 }
092
093
098 public void setAssetCategoryService(
099 AssetCategoryService assetCategoryService) {
100 this.assetCategoryService = assetCategoryService;
101 }
102
103
108 public AssetCategoryPersistence getAssetCategoryPersistence() {
109 return assetCategoryPersistence;
110 }
111
112
117 public void setAssetCategoryPersistence(
118 AssetCategoryPersistence assetCategoryPersistence) {
119 this.assetCategoryPersistence = assetCategoryPersistence;
120 }
121
122
127 public AssetCategoryFinder getAssetCategoryFinder() {
128 return assetCategoryFinder;
129 }
130
131
136 public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
137 this.assetCategoryFinder = assetCategoryFinder;
138 }
139
140
145 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
146 return counterLocalService;
147 }
148
149
154 public void setCounterLocalService(
155 com.liferay.counter.service.CounterLocalService counterLocalService) {
156 this.counterLocalService = counterLocalService;
157 }
158
159
164 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
165 return classNameLocalService;
166 }
167
168
173 public void setClassNameLocalService(
174 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
175 this.classNameLocalService = classNameLocalService;
176 }
177
178
183 public com.liferay.portal.service.ClassNameService getClassNameService() {
184 return classNameService;
185 }
186
187
192 public void setClassNameService(
193 com.liferay.portal.service.ClassNameService classNameService) {
194 this.classNameService = classNameService;
195 }
196
197
202 public ClassNamePersistence getClassNamePersistence() {
203 return classNamePersistence;
204 }
205
206
211 public void setClassNamePersistence(
212 ClassNamePersistence classNamePersistence) {
213 this.classNamePersistence = classNamePersistence;
214 }
215
216
221 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
222 return resourceLocalService;
223 }
224
225
230 public void setResourceLocalService(
231 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
232 this.resourceLocalService = resourceLocalService;
233 }
234
235
240 public com.liferay.portal.service.UserLocalService getUserLocalService() {
241 return userLocalService;
242 }
243
244
249 public void setUserLocalService(
250 com.liferay.portal.service.UserLocalService userLocalService) {
251 this.userLocalService = userLocalService;
252 }
253
254
259 public com.liferay.portal.service.UserService getUserService() {
260 return userService;
261 }
262
263
268 public void setUserService(
269 com.liferay.portal.service.UserService userService) {
270 this.userService = userService;
271 }
272
273
278 public UserPersistence getUserPersistence() {
279 return userPersistence;
280 }
281
282
287 public void setUserPersistence(UserPersistence userPersistence) {
288 this.userPersistence = userPersistence;
289 }
290
291
296 public UserFinder getUserFinder() {
297 return userFinder;
298 }
299
300
305 public void setUserFinder(UserFinder userFinder) {
306 this.userFinder = userFinder;
307 }
308
309
314 public com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
315 return assetCategoryPropertyLocalService;
316 }
317
318
323 public void setAssetCategoryPropertyLocalService(
324 com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
325 this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
326 }
327
328
333 public com.liferay.portlet.asset.service.AssetCategoryPropertyService getAssetCategoryPropertyService() {
334 return assetCategoryPropertyService;
335 }
336
337
342 public void setAssetCategoryPropertyService(
343 com.liferay.portlet.asset.service.AssetCategoryPropertyService assetCategoryPropertyService) {
344 this.assetCategoryPropertyService = assetCategoryPropertyService;
345 }
346
347
352 public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
353 return assetCategoryPropertyPersistence;
354 }
355
356
361 public void setAssetCategoryPropertyPersistence(
362 AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
363 this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
364 }
365
366
371 public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
372 return assetCategoryPropertyFinder;
373 }
374
375
380 public void setAssetCategoryPropertyFinder(
381 AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
382 this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
383 }
384
385
390 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
391 return assetEntryLocalService;
392 }
393
394
399 public void setAssetEntryLocalService(
400 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
401 this.assetEntryLocalService = assetEntryLocalService;
402 }
403
404
409 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
410 return assetEntryService;
411 }
412
413
418 public void setAssetEntryService(
419 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
420 this.assetEntryService = assetEntryService;
421 }
422
423
428 public AssetEntryPersistence getAssetEntryPersistence() {
429 return assetEntryPersistence;
430 }
431
432
437 public void setAssetEntryPersistence(
438 AssetEntryPersistence assetEntryPersistence) {
439 this.assetEntryPersistence = assetEntryPersistence;
440 }
441
442
447 public AssetEntryFinder getAssetEntryFinder() {
448 return assetEntryFinder;
449 }
450
451
456 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
457 this.assetEntryFinder = assetEntryFinder;
458 }
459
460
465 public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
466 return assetTagLocalService;
467 }
468
469
474 public void setAssetTagLocalService(
475 com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
476 this.assetTagLocalService = assetTagLocalService;
477 }
478
479
484 public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
485 return assetTagService;
486 }
487
488
493 public void setAssetTagService(
494 com.liferay.portlet.asset.service.AssetTagService assetTagService) {
495 this.assetTagService = assetTagService;
496 }
497
498
503 public AssetTagPersistence getAssetTagPersistence() {
504 return assetTagPersistence;
505 }
506
507
512 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
513 this.assetTagPersistence = assetTagPersistence;
514 }
515
516
521 public AssetTagFinder getAssetTagFinder() {
522 return assetTagFinder;
523 }
524
525
530 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
531 this.assetTagFinder = assetTagFinder;
532 }
533
534
539 public com.liferay.portlet.asset.service.AssetVocabularyLocalService getAssetVocabularyLocalService() {
540 return assetVocabularyLocalService;
541 }
542
543
548 public void setAssetVocabularyLocalService(
549 com.liferay.portlet.asset.service.AssetVocabularyLocalService assetVocabularyLocalService) {
550 this.assetVocabularyLocalService = assetVocabularyLocalService;
551 }
552
553
558 public com.liferay.portlet.asset.service.AssetVocabularyService getAssetVocabularyService() {
559 return assetVocabularyService;
560 }
561
562
567 public void setAssetVocabularyService(
568 com.liferay.portlet.asset.service.AssetVocabularyService assetVocabularyService) {
569 this.assetVocabularyService = assetVocabularyService;
570 }
571
572
577 public AssetVocabularyPersistence getAssetVocabularyPersistence() {
578 return assetVocabularyPersistence;
579 }
580
581
586 public void setAssetVocabularyPersistence(
587 AssetVocabularyPersistence assetVocabularyPersistence) {
588 this.assetVocabularyPersistence = assetVocabularyPersistence;
589 }
590
591
596 public AssetVocabularyFinder getAssetVocabularyFinder() {
597 return assetVocabularyFinder;
598 }
599
600
605 public void setAssetVocabularyFinder(
606 AssetVocabularyFinder assetVocabularyFinder) {
607 this.assetVocabularyFinder = assetVocabularyFinder;
608 }
609
610 public void afterPropertiesSet() {
611 }
612
613 public void destroy() {
614 }
615
616
621 @Override
622 public String getOSGiServiceIdentifier() {
623 return AssetCategoryService.class.getName();
624 }
625
626 protected Class<?> getModelClass() {
627 return AssetCategory.class;
628 }
629
630 protected String getModelClassName() {
631 return AssetCategory.class.getName();
632 }
633
634
639 protected void runSQL(String sql) {
640 try {
641 DataSource dataSource = assetCategoryPersistence.getDataSource();
642
643 DB db = DBManagerUtil.getDB();
644
645 sql = db.buildSQL(sql);
646 sql = PortalUtil.transformSQL(sql);
647
648 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
649 sql, new int[0]);
650
651 sqlUpdate.update();
652 }
653 catch (Exception e) {
654 throw new SystemException(e);
655 }
656 }
657
658 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryLocalService.class)
659 protected com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService;
660 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryService.class)
661 protected AssetCategoryService assetCategoryService;
662 @BeanReference(type = AssetCategoryPersistence.class)
663 protected AssetCategoryPersistence assetCategoryPersistence;
664 @BeanReference(type = AssetCategoryFinder.class)
665 protected AssetCategoryFinder assetCategoryFinder;
666 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
667 protected com.liferay.counter.service.CounterLocalService counterLocalService;
668 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
669 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
670 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
671 protected com.liferay.portal.service.ClassNameService classNameService;
672 @BeanReference(type = ClassNamePersistence.class)
673 protected ClassNamePersistence classNamePersistence;
674 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
675 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
676 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
677 protected com.liferay.portal.service.UserLocalService userLocalService;
678 @BeanReference(type = com.liferay.portal.service.UserService.class)
679 protected com.liferay.portal.service.UserService userService;
680 @BeanReference(type = UserPersistence.class)
681 protected UserPersistence userPersistence;
682 @BeanReference(type = UserFinder.class)
683 protected UserFinder userFinder;
684 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService.class)
685 protected com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
686 @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryPropertyService.class)
687 protected com.liferay.portlet.asset.service.AssetCategoryPropertyService assetCategoryPropertyService;
688 @BeanReference(type = AssetCategoryPropertyPersistence.class)
689 protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
690 @BeanReference(type = AssetCategoryPropertyFinder.class)
691 protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
692 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
693 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
694 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
695 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
696 @BeanReference(type = AssetEntryPersistence.class)
697 protected AssetEntryPersistence assetEntryPersistence;
698 @BeanReference(type = AssetEntryFinder.class)
699 protected AssetEntryFinder assetEntryFinder;
700 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
701 protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
702 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
703 protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
704 @BeanReference(type = AssetTagPersistence.class)
705 protected AssetTagPersistence assetTagPersistence;
706 @BeanReference(type = AssetTagFinder.class)
707 protected AssetTagFinder assetTagFinder;
708 @BeanReference(type = com.liferay.portlet.asset.service.AssetVocabularyLocalService.class)
709 protected com.liferay.portlet.asset.service.AssetVocabularyLocalService assetVocabularyLocalService;
710 @BeanReference(type = com.liferay.portlet.asset.service.AssetVocabularyService.class)
711 protected com.liferay.portlet.asset.service.AssetVocabularyService assetVocabularyService;
712 @BeanReference(type = AssetVocabularyPersistence.class)
713 protected AssetVocabularyPersistence assetVocabularyPersistence;
714 @BeanReference(type = AssetVocabularyFinder.class)
715 protected AssetVocabularyFinder assetVocabularyFinder;
716 }