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