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