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