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