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