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