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