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