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