001    /**
002     * Copyright (c) 2000-2012 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.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.UserLocalService;
035    import com.liferay.portal.service.UserService;
036    import com.liferay.portal.service.persistence.UserFinder;
037    import com.liferay.portal.service.persistence.UserPersistence;
038    
039    import com.liferay.portlet.asset.model.AssetCategory;
040    import com.liferay.portlet.asset.service.AssetCategoryLocalService;
041    import com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService;
042    import com.liferay.portlet.asset.service.AssetCategoryPropertyService;
043    import com.liferay.portlet.asset.service.AssetCategoryService;
044    import com.liferay.portlet.asset.service.AssetEntryLocalService;
045    import com.liferay.portlet.asset.service.AssetEntryService;
046    import com.liferay.portlet.asset.service.AssetLinkLocalService;
047    import com.liferay.portlet.asset.service.AssetTagLocalService;
048    import com.liferay.portlet.asset.service.AssetTagPropertyLocalService;
049    import com.liferay.portlet.asset.service.AssetTagPropertyService;
050    import com.liferay.portlet.asset.service.AssetTagService;
051    import com.liferay.portlet.asset.service.AssetTagStatsLocalService;
052    import com.liferay.portlet.asset.service.AssetVocabularyLocalService;
053    import com.liferay.portlet.asset.service.AssetVocabularyService;
054    import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
055    import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
056    import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
057    import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
058    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
059    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
060    import com.liferay.portlet.asset.service.persistence.AssetLinkFinder;
061    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
062    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
063    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
064    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyFinder;
065    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyKeyFinder;
066    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence;
067    import com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence;
068    import com.liferay.portlet.asset.service.persistence.AssetVocabularyFinder;
069    import com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence;
070    
071    import java.io.Serializable;
072    
073    import java.util.List;
074    
075    import javax.sql.DataSource;
076    
077    /**
078     * The base implementation of the asset category local service.
079     *
080     * <p>
081     * 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}.
082     * </p>
083     *
084     * @author Brian Wing Shun Chan
085     * @see com.liferay.portlet.asset.service.impl.AssetCategoryLocalServiceImpl
086     * @see com.liferay.portlet.asset.service.AssetCategoryLocalServiceUtil
087     * @generated
088     */
089    public abstract class AssetCategoryLocalServiceBaseImpl
090            extends BaseLocalServiceImpl implements AssetCategoryLocalService,
091                    IdentifiableBean {
092            /*
093             * NOTE FOR DEVELOPERS:
094             *
095             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.asset.service.AssetCategoryLocalServiceUtil} to access the asset category local service.
096             */
097    
098            /**
099             * Adds the asset category to the database. Also notifies the appropriate model listeners.
100             *
101             * @param assetCategory the asset category
102             * @return the asset category that was added
103             * @throws SystemException if a system exception occurred
104             */
105            @Indexable(type = IndexableType.REINDEX)
106            public AssetCategory addAssetCategory(AssetCategory assetCategory)
107                    throws SystemException {
108                    assetCategory.setNew(true);
109    
110                    return assetCategoryPersistence.update(assetCategory);
111            }
112    
113            /**
114             * Creates a new asset category with the primary key. Does not add the asset category to the database.
115             *
116             * @param categoryId the primary key for the new asset category
117             * @return the new asset category
118             */
119            public AssetCategory createAssetCategory(long categoryId) {
120                    return assetCategoryPersistence.create(categoryId);
121            }
122    
123            /**
124             * Deletes the asset category with the primary key from the database. Also notifies the appropriate model listeners.
125             *
126             * @param categoryId the primary key of the asset category
127             * @return the asset category that was removed
128             * @throws PortalException if a asset category with the primary key could not be found
129             * @throws SystemException if a system exception occurred
130             */
131            @Indexable(type = IndexableType.DELETE)
132            public AssetCategory deleteAssetCategory(long categoryId)
133                    throws PortalException, SystemException {
134                    return assetCategoryPersistence.remove(categoryId);
135            }
136    
137            /**
138             * Deletes the asset category from the database. Also notifies the appropriate model listeners.
139             *
140             * @param assetCategory the asset category
141             * @return the asset category that was removed
142             * @throws SystemException if a system exception occurred
143             */
144            @Indexable(type = IndexableType.DELETE)
145            public AssetCategory deleteAssetCategory(AssetCategory assetCategory)
146                    throws SystemException {
147                    return assetCategoryPersistence.remove(assetCategory);
148            }
149    
150            public DynamicQuery dynamicQuery() {
151                    Class<?> clazz = getClass();
152    
153                    return DynamicQueryFactoryUtil.forClass(AssetCategory.class,
154                            clazz.getClassLoader());
155            }
156    
157            /**
158             * Performs a dynamic query on the database and returns the matching rows.
159             *
160             * @param dynamicQuery the dynamic query
161             * @return the matching rows
162             * @throws SystemException if a system exception occurred
163             */
164            @SuppressWarnings("rawtypes")
165            public List dynamicQuery(DynamicQuery dynamicQuery)
166                    throws SystemException {
167                    return assetCategoryPersistence.findWithDynamicQuery(dynamicQuery);
168            }
169    
170            /**
171             * Performs a dynamic query on the database and returns a range of the matching rows.
172             *
173             * <p>
174             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetCategoryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
175             * </p>
176             *
177             * @param dynamicQuery the dynamic query
178             * @param start the lower bound of the range of model instances
179             * @param end the upper bound of the range of model instances (not inclusive)
180             * @return the range of matching rows
181             * @throws SystemException if a system exception occurred
182             */
183            @SuppressWarnings("rawtypes")
184            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
185                    throws SystemException {
186                    return assetCategoryPersistence.findWithDynamicQuery(dynamicQuery,
187                            start, end);
188            }
189    
190            /**
191             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
192             *
193             * <p>
194             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetCategoryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
195             * </p>
196             *
197             * @param dynamicQuery the dynamic query
198             * @param start the lower bound of the range of model instances
199             * @param end the upper bound of the range of model instances (not inclusive)
200             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
201             * @return the ordered range of matching rows
202             * @throws SystemException if a system exception occurred
203             */
204            @SuppressWarnings("rawtypes")
205            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
206                    OrderByComparator orderByComparator) throws SystemException {
207                    return assetCategoryPersistence.findWithDynamicQuery(dynamicQuery,
208                            start, end, orderByComparator);
209            }
210    
211            /**
212             * Returns the number of rows that match the dynamic query.
213             *
214             * @param dynamicQuery the dynamic query
215             * @return the number of rows that match the dynamic query
216             * @throws SystemException if a system exception occurred
217             */
218            public long dynamicQueryCount(DynamicQuery dynamicQuery)
219                    throws SystemException {
220                    return assetCategoryPersistence.countWithDynamicQuery(dynamicQuery);
221            }
222    
223            public AssetCategory fetchAssetCategory(long categoryId)
224                    throws SystemException {
225                    return assetCategoryPersistence.fetchByPrimaryKey(categoryId);
226            }
227    
228            /**
229             * Returns the asset category with the primary key.
230             *
231             * @param categoryId the primary key of the asset category
232             * @return the asset category
233             * @throws PortalException if a asset category with the primary key could not be found
234             * @throws SystemException if a system exception occurred
235             */
236            public AssetCategory getAssetCategory(long categoryId)
237                    throws PortalException, SystemException {
238                    return assetCategoryPersistence.findByPrimaryKey(categoryId);
239            }
240    
241            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
242                    throws PortalException, SystemException {
243                    return assetCategoryPersistence.findByPrimaryKey(primaryKeyObj);
244            }
245    
246            /**
247             * Returns the asset category with the UUID in the group.
248             *
249             * @param uuid the UUID of asset category
250             * @param groupId the group id of the asset category
251             * @return the asset category
252             * @throws PortalException if a asset category with the UUID in the group could not be found
253             * @throws SystemException if a system exception occurred
254             */
255            public AssetCategory getAssetCategoryByUuidAndGroupId(String uuid,
256                    long groupId) throws PortalException, SystemException {
257                    return assetCategoryPersistence.findByUUID_G(uuid, groupId);
258            }
259    
260            /**
261             * Returns a range of all the asset categories.
262             *
263             * <p>
264             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetCategoryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
265             * </p>
266             *
267             * @param start the lower bound of the range of asset categories
268             * @param end the upper bound of the range of asset categories (not inclusive)
269             * @return the range of asset categories
270             * @throws SystemException if a system exception occurred
271             */
272            public List<AssetCategory> getAssetCategories(int start, int end)
273                    throws SystemException {
274                    return assetCategoryPersistence.findAll(start, end);
275            }
276    
277            /**
278             * Returns the number of asset categories.
279             *
280             * @return the number of asset categories
281             * @throws SystemException if a system exception occurred
282             */
283            public int getAssetCategoriesCount() throws SystemException {
284                    return assetCategoryPersistence.countAll();
285            }
286    
287            /**
288             * Updates the asset category in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
289             *
290             * @param assetCategory the asset category
291             * @return the asset category that was updated
292             * @throws SystemException if a system exception occurred
293             */
294            @Indexable(type = IndexableType.REINDEX)
295            public AssetCategory updateAssetCategory(AssetCategory assetCategory)
296                    throws SystemException {
297                    return assetCategoryPersistence.update(assetCategory);
298            }
299    
300            /**
301             * Returns the asset category local service.
302             *
303             * @return the asset category local service
304             */
305            public AssetCategoryLocalService getAssetCategoryLocalService() {
306                    return assetCategoryLocalService;
307            }
308    
309            /**
310             * Sets the asset category local service.
311             *
312             * @param assetCategoryLocalService the asset category local service
313             */
314            public void setAssetCategoryLocalService(
315                    AssetCategoryLocalService assetCategoryLocalService) {
316                    this.assetCategoryLocalService = assetCategoryLocalService;
317            }
318    
319            /**
320             * Returns the asset category remote service.
321             *
322             * @return the asset category remote service
323             */
324            public AssetCategoryService getAssetCategoryService() {
325                    return assetCategoryService;
326            }
327    
328            /**
329             * Sets the asset category remote service.
330             *
331             * @param assetCategoryService the asset category remote service
332             */
333            public void setAssetCategoryService(
334                    AssetCategoryService assetCategoryService) {
335                    this.assetCategoryService = assetCategoryService;
336            }
337    
338            /**
339             * Returns the asset category persistence.
340             *
341             * @return the asset category persistence
342             */
343            public AssetCategoryPersistence getAssetCategoryPersistence() {
344                    return assetCategoryPersistence;
345            }
346    
347            /**
348             * Sets the asset category persistence.
349             *
350             * @param assetCategoryPersistence the asset category persistence
351             */
352            public void setAssetCategoryPersistence(
353                    AssetCategoryPersistence assetCategoryPersistence) {
354                    this.assetCategoryPersistence = assetCategoryPersistence;
355            }
356    
357            /**
358             * Returns the asset category finder.
359             *
360             * @return the asset category finder
361             */
362            public AssetCategoryFinder getAssetCategoryFinder() {
363                    return assetCategoryFinder;
364            }
365    
366            /**
367             * Sets the asset category finder.
368             *
369             * @param assetCategoryFinder the asset category finder
370             */
371            public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
372                    this.assetCategoryFinder = assetCategoryFinder;
373            }
374    
375            /**
376             * Returns the asset category property local service.
377             *
378             * @return the asset category property local service
379             */
380            public AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
381                    return assetCategoryPropertyLocalService;
382            }
383    
384            /**
385             * Sets the asset category property local service.
386             *
387             * @param assetCategoryPropertyLocalService the asset category property local service
388             */
389            public void setAssetCategoryPropertyLocalService(
390                    AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
391                    this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
392            }
393    
394            /**
395             * Returns the asset category property remote service.
396             *
397             * @return the asset category property remote service
398             */
399            public AssetCategoryPropertyService getAssetCategoryPropertyService() {
400                    return assetCategoryPropertyService;
401            }
402    
403            /**
404             * Sets the asset category property remote service.
405             *
406             * @param assetCategoryPropertyService the asset category property remote service
407             */
408            public void setAssetCategoryPropertyService(
409                    AssetCategoryPropertyService assetCategoryPropertyService) {
410                    this.assetCategoryPropertyService = assetCategoryPropertyService;
411            }
412    
413            /**
414             * Returns the asset category property persistence.
415             *
416             * @return the asset category property persistence
417             */
418            public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
419                    return assetCategoryPropertyPersistence;
420            }
421    
422            /**
423             * Sets the asset category property persistence.
424             *
425             * @param assetCategoryPropertyPersistence the asset category property persistence
426             */
427            public void setAssetCategoryPropertyPersistence(
428                    AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
429                    this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
430            }
431    
432            /**
433             * Returns the asset category property finder.
434             *
435             * @return the asset category property finder
436             */
437            public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
438                    return assetCategoryPropertyFinder;
439            }
440    
441            /**
442             * Sets the asset category property finder.
443             *
444             * @param assetCategoryPropertyFinder the asset category property finder
445             */
446            public void setAssetCategoryPropertyFinder(
447                    AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
448                    this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
449            }
450    
451            /**
452             * Returns the asset entry local service.
453             *
454             * @return the asset entry local service
455             */
456            public AssetEntryLocalService getAssetEntryLocalService() {
457                    return assetEntryLocalService;
458            }
459    
460            /**
461             * Sets the asset entry local service.
462             *
463             * @param assetEntryLocalService the asset entry local service
464             */
465            public void setAssetEntryLocalService(
466                    AssetEntryLocalService assetEntryLocalService) {
467                    this.assetEntryLocalService = assetEntryLocalService;
468            }
469    
470            /**
471             * Returns the asset entry remote service.
472             *
473             * @return the asset entry remote service
474             */
475            public AssetEntryService getAssetEntryService() {
476                    return assetEntryService;
477            }
478    
479            /**
480             * Sets the asset entry remote service.
481             *
482             * @param assetEntryService the asset entry remote service
483             */
484            public void setAssetEntryService(AssetEntryService assetEntryService) {
485                    this.assetEntryService = assetEntryService;
486            }
487    
488            /**
489             * Returns the asset entry persistence.
490             *
491             * @return the asset entry persistence
492             */
493            public AssetEntryPersistence getAssetEntryPersistence() {
494                    return assetEntryPersistence;
495            }
496    
497            /**
498             * Sets the asset entry persistence.
499             *
500             * @param assetEntryPersistence the asset entry persistence
501             */
502            public void setAssetEntryPersistence(
503                    AssetEntryPersistence assetEntryPersistence) {
504                    this.assetEntryPersistence = assetEntryPersistence;
505            }
506    
507            /**
508             * Returns the asset entry finder.
509             *
510             * @return the asset entry finder
511             */
512            public AssetEntryFinder getAssetEntryFinder() {
513                    return assetEntryFinder;
514            }
515    
516            /**
517             * Sets the asset entry finder.
518             *
519             * @param assetEntryFinder the asset entry finder
520             */
521            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
522                    this.assetEntryFinder = assetEntryFinder;
523            }
524    
525            /**
526             * Returns the asset link local service.
527             *
528             * @return the asset link local service
529             */
530            public AssetLinkLocalService getAssetLinkLocalService() {
531                    return assetLinkLocalService;
532            }
533    
534            /**
535             * Sets the asset link local service.
536             *
537             * @param assetLinkLocalService the asset link local service
538             */
539            public void setAssetLinkLocalService(
540                    AssetLinkLocalService assetLinkLocalService) {
541                    this.assetLinkLocalService = assetLinkLocalService;
542            }
543    
544            /**
545             * Returns the asset link persistence.
546             *
547             * @return the asset link persistence
548             */
549            public AssetLinkPersistence getAssetLinkPersistence() {
550                    return assetLinkPersistence;
551            }
552    
553            /**
554             * Sets the asset link persistence.
555             *
556             * @param assetLinkPersistence the asset link persistence
557             */
558            public void setAssetLinkPersistence(
559                    AssetLinkPersistence assetLinkPersistence) {
560                    this.assetLinkPersistence = assetLinkPersistence;
561            }
562    
563            /**
564             * Returns the asset link finder.
565             *
566             * @return the asset link finder
567             */
568            public AssetLinkFinder getAssetLinkFinder() {
569                    return assetLinkFinder;
570            }
571    
572            /**
573             * Sets the asset link finder.
574             *
575             * @param assetLinkFinder the asset link finder
576             */
577            public void setAssetLinkFinder(AssetLinkFinder assetLinkFinder) {
578                    this.assetLinkFinder = assetLinkFinder;
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 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             * Returns 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             * Returns 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             * Returns 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            public void afterPropertiesSet() {
973                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.asset.model.AssetCategory",
974                            assetCategoryLocalService);
975            }
976    
977            public void destroy() {
978                    persistedModelLocalServiceRegistry.unregister(
979                            "com.liferay.portlet.asset.model.AssetCategory");
980            }
981    
982            /**
983             * Returns the Spring bean ID for this bean.
984             *
985             * @return the Spring bean ID for this bean
986             */
987            public String getBeanIdentifier() {
988                    return _beanIdentifier;
989            }
990    
991            /**
992             * Sets the Spring bean ID for this bean.
993             *
994             * @param beanIdentifier the Spring bean ID for this bean
995             */
996            public void setBeanIdentifier(String beanIdentifier) {
997                    _beanIdentifier = beanIdentifier;
998            }
999    
1000            protected Class<?> getModelClass() {
1001                    return AssetCategory.class;
1002            }
1003    
1004            protected String getModelClassName() {
1005                    return AssetCategory.class.getName();
1006            }
1007    
1008            /**
1009             * Performs an SQL query.
1010             *
1011             * @param sql the sql query
1012             */
1013            protected void runSQL(String sql) throws SystemException {
1014                    try {
1015                            DataSource dataSource = assetCategoryPersistence.getDataSource();
1016    
1017                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1018                                            sql, new int[0]);
1019    
1020                            sqlUpdate.update();
1021                    }
1022                    catch (Exception e) {
1023                            throw new SystemException(e);
1024                    }
1025            }
1026    
1027            @BeanReference(type = AssetCategoryLocalService.class)
1028            protected AssetCategoryLocalService assetCategoryLocalService;
1029            @BeanReference(type = AssetCategoryService.class)
1030            protected AssetCategoryService assetCategoryService;
1031            @BeanReference(type = AssetCategoryPersistence.class)
1032            protected AssetCategoryPersistence assetCategoryPersistence;
1033            @BeanReference(type = AssetCategoryFinder.class)
1034            protected AssetCategoryFinder assetCategoryFinder;
1035            @BeanReference(type = AssetCategoryPropertyLocalService.class)
1036            protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
1037            @BeanReference(type = AssetCategoryPropertyService.class)
1038            protected AssetCategoryPropertyService assetCategoryPropertyService;
1039            @BeanReference(type = AssetCategoryPropertyPersistence.class)
1040            protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
1041            @BeanReference(type = AssetCategoryPropertyFinder.class)
1042            protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
1043            @BeanReference(type = AssetEntryLocalService.class)
1044            protected AssetEntryLocalService assetEntryLocalService;
1045            @BeanReference(type = AssetEntryService.class)
1046            protected AssetEntryService assetEntryService;
1047            @BeanReference(type = AssetEntryPersistence.class)
1048            protected AssetEntryPersistence assetEntryPersistence;
1049            @BeanReference(type = AssetEntryFinder.class)
1050            protected AssetEntryFinder assetEntryFinder;
1051            @BeanReference(type = AssetLinkLocalService.class)
1052            protected AssetLinkLocalService assetLinkLocalService;
1053            @BeanReference(type = AssetLinkPersistence.class)
1054            protected AssetLinkPersistence assetLinkPersistence;
1055            @BeanReference(type = AssetLinkFinder.class)
1056            protected AssetLinkFinder assetLinkFinder;
1057            @BeanReference(type = AssetTagLocalService.class)
1058            protected AssetTagLocalService assetTagLocalService;
1059            @BeanReference(type = AssetTagService.class)
1060            protected AssetTagService assetTagService;
1061            @BeanReference(type = AssetTagPersistence.class)
1062            protected AssetTagPersistence assetTagPersistence;
1063            @BeanReference(type = AssetTagFinder.class)
1064            protected AssetTagFinder assetTagFinder;
1065            @BeanReference(type = AssetTagPropertyLocalService.class)
1066            protected AssetTagPropertyLocalService assetTagPropertyLocalService;
1067            @BeanReference(type = AssetTagPropertyService.class)
1068            protected AssetTagPropertyService assetTagPropertyService;
1069            @BeanReference(type = AssetTagPropertyPersistence.class)
1070            protected AssetTagPropertyPersistence assetTagPropertyPersistence;
1071            @BeanReference(type = AssetTagPropertyFinder.class)
1072            protected AssetTagPropertyFinder assetTagPropertyFinder;
1073            @BeanReference(type = AssetTagPropertyKeyFinder.class)
1074            protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
1075            @BeanReference(type = AssetTagStatsLocalService.class)
1076            protected AssetTagStatsLocalService assetTagStatsLocalService;
1077            @BeanReference(type = AssetTagStatsPersistence.class)
1078            protected AssetTagStatsPersistence assetTagStatsPersistence;
1079            @BeanReference(type = AssetVocabularyLocalService.class)
1080            protected AssetVocabularyLocalService assetVocabularyLocalService;
1081            @BeanReference(type = AssetVocabularyService.class)
1082            protected AssetVocabularyService assetVocabularyService;
1083            @BeanReference(type = AssetVocabularyPersistence.class)
1084            protected AssetVocabularyPersistence assetVocabularyPersistence;
1085            @BeanReference(type = AssetVocabularyFinder.class)
1086            protected AssetVocabularyFinder assetVocabularyFinder;
1087            @BeanReference(type = CounterLocalService.class)
1088            protected CounterLocalService counterLocalService;
1089            @BeanReference(type = ResourceLocalService.class)
1090            protected ResourceLocalService resourceLocalService;
1091            @BeanReference(type = UserLocalService.class)
1092            protected UserLocalService userLocalService;
1093            @BeanReference(type = UserService.class)
1094            protected UserService userService;
1095            @BeanReference(type = UserPersistence.class)
1096            protected UserPersistence userPersistence;
1097            @BeanReference(type = UserFinder.class)
1098            protected UserFinder userFinder;
1099            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1100            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1101            private String _beanIdentifier;
1102    }