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