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