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