001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.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.dao.orm.DynamicQuery;
024    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
025    import com.liferay.portal.kernel.exception.PortalException;
026    import com.liferay.portal.kernel.exception.SystemException;
027    import com.liferay.portal.kernel.search.Indexable;
028    import com.liferay.portal.kernel.search.IndexableType;
029    import com.liferay.portal.kernel.util.OrderByComparator;
030    import com.liferay.portal.model.PersistedModel;
031    import com.liferay.portal.service.BaseLocalServiceImpl;
032    import com.liferay.portal.service.GroupLocalService;
033    import com.liferay.portal.service.GroupService;
034    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
035    import com.liferay.portal.service.ResourceLocalService;
036    import com.liferay.portal.service.UserLocalService;
037    import com.liferay.portal.service.UserService;
038    import com.liferay.portal.service.persistence.GroupFinder;
039    import com.liferay.portal.service.persistence.GroupPersistence;
040    import com.liferay.portal.service.persistence.UserFinder;
041    import com.liferay.portal.service.persistence.UserPersistence;
042    
043    import com.liferay.portlet.asset.model.AssetVocabulary;
044    import com.liferay.portlet.asset.service.AssetCategoryLocalService;
045    import com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService;
046    import com.liferay.portlet.asset.service.AssetCategoryPropertyService;
047    import com.liferay.portlet.asset.service.AssetCategoryService;
048    import com.liferay.portlet.asset.service.AssetEntryLocalService;
049    import com.liferay.portlet.asset.service.AssetEntryService;
050    import com.liferay.portlet.asset.service.AssetLinkLocalService;
051    import com.liferay.portlet.asset.service.AssetTagLocalService;
052    import com.liferay.portlet.asset.service.AssetTagPropertyLocalService;
053    import com.liferay.portlet.asset.service.AssetTagPropertyService;
054    import com.liferay.portlet.asset.service.AssetTagService;
055    import com.liferay.portlet.asset.service.AssetTagStatsLocalService;
056    import com.liferay.portlet.asset.service.AssetVocabularyLocalService;
057    import com.liferay.portlet.asset.service.AssetVocabularyService;
058    import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
059    import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
060    import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
061    import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
062    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
063    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
064    import com.liferay.portlet.asset.service.persistence.AssetLinkFinder;
065    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
066    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
067    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
068    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyFinder;
069    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyKeyFinder;
070    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence;
071    import com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence;
072    import com.liferay.portlet.asset.service.persistence.AssetVocabularyFinder;
073    import com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence;
074    
075    import java.io.Serializable;
076    
077    import java.util.List;
078    
079    import javax.sql.DataSource;
080    
081    /**
082     * The base implementation of the asset vocabulary local service.
083     *
084     * <p>
085     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.asset.service.impl.AssetVocabularyLocalServiceImpl}.
086     * </p>
087     *
088     * @author Brian Wing Shun Chan
089     * @see com.liferay.portlet.asset.service.impl.AssetVocabularyLocalServiceImpl
090     * @see com.liferay.portlet.asset.service.AssetVocabularyLocalServiceUtil
091     * @generated
092     */
093    public abstract class AssetVocabularyLocalServiceBaseImpl
094            extends BaseLocalServiceImpl implements AssetVocabularyLocalService,
095                    IdentifiableBean {
096            /*
097             * NOTE FOR DEVELOPERS:
098             *
099             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.asset.service.AssetVocabularyLocalServiceUtil} to access the asset vocabulary local service.
100             */
101    
102            /**
103             * Adds the asset vocabulary to the database. Also notifies the appropriate model listeners.
104             *
105             * @param assetVocabulary the asset vocabulary
106             * @return the asset vocabulary that was added
107             * @throws SystemException if a system exception occurred
108             */
109            @Indexable(type = IndexableType.REINDEX)
110            public AssetVocabulary addAssetVocabulary(AssetVocabulary assetVocabulary)
111                    throws SystemException {
112                    assetVocabulary.setNew(true);
113    
114                    return assetVocabularyPersistence.update(assetVocabulary);
115            }
116    
117            /**
118             * Creates a new asset vocabulary with the primary key. Does not add the asset vocabulary to the database.
119             *
120             * @param vocabularyId the primary key for the new asset vocabulary
121             * @return the new asset vocabulary
122             */
123            public AssetVocabulary createAssetVocabulary(long vocabularyId) {
124                    return assetVocabularyPersistence.create(vocabularyId);
125            }
126    
127            /**
128             * Deletes the asset vocabulary with the primary key from the database. Also notifies the appropriate model listeners.
129             *
130             * @param vocabularyId the primary key of the asset vocabulary
131             * @return the asset vocabulary that was removed
132             * @throws PortalException if a asset vocabulary with the primary key could not be found
133             * @throws SystemException if a system exception occurred
134             */
135            @Indexable(type = IndexableType.DELETE)
136            public AssetVocabulary deleteAssetVocabulary(long vocabularyId)
137                    throws PortalException, SystemException {
138                    return assetVocabularyPersistence.remove(vocabularyId);
139            }
140    
141            /**
142             * Deletes the asset vocabulary from the database. Also notifies the appropriate model listeners.
143             *
144             * @param assetVocabulary the asset vocabulary
145             * @return the asset vocabulary that was removed
146             * @throws SystemException if a system exception occurred
147             */
148            @Indexable(type = IndexableType.DELETE)
149            public AssetVocabulary deleteAssetVocabulary(
150                    AssetVocabulary assetVocabulary) throws SystemException {
151                    return assetVocabularyPersistence.remove(assetVocabulary);
152            }
153    
154            public DynamicQuery dynamicQuery() {
155                    Class<?> clazz = getClass();
156    
157                    return DynamicQueryFactoryUtil.forClass(AssetVocabulary.class,
158                            clazz.getClassLoader());
159            }
160    
161            /**
162             * Performs a dynamic query on the database and returns the matching rows.
163             *
164             * @param dynamicQuery the dynamic query
165             * @return the matching rows
166             * @throws SystemException if a system exception occurred
167             */
168            @SuppressWarnings("rawtypes")
169            public List dynamicQuery(DynamicQuery dynamicQuery)
170                    throws SystemException {
171                    return assetVocabularyPersistence.findWithDynamicQuery(dynamicQuery);
172            }
173    
174            /**
175             * Performs a dynamic query on the database and returns a range of the matching rows.
176             *
177             * <p>
178             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
179             * </p>
180             *
181             * @param dynamicQuery the dynamic query
182             * @param start the lower bound of the range of model instances
183             * @param end the upper bound of the range of model instances (not inclusive)
184             * @return the range of matching rows
185             * @throws SystemException if a system exception occurred
186             */
187            @SuppressWarnings("rawtypes")
188            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
189                    throws SystemException {
190                    return assetVocabularyPersistence.findWithDynamicQuery(dynamicQuery,
191                            start, end);
192            }
193    
194            /**
195             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
196             *
197             * <p>
198             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
199             * </p>
200             *
201             * @param dynamicQuery the dynamic query
202             * @param start the lower bound of the range of model instances
203             * @param end the upper bound of the range of model instances (not inclusive)
204             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
205             * @return the ordered range of matching rows
206             * @throws SystemException if a system exception occurred
207             */
208            @SuppressWarnings("rawtypes")
209            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
210                    OrderByComparator orderByComparator) throws SystemException {
211                    return assetVocabularyPersistence.findWithDynamicQuery(dynamicQuery,
212                            start, end, orderByComparator);
213            }
214    
215            /**
216             * Returns the number of rows that match the dynamic query.
217             *
218             * @param dynamicQuery the dynamic query
219             * @return the number of rows that match the dynamic query
220             * @throws SystemException if a system exception occurred
221             */
222            public long dynamicQueryCount(DynamicQuery dynamicQuery)
223                    throws SystemException {
224                    return assetVocabularyPersistence.countWithDynamicQuery(dynamicQuery);
225            }
226    
227            public AssetVocabulary fetchAssetVocabulary(long vocabularyId)
228                    throws SystemException {
229                    return assetVocabularyPersistence.fetchByPrimaryKey(vocabularyId);
230            }
231    
232            /**
233             * Returns the asset vocabulary with the primary key.
234             *
235             * @param vocabularyId the primary key of the asset vocabulary
236             * @return the asset vocabulary
237             * @throws PortalException if a asset vocabulary with the primary key could not be found
238             * @throws SystemException if a system exception occurred
239             */
240            public AssetVocabulary getAssetVocabulary(long vocabularyId)
241                    throws PortalException, SystemException {
242                    return assetVocabularyPersistence.findByPrimaryKey(vocabularyId);
243            }
244    
245            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
246                    throws PortalException, SystemException {
247                    return assetVocabularyPersistence.findByPrimaryKey(primaryKeyObj);
248            }
249    
250            /**
251             * Returns the asset vocabulary with the UUID in the group.
252             *
253             * @param uuid the UUID of asset vocabulary
254             * @param groupId the group id of the asset vocabulary
255             * @return the asset vocabulary
256             * @throws PortalException if a asset vocabulary with the UUID in the group could not be found
257             * @throws SystemException if a system exception occurred
258             */
259            public AssetVocabulary getAssetVocabularyByUuidAndGroupId(String uuid,
260                    long groupId) throws PortalException, SystemException {
261                    return assetVocabularyPersistence.findByUUID_G(uuid, groupId);
262            }
263    
264            /**
265             * Returns a range of all the asset vocabularies.
266             *
267             * <p>
268             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
269             * </p>
270             *
271             * @param start the lower bound of the range of asset vocabularies
272             * @param end the upper bound of the range of asset vocabularies (not inclusive)
273             * @return the range of asset vocabularies
274             * @throws SystemException if a system exception occurred
275             */
276            public List<AssetVocabulary> getAssetVocabularies(int start, int end)
277                    throws SystemException {
278                    return assetVocabularyPersistence.findAll(start, end);
279            }
280    
281            /**
282             * Returns the number of asset vocabularies.
283             *
284             * @return the number of asset vocabularies
285             * @throws SystemException if a system exception occurred
286             */
287            public int getAssetVocabulariesCount() throws SystemException {
288                    return assetVocabularyPersistence.countAll();
289            }
290    
291            /**
292             * Updates the asset vocabulary in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
293             *
294             * @param assetVocabulary the asset vocabulary
295             * @return the asset vocabulary that was updated
296             * @throws SystemException if a system exception occurred
297             */
298            @Indexable(type = IndexableType.REINDEX)
299            public AssetVocabulary updateAssetVocabulary(
300                    AssetVocabulary assetVocabulary) throws SystemException {
301                    return assetVocabularyPersistence.update(assetVocabulary);
302            }
303    
304            /**
305             * Returns the asset category local service.
306             *
307             * @return the asset category local service
308             */
309            public AssetCategoryLocalService getAssetCategoryLocalService() {
310                    return assetCategoryLocalService;
311            }
312    
313            /**
314             * Sets the asset category local service.
315             *
316             * @param assetCategoryLocalService the asset category local service
317             */
318            public void setAssetCategoryLocalService(
319                    AssetCategoryLocalService assetCategoryLocalService) {
320                    this.assetCategoryLocalService = assetCategoryLocalService;
321            }
322    
323            /**
324             * Returns the asset category remote service.
325             *
326             * @return the asset category remote service
327             */
328            public AssetCategoryService getAssetCategoryService() {
329                    return assetCategoryService;
330            }
331    
332            /**
333             * Sets the asset category remote service.
334             *
335             * @param assetCategoryService the asset category remote service
336             */
337            public void setAssetCategoryService(
338                    AssetCategoryService assetCategoryService) {
339                    this.assetCategoryService = assetCategoryService;
340            }
341    
342            /**
343             * Returns the asset category persistence.
344             *
345             * @return the asset category persistence
346             */
347            public AssetCategoryPersistence getAssetCategoryPersistence() {
348                    return assetCategoryPersistence;
349            }
350    
351            /**
352             * Sets the asset category persistence.
353             *
354             * @param assetCategoryPersistence the asset category persistence
355             */
356            public void setAssetCategoryPersistence(
357                    AssetCategoryPersistence assetCategoryPersistence) {
358                    this.assetCategoryPersistence = assetCategoryPersistence;
359            }
360    
361            /**
362             * Returns the asset category finder.
363             *
364             * @return the asset category finder
365             */
366            public AssetCategoryFinder getAssetCategoryFinder() {
367                    return assetCategoryFinder;
368            }
369    
370            /**
371             * Sets the asset category finder.
372             *
373             * @param assetCategoryFinder the asset category finder
374             */
375            public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
376                    this.assetCategoryFinder = assetCategoryFinder;
377            }
378    
379            /**
380             * Returns the asset category property local service.
381             *
382             * @return the asset category property local service
383             */
384            public AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
385                    return assetCategoryPropertyLocalService;
386            }
387    
388            /**
389             * Sets the asset category property local service.
390             *
391             * @param assetCategoryPropertyLocalService the asset category property local service
392             */
393            public void setAssetCategoryPropertyLocalService(
394                    AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
395                    this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
396            }
397    
398            /**
399             * Returns the asset category property remote service.
400             *
401             * @return the asset category property remote service
402             */
403            public AssetCategoryPropertyService getAssetCategoryPropertyService() {
404                    return assetCategoryPropertyService;
405            }
406    
407            /**
408             * Sets the asset category property remote service.
409             *
410             * @param assetCategoryPropertyService the asset category property remote service
411             */
412            public void setAssetCategoryPropertyService(
413                    AssetCategoryPropertyService assetCategoryPropertyService) {
414                    this.assetCategoryPropertyService = assetCategoryPropertyService;
415            }
416    
417            /**
418             * Returns the asset category property persistence.
419             *
420             * @return the asset category property persistence
421             */
422            public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
423                    return assetCategoryPropertyPersistence;
424            }
425    
426            /**
427             * Sets the asset category property persistence.
428             *
429             * @param assetCategoryPropertyPersistence the asset category property persistence
430             */
431            public void setAssetCategoryPropertyPersistence(
432                    AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
433                    this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
434            }
435    
436            /**
437             * Returns the asset category property finder.
438             *
439             * @return the asset category property finder
440             */
441            public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
442                    return assetCategoryPropertyFinder;
443            }
444    
445            /**
446             * Sets the asset category property finder.
447             *
448             * @param assetCategoryPropertyFinder the asset category property finder
449             */
450            public void setAssetCategoryPropertyFinder(
451                    AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
452                    this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
453            }
454    
455            /**
456             * Returns the asset entry local service.
457             *
458             * @return the asset entry local service
459             */
460            public AssetEntryLocalService getAssetEntryLocalService() {
461                    return assetEntryLocalService;
462            }
463    
464            /**
465             * Sets the asset entry local service.
466             *
467             * @param assetEntryLocalService the asset entry local service
468             */
469            public void setAssetEntryLocalService(
470                    AssetEntryLocalService assetEntryLocalService) {
471                    this.assetEntryLocalService = assetEntryLocalService;
472            }
473    
474            /**
475             * Returns the asset entry remote service.
476             *
477             * @return the asset entry remote service
478             */
479            public AssetEntryService getAssetEntryService() {
480                    return assetEntryService;
481            }
482    
483            /**
484             * Sets the asset entry remote service.
485             *
486             * @param assetEntryService the asset entry remote service
487             */
488            public void setAssetEntryService(AssetEntryService assetEntryService) {
489                    this.assetEntryService = assetEntryService;
490            }
491    
492            /**
493             * Returns the asset entry persistence.
494             *
495             * @return the asset entry persistence
496             */
497            public AssetEntryPersistence getAssetEntryPersistence() {
498                    return assetEntryPersistence;
499            }
500    
501            /**
502             * Sets the asset entry persistence.
503             *
504             * @param assetEntryPersistence the asset entry persistence
505             */
506            public void setAssetEntryPersistence(
507                    AssetEntryPersistence assetEntryPersistence) {
508                    this.assetEntryPersistence = assetEntryPersistence;
509            }
510    
511            /**
512             * Returns the asset entry finder.
513             *
514             * @return the asset entry finder
515             */
516            public AssetEntryFinder getAssetEntryFinder() {
517                    return assetEntryFinder;
518            }
519    
520            /**
521             * Sets the asset entry finder.
522             *
523             * @param assetEntryFinder the asset entry finder
524             */
525            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
526                    this.assetEntryFinder = assetEntryFinder;
527            }
528    
529            /**
530             * Returns the asset link local service.
531             *
532             * @return the asset link local service
533             */
534            public AssetLinkLocalService getAssetLinkLocalService() {
535                    return assetLinkLocalService;
536            }
537    
538            /**
539             * Sets the asset link local service.
540             *
541             * @param assetLinkLocalService the asset link local service
542             */
543            public void setAssetLinkLocalService(
544                    AssetLinkLocalService assetLinkLocalService) {
545                    this.assetLinkLocalService = assetLinkLocalService;
546            }
547    
548            /**
549             * Returns the asset link persistence.
550             *
551             * @return the asset link persistence
552             */
553            public AssetLinkPersistence getAssetLinkPersistence() {
554                    return assetLinkPersistence;
555            }
556    
557            /**
558             * Sets the asset link persistence.
559             *
560             * @param assetLinkPersistence the asset link persistence
561             */
562            public void setAssetLinkPersistence(
563                    AssetLinkPersistence assetLinkPersistence) {
564                    this.assetLinkPersistence = assetLinkPersistence;
565            }
566    
567            /**
568             * Returns the asset link finder.
569             *
570             * @return the asset link finder
571             */
572            public AssetLinkFinder getAssetLinkFinder() {
573                    return assetLinkFinder;
574            }
575    
576            /**
577             * Sets the asset link finder.
578             *
579             * @param assetLinkFinder the asset link finder
580             */
581            public void setAssetLinkFinder(AssetLinkFinder assetLinkFinder) {
582                    this.assetLinkFinder = assetLinkFinder;
583            }
584    
585            /**
586             * Returns the asset tag local service.
587             *
588             * @return the asset tag local service
589             */
590            public AssetTagLocalService getAssetTagLocalService() {
591                    return assetTagLocalService;
592            }
593    
594            /**
595             * Sets the asset tag local service.
596             *
597             * @param assetTagLocalService the asset tag local service
598             */
599            public void setAssetTagLocalService(
600                    AssetTagLocalService assetTagLocalService) {
601                    this.assetTagLocalService = assetTagLocalService;
602            }
603    
604            /**
605             * Returns the asset tag remote service.
606             *
607             * @return the asset tag remote service
608             */
609            public AssetTagService getAssetTagService() {
610                    return assetTagService;
611            }
612    
613            /**
614             * Sets the asset tag remote service.
615             *
616             * @param assetTagService the asset tag remote service
617             */
618            public void setAssetTagService(AssetTagService assetTagService) {
619                    this.assetTagService = assetTagService;
620            }
621    
622            /**
623             * Returns the asset tag persistence.
624             *
625             * @return the asset tag persistence
626             */
627            public AssetTagPersistence getAssetTagPersistence() {
628                    return assetTagPersistence;
629            }
630    
631            /**
632             * Sets the asset tag persistence.
633             *
634             * @param assetTagPersistence the asset tag persistence
635             */
636            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
637                    this.assetTagPersistence = assetTagPersistence;
638            }
639    
640            /**
641             * Returns the asset tag finder.
642             *
643             * @return the asset tag finder
644             */
645            public AssetTagFinder getAssetTagFinder() {
646                    return assetTagFinder;
647            }
648    
649            /**
650             * Sets the asset tag finder.
651             *
652             * @param assetTagFinder the asset tag finder
653             */
654            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
655                    this.assetTagFinder = assetTagFinder;
656            }
657    
658            /**
659             * Returns the asset tag property local service.
660             *
661             * @return the asset tag property local service
662             */
663            public AssetTagPropertyLocalService getAssetTagPropertyLocalService() {
664                    return assetTagPropertyLocalService;
665            }
666    
667            /**
668             * Sets the asset tag property local service.
669             *
670             * @param assetTagPropertyLocalService the asset tag property local service
671             */
672            public void setAssetTagPropertyLocalService(
673                    AssetTagPropertyLocalService assetTagPropertyLocalService) {
674                    this.assetTagPropertyLocalService = assetTagPropertyLocalService;
675            }
676    
677            /**
678             * Returns the asset tag property remote service.
679             *
680             * @return the asset tag property remote service
681             */
682            public AssetTagPropertyService getAssetTagPropertyService() {
683                    return assetTagPropertyService;
684            }
685    
686            /**
687             * Sets the asset tag property remote service.
688             *
689             * @param assetTagPropertyService the asset tag property remote service
690             */
691            public void setAssetTagPropertyService(
692                    AssetTagPropertyService assetTagPropertyService) {
693                    this.assetTagPropertyService = assetTagPropertyService;
694            }
695    
696            /**
697             * Returns the asset tag property persistence.
698             *
699             * @return the asset tag property persistence
700             */
701            public AssetTagPropertyPersistence getAssetTagPropertyPersistence() {
702                    return assetTagPropertyPersistence;
703            }
704    
705            /**
706             * Sets the asset tag property persistence.
707             *
708             * @param assetTagPropertyPersistence the asset tag property persistence
709             */
710            public void setAssetTagPropertyPersistence(
711                    AssetTagPropertyPersistence assetTagPropertyPersistence) {
712                    this.assetTagPropertyPersistence = assetTagPropertyPersistence;
713            }
714    
715            /**
716             * Returns the asset tag property finder.
717             *
718             * @return the asset tag property finder
719             */
720            public AssetTagPropertyFinder getAssetTagPropertyFinder() {
721                    return assetTagPropertyFinder;
722            }
723    
724            /**
725             * Sets the asset tag property finder.
726             *
727             * @param assetTagPropertyFinder the asset tag property finder
728             */
729            public void setAssetTagPropertyFinder(
730                    AssetTagPropertyFinder assetTagPropertyFinder) {
731                    this.assetTagPropertyFinder = assetTagPropertyFinder;
732            }
733    
734            /**
735             * Returns the asset tag property key finder.
736             *
737             * @return the asset tag property key finder
738             */
739            public AssetTagPropertyKeyFinder getAssetTagPropertyKeyFinder() {
740                    return assetTagPropertyKeyFinder;
741            }
742    
743            /**
744             * Sets the asset tag property key finder.
745             *
746             * @param assetTagPropertyKeyFinder the asset tag property key finder
747             */
748            public void setAssetTagPropertyKeyFinder(
749                    AssetTagPropertyKeyFinder assetTagPropertyKeyFinder) {
750                    this.assetTagPropertyKeyFinder = assetTagPropertyKeyFinder;
751            }
752    
753            /**
754             * Returns the asset tag stats local service.
755             *
756             * @return the asset tag stats local service
757             */
758            public AssetTagStatsLocalService getAssetTagStatsLocalService() {
759                    return assetTagStatsLocalService;
760            }
761    
762            /**
763             * Sets the asset tag stats local service.
764             *
765             * @param assetTagStatsLocalService the asset tag stats local service
766             */
767            public void setAssetTagStatsLocalService(
768                    AssetTagStatsLocalService assetTagStatsLocalService) {
769                    this.assetTagStatsLocalService = assetTagStatsLocalService;
770            }
771    
772            /**
773             * Returns the asset tag stats persistence.
774             *
775             * @return the asset tag stats persistence
776             */
777            public AssetTagStatsPersistence getAssetTagStatsPersistence() {
778                    return assetTagStatsPersistence;
779            }
780    
781            /**
782             * Sets the asset tag stats persistence.
783             *
784             * @param assetTagStatsPersistence the asset tag stats persistence
785             */
786            public void setAssetTagStatsPersistence(
787                    AssetTagStatsPersistence assetTagStatsPersistence) {
788                    this.assetTagStatsPersistence = assetTagStatsPersistence;
789            }
790    
791            /**
792             * Returns the asset vocabulary local service.
793             *
794             * @return the asset vocabulary local service
795             */
796            public AssetVocabularyLocalService getAssetVocabularyLocalService() {
797                    return assetVocabularyLocalService;
798            }
799    
800            /**
801             * Sets the asset vocabulary local service.
802             *
803             * @param assetVocabularyLocalService the asset vocabulary local service
804             */
805            public void setAssetVocabularyLocalService(
806                    AssetVocabularyLocalService assetVocabularyLocalService) {
807                    this.assetVocabularyLocalService = assetVocabularyLocalService;
808            }
809    
810            /**
811             * Returns the asset vocabulary remote service.
812             *
813             * @return the asset vocabulary remote service
814             */
815            public AssetVocabularyService getAssetVocabularyService() {
816                    return assetVocabularyService;
817            }
818    
819            /**
820             * Sets the asset vocabulary remote service.
821             *
822             * @param assetVocabularyService the asset vocabulary remote service
823             */
824            public void setAssetVocabularyService(
825                    AssetVocabularyService assetVocabularyService) {
826                    this.assetVocabularyService = assetVocabularyService;
827            }
828    
829            /**
830             * Returns the asset vocabulary persistence.
831             *
832             * @return the asset vocabulary persistence
833             */
834            public AssetVocabularyPersistence getAssetVocabularyPersistence() {
835                    return assetVocabularyPersistence;
836            }
837    
838            /**
839             * Sets the asset vocabulary persistence.
840             *
841             * @param assetVocabularyPersistence the asset vocabulary persistence
842             */
843            public void setAssetVocabularyPersistence(
844                    AssetVocabularyPersistence assetVocabularyPersistence) {
845                    this.assetVocabularyPersistence = assetVocabularyPersistence;
846            }
847    
848            /**
849             * Returns the asset vocabulary finder.
850             *
851             * @return the asset vocabulary finder
852             */
853            public AssetVocabularyFinder getAssetVocabularyFinder() {
854                    return assetVocabularyFinder;
855            }
856    
857            /**
858             * Sets the asset vocabulary finder.
859             *
860             * @param assetVocabularyFinder the asset vocabulary finder
861             */
862            public void setAssetVocabularyFinder(
863                    AssetVocabularyFinder assetVocabularyFinder) {
864                    this.assetVocabularyFinder = assetVocabularyFinder;
865            }
866    
867            /**
868             * Returns the counter local service.
869             *
870             * @return the counter local service
871             */
872            public CounterLocalService getCounterLocalService() {
873                    return counterLocalService;
874            }
875    
876            /**
877             * Sets the counter local service.
878             *
879             * @param counterLocalService the counter local service
880             */
881            public void setCounterLocalService(CounterLocalService counterLocalService) {
882                    this.counterLocalService = counterLocalService;
883            }
884    
885            /**
886             * Returns the group local service.
887             *
888             * @return the group local service
889             */
890            public GroupLocalService getGroupLocalService() {
891                    return groupLocalService;
892            }
893    
894            /**
895             * Sets the group local service.
896             *
897             * @param groupLocalService the group local service
898             */
899            public void setGroupLocalService(GroupLocalService groupLocalService) {
900                    this.groupLocalService = groupLocalService;
901            }
902    
903            /**
904             * Returns the group remote service.
905             *
906             * @return the group remote service
907             */
908            public GroupService getGroupService() {
909                    return groupService;
910            }
911    
912            /**
913             * Sets the group remote service.
914             *
915             * @param groupService the group remote service
916             */
917            public void setGroupService(GroupService groupService) {
918                    this.groupService = groupService;
919            }
920    
921            /**
922             * Returns the group persistence.
923             *
924             * @return the group persistence
925             */
926            public GroupPersistence getGroupPersistence() {
927                    return groupPersistence;
928            }
929    
930            /**
931             * Sets the group persistence.
932             *
933             * @param groupPersistence the group persistence
934             */
935            public void setGroupPersistence(GroupPersistence groupPersistence) {
936                    this.groupPersistence = groupPersistence;
937            }
938    
939            /**
940             * Returns the group finder.
941             *
942             * @return the group finder
943             */
944            public GroupFinder getGroupFinder() {
945                    return groupFinder;
946            }
947    
948            /**
949             * Sets the group finder.
950             *
951             * @param groupFinder the group finder
952             */
953            public void setGroupFinder(GroupFinder groupFinder) {
954                    this.groupFinder = groupFinder;
955            }
956    
957            /**
958             * Returns the resource local service.
959             *
960             * @return the resource local service
961             */
962            public ResourceLocalService getResourceLocalService() {
963                    return resourceLocalService;
964            }
965    
966            /**
967             * Sets the resource local service.
968             *
969             * @param resourceLocalService the resource local service
970             */
971            public void setResourceLocalService(
972                    ResourceLocalService resourceLocalService) {
973                    this.resourceLocalService = resourceLocalService;
974            }
975    
976            /**
977             * Returns the user local service.
978             *
979             * @return the user local service
980             */
981            public UserLocalService getUserLocalService() {
982                    return userLocalService;
983            }
984    
985            /**
986             * Sets the user local service.
987             *
988             * @param userLocalService the user local service
989             */
990            public void setUserLocalService(UserLocalService userLocalService) {
991                    this.userLocalService = userLocalService;
992            }
993    
994            /**
995             * Returns the user remote service.
996             *
997             * @return the user remote service
998             */
999            public UserService getUserService() {
1000                    return userService;
1001            }
1002    
1003            /**
1004             * Sets the user remote service.
1005             *
1006             * @param userService the user remote service
1007             */
1008            public void setUserService(UserService userService) {
1009                    this.userService = userService;
1010            }
1011    
1012            /**
1013             * Returns the user persistence.
1014             *
1015             * @return the user persistence
1016             */
1017            public UserPersistence getUserPersistence() {
1018                    return userPersistence;
1019            }
1020    
1021            /**
1022             * Sets the user persistence.
1023             *
1024             * @param userPersistence the user persistence
1025             */
1026            public void setUserPersistence(UserPersistence userPersistence) {
1027                    this.userPersistence = userPersistence;
1028            }
1029    
1030            /**
1031             * Returns the user finder.
1032             *
1033             * @return the user finder
1034             */
1035            public UserFinder getUserFinder() {
1036                    return userFinder;
1037            }
1038    
1039            /**
1040             * Sets the user finder.
1041             *
1042             * @param userFinder the user finder
1043             */
1044            public void setUserFinder(UserFinder userFinder) {
1045                    this.userFinder = userFinder;
1046            }
1047    
1048            public void afterPropertiesSet() {
1049                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.asset.model.AssetVocabulary",
1050                            assetVocabularyLocalService);
1051            }
1052    
1053            public void destroy() {
1054                    persistedModelLocalServiceRegistry.unregister(
1055                            "com.liferay.portlet.asset.model.AssetVocabulary");
1056            }
1057    
1058            /**
1059             * Returns the Spring bean ID for this bean.
1060             *
1061             * @return the Spring bean ID for this bean
1062             */
1063            public String getBeanIdentifier() {
1064                    return _beanIdentifier;
1065            }
1066    
1067            /**
1068             * Sets the Spring bean ID for this bean.
1069             *
1070             * @param beanIdentifier the Spring bean ID for this bean
1071             */
1072            public void setBeanIdentifier(String beanIdentifier) {
1073                    _beanIdentifier = beanIdentifier;
1074            }
1075    
1076            protected Class<?> getModelClass() {
1077                    return AssetVocabulary.class;
1078            }
1079    
1080            protected String getModelClassName() {
1081                    return AssetVocabulary.class.getName();
1082            }
1083    
1084            /**
1085             * Performs an SQL query.
1086             *
1087             * @param sql the sql query
1088             */
1089            protected void runSQL(String sql) throws SystemException {
1090                    try {
1091                            DataSource dataSource = assetVocabularyPersistence.getDataSource();
1092    
1093                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1094                                            sql, new int[0]);
1095    
1096                            sqlUpdate.update();
1097                    }
1098                    catch (Exception e) {
1099                            throw new SystemException(e);
1100                    }
1101            }
1102    
1103            @BeanReference(type = AssetCategoryLocalService.class)
1104            protected AssetCategoryLocalService assetCategoryLocalService;
1105            @BeanReference(type = AssetCategoryService.class)
1106            protected AssetCategoryService assetCategoryService;
1107            @BeanReference(type = AssetCategoryPersistence.class)
1108            protected AssetCategoryPersistence assetCategoryPersistence;
1109            @BeanReference(type = AssetCategoryFinder.class)
1110            protected AssetCategoryFinder assetCategoryFinder;
1111            @BeanReference(type = AssetCategoryPropertyLocalService.class)
1112            protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
1113            @BeanReference(type = AssetCategoryPropertyService.class)
1114            protected AssetCategoryPropertyService assetCategoryPropertyService;
1115            @BeanReference(type = AssetCategoryPropertyPersistence.class)
1116            protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
1117            @BeanReference(type = AssetCategoryPropertyFinder.class)
1118            protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
1119            @BeanReference(type = AssetEntryLocalService.class)
1120            protected AssetEntryLocalService assetEntryLocalService;
1121            @BeanReference(type = AssetEntryService.class)
1122            protected AssetEntryService assetEntryService;
1123            @BeanReference(type = AssetEntryPersistence.class)
1124            protected AssetEntryPersistence assetEntryPersistence;
1125            @BeanReference(type = AssetEntryFinder.class)
1126            protected AssetEntryFinder assetEntryFinder;
1127            @BeanReference(type = AssetLinkLocalService.class)
1128            protected AssetLinkLocalService assetLinkLocalService;
1129            @BeanReference(type = AssetLinkPersistence.class)
1130            protected AssetLinkPersistence assetLinkPersistence;
1131            @BeanReference(type = AssetLinkFinder.class)
1132            protected AssetLinkFinder assetLinkFinder;
1133            @BeanReference(type = AssetTagLocalService.class)
1134            protected AssetTagLocalService assetTagLocalService;
1135            @BeanReference(type = AssetTagService.class)
1136            protected AssetTagService assetTagService;
1137            @BeanReference(type = AssetTagPersistence.class)
1138            protected AssetTagPersistence assetTagPersistence;
1139            @BeanReference(type = AssetTagFinder.class)
1140            protected AssetTagFinder assetTagFinder;
1141            @BeanReference(type = AssetTagPropertyLocalService.class)
1142            protected AssetTagPropertyLocalService assetTagPropertyLocalService;
1143            @BeanReference(type = AssetTagPropertyService.class)
1144            protected AssetTagPropertyService assetTagPropertyService;
1145            @BeanReference(type = AssetTagPropertyPersistence.class)
1146            protected AssetTagPropertyPersistence assetTagPropertyPersistence;
1147            @BeanReference(type = AssetTagPropertyFinder.class)
1148            protected AssetTagPropertyFinder assetTagPropertyFinder;
1149            @BeanReference(type = AssetTagPropertyKeyFinder.class)
1150            protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
1151            @BeanReference(type = AssetTagStatsLocalService.class)
1152            protected AssetTagStatsLocalService assetTagStatsLocalService;
1153            @BeanReference(type = AssetTagStatsPersistence.class)
1154            protected AssetTagStatsPersistence assetTagStatsPersistence;
1155            @BeanReference(type = AssetVocabularyLocalService.class)
1156            protected AssetVocabularyLocalService assetVocabularyLocalService;
1157            @BeanReference(type = AssetVocabularyService.class)
1158            protected AssetVocabularyService assetVocabularyService;
1159            @BeanReference(type = AssetVocabularyPersistence.class)
1160            protected AssetVocabularyPersistence assetVocabularyPersistence;
1161            @BeanReference(type = AssetVocabularyFinder.class)
1162            protected AssetVocabularyFinder assetVocabularyFinder;
1163            @BeanReference(type = CounterLocalService.class)
1164            protected CounterLocalService counterLocalService;
1165            @BeanReference(type = GroupLocalService.class)
1166            protected GroupLocalService groupLocalService;
1167            @BeanReference(type = GroupService.class)
1168            protected GroupService groupService;
1169            @BeanReference(type = GroupPersistence.class)
1170            protected GroupPersistence groupPersistence;
1171            @BeanReference(type = GroupFinder.class)
1172            protected GroupFinder groupFinder;
1173            @BeanReference(type = ResourceLocalService.class)
1174            protected ResourceLocalService resourceLocalService;
1175            @BeanReference(type = UserLocalService.class)
1176            protected UserLocalService userLocalService;
1177            @BeanReference(type = UserService.class)
1178            protected UserService userService;
1179            @BeanReference(type = UserPersistence.class)
1180            protected UserPersistence userPersistence;
1181            @BeanReference(type = UserFinder.class)
1182            protected UserFinder userFinder;
1183            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1184            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1185            private String _beanIdentifier;
1186    }