001    /**
002     * Copyright (c) 2000-2013 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.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             * @throws SystemException if a system exception occurred
320             */
321            public void addAssetEntryAssetCategory(long entryId, long categoryId)
322                    throws SystemException {
323                    assetEntryPersistence.addAssetCategory(entryId, categoryId);
324            }
325    
326            /**
327             * @throws SystemException if a system exception occurred
328             */
329            public void addAssetEntryAssetCategory(long entryId,
330                    AssetCategory assetCategory) throws SystemException {
331                    assetEntryPersistence.addAssetCategory(entryId, assetCategory);
332            }
333    
334            /**
335             * @throws SystemException if a system exception occurred
336             */
337            public void addAssetEntryAssetCategories(long entryId, long[] categoryIds)
338                    throws SystemException {
339                    assetEntryPersistence.addAssetCategories(entryId, categoryIds);
340            }
341    
342            /**
343             * @throws SystemException if a system exception occurred
344             */
345            public void addAssetEntryAssetCategories(long entryId,
346                    List<AssetCategory> AssetCategories) throws SystemException {
347                    assetEntryPersistence.addAssetCategories(entryId, AssetCategories);
348            }
349    
350            /**
351             * @throws SystemException if a system exception occurred
352             */
353            public void clearAssetEntryAssetCategories(long entryId)
354                    throws SystemException {
355                    assetEntryPersistence.clearAssetCategories(entryId);
356            }
357    
358            /**
359             * @throws SystemException if a system exception occurred
360             */
361            public void deleteAssetEntryAssetCategory(long entryId, long categoryId)
362                    throws SystemException {
363                    assetEntryPersistence.removeAssetCategory(entryId, categoryId);
364            }
365    
366            /**
367             * @throws SystemException if a system exception occurred
368             */
369            public void deleteAssetEntryAssetCategory(long entryId,
370                    AssetCategory assetCategory) throws SystemException {
371                    assetEntryPersistence.removeAssetCategory(entryId, assetCategory);
372            }
373    
374            /**
375             * @throws SystemException if a system exception occurred
376             */
377            public void deleteAssetEntryAssetCategories(long entryId, long[] categoryIds)
378                    throws SystemException {
379                    assetEntryPersistence.removeAssetCategories(entryId, categoryIds);
380            }
381    
382            /**
383             * @throws SystemException if a system exception occurred
384             */
385            public void deleteAssetEntryAssetCategories(long entryId,
386                    List<AssetCategory> AssetCategories) throws SystemException {
387                    assetEntryPersistence.removeAssetCategories(entryId, AssetCategories);
388            }
389    
390            /**
391             * @throws SystemException if a system exception occurred
392             */
393            public List<AssetCategory> getAssetEntryAssetCategories(long entryId)
394                    throws SystemException {
395                    return assetEntryPersistence.getAssetCategories(entryId);
396            }
397    
398            /**
399             * @throws SystemException if a system exception occurred
400             */
401            public List<AssetCategory> getAssetEntryAssetCategories(long entryId,
402                    int start, int end) throws SystemException {
403                    return assetEntryPersistence.getAssetCategories(entryId, start, end);
404            }
405    
406            /**
407             * @throws SystemException if a system exception occurred
408             */
409            public List<AssetCategory> getAssetEntryAssetCategories(long entryId,
410                    int start, int end, OrderByComparator orderByComparator)
411                    throws SystemException {
412                    return assetEntryPersistence.getAssetCategories(entryId, start, end,
413                            orderByComparator);
414            }
415    
416            /**
417             * @throws SystemException if a system exception occurred
418             */
419            public int getAssetEntryAssetCategoriesCount(long entryId)
420                    throws SystemException {
421                    return assetEntryPersistence.getAssetCategoriesSize(entryId);
422            }
423    
424            /**
425             * @throws SystemException if a system exception occurred
426             */
427            public boolean hasAssetEntryAssetCategory(long entryId, long categoryId)
428                    throws SystemException {
429                    return assetEntryPersistence.containsAssetCategory(entryId, categoryId);
430            }
431    
432            /**
433             * @throws SystemException if a system exception occurred
434             */
435            public boolean hasAssetEntryAssetCategories(long entryId)
436                    throws SystemException {
437                    return assetEntryPersistence.containsAssetCategories(entryId);
438            }
439    
440            /**
441             * @throws SystemException if a system exception occurred
442             */
443            public void setAssetEntryAssetCategories(long entryId, long[] categoryIds)
444                    throws SystemException {
445                    assetEntryPersistence.setAssetCategories(entryId, categoryIds);
446            }
447    
448            /**
449             * Returns the asset category local service.
450             *
451             * @return the asset category local service
452             */
453            public AssetCategoryLocalService getAssetCategoryLocalService() {
454                    return assetCategoryLocalService;
455            }
456    
457            /**
458             * Sets the asset category local service.
459             *
460             * @param assetCategoryLocalService the asset category local service
461             */
462            public void setAssetCategoryLocalService(
463                    AssetCategoryLocalService assetCategoryLocalService) {
464                    this.assetCategoryLocalService = assetCategoryLocalService;
465            }
466    
467            /**
468             * Returns the asset category remote service.
469             *
470             * @return the asset category remote service
471             */
472            public AssetCategoryService getAssetCategoryService() {
473                    return assetCategoryService;
474            }
475    
476            /**
477             * Sets the asset category remote service.
478             *
479             * @param assetCategoryService the asset category remote service
480             */
481            public void setAssetCategoryService(
482                    AssetCategoryService assetCategoryService) {
483                    this.assetCategoryService = assetCategoryService;
484            }
485    
486            /**
487             * Returns the asset category persistence.
488             *
489             * @return the asset category persistence
490             */
491            public AssetCategoryPersistence getAssetCategoryPersistence() {
492                    return assetCategoryPersistence;
493            }
494    
495            /**
496             * Sets the asset category persistence.
497             *
498             * @param assetCategoryPersistence the asset category persistence
499             */
500            public void setAssetCategoryPersistence(
501                    AssetCategoryPersistence assetCategoryPersistence) {
502                    this.assetCategoryPersistence = assetCategoryPersistence;
503            }
504    
505            /**
506             * Returns the asset category finder.
507             *
508             * @return the asset category finder
509             */
510            public AssetCategoryFinder getAssetCategoryFinder() {
511                    return assetCategoryFinder;
512            }
513    
514            /**
515             * Sets the asset category finder.
516             *
517             * @param assetCategoryFinder the asset category finder
518             */
519            public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
520                    this.assetCategoryFinder = assetCategoryFinder;
521            }
522    
523            /**
524             * Returns the asset category property local service.
525             *
526             * @return the asset category property local service
527             */
528            public AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
529                    return assetCategoryPropertyLocalService;
530            }
531    
532            /**
533             * Sets the asset category property local service.
534             *
535             * @param assetCategoryPropertyLocalService the asset category property local service
536             */
537            public void setAssetCategoryPropertyLocalService(
538                    AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
539                    this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
540            }
541    
542            /**
543             * Returns the asset category property remote service.
544             *
545             * @return the asset category property remote service
546             */
547            public AssetCategoryPropertyService getAssetCategoryPropertyService() {
548                    return assetCategoryPropertyService;
549            }
550    
551            /**
552             * Sets the asset category property remote service.
553             *
554             * @param assetCategoryPropertyService the asset category property remote service
555             */
556            public void setAssetCategoryPropertyService(
557                    AssetCategoryPropertyService assetCategoryPropertyService) {
558                    this.assetCategoryPropertyService = assetCategoryPropertyService;
559            }
560    
561            /**
562             * Returns the asset category property persistence.
563             *
564             * @return the asset category property persistence
565             */
566            public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
567                    return assetCategoryPropertyPersistence;
568            }
569    
570            /**
571             * Sets the asset category property persistence.
572             *
573             * @param assetCategoryPropertyPersistence the asset category property persistence
574             */
575            public void setAssetCategoryPropertyPersistence(
576                    AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
577                    this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
578            }
579    
580            /**
581             * Returns the asset category property finder.
582             *
583             * @return the asset category property finder
584             */
585            public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
586                    return assetCategoryPropertyFinder;
587            }
588    
589            /**
590             * Sets the asset category property finder.
591             *
592             * @param assetCategoryPropertyFinder the asset category property finder
593             */
594            public void setAssetCategoryPropertyFinder(
595                    AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
596                    this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
597            }
598    
599            /**
600             * Returns the asset entry local service.
601             *
602             * @return the asset entry local service
603             */
604            public AssetEntryLocalService getAssetEntryLocalService() {
605                    return assetEntryLocalService;
606            }
607    
608            /**
609             * Sets the asset entry local service.
610             *
611             * @param assetEntryLocalService the asset entry local service
612             */
613            public void setAssetEntryLocalService(
614                    AssetEntryLocalService assetEntryLocalService) {
615                    this.assetEntryLocalService = assetEntryLocalService;
616            }
617    
618            /**
619             * Returns the asset entry remote service.
620             *
621             * @return the asset entry remote service
622             */
623            public AssetEntryService getAssetEntryService() {
624                    return assetEntryService;
625            }
626    
627            /**
628             * Sets the asset entry remote service.
629             *
630             * @param assetEntryService the asset entry remote service
631             */
632            public void setAssetEntryService(AssetEntryService assetEntryService) {
633                    this.assetEntryService = assetEntryService;
634            }
635    
636            /**
637             * Returns the asset entry persistence.
638             *
639             * @return the asset entry persistence
640             */
641            public AssetEntryPersistence getAssetEntryPersistence() {
642                    return assetEntryPersistence;
643            }
644    
645            /**
646             * Sets the asset entry persistence.
647             *
648             * @param assetEntryPersistence the asset entry persistence
649             */
650            public void setAssetEntryPersistence(
651                    AssetEntryPersistence assetEntryPersistence) {
652                    this.assetEntryPersistence = assetEntryPersistence;
653            }
654    
655            /**
656             * Returns the asset entry finder.
657             *
658             * @return the asset entry finder
659             */
660            public AssetEntryFinder getAssetEntryFinder() {
661                    return assetEntryFinder;
662            }
663    
664            /**
665             * Sets the asset entry finder.
666             *
667             * @param assetEntryFinder the asset entry finder
668             */
669            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
670                    this.assetEntryFinder = assetEntryFinder;
671            }
672    
673            /**
674             * Returns the asset link local service.
675             *
676             * @return the asset link local service
677             */
678            public AssetLinkLocalService getAssetLinkLocalService() {
679                    return assetLinkLocalService;
680            }
681    
682            /**
683             * Sets the asset link local service.
684             *
685             * @param assetLinkLocalService the asset link local service
686             */
687            public void setAssetLinkLocalService(
688                    AssetLinkLocalService assetLinkLocalService) {
689                    this.assetLinkLocalService = assetLinkLocalService;
690            }
691    
692            /**
693             * Returns the asset link persistence.
694             *
695             * @return the asset link persistence
696             */
697            public AssetLinkPersistence getAssetLinkPersistence() {
698                    return assetLinkPersistence;
699            }
700    
701            /**
702             * Sets the asset link persistence.
703             *
704             * @param assetLinkPersistence the asset link persistence
705             */
706            public void setAssetLinkPersistence(
707                    AssetLinkPersistence assetLinkPersistence) {
708                    this.assetLinkPersistence = assetLinkPersistence;
709            }
710    
711            /**
712             * Returns the asset tag local service.
713             *
714             * @return the asset tag local service
715             */
716            public AssetTagLocalService getAssetTagLocalService() {
717                    return assetTagLocalService;
718            }
719    
720            /**
721             * Sets the asset tag local service.
722             *
723             * @param assetTagLocalService the asset tag local service
724             */
725            public void setAssetTagLocalService(
726                    AssetTagLocalService assetTagLocalService) {
727                    this.assetTagLocalService = assetTagLocalService;
728            }
729    
730            /**
731             * Returns the asset tag remote service.
732             *
733             * @return the asset tag remote service
734             */
735            public AssetTagService getAssetTagService() {
736                    return assetTagService;
737            }
738    
739            /**
740             * Sets the asset tag remote service.
741             *
742             * @param assetTagService the asset tag remote service
743             */
744            public void setAssetTagService(AssetTagService assetTagService) {
745                    this.assetTagService = assetTagService;
746            }
747    
748            /**
749             * Returns the asset tag persistence.
750             *
751             * @return the asset tag persistence
752             */
753            public AssetTagPersistence getAssetTagPersistence() {
754                    return assetTagPersistence;
755            }
756    
757            /**
758             * Sets the asset tag persistence.
759             *
760             * @param assetTagPersistence the asset tag persistence
761             */
762            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
763                    this.assetTagPersistence = assetTagPersistence;
764            }
765    
766            /**
767             * Returns the asset tag finder.
768             *
769             * @return the asset tag finder
770             */
771            public AssetTagFinder getAssetTagFinder() {
772                    return assetTagFinder;
773            }
774    
775            /**
776             * Sets the asset tag finder.
777             *
778             * @param assetTagFinder the asset tag finder
779             */
780            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
781                    this.assetTagFinder = assetTagFinder;
782            }
783    
784            /**
785             * Returns the asset tag property local service.
786             *
787             * @return the asset tag property local service
788             */
789            public AssetTagPropertyLocalService getAssetTagPropertyLocalService() {
790                    return assetTagPropertyLocalService;
791            }
792    
793            /**
794             * Sets the asset tag property local service.
795             *
796             * @param assetTagPropertyLocalService the asset tag property local service
797             */
798            public void setAssetTagPropertyLocalService(
799                    AssetTagPropertyLocalService assetTagPropertyLocalService) {
800                    this.assetTagPropertyLocalService = assetTagPropertyLocalService;
801            }
802    
803            /**
804             * Returns the asset tag property remote service.
805             *
806             * @return the asset tag property remote service
807             */
808            public AssetTagPropertyService getAssetTagPropertyService() {
809                    return assetTagPropertyService;
810            }
811    
812            /**
813             * Sets the asset tag property remote service.
814             *
815             * @param assetTagPropertyService the asset tag property remote service
816             */
817            public void setAssetTagPropertyService(
818                    AssetTagPropertyService assetTagPropertyService) {
819                    this.assetTagPropertyService = assetTagPropertyService;
820            }
821    
822            /**
823             * Returns the asset tag property persistence.
824             *
825             * @return the asset tag property persistence
826             */
827            public AssetTagPropertyPersistence getAssetTagPropertyPersistence() {
828                    return assetTagPropertyPersistence;
829            }
830    
831            /**
832             * Sets the asset tag property persistence.
833             *
834             * @param assetTagPropertyPersistence the asset tag property persistence
835             */
836            public void setAssetTagPropertyPersistence(
837                    AssetTagPropertyPersistence assetTagPropertyPersistence) {
838                    this.assetTagPropertyPersistence = assetTagPropertyPersistence;
839            }
840    
841            /**
842             * Returns the asset tag property finder.
843             *
844             * @return the asset tag property finder
845             */
846            public AssetTagPropertyFinder getAssetTagPropertyFinder() {
847                    return assetTagPropertyFinder;
848            }
849    
850            /**
851             * Sets the asset tag property finder.
852             *
853             * @param assetTagPropertyFinder the asset tag property finder
854             */
855            public void setAssetTagPropertyFinder(
856                    AssetTagPropertyFinder assetTagPropertyFinder) {
857                    this.assetTagPropertyFinder = assetTagPropertyFinder;
858            }
859    
860            /**
861             * Returns the asset tag property key finder.
862             *
863             * @return the asset tag property key finder
864             */
865            public AssetTagPropertyKeyFinder getAssetTagPropertyKeyFinder() {
866                    return assetTagPropertyKeyFinder;
867            }
868    
869            /**
870             * Sets the asset tag property key finder.
871             *
872             * @param assetTagPropertyKeyFinder the asset tag property key finder
873             */
874            public void setAssetTagPropertyKeyFinder(
875                    AssetTagPropertyKeyFinder assetTagPropertyKeyFinder) {
876                    this.assetTagPropertyKeyFinder = assetTagPropertyKeyFinder;
877            }
878    
879            /**
880             * Returns the asset tag stats local service.
881             *
882             * @return the asset tag stats local service
883             */
884            public AssetTagStatsLocalService getAssetTagStatsLocalService() {
885                    return assetTagStatsLocalService;
886            }
887    
888            /**
889             * Sets the asset tag stats local service.
890             *
891             * @param assetTagStatsLocalService the asset tag stats local service
892             */
893            public void setAssetTagStatsLocalService(
894                    AssetTagStatsLocalService assetTagStatsLocalService) {
895                    this.assetTagStatsLocalService = assetTagStatsLocalService;
896            }
897    
898            /**
899             * Returns the asset tag stats persistence.
900             *
901             * @return the asset tag stats persistence
902             */
903            public AssetTagStatsPersistence getAssetTagStatsPersistence() {
904                    return assetTagStatsPersistence;
905            }
906    
907            /**
908             * Sets the asset tag stats persistence.
909             *
910             * @param assetTagStatsPersistence the asset tag stats persistence
911             */
912            public void setAssetTagStatsPersistence(
913                    AssetTagStatsPersistence assetTagStatsPersistence) {
914                    this.assetTagStatsPersistence = assetTagStatsPersistence;
915            }
916    
917            /**
918             * Returns the asset vocabulary local service.
919             *
920             * @return the asset vocabulary local service
921             */
922            public AssetVocabularyLocalService getAssetVocabularyLocalService() {
923                    return assetVocabularyLocalService;
924            }
925    
926            /**
927             * Sets the asset vocabulary local service.
928             *
929             * @param assetVocabularyLocalService the asset vocabulary local service
930             */
931            public void setAssetVocabularyLocalService(
932                    AssetVocabularyLocalService assetVocabularyLocalService) {
933                    this.assetVocabularyLocalService = assetVocabularyLocalService;
934            }
935    
936            /**
937             * Returns the asset vocabulary remote service.
938             *
939             * @return the asset vocabulary remote service
940             */
941            public AssetVocabularyService getAssetVocabularyService() {
942                    return assetVocabularyService;
943            }
944    
945            /**
946             * Sets the asset vocabulary remote service.
947             *
948             * @param assetVocabularyService the asset vocabulary remote service
949             */
950            public void setAssetVocabularyService(
951                    AssetVocabularyService assetVocabularyService) {
952                    this.assetVocabularyService = assetVocabularyService;
953            }
954    
955            /**
956             * Returns the asset vocabulary persistence.
957             *
958             * @return the asset vocabulary persistence
959             */
960            public AssetVocabularyPersistence getAssetVocabularyPersistence() {
961                    return assetVocabularyPersistence;
962            }
963    
964            /**
965             * Sets the asset vocabulary persistence.
966             *
967             * @param assetVocabularyPersistence the asset vocabulary persistence
968             */
969            public void setAssetVocabularyPersistence(
970                    AssetVocabularyPersistence assetVocabularyPersistence) {
971                    this.assetVocabularyPersistence = assetVocabularyPersistence;
972            }
973    
974            /**
975             * Returns the asset vocabulary finder.
976             *
977             * @return the asset vocabulary finder
978             */
979            public AssetVocabularyFinder getAssetVocabularyFinder() {
980                    return assetVocabularyFinder;
981            }
982    
983            /**
984             * Sets the asset vocabulary finder.
985             *
986             * @param assetVocabularyFinder the asset vocabulary finder
987             */
988            public void setAssetVocabularyFinder(
989                    AssetVocabularyFinder assetVocabularyFinder) {
990                    this.assetVocabularyFinder = assetVocabularyFinder;
991            }
992    
993            /**
994             * Returns the counter local service.
995             *
996             * @return the counter local service
997             */
998            public CounterLocalService getCounterLocalService() {
999                    return counterLocalService;
1000            }
1001    
1002            /**
1003             * Sets the counter local service.
1004             *
1005             * @param counterLocalService the counter local service
1006             */
1007            public void setCounterLocalService(CounterLocalService counterLocalService) {
1008                    this.counterLocalService = counterLocalService;
1009            }
1010    
1011            /**
1012             * Returns the resource local service.
1013             *
1014             * @return the resource local service
1015             */
1016            public ResourceLocalService getResourceLocalService() {
1017                    return resourceLocalService;
1018            }
1019    
1020            /**
1021             * Sets the resource local service.
1022             *
1023             * @param resourceLocalService the resource local service
1024             */
1025            public void setResourceLocalService(
1026                    ResourceLocalService resourceLocalService) {
1027                    this.resourceLocalService = resourceLocalService;
1028            }
1029    
1030            /**
1031             * Returns the resource remote service.
1032             *
1033             * @return the resource remote service
1034             */
1035            public ResourceService getResourceService() {
1036                    return resourceService;
1037            }
1038    
1039            /**
1040             * Sets the resource remote service.
1041             *
1042             * @param resourceService the resource remote service
1043             */
1044            public void setResourceService(ResourceService resourceService) {
1045                    this.resourceService = resourceService;
1046            }
1047    
1048            /**
1049             * Returns the resource persistence.
1050             *
1051             * @return the resource persistence
1052             */
1053            public ResourcePersistence getResourcePersistence() {
1054                    return resourcePersistence;
1055            }
1056    
1057            /**
1058             * Sets the resource persistence.
1059             *
1060             * @param resourcePersistence the resource persistence
1061             */
1062            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
1063                    this.resourcePersistence = resourcePersistence;
1064            }
1065    
1066            /**
1067             * Returns the resource finder.
1068             *
1069             * @return the resource finder
1070             */
1071            public ResourceFinder getResourceFinder() {
1072                    return resourceFinder;
1073            }
1074    
1075            /**
1076             * Sets the resource finder.
1077             *
1078             * @param resourceFinder the resource finder
1079             */
1080            public void setResourceFinder(ResourceFinder resourceFinder) {
1081                    this.resourceFinder = resourceFinder;
1082            }
1083    
1084            /**
1085             * Returns the user local service.
1086             *
1087             * @return the user local service
1088             */
1089            public UserLocalService getUserLocalService() {
1090                    return userLocalService;
1091            }
1092    
1093            /**
1094             * Sets the user local service.
1095             *
1096             * @param userLocalService the user local service
1097             */
1098            public void setUserLocalService(UserLocalService userLocalService) {
1099                    this.userLocalService = userLocalService;
1100            }
1101    
1102            /**
1103             * Returns the user remote service.
1104             *
1105             * @return the user remote service
1106             */
1107            public UserService getUserService() {
1108                    return userService;
1109            }
1110    
1111            /**
1112             * Sets the user remote service.
1113             *
1114             * @param userService the user remote service
1115             */
1116            public void setUserService(UserService userService) {
1117                    this.userService = userService;
1118            }
1119    
1120            /**
1121             * Returns the user persistence.
1122             *
1123             * @return the user persistence
1124             */
1125            public UserPersistence getUserPersistence() {
1126                    return userPersistence;
1127            }
1128    
1129            /**
1130             * Sets the user persistence.
1131             *
1132             * @param userPersistence the user persistence
1133             */
1134            public void setUserPersistence(UserPersistence userPersistence) {
1135                    this.userPersistence = userPersistence;
1136            }
1137    
1138            /**
1139             * Returns the user finder.
1140             *
1141             * @return the user finder
1142             */
1143            public UserFinder getUserFinder() {
1144                    return userFinder;
1145            }
1146    
1147            /**
1148             * Sets the user finder.
1149             *
1150             * @param userFinder the user finder
1151             */
1152            public void setUserFinder(UserFinder userFinder) {
1153                    this.userFinder = userFinder;
1154            }
1155    
1156            public void afterPropertiesSet() {
1157                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.asset.model.AssetCategory",
1158                            assetCategoryLocalService);
1159            }
1160    
1161            public void destroy() {
1162                    persistedModelLocalServiceRegistry.unregister(
1163                            "com.liferay.portlet.asset.model.AssetCategory");
1164            }
1165    
1166            /**
1167             * Returns the Spring bean ID for this bean.
1168             *
1169             * @return the Spring bean ID for this bean
1170             */
1171            public String getBeanIdentifier() {
1172                    return _beanIdentifier;
1173            }
1174    
1175            /**
1176             * Sets the Spring bean ID for this bean.
1177             *
1178             * @param beanIdentifier the Spring bean ID for this bean
1179             */
1180            public void setBeanIdentifier(String beanIdentifier) {
1181                    _beanIdentifier = beanIdentifier;
1182            }
1183    
1184            protected Class<?> getModelClass() {
1185                    return AssetCategory.class;
1186            }
1187    
1188            protected String getModelClassName() {
1189                    return AssetCategory.class.getName();
1190            }
1191    
1192            /**
1193             * Performs an SQL query.
1194             *
1195             * @param sql the sql query
1196             */
1197            protected void runSQL(String sql) throws SystemException {
1198                    try {
1199                            DataSource dataSource = assetCategoryPersistence.getDataSource();
1200    
1201                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1202                                            sql, new int[0]);
1203    
1204                            sqlUpdate.update();
1205                    }
1206                    catch (Exception e) {
1207                            throw new SystemException(e);
1208                    }
1209            }
1210    
1211            @BeanReference(type = AssetCategoryLocalService.class)
1212            protected AssetCategoryLocalService assetCategoryLocalService;
1213            @BeanReference(type = AssetCategoryService.class)
1214            protected AssetCategoryService assetCategoryService;
1215            @BeanReference(type = AssetCategoryPersistence.class)
1216            protected AssetCategoryPersistence assetCategoryPersistence;
1217            @BeanReference(type = AssetCategoryFinder.class)
1218            protected AssetCategoryFinder assetCategoryFinder;
1219            @BeanReference(type = AssetCategoryPropertyLocalService.class)
1220            protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
1221            @BeanReference(type = AssetCategoryPropertyService.class)
1222            protected AssetCategoryPropertyService assetCategoryPropertyService;
1223            @BeanReference(type = AssetCategoryPropertyPersistence.class)
1224            protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
1225            @BeanReference(type = AssetCategoryPropertyFinder.class)
1226            protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
1227            @BeanReference(type = AssetEntryLocalService.class)
1228            protected AssetEntryLocalService assetEntryLocalService;
1229            @BeanReference(type = AssetEntryService.class)
1230            protected AssetEntryService assetEntryService;
1231            @BeanReference(type = AssetEntryPersistence.class)
1232            protected AssetEntryPersistence assetEntryPersistence;
1233            @BeanReference(type = AssetEntryFinder.class)
1234            protected AssetEntryFinder assetEntryFinder;
1235            @BeanReference(type = AssetLinkLocalService.class)
1236            protected AssetLinkLocalService assetLinkLocalService;
1237            @BeanReference(type = AssetLinkPersistence.class)
1238            protected AssetLinkPersistence assetLinkPersistence;
1239            @BeanReference(type = AssetTagLocalService.class)
1240            protected AssetTagLocalService assetTagLocalService;
1241            @BeanReference(type = AssetTagService.class)
1242            protected AssetTagService assetTagService;
1243            @BeanReference(type = AssetTagPersistence.class)
1244            protected AssetTagPersistence assetTagPersistence;
1245            @BeanReference(type = AssetTagFinder.class)
1246            protected AssetTagFinder assetTagFinder;
1247            @BeanReference(type = AssetTagPropertyLocalService.class)
1248            protected AssetTagPropertyLocalService assetTagPropertyLocalService;
1249            @BeanReference(type = AssetTagPropertyService.class)
1250            protected AssetTagPropertyService assetTagPropertyService;
1251            @BeanReference(type = AssetTagPropertyPersistence.class)
1252            protected AssetTagPropertyPersistence assetTagPropertyPersistence;
1253            @BeanReference(type = AssetTagPropertyFinder.class)
1254            protected AssetTagPropertyFinder assetTagPropertyFinder;
1255            @BeanReference(type = AssetTagPropertyKeyFinder.class)
1256            protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
1257            @BeanReference(type = AssetTagStatsLocalService.class)
1258            protected AssetTagStatsLocalService assetTagStatsLocalService;
1259            @BeanReference(type = AssetTagStatsPersistence.class)
1260            protected AssetTagStatsPersistence assetTagStatsPersistence;
1261            @BeanReference(type = AssetVocabularyLocalService.class)
1262            protected AssetVocabularyLocalService assetVocabularyLocalService;
1263            @BeanReference(type = AssetVocabularyService.class)
1264            protected AssetVocabularyService assetVocabularyService;
1265            @BeanReference(type = AssetVocabularyPersistence.class)
1266            protected AssetVocabularyPersistence assetVocabularyPersistence;
1267            @BeanReference(type = AssetVocabularyFinder.class)
1268            protected AssetVocabularyFinder assetVocabularyFinder;
1269            @BeanReference(type = CounterLocalService.class)
1270            protected CounterLocalService counterLocalService;
1271            @BeanReference(type = ResourceLocalService.class)
1272            protected ResourceLocalService resourceLocalService;
1273            @BeanReference(type = ResourceService.class)
1274            protected ResourceService resourceService;
1275            @BeanReference(type = ResourcePersistence.class)
1276            protected ResourcePersistence resourcePersistence;
1277            @BeanReference(type = ResourceFinder.class)
1278            protected ResourceFinder resourceFinder;
1279            @BeanReference(type = UserLocalService.class)
1280            protected UserLocalService userLocalService;
1281            @BeanReference(type = UserService.class)
1282            protected UserService userService;
1283            @BeanReference(type = UserPersistence.class)
1284            protected UserPersistence userPersistence;
1285            @BeanReference(type = UserFinder.class)
1286            protected UserFinder userFinder;
1287            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1288            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1289            private String _beanIdentifier;
1290    }