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