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