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